[asterisk-commits] wedhorn: branch 12 r405367 - /branches/12/channels/chan_skinny.c

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


Author: wedhorn
Date: Mon Jan 13 21:12:01 2014
New Revision: 405367

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=405367
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.

Modified:
    branches/12/channels/chan_skinny.c

Modified: branches/12/channels/chan_skinny.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/channels/chan_skinny.c?view=diff&rev=405367&r1=405366&r2=405367
==============================================================================
--- branches/12/channels/chan_skinny.c (original)
+++ branches/12/channels/chan_skinny.c Mon Jan 13 21:12:01 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