[Home]

Summary:ASTERISK-09015: AGI does not report when script cannot be found/executed
Reporter:Srdjan Jankovic (srdjan)Labels:
Date Opened:2007-03-15 03:50:28Date Closed:2007-07-06 19:18:18
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_agi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:AGI functions return 0 without giving any error/warning when script cannot be found/executed
Comments:By: Serge Vecher (serge-v) 2007-03-15 08:34:36

can you show the output of the error on the console.

By: Srdjan Jankovic (srdjan) 2007-03-16 06:07:32

-- Accepting AUTHENTICATED call from 192.168.1.20:
      > requested format = gsm,
      > requested prefs = (),
      > actual format = ulaw,
      > host prefs = (ulaw|alaw|gsm),
      > priority = mine
   -- Executing Macro("IAX2/703-2", "exten-vm|novm|701") in new stack
   -- Executing Macro("IAX2/703-2", "user-callerid") in new stack
   -- Executing NoOp("IAX2/703-2", "user-callerid: device 703") in new stack
   -- Executing GotoIf("IAX2/703-2", "0?report") in new stack
   -- Executing GotoIf("IAX2/703-2", "1?start") in new stack
   -- Goto (macro-user-callerid,s,5)
   -- Executing NoOp("IAX2/703-2", "REALCALLERIDNUM is 703") in new stack
   -- Executing Set("IAX2/703-2", "AMPUSER=703") in new stack
   -- Executing Set("IAX2/703-2", "AMPUSERCIDNAME=Srdjan IAX") in new stack
   -- Executing GotoIf("IAX2/703-2", "0?report") in new stack
   -- Executing Set("IAX2/703-2", "CALLERID(all)=Srdjan IAX <703>") in new stack
   -- Executing Set("IAX2/703-2", "REALCALLERIDNUM=703") in new stack
   -- Executing NoOp("IAX2/703-2", "TTL:  ARG1: novm") in new stack
   -- Executing GotoIf("IAX2/703-2", "0?continue") in new stack
   -- Executing Set("IAX2/703-2", "_TTL=64") in new stack
   -- Executing GotoIf("IAX2/703-2", "1?continue") in new stack
   -- Goto (macro-user-callerid,s,21)
   -- Executing NoOp("IAX2/703-2", "Using CallerID "Srdjan IAX" <703>") in new stack
   -- Executing Set("IAX2/703-2", "FROMCONTEXT=exten-vm") in new stack
   -- Executing Set("IAX2/703-2", "VMBOX=novm") in new stack
   -- Executing Set("IAX2/703-2", "EXTTOCALL=701") in new stack
   -- Executing Set("IAX2/703-2", "CFUEXT=") in new stack
   -- Executing Set("IAX2/703-2", "CFBEXT=") in new stack
   -- Executing Set("IAX2/703-2", "RT=") in new stack
   -- Executing Macro("IAX2/703-2", "record-enable|701|IN") in new stack
   -- Executing GotoIf("IAX2/703-2", "0?2:4") in new stack
   -- Goto (macro-record-enable,s,4)
   -- Executing DeadAGI("IAX2/703-2", "recordingcheck|20070317-000232|1174042952.0") in new stack
   -- Launched AGI Script /usr/share/asterisk/agi-bin/recordingcheck
   -- AGI Script recordingcheck completed, returning 0
   -- Executing NoOp("IAX2/703-2", "No recording needed") in new stack
   -- Executing Macro("IAX2/703-2", "dial||tr|701") in new stack
   -- Executing DeadAGI("IAX2/703-2", "dialparties.agi") in new stack
->  -- Launched AGI Script /usr/share/asterisk/agi-bin/dialparties.agi
->  -- AGI Script dialparties.agi completed, returning 0
   -- Executing NoOp("IAX2/703-2", "Returned from dialparties with no extensions to call") in new stack
   -- Executing NoOp("IAX2/703-2", "DIALSTATUS is ") in new stack
   -- Executing GosubIf("IAX2/703-2", "0?docfu|1") in new stack
   -- Executing GosubIf("IAX2/703-2", "0?docfb|1") in new stack
   -- Executing NoOp("IAX2/703-2", "Voicemail is novm") in new stack
   -- Executing GotoIf("IAX2/703-2", "1?s-|1") in new stack
   -- Goto (macro-exten-vm,s-,1)
   -- Executing PlayTones("IAX2/703-2", "congestion") in new stack
   -- Executing Congestion("IAX2/703-2", "10") in new stack
 == Spawn extension (macro-exten-vm, s-, 2) exited non-zero on 'IAX2/703-2' in macro 'exten-vm'
 == Spawn extension (macro-exten-vm, s-, 2) exited non-zero on 'IAX2/703-2'
   -- Hungup 'IAX2/703-2'                                

Marked lines are for the call of a non-existing script. Same thing happens if it does exist with no execute permissions.

By: Serge Vecher (serge-v) 2007-03-16 08:30:55

can't you use the AGISTATUS dialplan variable?

By: Srdjan Jankovic (srdjan) 2007-03-16 17:44:01

Changed debug:
   -- Executing NoOp("IAX2/703-5", "DIALSTATUS is | AGISTATUS is ") in new stack
So it seems it's an empty string.

By: Jason Parker (jparker) 2007-04-09 16:26:55

1.2 doesn't have the AGISTATUS variable.

By: Clod Patry (junky) 2007-04-09 19:26:31

Adding FILENOTFOUND as a result seems okay? (for trunk, only)

By: Joshua C. Colp (jcolp) 2007-06-21 10:57:21

Added to trunk as of revision 70731.