[Freeswitch-users] Set/Export channel variable
brian at freeswitch.org
Wed Mar 10 06:08:25 PST 2010
We already set you a variable called sip_gateway_name when a call is placed out a gateway. You're also doing this wrong you should NEVER EVER do @$ipgwX as that data is in the gateway. You should simply do sofia/gateway/gwname/number
On Mar 10, 2010, at 8:01 AM, Ahmed Ajmal wrote:
> I am trying to set a channel variable on the bridge application using this:
> <action application="bridge" data="[gw=gateway1]sofia/gateway/gw/$number@$ipgw1 | [gw=gateway2]sofia/gateway/gw/$number@$ipgw2"/>
> The application runs fine, what I now need to do is set/export the ‘gw’ channel variable for CDR so that I know which gateway was dialed. I have tried using set and export application but that doesn’t work. Please help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-users