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

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Apr 9 11:57:17 CDT 2009


Author: mnicholson
Date: Thu Apr  9 11:57:14 2009
New Revision: 863

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=863
Log:
more tweaks to ensure chup is sent at the proper time

Modified:
    trunk/channels/chan_mobile.c

Modified: trunk/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/trunk/channels/chan_mobile.c?view=diff&rev=863&r1=862&r2=863
==============================================================================
--- trunk/channels/chan_mobile.c (original)
+++ trunk/channels/chan_mobile.c Thu Apr  9 11:57:14 2009
@@ -915,6 +915,7 @@
 			ast_log(LOG_ERROR, "error sending ATD command on %s\n", pvt->id);
 			return -1;
 		}
+		pvt->needchup = 1;
 		msg_queue_push(pvt, AT_OK, AT_D);
 	} else {
 		if (hsp_send_ring(pvt->rfcomm_socket)) {
@@ -3086,6 +3087,7 @@
 			break;
 		case AT_D:
 			ast_debug(1, "[%s] dial failed\n", pvt->id);
+			pvt->needchup = 0;
 			mbl_queue_control(pvt, AST_CONTROL_CONGESTION);
 			break;
 		case AT_CHUP:




More information about the svn-commits mailing list