ARI Strange Bug On Version 13.29.2
–_000_AM5P192MB01476934158D6709857E5FAF89500AM5P192MB0147EURP_
Content-Type: text/plain; charset=”us-ascii”
Content-Transfer-Encoding: quoted-printable
Hello,
I am using an ARI dialer for my applications and since my last upgrade to Ver. 13.29.2 from 13.23.1 I am getting this strange bug from the ARI debugger:
Debugging on all applications enabled
<--- ARI request received from: x.x.x.x:63036 --->
HOST: x.x.x.x:8088
content-type: application/json authorization: Basic xxxx content-length: 265
body:
{
“context”: “from-itc-dialer”,
“extension”: “secondleg”,
“priority”: 1,
“timeout”: 60,
“endpoint”: “Local/firstleg@from-itc-dialer/n”,
“variables”: {
“AGENT”: “506655579”,
“DESTINATION”: “18662225555”,
“CLI”: “442031502032”
}
}
[2019-12-17 02:10:06] ERROR[24851]: json.c:870 ast_json_vpack: Error building JSON from ‘{s: s?, s: s?, s: o, s: s?, s: s?}’: Expected format ‘s’, got ‘?’.
[2019-12-17 02:10:06] NOTICE[24853][C-0000208b]: Ext. firstleg:5 @ from-itc-dialer: The group channel is: itc-ebay and the group count is: 1 out of max 14
[2019-12-17 02:10:06] ERROR[24851]: Got 16 backtrace records
# 0: asterisk ast_json_vpack()
# 1: asterisk ast_json_pack()
# 2: asterisk ast_json_dialplan_cep_app()
# 3: asterisk ast_channel_snapshot_to_json()
# 4: res_ari_channels.so
# 5: res_ari_channels.so
# 6: res_ari_channels.so
# 7: [0x7f71a7385098] res_ari.so :0 ast_ari_invoke()
# 8: [0x7f71a73865e1] res_ari.so :0 ast_ari_json_format()
# 9: asterisk
#10: asterisk
#11: asterisk
#12: asterisk
#13: asterisk
#14: [0x7f71e489caa1] libpthread.so.0 :0 pthread_create()
#15: [0x7f71e3c2493d] libc.so.6 :0 __clone()
<--- Sending ARI response to x.x.x.x:63036 --->
200 OK
The calls are getting through and the Asterisk is not crashing. I looked at the source code and it seems that I am sending all the right parameters with a valid JSON format.
Anyone has an idea what has been change in the Asterisk code and how can I adopt my code to the this version?
Regards,
Daniel Friedman Trixton LTD.
Tel: 972.72.2557000
Mobile: 972.50.6655579
Email: dani@3xton.com
Website: http://www.3xton.com
[LOGO trans- 3xton-01]
–_000_AM5P192MB01476934158D6709857E5FAF89500AM5P192MB0147EURP_
Content-Type: text/html; charset=”us-ascii”
Content-Transfer-Encoding: quoted-printable