[Freeswitch-users] setting a context per gateway in a single profile

Michael Jerris mike at jerris.com
Sun Aug 15 15:10:27 PDT 2010


Matching inbound calls to a gateway is at best unreliable.  The reason is, we don't necessarily know what gateway an inbound call is coming from as many providers do not use the request uri as our registered contact.  I am not sure there is any reliable solution to this problem.

Mike


On Jul 16, 2010, at 4:52 AM, Antonio wrote:

> I want to set a incoming context per each gateway that i have register
> in one profile only. so in the dialplan i can have rules per gateway,
> without having to do transfers from de default context per gw.
> 
> 
> Is it possible?
> 
> Thanks,
> António
> 
> the configuration:
>        <profile>
>                </gateways>
>        <gateway name="gw1">
>                <param name="username" value="gw1"/>
>                <param name="password" value="gw1"/>
>                <param name="realm" value="172.6.3.1"/>
>                <param name="register" value="yes"/>
>                <param name="context" value="public1"/>
>        </gateway>
>        <gateway name="gw2">
>                <param name="username" value="gw2"/>
>                <param name="password" value="gw2"/>
>                <param name="realm" value="172.6.3.1"/>
>                <param name="register" value="yes"/>
>                <param name="context" value="public2"/>
>                <param name="ping" value="25"/>
>        </gateway>
>        <gateway name="gw3">
>                <param name="username" value="gw3"/>
>                <param name="password" value="gw3"/>
>                <param name="realm" value="172.6.3.1"/>
>                <param name="register" value="yes"/>
>                <param name="context" value="public3"/>
>        </gateway>
>                </gateways>
>                <settings>
>                        <param name="dialplan" value="XML"/>
>                        <param name="context" value="default"/>
>                <settings>
>        </profile>
> 
> 
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org




More information about the FreeSWITCH-users mailing list