[Freeswitch-users] problem in sending calls to internal Gateway.
Prabin Shrestha
nepaligas at yahoo.com
Sat Mar 13 22:22:14 PST 2010
hello,
My extension are working properly. But they can't send calls to gateway. I have 2 interfaces, one with public and another with private lan. Gateway is in private lan. Please suggest.
My configurations are as follows:
/conf/sip_profiles/external.xml:
<param name="rtp-ip" value="110.4.12.111"/>
<param name="sip-ip" value="110.4.12.111"/>
<param name="ext-rtp-ip" value="auto-nat"/>
<param name="ext-sip-ip" value="auto-nat"/>
/conf/sip_profiles/internal.xml:
<param name="rtp-ip" value="192.168.1.11"/>
<param name="sip-ip" value="192.168.1.11"/>
<param name="hold-music" value="$${hold_music}"/>
<param name="apply-nat-acl" value="nat.auto"/>
haven't made any changes in conf/autoload_configs/acl.conf.xml
to route calls from providers, /dialplan/public/providers.xml:
<extension name="provider">
<condition field="network_addr" expression="200.144.44.177"/>
<condition field="destination_number" expression="^(\d+)$">
<action application="transfer" data="$1 XML context_AX"/>
</condition>
</extension>
gateway is defined at /conf/sip_profiles/internal/gateways.xml:
<include>
<gateway name="gateway_AX">
<param name="username" value="admin"/>
<param name="password" value="nepal123"/>
<param name="proxy" value="192.168.1.100"/>
<param name="register" value="false"/>
<param name="extension" value="1001"/>
</gateway>
</include>
To route internal calls from extensions, /conf/dialplan/default.xml:
<extension name="my_internal">
<!--<condition field="${ruleset}" expression="internal" /> -->
<condition field="destination_number" expression="^(d+)$">
<action application="bridge" data="sofia/gateway/gateway_AX/$1"/>
</condition>
</extension>
to route calls from providers, conf/dialplan/inbound_routing.xml:
<context name="context_AX">
<extension name="from_provider_to_AX">
<!--<condition field="destination_number" expression="^00(1.*)$">-->
<condition field="destination_number" expression="^9(\d+)$">
<action application="bridge" data="sofia/gateway/gateway_AX/$1"/>
</condition>
</extension>
</context>
Please help.
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
More information about the FreeSWITCH-users
mailing list