Json UTF-8 Errors with ARI

Hello,

I am having a problem when passing special characters to my ARI application. Asterisk will pass these characters via SIP with no problem, and they can also be echoed out to a file via the dialplan.

When attempting to pass them to the ARI, however, we get the stasis and json.c errors below. There is no interruption to the dialplan, and the ari application receives the other args.

The system is CentOS 7.9 running Asterisk 16.23, and has been tested with --with-jansson-bundled as well as pulling the latest jansson (2.14) and building Astersik with that (because I was not sure if the bundled is also the latest jansson library).

These characters are received in the body of a SIP Message packet. In the example below, Asterisk dialplan receives MESSAGE(body) of %▒=▒ and later echoes to file as %<%<D8>=<DE> … but the ARI does not recieve the message body at all.

Any suggestions?

[Jan 24 20:42:57]     -- Executing [5554445739@MESSAGE-IN:5] Stasis("Message/ast_msg_queue", "my-ari,pjsip:5554445739@192.168.0.50,<sip:0015554448633@192.168.0.22>,%<%▒=▒,inbound") in new stack
[Jan 24 20:42:57] ERROR[26538][C-00000001]: res_stasis.c:1035 send_start_msg_snapshots: Error appending to StasisStart message
[Jan 24 20:42:57] ERROR[26538][C-00000001]: res_stasis.c:1380 stasis_app_exec: Error sending start message to 'my-ari'
[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/sbin/asterisk() [0x58bc4c]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/sbin/asterisk() [0x58bc4c]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x1216f) [0x7f905b3c016f]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26538][C-00000001]: json.c:607 ast_json_vpack: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{s: s?, s: s?, s: o, s: s?, s: s?}': Invalid UTF-8 string.
[Jan 24 20:42:57] ERROR[26626]:   Got 12 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_json_dialplan_cep_app+0x65) [0x4ff815]
# 2: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x6c) [0x58b3dc]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 4: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 5: /usr/sbin/asterisk() [0x58dc92]
# 6: /usr/sbin/asterisk() [0x57cfd7]
# 7: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 8: /usr/sbin/asterisk() [0x59d520]
# 9: /usr/sbin/asterisk() [0x5acb19]
#10: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#11: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26626]: json.c:607 ast_json_vpack: Error building JSON from '{ s: s, s: s, s: s,  s: o, s: o, s: s,  s: o, s: o, s: s }': NULL object.
[Jan 24 20:42:57] ERROR[26626]:   Got 11 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_snapshot_to_json+0x127) [0x58b497]
# 2: /usr/lib64/asterisk/modules/res_stasis.so(+0xeb15) [0x7f905b3bcb15]
# 3: /usr/lib64/asterisk/modules/res_stasis.so(+0x10f55) [0x7f905b3bef55]
# 4: /usr/sbin/asterisk() [0x58dc92]
# 5: /usr/sbin/asterisk() [0x57cfd7]
# 6: /usr/sbin/asterisk(ast_taskprocessor_execute+0x177) [0x59d477]
# 7: /usr/sbin/asterisk() [0x59d520]
# 8: /usr/sbin/asterisk() [0x5acb19]
# 9: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#10: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

[Jan 24 20:42:57] ERROR[26538][C-00000001]:   Got 15 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x94) [0x4ff6f4]
# 1: /usr/sbin/asterisk(ast_channel_publish_varset+0x2b) [0x58af0b]
# 2: /usr/sbin/asterisk(pbx_builtin_setvar_helper+0x123) [0x53e423]
# 3: /usr/sbin/asterisk(pbx_builtin_setvar+0xb7) [0x53e6b7]
# 4: /usr/sbin/asterisk(pbx_exec+0xb9) [0x534f99]
# 5: /usr/sbin/asterisk() [0x5287f1]
# 6: /usr/sbin/asterisk() [0x52a944]
# 7: /usr/sbin/asterisk(ast_pbx_run_args+0xbc) [0x52d65c]
# 8: /usr/sbin/asterisk() [0x511953]
# 9: /usr/sbin/asterisk() [0x510f72]
#10: /usr/sbin/asterisk(ast_taskprocessor_execute+0xd0) [0x59d3d0]
#11: /usr/sbin/asterisk() [0x59d520]
#12: /usr/sbin/asterisk() [0x5acb19]
#13: /lib64/libpthread.so.0(+0x7ea5) [0x7f90b1dfeea5]
#14: /lib64/libc.so.6(clone+0x6d) [0x7f90b0e9c9fd]

Just to add some clarifications:

a) the json.c error happens regardless of whether Stasis is called.
b) the system was not compiled with TEST_FRAMEWORK

Because of point a) maybe this is better categorized in Asterisk Support instead of Asterisk APIs (I will move it there).

Well, these characters seem to be handled differently by pbx.c and json.c, as far as I can tell. This prohibits passing such characters to other modules (e.g. cannot pass to Stasis, cannot write to MySQL db via func_odbc).

In the end, I’ve created a workaround by exporting the characters from the dialplan, bypassing the ARI (unfortunately).

Still open to suggestion to get this working via Stasis, if there are any out there!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.