[asterisk-bugs] [Asterisk 0012462]: [patch] Value of AGISTATUS is set to SUCCESS even though the agi program could not be executed
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Apr 17 05:11:31 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12462
======================================================================
Reported By: fmueller
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12462
Category: Resources/res_agi
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 114184
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 04-16-2008 17:04 CDT
Last Modified: 04-17-2008 05:11 CDT
======================================================================
Summary: [patch] Value of AGISTATUS is set to SUCCESS even
though the agi program could not be executed
Description:
This is the context:
[default]
exten => 69,1,Answer()
exten => 69,2,AGI(this-does-not-exist)
exten => 69,3,Noop(${AGISTATUS})
exten => 69,4,Hangup()
The called AGI-program does not exist so I expect AGISTATUS to be set to
FAILURE. But it is set to SUCCESS.
*CLI> -- Executing [69 at default:1] Answer("SIP/111-081fb288", "") in
new stack
-- Executing [69 at default:2] AGI("SIP/111-081fb288",
"this-does-not-exist") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/this-does-not-exist
AGI Tx >> agi_request: this-does-not-exist
AGI Tx >> agi_channel: SIP/111-081fb288
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1208383260.0
AGI Tx >> agi_callerid: 111
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 69
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: default
AGI Tx >> agi_extension: 69
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/this-does-not-exist': No such file or directory"
2
== this-does-not-exist: Failed to execute
'/var/lib/asterisk/agi-bin/this-does-not-exist': No such file or directory
AGI Tx >> 200 result=1
-- AGI Script this-does-not-exist completed, returning 0
-- Executing [69 at default:3] NoOp("SIP/111-081fb288", "SUCCESS") in new
stack
-- Executing [69 at default:4] Hangup("SIP/111-081fb288", "") in new
stack
== Spawn extension (default, 69, 4) exited non-zero on
'SIP/111-081fb288'
*CLI>
Thanks for your feedback.
======================================================================
----------------------------------------------------------------------
fmueller - 04-17-08 05:11
----------------------------------------------------------------------
The provided patch fixes that problem. Thanks.
Issue History
Date Modified Username Field Change
======================================================================
04-17-08 05:11 fmueller Note Added: 0085601
======================================================================
More information about the asterisk-bugs
mailing list