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

Antonio asilva at wirelessmundi.com
Fri Jul 16 01:52:20 PDT 2010


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>




More information about the FreeSWITCH-users mailing list