Error building JSON - RTCP


I recently upgraded to Asterisk version 16.2.1 compiled from source on a CentOS 6 server and every time a call is established and audio is sent between them, I’m getting the following messages in the logs:

[Mar  7 07:39:51] ERROR[16580]: json.c:607 ast_json_vpack: Error building JSON from '{s: o?, s: o, s: O?}': Expected format 's', got '?'.
[Mar  7 07:39:51] ERROR[16580]:   Got 9 backtrace records
# 0: /usr/sbin/asterisk(ast_json_pack+0x8b) [0x4ed88b]
# 1: /usr/sbin/asterisk() [0x52b28e]
# 2: /usr/lib/asterisk/modules/ [0x7f5f56c4e063]
# 3: /usr/sbin/asterisk() [0x560b70]
# 4: /usr/sbin/asterisk(ast_taskprocessor_execute+0x16e) [0x57b24e]
# 5: /usr/sbin/asterisk() [0x57b948]
# 6: /usr/sbin/asterisk() [0x58cf8d]
# 7: /lib64/ [0x7f5fcd0d8aa1]
# 8: /lib64/ [0x7f5fcc4b4bcd]

This happens every 5 seconds once both parties join the bridge so it’s likely related to RTCP. I have little to no idea about JSON so I’m not going to attempt to come up with a theory of what’s wrong but reach out to anyone who may know what’s going on here.

Any help will be highly appreciated.


There may be a bug within the res_hep_rtcp module for this. I’d suggest filing an issue[1]. If you don’t need to use the module, you can configure modules.conf to not load it.


Thanks, I’ve raised issue ASTERISK-28329