[asterisk-users] Mr. Spencer Written

Seb Auriol sebau at syntec.co.uk
Tue May 15 08:45:16 MST 2007


Kristian Kielhofner wrote:
> On 5/15/07, cleviton.araujo at caixa.gov.br
> <cleviton.araujo at caixa.gov.br> wrote:
>> Hi,
>> 
>> Mr. Spencer written the article "Using DUNDi with a Cluster of
>> Asterisk Servers" in the VoIP Magazine and the piece follow:
>> 
>> [lookupdundi]
>>  exten => _X,1,Goto(${ARG1},1)
>>  switch => DUNDi/priv
>>  exten => i,1,Goto(lookupmysql,${INVALID_EXTEN},1)
>> 
>> 
>> I didn't get understand the usage ARG1 argument in the context. Do
>> use ARG1 variable only into macro? Is not this usage apparent
>> contradiction with Asterisk documents? Do anyone get explain this?
>> 
>> 
>> Regards,
>> 
>> Cleviton
>> 
> 
> Cleviton,
> 
>   You can pass arguments into a macro:
> 
> exten => 500,1,Macro(something,${EXTEN})
> 
> [macro-something]
> exten => s,1,Dial(SIP/${ARG1},60)
> 
>   This is perfectly valid.  You can pass multiple arguments and read
> them with ${ARG1}, ${ARG2}, etc, etc:
> 
> http://www.voip-info.org/wiki-Asterisk+variables#Macrospecific
> variables

Kristian, I think Cleviton's point was that [lookupdundi] does not appear to
be a macro, and so how can it have arguments if it just a normal context /
extension?

Kind regards,

Sebastian



More information about the asterisk-users mailing list