From: Automerge script Date: Wed, 16 Jan 2013 04:20:29 +0000 (+0000) Subject: Merged revisions 379180 via svnmerge from X-Git-Tag: 13.0.0-beta1~2194^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4986651fb00ae936e61424e279464cf8669af0b4;p=thirdparty%2Fasterisk.git Merged revisions 379180 via svnmerge from file:///srv/subversion/repos/asterisk/trunk ................ r379180 | mjordan | 2013-01-15 22:14:38 -0600 (Tue, 15 Jan 2013) | 27 lines Fix parsing SMSSRC for SMS messages The parser for SMS messages would incorrectly parse out the from number. The parsing would incorrectly start scanning for the from number at the same index as the first double quote ("); this would inadvertently cause it to treat the first double quote as the terminating double quote for the from number as well. The SMSSRC should now populate correctly. (closes issue ASTERISK-16822) Reported by: menschentier Tested by: Jonas Falck patches: fixSMSSRC.patch uploaded by jonax (license 6320) (closes issue ASTERISK-19153) Reported by: Panos Gkikakis patches: sms-sender-fix.diff uploaded by roeften (license 5884) ........ Merged revisions 379178 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 379179 from http://svn.asterisk.org/svn/asterisk/branches/11 ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379189 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index 96c5258569..7a60a4cb61 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -2301,6 +2301,7 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch if (buf[i] == '"') { state++; } + break; case 2: /* mark the start of the number */ if (from_number) { *from_number = &buf[i];