[asterisk-commits] wedhorn: trunk r405369 - in /trunk: ./ channels/chan_skinny.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 13 21:27:52 CST 2014


Author: wedhorn
Date: Mon Jan 13 21:27:47 2014
New Revision: 405369

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405369
Log:
Skinny: do not add call to missed calls list if answered elsewhere.

Patch updates skinny devices with a SKINNY_CONNECTED callstate if an
inbound ringing or callwaiting call is answered elsewhere.
........

Merged revisions 405367 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/channels/chan_skinny.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_skinny.c?view=diff&rev=405369&r1=405368&r2=405369
==============================================================================
--- trunk/channels/chan_skinny.c (original)
+++ trunk/channels/chan_skinny.c Mon Jan 13 21:27:47 2014
@@ -68,6 +68,7 @@
 #include "asterisk/manager.h"
 #include "asterisk/say.h"
 #include "asterisk/astdb.h"
+#include "asterisk/causes.h"
 #include "asterisk/pickup.h"
 #include "asterisk/app.h"
 #include "asterisk/musiconhold.h"
@@ -5772,6 +5773,10 @@
 			sub->related->related = NULL;
 		}
 
+		if ((sub->substate == SUBSTATE_RINGIN || sub->substate == SUBSTATE_CALLWAIT) && ast_channel_hangupcause(sub->owner) == AST_CAUSE_ANSWERED_ELSEWHERE) {
+			transmit_callstate(d, l->instance, sub->callid, SKINNY_CONNECTED);
+		}
+
 		if (sub == l->activesub) {
 			l->activesub = NULL;
 			transmit_closereceivechannel(d, sub);




More information about the asterisk-commits mailing list