On Mon, Dec 16, 2019 at 8:21 PM Daniel Friedman <d...@3xton.com> wrote:
> 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 <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? > What version of jansson do you have installed? If you use the bundled jansson (by passing --with-jansson-bundled to configure) does the problem resolve itself? -- Joshua C. Colp Senior Software Developer Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users