[asterisk-bugs] [JIRA] (ASTERISK-28031) Invalid UTF-8 string - Element Block

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Fri Aug 31 12:31:54 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=244674#comment-244674 ] 

Richard Mudgett edited comment on ASTERISK-28031 at 8/31/18 12:31 PM:
----------------------------------------------------------------------

You would need to filter the caller-id number as one of the first things in your dialplan to eliminate unexpected characters from the remote party.  Filtering the caller-id is also a good idea to remove potential code injection attacks.
{noformat}
same = n,Set(CALLERID(num)=${FILTER(0-9a-zA-z,${CALLERID(num)})})
{noformat}



was (Author: rmudgett):
You would need to filter the caller-id number as one of the first things in your dialplan to eliminate unexpected characters from the remote party.  Filtering the caller-id is also a good idea to remove potential code injection attacks.

same = n,Set(CALLERID(num)=${FILTER(0-9a-zA-z,${CALLERID(num)})})

> Invalid UTF-8 string - Element Block
> ------------------------------------
>
>                 Key: ASTERISK-28031
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28031
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_stasis, Core/General, Resources/res_stasis
>    Affects Versions: 13.21.0
>            Reporter: Sean Ph
>         Attachments: 2018-08-27 14-22-06 Json Error 5.png
>
>
> Asterisk restarts when a call starting to attach ▒  in front of the number, then throw out these errors causing my Asterisk to restart. 
> ERROR[17900][C-000000d4]:json.c:861 ast_json_vpack: Error building JSON from ‘{s: s, s: s}’: Invalid UTF-8 string.
> This seems to be an isolated incidents - Last one occurred 2 days ago to a random number and to a random queues. I was told to either update libpri or use Filter function.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list