[asterisk-users] ARI strange bug on version 13.29.2

Daniel Friedman dani at 3xton.com
Mon Dec 16 18:20:30 CST 2019


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 at 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 <unknown>()
# 5: res_ari_channels.so <unknown>()
# 6: res_ari_channels.so <unknown>()
# 7: [0x7f71a7385098] res_ari.so :0 ast_ari_invoke()
# 8: [0x7f71a73865e1] res_ari.so :0 ast_ari_json_format()
# 9: asterisk <unknown>()
#10: asterisk <unknown>()
#11: asterisk <unknown>()
#12: asterisk <unknown>()
#13: asterisk <unknown>()
#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 at 3xton.com<mailto:dani at 3xton.com>
Website: http://www.3xton.com

[LOGO trans- 3xton-01]


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191217/00e624d1/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8958 bytes
Desc: image001.png
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20191217/00e624d1/attachment.png>


More information about the asterisk-users mailing list