George Joseph
d2eb65f71e
res_pjsip: Strip spaces from items parsed from comma-separated lists
Configurations like "aors = a, b, c" were either ignoring everything after "a"
or trying to look up " b". Same for mailboxes, ciphers, contacts and a few
others.
To fix, all the strsep(©, ",") calls have been wrapped in ast_strip. To
facilitate this, ast_strip, ast_skip_blanks and ast_skip_nonblanks were
updated to handle null pointers.
In some cases, an ast_strlen_zero() test was added to skip consecutive commas.
There was also an attempt to ast_free an ast_strdupa'd string in
ast_sip_for_each_aor which was causing a SEGV. I removed it.
Although this issue was reported for realtime, the issue was in the res_pjsip
modules so all config mechanisms were affected.
ASTERISK-25829 #close
Reported-by: Mateusz Kowalski
Change-Id: I0b22a2cf22a7c1c50d4ecacbfa540155bec0e7a2
2016-03-07 13:16:41 -06:00
..
2015-05-04 20:47:01 -04:00
2015-04-13 03:48:57 -04:00
2015-07-04 07:47:06 -05:00
2016-03-07 13:16:41 -06:00
2016-01-21 15:22:53 -06:00
2015-11-09 16:58:52 +01:00
2015-05-13 16:34:23 -05:00
2015-11-09 16:58:52 +01:00
2016-02-01 19:22:40 -06:00
2015-03-06 20:24:58 +00:00
2015-12-01 13:54:04 -06:00
2015-11-09 16:58:52 +01:00
2016-02-05 11:58:54 -06:00
2016-02-01 19:22:40 -06:00
2015-11-09 16:58:52 +01:00
2015-11-09 16:58:52 +01:00
2015-11-09 16:58:52 +01:00
2008-05-28 20:00:21 +00:00
2015-11-22 22:37:29 -06:00
2015-04-13 03:48:57 -04:00
2016-03-01 20:21:58 -06:00
2015-12-01 13:54:04 -06:00
2015-11-09 16:58:52 +01:00
2015-11-09 16:58:52 +01:00
2015-04-13 03:48:57 -04:00
2012-06-15 16:20:16 +00:00
2015-04-13 03:48:57 -04:00
2008-06-30 15:45:15 +00:00
2015-07-04 07:47:06 -05:00
2016-02-05 11:58:54 -06:00
2016-02-01 19:22:40 -06:00
2015-03-06 20:24:58 +00:00
2015-10-24 16:08:54 -05:00
2015-07-17 11:02:24 -05:00
2015-03-13 01:12:35 +00:00
2014-06-16 18:27:51 +00:00
2014-12-17 10:23:32 +00:00
2015-04-13 03:48:57 -04:00