Re: [Freeswitch-users] transfer_ringback from mod_managed
Hi Brian, with Session.SetVariable("transfer_ringback", ${us-ring}); I have message: "[CRIT] switch_channel.c:633 Invalid data (${transfer_ringback} contains a variable)". Using from managed code: string stUsRing = _Session.GetVariable("us-ring"); Session.SetVariable("ringback", stUsRing); Session.SetVariable("transfer_ringback", stUsRing); The bridge works fine. The question is, using Session is not possible acces directly global vars way ${var_name} ? Thanks Diego --- On Wed, 6/24/09, Brian West <brian@freeswitch.org> wrote: From: Brian West <brian@freeswitch.org> Subject: Re: [Freeswitch-users] transfer_ringback from mod_managed To: freeswitch-users@lists.freeswitch.org Date: Wednesday, June 24, 2009, 8:32 AM Well its the same you use ${us-ring} in both cases. /b On Jun 24, 2009, at 8:07 AM, Diego Toro wrote: Greetings When I use Session.SetVariable("transfer_ringback", "us-ring") from managed code the bridge fails with "NO_ANSWER" cause. If I use <action application="set" data="transfer_ringback=${us-ring}"/> from xml dial plan the call is stablished. I have FS rev 13750 running on Windows. This is a issue or I don't use properly transfer_ringback variable ? Diego Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com -----Inline Attachment Follows----- _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Chances are you need to get var us-ring then use that to set the transfer_ringback /b On Jun 24, 2009, at 9:20 AM, Diego Toro wrote:
Hi Brian, with Session.SetVariable("transfer_ringback", ${us-ring}); I have message: "[CRIT] switch_channel.c:633 Invalid data ($ {transfer_ringback} contains a variable)".
Using from managed code:
string stUsRing = _Session.GetVariable("us-ring"); Session.SetVariable("ringback", stUsRing); Session.SetVariable("transfer_ringback", stUsRing);
The bridge works fine.
The question is, using Session is not possible acces directly global vars way ${var_name} ?
Thanks
Diego
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
participants (2)
-
Brian West
-
Diego Toro