Re: [asterisk-users] ARI strange bug on version 13.29.2

2019-12-18 Thread Joshua C. Colp
On Mon, Dec 16, 2019 at 9:22 PM Joshua C. Colp  wrote:

> On Mon, Dec 16, 2019 at 9:11 PM Joshua C. Colp  wrote:
>
>> On Mon, Dec 16, 2019 at 8:21 PM Daniel Friedman  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 
>>>
>>> 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": "1866222",
>>>
>>> "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-208b]: 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?
>>>
>>
>> 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?
>>
>
> I have also created an issue[1].
>
> [1] https://issues.asterisk.org/jira/browse/ASTERISK-28663
>

A fix for this allowing old versions of jansson to be used is now merging
in and will be in 13.30.0. It is still recommended to use bundled however.

-- 
Joshua C. Colp
Asterisk Technical Lead
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

Re: [asterisk-users] ARI strange bug on version 13.29.2

2019-12-16 Thread Joshua C. Colp
On Mon, Dec 16, 2019 at 9:11 PM Joshua C. Colp  wrote:

> On Mon, Dec 16, 2019 at 8:21 PM Daniel Friedman  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 
>>
>> 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": "1866222",
>>
>> "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-208b]: 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?
>>
>
> 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?
>

I have also created an issue[1].

[1] https://issues.asterisk.org/jira/browse/ASTERISK-28663

-- 
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

Re: [asterisk-users] ARI strange bug on version 13.29.2

2019-12-16 Thread Joshua C. Colp
On Mon, Dec 16, 2019 at 8:21 PM Daniel Friedman  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 
>
> 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": "1866222",
>
> "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-208b]: 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?
>

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

[asterisk-users] ARI strange bug on version 13.29.2

2019-12-16 Thread Daniel Friedman
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 
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": "1866222",
"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-208b]: 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: d...@3xton.com
Website: http://www.3xton.com

[LOGO trans- 3xton-01]


-- 
_
-- 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