[Freeswitch-users] Trying to wrap my head around variables.

Anthony Minessale anthony.minessale at gmail.com
Sun Nov 4 21:11:38 MSK 2012


Make one extension to set vars then call transfer to another one that does
things based on the vars.



On Sun, Nov 4, 2012 at 9:33 AM, Brian Wiese <
brian.wiese.freeswitch at gmail.com> wrote:

> What's happening is that you're trying to use cellPhone as a built-in
> variable when instead it is a channel variable that you've set (read
> the whole Variables section of this Wiki page:
> http://wiki.freeswitch.org/wiki/Dialplan_XML#Variables).
>
> Try "<condition field="${cellPhone}" expression......."
>
> ~Brian
>
> On Sat, Nov 3, 2012 at 11:20 PM, D'Arcy J.M. Cain <darcy at vex.net> wrote:
> > On Sat, 3 Nov 2012 22:58:43 -0400
> > "D'Arcy J.M. Cain" <darcy at Vex.Net> wrote:
> >> > work.   However, there is a way to get what you want by adding
> >> > inline="true" to the action when you set variables so they actually
> >> > are set immediately and won't count in the list of work.  This only
> >> > works for set and a small list of apps.
> >>
> >> Definitely not what I want in this case.
> >
> > I think I misunderstood.  I read "immediately" as being at reloadxml
> > time.  I see that it means during the hunting phase.  I modified my
> > dialplan but it still isn't quite right.  See the updated pastebin:
> >
> > http://pastebin.freeswitch.org/20168
> >
> > See the log extract at the end.  It shows cellPhone being set to
> > something but when it tests it it is blank.
> >
> > --
> > D'Arcy J.M. Cain
> > System Administrator, Vex.Net
> > http://www.Vex.Net/ IM:darcy at Vex.Net
> >
> > _________________________________________________________________________
> > Professional FreeSWITCH Consulting Services:
> > consulting at freeswitch.org
> > http://www.freeswitchsolutions.com
> >
> > 
> > 
> >
> > Official FreeSWITCH Sites
> > http://www.freeswitch.org
> > http://wiki.freeswitch.org
> > http://www.cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121104/437479c0/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list