Re: [Asterisk-Users] Setting Variables

2005-05-11 Thread Peter Svensson
On Tue, 10 May 2005, Daniel Salama wrote: Is it possible to set a variable for an IAX device in iax.conf that can be read from the dial plan (extensions.conf)? If so, can you explain? Use setvar=name_of_var=value_you_want. Peter -- Peter Svensson ! Pgp key available by finger,

Re: [Asterisk-Users] Setting Variables

2005-05-10 Thread Alfredo Manrique
In extensions.conf in the general section you can create globals like: JOHN=IAX2/1234 And then use ${JOHN} in your dial plan to use that device. Alfredo. On 5/10/05, Daniel Salama [EMAIL PROTECTED] wrote: Is it possible to set a variable for an IAX device in iax.conf that can be read from

Re: [Asterisk-Users] Setting Variables

2005-05-10 Thread Daniel Salama
Thanks. May be I wasn't clear enough. I have local IAX users as well as remote IAX users (local means to the local network and remote means off net). When I define their profile in iax.conf, I would like to set a variable like LOCAL=1 or LOCAL=0 so that in extensions.conf, I could access

Re: [Asterisk-Users] Setting Variables

2005-05-10 Thread Moises Silva
at the moment i think is not possible. A workaround can be sending local and remote iax to different context in iax.conf like this [iaxremote] blah... context=remoteiax [iaxlocal] blah context=localiax so in extensions.conf you can do [localiax] exten = s,1,SetVar(local=1) blah...

Re: [Asterisk-Users] Setting Variables

2005-05-10 Thread Daniel Salama
This is a good solution. However, I have a regarding this approach: Does this mean that ANY incoming directed to that agent will fall into that context? I have calls coming into the system and being put in a Queue. When the agent is available, the call will be de-queued to the agent. When is