[Freeswitch-users] Problem with setting up a variable in <variables> section of a gateway
Dmitry R
rdmitry0911 at gmail.com
Wed Jul 11 01:44:08 MSD 2012
Hi guys, I'm trying to set a channel variable effective_caller_id_number in
gateway's <variables> section and it seems not working. However, if I set it
up with application set command in dialplan it works fine. What is the
difference between these two ways?
My gateway section looks like this:
<include>
<gateway name="CanUS">
<param name="username" value="64721"/>
<param name="password" value="supersecretpasword"/>
<param name="from-user" value="64721"/>
<param name="from-domain" value="11.22.33.44"/>
<param name="proxy" value="11.22.33.44"/>
<param name="expire-seconds" value="800"/>
<param name="register" value="true"/>
<param name="retry-seconds" value="60"/>
<param name="context" value="public"/>
<param name="caller-id-in-from" value="true"/> <!--Most gateways seem
to want this-->
<variables>
<variable name="effective_caller_id_name" value="Gateway"/>
<variable name="effective_caller_id_number" value="64721"/>
</variables>
</gateway>
</include>
and working dialplan strings look like this:
<action application="set" data="effective_caller_id_number=64721" />
<action application="bridge" data="sofia/gateway/CanUS/$1" />
Thank you, Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120711/29376d5f/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list