Dear friends, I am having problem with running a sample php and I can't figure out why. I can run the sample.php using CLI but when I run it inside the dialplan it does not work. Can someone please suggest the config problem that I may have made?
dommy:/var/lib/asterisk/agi-bin# php sample.php #!/usr/bin/php5 -q VERBOSE "Here we go!" 2 VERBOSE "Call from - Calling phone" SAY DIGITS 22 X SAY NUMBER 2233 X ================== Asterisk CLI ====================== *CLI> agi debug AGI Debugging Enabled *CLI> -- Executing [EMAIL PROTECTED]:1] Answer("SIP/2000-b640ba18", "") in new stack -- Executing [EMAIL PROTECTED]:2] AGI("SIP/2000-b640ba18", "sample.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/sample.agi AGI Tx >> agi_request: sample.agi AGI Tx >> agi_channel: SIP/2000-b640ba18 AGI Tx >> agi_language: en AGI Tx >> agi_type: SIP AGI Tx >> agi_uniqueid: 1206377474.53 AGI Tx >> agi_callerid: 2000 AGI Tx >> agi_calleridname: 2000 AGI Tx >> agi_callingpres: 0 AGI Tx >> agi_callingani2: 0 AGI Tx >> agi_callington: 0 AGI Tx >> agi_callingtns: 0 AGI Tx >> agi_dnid: 444 AGI Tx >> agi_rdnis: unknown AGI Tx >> agi_context: my-phones AGI Tx >> agi_extension: 444 AGI Tx >> agi_priority: 2 AGI Tx >> agi_enhanced: 0.0 AGI Tx >> agi_accountcode: AGI Tx >> AGI Rx << verbose "Failed to execute '/var/lib/asterisk/agi-bin/sample.agi': Exec format error" 2 == sample.agi: Failed to execute '/var/lib/asterisk/agi-bin/sample.agi': Exec format error AGI Tx >> 200 result=1 -- AGI Script sample.agi completed, returning 0 Thanks, Mark
_______________________________________________ -- 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