Yes, that needs to be rephrased. It really should be ${var} not $${var} since $${var} is meant to address a different scenario.<br>-MC<br><br><div class="gmail_quote">On Wed, Jan 16, 2013 at 8:05 PM, Ержан Тулепов <span dir="ltr"><<a href="mailto:e.tylepov@btcom.kz" target="_blank">e.tylepov@btcom.kz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">FreeSWITCH 1.0.6 book on p. 187 says:<br>
<br>
... When you set a variable during this phase, that variable is considered global automatically and becomes accessible throughout the application as $${variable} elsewhere in the XML.<br>
<br>
... You can utilize global variables in your conditions, your variable and parameter declarations, pretty much anywhere, like this:<br>
<condition field="$${global_variable}"><br>
<br>
This should had an addition, that ${g_v} can be used as well.<br>
<br>
----- Original Message -----<br>
From: Michael Collins [mailto:<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>]<br>
To: FreeSWITCH Users Help [mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>]<br>
Sent: Thu, 17 Jan 2013 07:17:31 +0600<br>
Subject: Re: [Freeswitch-users] Unloop extension<br>
<br>
<br>
> No, it's available globally, whether used with $${} or ${} notation. You<br>
> can also see it from fs_cli:<br>
><br>
> freeswitch@default> global_getvar unroll_loops<br>
> true<br>
><br>
> More info about $${} vs. ${} is found<br>
> here<<a href="http://wiki.freeswitch.org/wiki/Channel_Variables#.24.7Bvariable.7D_vs._.24.24.7Bvariable.7D" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#.24.7Bvariable.7D_vs._.24.24.7Bvariable.7D</a>><br>
> .<br>
><br>
> -MC<br>
><br>
> On Tue, Jan 15, 2013 at 8:09 PM, Ержан Тулепов<br>
> <<a href="mailto:e.tylepov@btcom.kz">e.tylepov@btcom.kz</a>> wrote:<br>
><br>
> > Ain't what was set with <x-PRE-PROCESS cmd="set" ... gets set *only* when<br>
> > used in $${...} notation?<br>
> ><br>
> > ----- Original Message -----<br>
> > From: Michael Collins [mailto:<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>]<br>
> > To: FreeSWITCH Users Help [mailto:<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>]<br>
> > Sent: Wed, 16 Jan 2013 06:54:12 +0600<br>
> > Subject: Re: [Freeswitch-users] Unloop extension<br>
> ><br>
> ><br>
> > > Yes, it's okay. The pre-process does a set and ${unroll_loops} gets set<br>
> > as<br>
> > > needed. Then this dp entry does the work:<br>
> > > <extension name="unloop"><br>
> > > <condition field="${unroll_loops}" expression="^true$"/><br>
> > > <condition field="${sip_looped_call}" expression="^true$"><br>
> > > <action application="deflect" data="${destination_number}"/><br>
> > > </condition><br>
> > > </extension><br>
> > ><br>
> > > More info on sip_looped_call var:<br>
> > > <a href="http://wiki.freeswitch.org/wiki/Variable_sip_looped_call" target="_blank">http://wiki.freeswitch.org/wiki/Variable_sip_looped_call</a><br>
> > ><br>
> > > -MC<br>
> > ><br>
> > > On Mon, Jan 14, 2013 at 9:33 PM, Ержан Тулепов<br>
> > > <<a href="mailto:e.tylepov@btcom.kz">e.tylepov@btcom.kz</a>> wrote:<br>
> > ><br>
> > > > What unloop extension is used for? BTW: vars.xml pre-(process)-sets<br>
> > > > unroll_loops, whereas DPs (public and default) are using channel<br>
> > variable<br>
> > > > syntax? Is this ok?<br>
> > > ><br>
> > > > Y.<br>
> > > ><br>
> > > ><br>
> > _________________________________________________________________________<br>
> > > > Professional FreeSWITCH Consulting Services:<br>
> > > > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> > > > <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
> > > ><br>
> > > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> > > > <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
> > > ><br>
> > > > Official FreeSWITCH Sites<br>
> > > > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> > > > <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> > > > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
> > > ><br>
> > > > FreeSWITCH-users mailing list<br>
> > > > <a href="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:<br>
> > <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>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > > Michael S Collins<br>
> > > Twitter: @mercutioviz<br>
> > > <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
> > > <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
> > > <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
> > ><br>
> ><br>
> > _________________________________________________________________________<br>
> > Professional FreeSWITCH Consulting Services:<br>
> > <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> > <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
> ><br>
> > FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
> > <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> > <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
> > <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
> ><br>
> > FreeSWITCH-users mailing list<br>
> > <a href="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>
> ><br>
><br>
><br>
><br>
> --<br>
> Michael S Collins<br>
> Twitter: @mercutioviz<br>
> <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
> <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
> <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="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>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>