[asterisk-addons-commits] mnicholson: branch mnicholson/chan-mobile-refactor r767 - /team/mnicholson/ch...

SVN commits to the Asterisk addons project asterisk-addons-commits at lists.digium.com
Fri Jan 30 10:45:10 CST 2009


Author: mnicholson
Date: Fri Jan 30 10:45:10 2009
New Revision: 767

URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=767
Log:
Added AT_SMS_PROMPT

 * channels/chan_mobile.c (at_read_full): handle the "> " sms prompt

Modified:
    team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c

Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=767&r1=766&r2=767
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Fri Jan 30 10:45:10 2009
@@ -392,6 +392,7 @@
 	AT_CKPD,
 	AT_VGM,
 	AT_VGS,
+	AT_SMS_PROMPT,
 } at_message_t;
 
 static int at_match_prefix(char *buf, char *prefix);
@@ -1434,6 +1435,8 @@
 		return AT_RING;
 	} else if (!strcmp("AT+CKPD=200", buf)) {
 		return AT_CKPD;
+	} else if (!strcmp("> ", buf)) {
+		return AT_SMS_PROMPT;
 	} else if (at_match_prefix(buf, "+CIEV:")) {
 		return AT_CIEV;
 	} else if (at_match_prefix(buf, "+BRSF:")) {




More information about the asterisk-addons-commits mailing list