[Freeswitch-users] Gateway context for incoming calls

Brian West brian at freeswitch.org
Sat Mar 13 08:08:37 PST 2010

Its worse.. the only way you can map an inbound call back to the gateway in question is the far side has to call the registered contact you sent on outbound registration.  Most services don't follow this rule.


On Mar 13, 2010, at 12:59 AM, Michael Collins wrote:

> Try sending one of these calls to the info application in your public dialplan. Most likely there will be a few fields which you can key off of in your dialplan conditions. If your providers have static IPs then you can always use the network_addr field to match on. Once you match on a particular IP address (or whichever field) then you can execute the transfer app and send the call to another context altogether:
> <extension name="example IP addr match">
>     <condition field="network_addr" expression="^1\.2\.3\.4$"/> <!-- IP addr of originating server -->
>     <condition field="destination_number" expression="^(.*)$">
>          <action application="transfer" data="$1 XML my_context"/>
>     </condition>
> </extension>
> Let us know how it goes.
> -MC

More information about the FreeSWITCH-users mailing list