[asterisk-addons-commits] dcb: trunk r499 - /trunk/chan_mobile.c

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Sun Dec 23 03:21:46 CST 2007


Author: dcb
Date: Sun Dec 23 03:21:45 2007
New Revision: 499

URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=499
Log:
Fix issue 11568

Modified:
    trunk/chan_mobile.c

Modified: trunk/chan_mobile.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/chan_mobile.c?view=diff&rev=499&r1=498&r2=499
==============================================================================
--- trunk/chan_mobile.c (original)
+++ trunk/chan_mobile.c Sun Dec 23 03:21:45 2007
@@ -97,6 +97,7 @@
 	MBL_STATE_INIT4,
 	MBL_STATE_INIT5,
 	MBL_STATE_INIT6,
+	MBL_STATE_INIT7,
 	MBL_STATE_PREIDLE,
 	MBL_STATE_IDLE,
 	MBL_STATE_DIAL,
@@ -1393,11 +1394,17 @@
 				break;
 			case MBL_STATE_INIT4:
 				if (strstr(buf, "OK")) {
+					rfcomm_write(pvt, "AT+VGS=15\r");
+					pvt->state++;
+				}
+				break;
+			case MBL_STATE_INIT5:
+				if (strstr(buf, "OK")) {
 					rfcomm_write(pvt, "AT+CMGF=1\r");
 					pvt->state++;
 				}
 				break;
-			case MBL_STATE_INIT5:
+			case MBL_STATE_INIT6:
 				if (strstr(buf, "ERROR")) {	/* No SMS Support ! */
 					pvt->state = MBL_STATE_PREIDLE;
 				} else if (strstr(buf, "OK")) {
@@ -1405,7 +1412,7 @@
 					pvt->state++;
 				}
 				break;
-			case MBL_STATE_INIT6:
+			case MBL_STATE_INIT7:
 				if (strstr(buf, "OK")) {	/* We have SMS Support */
 					pvt->has_sms = 1;
 					pvt->state = MBL_STATE_PREIDLE;




More information about the asterisk-addons-commits mailing list