From f551978e9ec6e22154942b39f51d2ed4e0f2538c Mon Sep 17 00:00:00 2001 From: Matthew Jordan <mjordan@digium.com> Date: Wed, 16 Jan 2013 04:13:33 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@379179 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- addons/chan_mobile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c index be002212d8..c3224ad49a 100644 --- a/addons/chan_mobile.c +++ b/addons/chan_mobile.c @@ -2229,6 +2229,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]; -- GitLab