<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Brian, with Session.SetVariable("transfer_ringback", ${us-ring}); I have message: "[CRIT] switch_channel.c:633 Invalid data (${transfer_ringback} contains a variable)".</DIV>
<DIV> </DIV>
<DIV>Using from managed code: </DIV>
<DIV> </DIV>
<DIV>string stUsRing = _Session.GetVariable("us-ring");<BR>Session.SetVariable("ringback", stUsRing);<BR>Session.SetVariable("transfer_ringback", stUsRing);</DIV>
<DIV> </DIV>
<DIV>The bridge works fine.</DIV>
<DIV> </DIV>
<DIV>The question is, using Session is not possible acces directly global vars way ${var_name} ?</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>Diego<BR><BR>--- On <B>Wed, 6/24/09, Brian West <I><brian@freeswitch.org></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Brian West <brian@freeswitch.org><BR>Subject: Re: [Freeswitch-users] transfer_ringback from mod_managed<BR>To: freeswitch-users@lists.freeswitch.org<BR>Date: Wednesday, June 24, 2009, 8:32 AM<BR><BR>
<DIV id=yiv1596541959>Well its the same you use ${us-ring} in both cases.
<DIV><BR></DIV>
<DIV>/b</DIV>
<DIV><BR>
<DIV>
<DIV>On Jun 24, 2009, at 8:07 AM, Diego Toro wrote:</DIV><BR class=Apple-interchange-newline>
<BLOCKQUOTE type="cite"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Greetings</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>I have FS rev 13750 running on Windows.</DIV>
<DIV> </DIV>
<DIV>This is a issue or I don't use properly transfer_ringback variable ?</DIV>
<DIV> </DIV>
<DIV>Diego</DIV></TD></TR></TBODY></TABLE></SPAN></BLOCKQUOTE></DIV><BR>
<DIV><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<DIV style="WORD-WRAP: break-word"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<DIV style="WORD-WRAP: break-word"><SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: 12px Helvetica; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px" class=Apple-style-span>
<DIV style="WORD-WRAP: break-word">
<DIV>Brian West</DIV>
<DIV><A href="http://us.mc335.mail.yahoo.com/mc/compose?to=brian@freeswitch.org" rel=nofollow target=_blank ymailto="mailto:brian@freeswitch.org">brian@freeswitch.org</A></DIV>
<DIV><BR></DIV></DIV></SPAN>-- Meet us at ClueCon! <A href="http://www.cluecon.com/" rel=nofollow target=_blank>http://www.cluecon.com</A><BR>
<DIV><BR></DIV></DIV></SPAN><BR class=Apple-interchange-newline></DIV></SPAN><BR class=Apple-interchange-newline></DIV><BR></DIV></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>Freeswitch-users mailing list<BR><A href="http://us.mc335.mail.yahoo.com/mc/compose?to=Freeswitch-users@lists.freeswitch.org" ymailto="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</A><BR><A href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</A><BR>UNSUBSCRIBE:<A href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target=_blank>http://lists.freeswitch.org/mailman/options/freeswitch-users</A><BR><A href="http://www.freeswitch.org/" target=_blank>http://www.freeswitch.org</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>