[asterisk-users] AGI script fails on IAX channels (from call file).
Tony Mountifield
tony at softins.clara.co.uk
Sat Sep 15 04:40:32 CDT 2007
In article <46EAF68B.6070505 at comcast.net>,
Jonas Arndt <jonas_arndt at comcast.net> wrote:
>
> Call File
> =================== Call File ==========================
> channel: Local/3455 at internal
> maxretries: 3
> retrytime: 60
> waittime: 60
> callerid: "Test" <*66>
> application: AGI
> data: test.agi|670507
> ================= End Call File ========================
Instead of calling the application directly from the call file, make a
special extension for it, and call that extension instead:
[foo]
exten => _X.,1,Answer(0.5)
exten => _X.,2,AGI(test.agi|${EXTEN})
And then have the call file like this:
Channel: Local/3455 at internal
Maxretries: 3
Retrytime: 60
Waittime: 60
CallerId: "Test" <*66>
Context: foo
Extension: 670507
Priority: 1
The Answer line may or may not be necessary, but if you find it is, that
would explain why calling the AGI directly didn't work. In that case,
perhaps you could put the Answer within the AGI.
Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
More information about the asterisk-users
mailing list