[asterisk-users] json.c:704 ast_json_vpack: Error building JSON from '{s: s, s: s}': Invalid UTF-8 string.
Matthew Jordan
mjordan at digium.com
Tue Mar 10 07:18:14 CDT 2015
On Tue, Mar 10, 2015 at 5:00 AM, Dmitry Melekhov <dm at belkam.com> wrote:
> 05.03.2015 11:42, Dmitry Melekhov пишет:
>
>> 05.03.2015 11:29, Dmitry Melekhov пишет:
>>>
>>> Hello!
>>>
>>> Just installed asterisk 13.2.0 and see many such messages in log, I see
>>> them in console during calls, really something like this:
>>>
>>>
>>> -- Executing [6166 at kanbaikal:2] Dial("OOH323/kanbaikal-6",
>>> "SIP/6166 at asterisk") in new stack
>>> == Using SIP RTP TOS bits 184
>>> == Using SIP RTP CoS mark 5
>>> -- Called SIP/6166 at asterisk
>>> > 0x7fa9d4007660 -- Probation passed - setting RTP source address
>>> to 10.18.0.19:26052
>>> -- SIP/asterisk-0000000c is making progress passing it to
>>> OOH323/kanbaikal-6
>>> -- SIP/asterisk-0000000c is ringing
>>> > 0x7fa9d4007660 -- Probation passed - setting RTP source address
>>> to 10.18.0.19:26052
>>> > 0x7fa9d800d610 -- Probation passed - setting RTP source address
>>> to 192.168.166.2:2080
>>> [Mar 5 11:13:14] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> [Mar 5 11:13:14] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> -- SIP/asterisk-0000000c answered OOH323/kanbaikal-6
>>> -- Channel OOH323/kanbaikal-6 joined 'simple_bridge' basic-bridge
>>> <d751932e-2e26-4671-8fcc-048b20156ec9>
>>> -- Channel SIP/asterisk-0000000c joined 'simple_bridge' basic-bridge
>>> <d751932e-2e26-4671-8fcc-048b20156ec9>
>>> > 0x7fa9d800d610 -- Probation passed - setting RTP source address
>>> to 192.168.166.55:3098
>>> [Mar 5 11:13:19] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> [Mar 5 11:13:19] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> [Mar 5 11:13:24] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> [Mar 5 11:13:24] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>> [Mar 5 11:13:29] ERROR[3526]: json.c:704 ast_json_vpack: Error building
>>> JSON from '{s: s, s: s}': Invalid UTF-8 string.
>>>
>>>
>>> This is call from H323, as I know avaya , chan_ooh323 from my side to
>>> another asterisk SIP chan_sip on both sides.
>>>
>>> Just because everything work OK, I , definitely, can comment out this
>>> error message, but...
>>> Could you give me any idea why this error can appear?
>>>
>>> Thank you!
>>>
>>>
>> Well, looks like this is RTCP- because I get it every 5 second, which is
>> default.
>> Jus increased, to check is it RTCP or not...
>>
> Hello!
>
> No, this is not RTCP, although looks like this error is harmless, any idea
> what can cause this?
>
The error that you're seeing is a bit generic, as it is occurring when
string data is packed into a JSON blob. However, we can look at the
instances that attempt to pack two string key/value pairs, and see if
any of those allow for arbitrary data input.
>From that - and this is a guess - but I would suspect that it is the
packing of invalid UTF-8 data from a Caller ID or Connected Line. When
you see this occur, what is the Caller ID/Connected Line name/number
on the involved channels?
--
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
More information about the asterisk-users
mailing list