[Freeswitch-users] Inbound Gateway Call Not Working

Jerry Richards jerry.richards at teotech.com
Mon Sep 14 11:38:54 PDT 2009


Okay.  I got the Grandstream Gateway's 1-stage dialing working with
Freeswitch (Thank You, Michael Collins and Thank All You Developers for
creating this really slick Softswitch/PBX).

Here are the changes/additions I made to the XML files:

conf/sip_profiles/exernal/grandstreamGXW4104.xml (added file):
<include>
  <gateway name="192.168.72.186">
    <param name="username" value="1000"/>
    <param name="password" value="1234"/>
    <param name="proxy" value="192.168.72.186"/>
    <param name="register" value="false"/>
    <param name="extension" value="1000"/>
  </gateway>
</include>

conf/dialplan/default.xml (added to existing file):
<extension name="GrandstreamTest">
  <condition field="destination_number" expression="^(9{0,1}\d{10})$">
    <action application="bridge"
data="sofia/gateway/192.168.72.186/$1 at 192.168.72.186"/>
  </condition>
</extension>

conf/dialplan/public.xml (added to existing file):
<extension name="GrandstreamTest">
  <condition field="destination_number" expression="^(5000)$">
    <action application="transfer" data="$1 XML default"/>
  </condition>
</extension>

conf/autoload_configs/acl.conf.xml (added to existing file):
<list name="lan" default="allow">
  <node type="allow" cidr="192.168.72.186/32"/>
  ...
</list>
...
<list name="domains" default="deny">
  <node type="allow" cidr="192.168.72.186/32"/>
  ...
</list>

Best Regards,
Jerry


-----Original Message-----
From: Jerry Richards [mailto:jerry.richards at teotech.com] 
Sent: Friday, September 11, 2009 1:27 PM
To: 'freeswitch-users at lists.freeswitch.org'; 'Michael Collins'
Subject: RE: Inbound Gateway Call Not Working

Thanks.  I added the <node type="allow" cidr="x.x.x.x/32"/> to both the
"lan" list and "domain" list in the acl.conf.xml file and it does not try to
authenticate anymore.

However, now it replies to the INVITE with a 480 TEMPORARILY UNAVAILABLE.

Best Regards,
Jerry
 

-----Original Message-----
From: Jerry Richards [mailto:jerry.richards at teotech.com]
Sent: Friday, September 11, 2009 10:57 AM
To: 'freeswitch-users at lists.freeswitch.org'
Subject: RE: Inbound Gateway Call Not Working

By the way, the FS DEBUG console is saying the following when an inbound
call is made:

Rejected by acl "domains". Falling back to Digest auth.

Best Regards,
Jerry


-----Original Message-----
From: Jerry Richards [mailto:jerry.richards at teotech.com]
Sent: Friday, September 11, 2009 10:25 AM
To: 'freeswitch-users at lists.freeswitch.org'
Subject: Inbound Gateway Call Not Working

I am trying to configure a Grandstream gateway to work with FS.  I can make
outbound calls without a problem.  However, inbound calls are getting a 403
Forbidden from FS in response to the INVITE from the gateway.

Now, the INVITE's from address is the caller's number (e.g. 1112223333),
which ofcourse, is foreign to the FS.  So the FS sends a 407 Proxy
Authentication Required and the gateway uses username "Anonymous" and the
uri "sip:4000 at 192.168.72.38" (4000 is the destination for all calls from the
gateway).

Is there an example configuration for this scenario?

Thanks and Best Regards,
Jerry





More information about the FreeSWITCH-users mailing list