Hello
I am starting to learn AGI. I have setup an extension to play the
agi-test.agi perl script and the output I get is this on console:
On Polycom 300:
-- Executing Answer("SIP/200-72d2", "") in new stack
-- Executing AGI("SIP/200-72d2", "agi-test.agi") in new
stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
-- Playing 'digits/1' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/90' (language 'en')
-- Playing 'digits/2' (language 'en')
-- Playing 'digits/million' (language 'en')
-- Playing 'digits/8' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/30' (language 'en')
-- Playing 'digits/7' (language 'en')
-- Playing 'digits/thousand' (language 'en')
-- Playing 'digits/4' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/60' (language 'en')
-- Playing 'digits/5' (language 'en')
On other handsets:
-- Executing Answer("SIP/201-4415", "") in new stack
-- Executing AGI("SIP/201-4415", "agi-test.agi") in new
stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
-- Playing 'digits/1' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/90' (language 'en')
-- Playing 'digits/2' (language 'en')
-- Playing 'digits/million' (language 'en')
-- Playing 'digits/8' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/30' (language 'en')
-- Playing 'digits/7' (language 'en')
-- Playing 'digits/thousand' (language 'en')
-- Playing 'digits/4' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/60' (language 'en')
-- Playing 'digits/5' (language 'en')
-- AGI Script agi-test.agi completed, returning 0
-- Executing Hangup("SIP/201-4415", "") in new stack
== Spawn extension (default, 290, 3) exited non-zero on 'SIP/201-4415'
I don't get the other stuff - eg the send file, send text, etc. I have an
Asterisk console open (used asterisk -r) on a putty session on a PC
connected over network. There is no other asterisk console open.
Also when I dial on a a Snom 190 or a Sipura-841 I hear all the digits as
above correctly. But on a Polycom 300 I get to the digit 30 and it then
seems to stop playing the digits. But they of course appear on the console.
Why am I not getting the send file stuff etc on the console? The Polycom
bit I expect is some setting on the phone I need to troubleshoot. But not
getting all the expected output from the agi script seems strange.
Is there possibly some problem with my environment? My handset? I am
running on Asterisk 1.0.9-BRIstuffed-0.2.0-RC8j
Angus