[asterisk-dev] 'IAX2 call variable passing between servers '

Douglas Garstang dgarstang at oneeighty.com
Thu Aug 3 09:53:08 MST 2006


> -----Original Message-----
> From: Douglas Garstang 
> Sent: Thursday, August 03, 2006 10:20 AM
> To: Asterisk Developers Mailing List
> Subject: RE: [asterisk-dev] 'IAX2 call variable passing 
> between servers
> '
> 
> 
> > -----Original Message-----
> > From: Roy Sigurd Karlsbakk [mailto:roy at karlsbakk.net]
> > Sent: Monday, July 31, 2006 12:03 PM
> > To: Asterisk Developers Mailing List
> > Subject: Re: [asterisk-dev] 'IAX2 call variable passing 
> > between servers
> > '
> > 
> > 
> > > On 7/29/06, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> > >
> > > One side point: would you really want to allow a remote server to
> > > override any local variable you have? Shouldn't there be 
> a separate
> > > namespace (e.g: prefix) for variables that could be 
> supplied by the
> > > remote party?
> > >
> > > Why would you implement it like that, as opposed to having an  
> > > IAX2_VAR function, so you could do
> > > exten => 1234,1,NoOp(${IAX2_VAR(some_var)})
> > >
> > > The same way you have SIP_HEADER, CDR, and CALLERID?
> > 
> > I second that. That is indeed a clean shot.
> 
> I'm a little confused about something. If IAX2 doesn't 
> support passing variables like the accountcode for example, 
> between Asterisk servers, why do all the examples have it 
> defined in iax.conf? If the protocol doesn't support it, then 
> why have it set for an IAX user agent?

Now I'm even more confused! I installed an IAX soft phone on my desktop. I set the accountcode in iax.conf for the user, along with all the usual settings. extensions.conf has:

exten => 124,1,Answer
exten => 124,2,Wait,1
exten => 124,3,NoOp(${ACCOUNTCODE})

I dial 124, and voila... there's the account code for this user on the screen. So, I'll ask again. If variables like the account code can be set for an IAX user agent, and passed from Asterisk to the dial plan, why can't they be passed with IAX from one Asterisk system to another? Makes no sense to me. I must be missing something.

Also, if the account code IS being passed, the output from 'iax2 debug' on the console doesn't show this variable at all during call setup. Why doesn't an iax2 debug show ALL variables, and only a small subset of them?

Doug.



More information about the asterisk-dev mailing list