[asterisk-bugs] [Asterisk 0016928]: [patch] The Dial c option returns answered elsewhere if the dial timeout occurs (only tested using SIP)

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 1 10:50:08 CDT 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16928 
====================================================================== 
Reported By:                DennisD
Assigned To:                mmichelson
====================================================================== 
Project:                    Asterisk
Issue ID:                   16928
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.6.2.3-rc2 
JIRA:                       SWP-998 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-02-28 13:32 CST
Last Modified:              2010-06-01 10:50 CDT
====================================================================== 
Summary:                    [patch] The Dial c option returns answered elsewhere
if the dial timeout occurs (only tested using SIP)
Description: 
[2010-02-28 14:04:53.293] DEBUG[10201] channel.c: Hanging up channel
'SIP/2003-0000002a'
[2010-02-28 14:04:53.293] DEBUG[10201] chan_sip.c: This call was answered
elsewhere[2010-02-28 14:04:53.293] DEBUG[10201] chan_sip.c: Hangup call
SIP/2003-0000002a, SIP callid 3f786f6a497f3cf57fe1e56e0db536ad at example.com
[2010-02-28 14:04:53.293] DEBUG[10201] chan_sip.c: Updating call counter
for outgoing call

This call was not answered anywhere.
====================================================================== 

---------------------------------------------------------------------- 
 (0122697) mmichelson (administrator) - 2010-06-01 10:50
 https://issues.asterisk.org/view.php?id=16928#c122697 
---------------------------------------------------------------------- 
I took a closer look at things, and I have concluded that the option is
actually working as it is supposed to be. From the documentation of the 'c'
option:

"If the Dial() application cancels this call, always set the flag to tell
the channel driver that the call is answered elsewhere"

The wording of the option makes it clear that with the 'c' option set, the
indication of the "answered elsewhere" status will be set for all canceled
calls. As far as I can tell, this option really is only useful if a single
Dial() calls multiple local channels, which each in turn dial endpoints.
The individual dials from within the Local channels would need the 'c'
option set in case one of the other simultaneous Dials is answered.

For your situation, the fix is simple. Just remove the 'c' option. If you
dial multiple endpoints and only 1 answers, then the "answered elsewhere"
indication will be properly sent to the endpoints that had CANCELs sent to
them. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-01 10:50 mmichelson     Note Added: 0122697                          
2010-06-01 10:50 mmichelson     Status                   ready for testing =>
resolved
2010-06-01 10:50 mmichelson     Resolution               open => no change
required
2010-06-01 10:50 mmichelson     Assigned To               => mmichelson      
======================================================================




More information about the asterisk-bugs mailing list