[Freeswitch-users] How to set a variable for a call going from gateway?

"Гришин В.С." Vladislav.Grishin at vts24.ru
Fri Mar 23 17:02:25 MSK 2012


After I read a http://wiki.freeswitch.com/wiki/Sofia.conf.xml#Variables

I configured FS

[root at freeswitch1 external]# more 
/usr/local/freeswitch/conf/sip_profiles/external/SMG-1016M.xml
</include>
<gateway name="SMG-1016M">
<param name="realm" value="10.10.10.1"/>
<param name="register" value="false"/>
<param name="caller-id-in-from" value="true"/>
<param name="ping" value="25"/>
<variables>
<variable name="SMG-1016M_inbound_var_name"  
data="this_is_inbound_call"  direction="inbound"/>
<variable name="SMG-1016M_outbound_var_name" 
data="this_is_outbound_call" direction="outbound"/>
<variable name="SMG-1016M_both_var_name"     
data="this_on_any_direction_call"/>
</variables>
</gateway>
</include>
[root at freeswitch1 external]#

I insert the info application into public context of dialplanbefore a 
transfer application? make call but don't see variables 
(SMG-1016M_inbound_var_name,SMG-1016M_outbound_var_name,SMG-1016M_both_var_name)
in fs_cli.

I want to see variable = <gateway name="SMG-1016M"> into dialplan for 
each gateway in (single) external sip profile. How it to make?

Vladislav Grishin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120323/67814c97/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list