Hello, I need to execute an agi in php. I have that: == Using SIP RTP CoS mark 5 -- Executing [0170725000 at mnupprx1:1] Answer("SIP/33179977999-b6c18478", "") in new stack -- Executing [0170725000 at mnupprx1:2] GotoIf("SIP/33179977999-b6c18478", "0?6:3)") in new stack -- Goto (mnupprx1,0170725000,3) -- Executing [0170725000 at mnupprx1:3] DeadAGI("SIP/33179977999-b6c18478", "a2billing.php") in new stack [Mar 9 14:25:08] WARNING[7518]: res_agi.c:3064 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases! -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php -- <SIP/33179977999-b6c18478>AGI Script a2billing.php completed, returning 0 -- Executing [0170725000 at mnupprx1:4] Wait("SIP/33179977999-b6c18478", "2") in new stack -- Executing [0170725000 at mnupprx1:5] Hangup("SIP/33179977999-b6c18478", "") in new stack == Spawn extension (mnupprx1, 0170725000, 5) exited non-zero on 'SIP/33179977999-b6c18478' I dont know why it dont exec it ! Cordialement, BERGANZ Fran?ois P Pensez ? l'Environnement, n'imprimez ce mail que si n?cessaire. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/abb5c51e/attachment.htm
The message ?indicates? that DEADAGI will not work and that you should use AGI instead. Are you sure PHP is installed on your machine and functioning properly (from $, php a2billing.php works)? _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of BERGANZ Fran?ois Sent: Monday, March 09, 2009 8:30 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] problem with an agi in PHP Hello, I need to execute an agi in php. I have that: == Using SIP RTP CoS mark 5 -- Executing [0170725000 at mnupprx1:1] Answer("SIP/33179977999-b6c18478", "") in new stack -- Executing [0170725000 at mnupprx1:2] GotoIf("SIP/33179977999-b6c18478", "0?6:3)") in new stack -- Goto (mnupprx1,0170725000,3) -- Executing [0170725000 at mnupprx1:3] DeadAGI("SIP/33179977999-b6c18478", "a2billing.php") in new stack [Mar 9 14:25:08] WARNING[7518]: res_agi.c:3064 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases! -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php -- <SIP/33179977999-b6c18478>AGI Script a2billing.php completed, returning 0 -- Executing [0170725000 at mnupprx1:4] Wait("SIP/33179977999-b6c18478", "2") in new stack -- Executing [0170725000 at mnupprx1:5] Hangup("SIP/33179977999-b6c18478", "") in new stack == Spawn extension (mnupprx1, 0170725000, 5) exited non-zero on 'SIP/33179977999-b6c18478' I dont know why it dont exec it ! Cordialement, BERGANZ Fran?ois P Pensez ? l'Environnement, n'imprimez ce mail que si n?cessaire. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/33220801/attachment.htm
On Mon, 9 Mar 2009, Danny Nicholas wrote:> The message ?indicates? that DEADAGI will not work and that you should use > AGI instead.From Wikipedia, deprecated means: "In computer software standards and documentation, the term deprecation is applied to software features that are superseded and should be avoided. Although deprecated features remain in the current version, their use may raise warning messages recommending alternate practices, and deprecation may indicate that the feature will be removed in the future. Features are deprecated.rather than being removed.in order to provide backward compatibility and give programmers using the feature time to bring their code into compliance with the new standard." Not "will not work." Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Thanks for proving what I said. In *, deprecated means you will be dead when you go to the next release. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve Edwards Sent: Monday, March 09, 2009 11:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] problem with an agi in PHP On Mon, 9 Mar 2009, Danny Nicholas wrote:> The message indicates that DEADAGI will not work and that you should use > AGI instead.