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

Tim Panton tim at mexuar.com
Sat Jul 29 08:32:15 MST 2006


On 29 Jul 2006, at 12:59, Tzafrir Cohen wrote:

> On Sat, Jul 29, 2006 at 09:19:28AM +0100, Tim Panton wrote:
>
>> When I said we could use url style values in the dial plan, I was
>> thinking of having it work like this:
>>
>> dial(IAX2/mexuar/3?customer="JoeBob")
>>
>> Asterisk would strip ?customer="JoeBob" from the dial string before
>> sending it.
>> It would then add an (optional) InfoElement to the NEW frame with the
>> variable name and value in it
>>
>> The receiving IAX would either ignore the extra InfoElement, or if it
>> supported it, it would
>> check to see if the variable existed, if not, create it and assign
>> the value.
>> (pre existing asterisks will ignore IEs they don't understand)
>
> 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?

No, I think it is simpler if the variables are in the same namespace,  
we are
all used to there being variables which just appear as the result of
functions in a dialplan.


I don't think sent variables should override existing local variables,
hence the test to see if the variable already exists (see above).


Tim Panton

www.mexuar.com






More information about the asterisk-dev mailing list