Saturday, September 15, 2007

Re: [asterisk-users] AGI script fails on IAX channels (from call file).

In article <46EAF68B.6070505@comcast.net>,
Jonas Arndt <jonas_arndt@comcast.net> wrote:
>
> Call File
> =================== Call File ==========================
> channel: Local/3455@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@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@softins.co.uk - http://www.softins.co.uk
Play: tony@mountifield.org - http://tony.mountifield.org

_______________________________________________

Sign up now for AstriCon 2007! September 25-28th.

http://www.astricon.net/


--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: