[Asterisk-Users] Originate not understanding 2 vars in setvars

Joerg Lauer lauer at osiag.de
Thu Sep 15 01:46:34 MST 2005


Hi,

I'm currently trying to originate a call with 2 variables set. I tried 
doing it via manager API and call File and both failed, because the vars 
were not separated. I'm using Asterisk 1.2_beta1 on this machine

Can anyone here verify wether this is a bug or just a stupid error on my 
part?

This is the callfile I tried to use, after the manager way failed:

Channel: local/21 at outbounddial/n
MaxRetries: 0
RetryTime: 60
WaitTime: 30
Context: outbound
Extension: s
Priority: 1
SetVar: actionID=54547-1126771509609|AgiIP=192.168.10.249

The part of the extension.conf it should work with is this:

[outbound]
exten => s,1,Agi(agi://${AgiIP}:1234/outbound.agi?actionId=${actionId})

Asterisk dials out, as it should, but when the call is answered I get 
the following message in CLI:

Executing AGI("Local/21 at outbounddial-d582,1", 
"agi://:1234/outbound.agi?actionId=54547-1126771509609|AgiIP=192.168.10.249") 
in new stack
Sep 15 12:36:50 WARNING[18839]: res_agi.c:153 launch_netscript: Unable 
to locate host ''

According to the help (show manager command Originate), I think it 
should have worked.

Thanks for any help,

Joerg



More information about the asterisk-users mailing list