[asterisk-commits] mmichelson: trunk r98316 - in /trunk: ./ main/channel.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jan 11 13:12:06 CST 2008
Author: mmichelson
Date: Fri Jan 11 13:12:05 2008
New Revision: 98316
URL: http://svn.digium.com/view/asterisk?view=rev&rev=98316
Log:
Merged revisions 98315 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r98315 | mmichelson | 2008-01-11 13:10:57 -0600 (Fri, 11 Jan 2008) | 5 lines
Properly report the hangup cause as no answer when someone does not answer
(closes issue #10574, reported by boch, patched by moy)
........
Modified:
trunk/ (props changed)
trunk/main/channel.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=98316&r1=98315&r2=98316
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Fri Jan 11 13:12:05 2008
@@ -3028,6 +3028,7 @@
int cause = 0;
struct ast_channel *chan;
int res = 0;
+ int last_subclass = 0;
if (outstate)
*outstate = 0;
@@ -3111,6 +3112,7 @@
default:
ast_log(LOG_NOTICE, "Don't know what to do with control frame %d\n", f->subclass);
}
+ last_subclass = f->subclass;
}
ast_frfree(f);
}
@@ -3129,6 +3131,8 @@
*outstate = AST_CONTROL_ANSWER;
if (res <= 0) {
+ if ( AST_CONTROL_RINGING == last_subclass )
+ chan->hangupcause = AST_CAUSE_NO_ANSWER;
if (!chan->cdr && (chan->cdr = ast_cdr_alloc()))
ast_cdr_init(chan->cdr, chan);
if (chan->cdr) {
More information about the asterisk-commits
mailing list