Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Getting Exec Format Error when running AGI


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
markmorreny at gmail.com
Guest





PostPosted: Mon Mar 24, 2008 4:02 am    Post subject: [asterisk-users] Getting Exec Format Error when running AGI Reply with quote

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 [444 at my-phones:1] Answer("SIP/2000-b640ba18", "") in
new stack
-- Executing [444 at my-phones: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080324/296baa61/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services