asterisk gateway interface...
here is my prb
How can i use php(.php) and perl(.pl) files in asterisk Asynchronous agi..
ex : below is the dial plan for reference
[outgoing]
exten => _X.,1,AGI(print.php)
exten => _X.,2,Playback(prompt6)
exten => _X.,3,Hangup
output i m getting in asterisk like below
== Using SIP RTP CoS mark 5
-- Executing [11@outgoing:1] AGI("SIP/con-b43170a0", "print.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/print.php
== print.php: Failed to execute '/var/lib/asterisk/agi-bin/print.php': Exec format error
[Feb 22 12:43:08] WARNING[24368]: res_agi.c:2788 run_agi: unable to send SIGHUP to AGI process 24369: No such process
-- Executing [11@outgoing:2] Playback("SIP/con-b43170a0", "prompt6") in new stack
-- <SIP/con-b43170a0> Playing 'prompt6.slin' (language 'en')
Please advise what is my nxt step to get my output has i want.
Thanks&Regards,
Chiranjeevi.