[Freeswitch-users] Access to users variables

2009-12-07 Thread Mark Campbell-Smith
Hi! How can I access the variables that are defined in a users xml file? For example, say user 1000 has a variable called smsnumber, as defined below: include user id=1000 mailbox=1000 params param name=password value=1000/ /params variables variable name=smsnumber

Re: [Freeswitch-users] Access to users variables

2009-12-07 Thread Michael Collins
On Mon, Dec 7, 2009 at 10:11 AM, Mark Campbell-Smith mcampbellsm...@gmail.com wrote: Hi! How can I access the variables that are defined in a users xml file? For example, say user 1000 has a variable called smsnumber, as defined below: include user id=1000 mailbox=1000 params

Re: [Freeswitch-users] Access to users variables

2009-12-07 Thread Mark Campbell-Smith
Hi! That's exactly what I want to do and that was the first thing I tried, but nothing is passed to the script. In a case like this, what defines if variable smsnumber is taken from the A path or B path? (The A path does not have smsnumber defined) On Tue, Dec 8, 2009 at 5:25 AM, Michael

Re: [Freeswitch-users] Access to users variables

2009-12-07 Thread Michael Collins
Check out http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user you might just need to set the user so that the vars become available on the leg you're processing. -MC On Mon, Dec 7, 2009 at 10:37 AM, Mark Campbell-Smith mcampbellsm...@gmail.com wrote: Hi! That's exactly what I want

Re: [Freeswitch-users] Access to users variables

2009-12-07 Thread Mark Campbell-Smith
Perfect... action application=set_user data=${dialed_extensi...@${domain}/ works like a charm. Thanks Mike. On Tue, Dec 8, 2009 at 5:56 AM, Michael Collins m...@freeswitch.org wrote: Check out http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user you might just need to set

Re: [Freeswitch-users] Access to users variables

2009-12-07 Thread Michael Collins
On Mon, Dec 7, 2009 at 11:09 AM, Mark Campbell-Smith mcampbellsm...@gmail.com wrote: Perfect... action application=set_user data=${dialed_extension}@ ${domain}/ works like a charm. Another satisfied customer! :P ___ FreeSWITCH-users