[Freeswitch-users] Link an incoming call to gateway
Varsha Agarwal
vagarwal at vertical.com
Wed Feb 8 01:14:36 MSK 2017
Hi,
We have multiple gateway registration with internal profile for inbound calls. These registrations could be with same IP address but different extensions/users. In our public dial plan, we need to link an incoming call with the gateway and transfer it to different destination based on which gateway call came over. We tried setting channel variables in gateway but cannot access them in dial plan. They are always empty. Is there a way to achieve this? Sample gateway file
<include>
<gateway name=gw1>
<param name="username" value="xxxxx"/>
<param name=realm" value="xxx"/>
<param name="from-user" value="1001"/>
<param name=register" value="true"/>
<variables>
<variable name="curGateway" value="gw1"/>
<variables>
</gateway>
<gateway name=gw2>
<param name="username" value="xxxxx"/>
<param name=realm" value="xxx"/>
<param name="from-user" value="1002"/>
<param name=register" value="true"/>
<variables>
<variable name="curGateway" value="gw2"/>
<variables>
</gateway>
</include>
${curGateway} is always empty in dialplan.
Thanks,
Varsha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170207/7e789c2f/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list