[svn-commits] russell: branch russell/smdi-1.4 r104005 - /team/russell/smdi-1.4/res/res_smdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Feb 20 17:00:43 CST 2008


Author: russell
Date: Wed Feb 20 17:00:43 2008
New Revision: 104005

URL: http://svn.digium.com/view/asterisk?view=rev&rev=104005
Log:
Account that a space could be read at the beginning of the calling station parsing loop

Modified:
    team/russell/smdi-1.4/res/res_smdi.c

Modified: team/russell/smdi-1.4/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/team/russell/smdi-1.4/res/res_smdi.c?view=diff&rev=104005&r1=104004&r2=104005
==============================================================================
--- team/russell/smdi-1.4/res/res_smdi.c (original)
+++ team/russell/smdi-1.4/res/res_smdi.c Wed Feb 20 17:00:43 2008
@@ -565,7 +565,11 @@
 				if (!isdigit((c = fgetc(iface->file)))) {
 					*cp = '\0';
 					ast_log(LOG_DEBUG, "Read a '%c', but didn't store it in the calling station buffer because it's not a digit\n", c);
-					break;
+					if (c != ' ') {
+						/* Don't break on a space.  We may read the space before the calling station
+						 * here if the forwarding station buffer filled up. */
+						break;
+					}
 				}
 
 				/* store c in md_msg->calling_st */




More information about the svn-commits mailing list