[svn-commits] mnicholson: trunk r947 - /trunk/channels/chan_mobile.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 5 16:38:54 CDT 2009


Author: mnicholson
Date: Fri Jun  5 16:38:50 2009
New Revision: 947

URL: http://svn.asterisk.org/svn-view/asterisk-addons?view=rev&rev=947
Log:
Properly set the needring flag to stop ringing on headsets.

(closes issue #15258)
Reported by: ablackthorn
Patches:
      ring-fix3.diff uploaded by mnicholson (license 96)
Tested by: ablackthorn

Modified:
    trunk/channels/chan_mobile.c

Modified: trunk/channels/chan_mobile.c
URL: http://svn.asterisk.org/svn-view/asterisk-addons/trunk/channels/chan_mobile.c?view=diff&rev=947&r1=946&r2=947
==============================================================================
--- trunk/channels/chan_mobile.c (original)
+++ trunk/channels/chan_mobile.c Fri Jun  5 16:38:50 2009
@@ -959,6 +959,7 @@
 
 	pvt->outgoing = 0;
 	pvt->incoming = 0;
+	pvt->needring = 0;
 	pvt->owner = NULL;
 	ast->tech_pvt = NULL;
 
@@ -3615,7 +3616,7 @@
 		case AT_CKPD:
 			ast_mutex_lock(&pvt->lock);
 			if (pvt->outgoing) {
-				pvt->needring = 1;
+				pvt->needring = 0;
 				hsp_send_ok(pvt->rfcomm_socket);
 				if (pvt->answered) {
 					/* we have an answered call up to the




More information about the svn-commits mailing list