Hello,

On http://www.voip-info.org/tiki-index.php?page=Asterisk%20perl%20agi, it's said that stream_file() might returns "-1 on error or hangup, 0 if playback completes without a digit being pressed, or the ASCII numerical value of the digit if a digit was pressed".

But actually when I hangup my phone stream_file returns 0 and the AGI is stopped even if I have a callback function, set with setcallback(), to catch the hangup signal and exit properly the AGI. In the Asterisk logs, instead of having "AGI Script myagi.agi completed, returning 0", I have "Spawn extension (default, 777, 2) exited non-zero on 'IAX2/70000-5'" ...

(777 is the extension to launch myagi.agi, and 70000 is my phone's username/number).

Is that a bug?

--
Benoit Merouze
Ingenieur Developpement d'Application Reseau
[EMAIL PROTECTED]

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to