[Freeswitch-users] Fwd: Set/Export channel variable

Ahmed Bhaila ahmed.ajmal at gmail.com
Mon Mar 15 12:31:34 PDT 2010


I am looking at the FS Console and I have a ESL listener socket that is
hooked for HANGUP_COMPLETE event.


- ahmed

On Mon, Mar 15, 2010 at 6:50 AM, Ahmed Ajmal <ahmed.ajmal at
breezecom.ae <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>>wrote:

>*  Hi
*>*
*>*
*>*
*>* I have now configured the gateways as suggested below but I am not able to
*>* see the sip_gateway_name variable when the call hangup event is complete. I
*>* am on Freeswitch 1.0.5.
*>*
*>*
*>*
*Where are you looking to find the variable?
-MC

From: freeswitch-users-bounces at lists.freeswitch.org
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>

[mailto:freeswitch-users-bounces at lists.freeswitch.org
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>] On
Behalf Of Brian
West
Sent: Wednesday, March 10, 2010 7:08 PM
To: freeswitch-users at lists.freeswitch.org
<http://lists.freeswitch.org/mailman/listinfo/freeswitch-users>

Subject: Re: [Freeswitch-users] Set/Export channel variable



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



/b



On Mar 10, 2010, at 8:01 AM, Ahmed Ajmal wrote:





Hi



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.



Thanks

Ahmed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100316/e93641b1/attachment-0002.html 


More information about the FreeSWITCH-users mailing list