George Joseph
530cff5f5f
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 12:15:58 -07:00
..
2015-04-08 18:14:00 +00:00
2014-12-17 09:54:00 +00:00
2015-07-04 07:29:53 -05:00
2016-03-07 12:15:58 -07:00
2015-12-01 13:53:18 -06:00
2015-11-09 17:02:52 +01:00
2014-07-25 16:47:17 +00:00
2015-11-09 17:02:52 +01:00
2016-02-01 18:20:05 -07:00
2015-03-06 20:18:08 +00:00
2015-12-01 13:53:18 -06:00
2015-11-09 17:02:52 +01:00
2016-02-05 11:58:26 -06:00
2016-02-01 18:20:05 -07:00
2014-07-25 16:47:17 +00:00
2015-11-09 17:02:52 +01:00
2015-11-09 17:02:52 +01:00
2015-11-09 17:02:52 +01:00
2008-05-28 20:00:21 +00:00
2015-11-22 22:35:08 -06:00
2016-03-01 20:13:39 -06:00
2015-12-01 13:53:18 -06:00
2015-11-09 17:02:52 +01:00
2015-11-09 17:02:52 +01:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2008-06-30 15:45:15 +00:00
2015-07-04 07:29:53 -05:00
2016-02-05 11:58:26 -06:00
2016-02-01 18:20:05 -07:00
2015-03-06 20:18:08 +00:00
2015-10-24 12:50:40 -06:00
2015-07-17 11:01:37 -05:00
2014-06-16 18:27:51 +00:00
2014-06-16 18:27:51 +00:00
2014-12-17 09:54:00 +00:00
2012-06-15 16:20:16 +00:00