[asterisk-commits] russell: branch group/upenn r104006 - /team/group/upenn/res/res_smdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Feb 20 17:03:02 CST 2008
Author: russell
Date: Wed Feb 20 17:03:01 2008
New Revision: 104006
URL: http://svn.digium.com/view/asterisk?view=rev&rev=104006
Log:
Account for spaces that may be read at the beginning of the calling station loop
Modified:
team/group/upenn/res/res_smdi.c
Modified: team/group/upenn/res/res_smdi.c
URL: http://svn.digium.com/view/asterisk/team/group/upenn/res/res_smdi.c?view=diff&rev=104006&r1=104005&r2=104006
==============================================================================
--- team/group/upenn/res/res_smdi.c (original)
+++ team/group/upenn/res/res_smdi.c Wed Feb 20 17:03:01 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 asterisk-commits
mailing list