Alexei Gradinari
d7eaf44501
res_fax: validate the remote/local Station ID for UTF-8 format
If the remote Station ID contains invalid UTF-8 characters
the asterisk fails to publish the Stasis and ReceiveFax status messages.
json.c: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
0: /usr/sbin/asterisk(ast_json_vpack+0x98) [0x4f3f28]
1: /usr/sbin/asterisk(ast_json_pack+0x8c) [0x4f3fcc]
2: /usr/sbin/asterisk(ast_channel_publish_varset+0x2b) [0x57aa0b]
3: /usr/sbin/asterisk(pbx_builtin_setvar_helper+0x121) [0x530641]
4: /usr/lib64/asterisk/modules/res_fax.so(+0x44fe) [0x7f27f4bff4fe]
...
stasis_channels.c: Error creating message
json.c: Error building JSON from '{s: s, s: s, s: s, s: s, s: s, s: s, s: o}': Invalid UTF-8 string.
0: /usr/sbin/asterisk(ast_json_vpack+0x98) [0x4f3f28]
1: /usr/sbin/asterisk(ast_json_pack+0x8c) [0x4f3fcc]
2: /usr/lib64/asterisk/modules/res_fax.so(+0x5acd) [0x7f27f4c00acd]
...
res_fax.c: Error publishing ReceiveFax status message
This patch replaces the invalid UTF-8 Station IDs with an empty string.
ASTERISK-29312 #close
Change-Id: Ieb00b6ecf67db3bfca787649caa8517f29d987db
2021-03-02 11:17:14 -06:00
..
2019-04-16 08:11:40 -05:00
2020-10-08 04:55:53 -05:00
2020-10-02 10:10:58 -05:00
2021-01-18 10:37:13 -06:00
2020-11-09 08:35:51 -06:00
2017-12-22 09:23:22 -05:00
2017-10-18 03:34:56 -05:00
2021-01-13 09:35:47 -06:00
2018-03-01 13:13:55 -06:00
2020-10-06 09:07:51 -05:00
2018-07-18 18:15:53 +00:00
2017-12-22 09:23:22 -05:00
2020-01-03 10:28:48 -06:00
2019-02-20 09:56:03 -06:00
2019-02-05 07:46:48 -06:00
2018-01-29 12:39:34 -06:00
2020-05-18 10:50:43 -05:00
2018-01-29 12:39:34 -06:00
2018-01-24 13:37:29 -05:00
2019-10-24 05:26:27 -05:00
2018-01-29 12:39:34 -06:00
2017-04-12 15:57:21 -06:00
2018-01-29 12:39:34 -06:00
2018-01-29 12:39:34 -06:00
2018-01-24 13:37:29 -05:00
2019-08-20 13:19:02 -05:00
2018-02-16 13:52:37 +01:00
2019-10-24 09:18:19 -05:00
2019-10-24 09:18:19 -05:00
2019-10-24 09:18:19 -05:00
2018-11-21 09:56:12 -05:00
2018-01-15 13:25:51 -05:00
2018-11-21 09:56:12 -05:00
2017-02-10 18:04:41 -05:00
2020-04-20 10:06:08 -05:00
2018-10-18 12:44:03 -05:00
2020-04-08 08:32:44 -05:00
2021-02-25 07:53:49 -06:00
2019-07-24 04:51:20 -06:00
2018-03-14 05:20:12 -04:00
2017-12-22 09:23:22 -05:00
2020-06-22 13:05:35 -05:00
2018-06-08 11:03:35 +02:00
2018-01-24 13:37:29 -05:00
2018-01-15 13:25:51 -05:00
2018-01-15 13:25:51 -05:00
2021-03-02 11:17:14 -06:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2017-11-20 13:17:55 -06:00
2018-12-13 17:03:54 -05:00
2016-07-22 10:09:08 +02:00
2017-12-20 12:40:01 -05:00
2017-12-22 09:23:22 -05:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2016-10-27 09:53:55 -04:00
2020-11-20 13:51:19 -06:00
2018-11-18 15:08:07 -05:00
2018-05-21 11:03:10 -05:00
2020-12-03 10:28:13 -06:00
2018-06-21 10:18:36 -06:00
2020-07-23 07:30:38 -05:00
2017-12-22 09:23:22 -05:00
2018-03-08 13:53:09 -06:00
2021-01-25 10:49:46 -06:00
2016-10-27 09:53:55 -04:00
2019-04-23 17:39:57 -05:00
2018-01-24 13:37:29 -05:00
2019-04-23 17:39:57 -05:00
2021-02-23 14:52:56 -06:00
2020-11-20 13:51:19 -06:00
2020-10-02 10:10:58 -05:00
2019-11-18 08:30:05 -06:00
2020-11-20 13:51:19 -06:00
2018-09-06 14:29:44 -04:00
2020-02-19 19:32:16 +00:00
2018-01-24 13:37:29 -05:00
2020-04-20 11:03:05 -05:00
2020-10-02 10:10:58 -05:00
2020-01-08 15:19:19 +00:00
2021-02-18 10:35:05 -06:00
2020-11-19 13:38:24 -06:00
2020-04-20 11:03:05 -05:00
2020-04-20 11:03:05 -05:00
2018-02-02 18:03:06 -06:00
2020-01-10 15:15:46 -06:00
2018-02-02 18:03:06 -06:00
2018-11-21 09:56:12 -05:00
2018-04-12 17:34:16 -05:00
2020-05-11 16:49:03 -05:00
2020-06-04 05:52:34 -03:00
2020-06-17 09:33:35 -05:00
2018-01-24 13:37:29 -05:00
2019-10-10 15:30:05 -05:00
2020-12-17 09:10:41 -06:00
2020-01-10 14:49:41 -06:00
2020-04-20 11:03:05 -05:00
2018-09-14 14:59:19 -05:00
2018-11-21 09:56:12 -05:00
2021-02-18 10:35:05 -06:00
2021-02-18 10:35:05 -06:00
2018-01-24 13:37:29 -05:00
2018-01-24 13:37:29 -05:00
2020-12-16 09:21:52 -06:00
2018-01-24 13:37:29 -05:00
2019-04-23 17:39:57 -05:00
2021-01-18 09:58:45 -06:00
2021-02-26 08:12:37 -06:00
2020-07-28 09:46:04 -05:00
2020-04-20 11:03:05 -05:00
2020-10-12 10:50:10 -05:00
2018-01-24 13:37:29 -05:00
2021-02-25 08:50:44 -06:00
2017-10-04 12:00:47 -04:00
2018-01-24 13:37:29 -05:00
2020-12-01 11:24:27 -06:00
2021-02-18 10:38:09 -06:00
2020-12-17 09:10:41 -06:00
2018-01-24 13:37:29 -05:00
2021-01-27 11:03:31 -06:00
2017-10-04 12:00:47 -04:00
2018-01-24 13:37:29 -05:00
2020-01-14 10:07:06 -06:00
2019-04-18 11:04:00 -03:00
2019-11-18 08:30:05 -06:00
2021-02-26 08:05:56 -06:00
2017-12-22 09:23:22 -05:00
2018-11-18 15:08:07 -05:00
2019-04-23 17:39:57 -05:00
2017-12-22 09:23:22 -05:00
2017-12-10 12:51:16 -06:00
2020-05-20 10:49:49 -05:00
2020-06-18 18:02:11 -05:00
2018-11-21 09:56:12 -05:00
2018-08-17 16:33:13 -05:00
2020-08-27 13:50:54 -05:00
2021-02-18 10:36:25 -06:00
2018-01-15 13:25:51 -05:00
2018-11-21 09:56:12 -05:00
2018-01-24 13:37:29 -05:00
2020-12-17 09:54:59 -06:00
2019-03-25 14:09:18 -06:00
2020-12-17 12:07:52 -06:00
2018-09-12 19:33:08 +02:00
2020-09-23 09:55:50 -05:00
2020-01-20 11:58:51 -06:00
2020-11-09 08:35:51 -06:00
2020-10-06 09:07:51 -05:00
2017-04-14 16:55:03 -05:00
2017-12-22 09:23:22 -05:00
2018-12-11 12:28:35 -05:00
2019-04-23 17:39:57 -05:00
2018-08-27 13:45:08 -05:00