[asterisk-bugs] [JIRA] (ASTERISK-28971) app_userevent: Does not handle non-ASCII characters

Sean Bright (JIRA) noreply at issues.asterisk.org
Thu Dec 9 13:38:44 CST 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-28971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-28971:
-----------------------------------

    Description: 
Every time when a string with a "special" character is passed to dialplan application UserEvent, Asterisk stops dialplan execution and rejects the call with a 603 Declined response.

Below is a simple context that I used for testing.
{noformat}
[macro-test]
exten => s,1,Noop(${CALLERID(name)})
exten => s,n,UserEvent(test,callerid_name: ${CALLERID(name)})
exten => s,n,Answer
exten => s,n,Wait(5)
exten => s,n,Hangup
{noformat}

If CallerID name contains the "á" character call will be dropped. "300 á" in the example below:

{noformat}
    -- Executing [s at macro-test:1] NoOp("SIP/300-0000000a", "300 ▒ 300") in new stack
    -- Executing [s at macro-test:2] UserEvent("SIP/300-0000000a", "test,callerid_name: 300 ▒") in new stack
  == Spawn extension (macro-test, s, 2) exited non-zero on 'SIP/300-0000000a' in macro 'test'
{noformat}


  was:
Every time when a string with a "special" character is passed to dialplan application UserEvent, Asterisk stops dialplan execution and rejects the call with a 603 Declined response.

Below is a simple context that I used for testing.
```[macro-test]
exten => s,1,Noop(${CALLERID(name)})
exten => s,n,UserEvent(test,callerid_name: ${CALLERID(name)})
exten => s,n,Answer
exten => s,n,Wait(5)
exten => s,n,Hangup```

If CallerID name contains the "á" character call will be dropped. "300 á" in the example below:
```    -- Executing [s at macro-test:1] NoOp("SIP/300-0000000a", "300 ▒ 300") in new stack
    -- Executing [s at macro-test:2] UserEvent("SIP/300-0000000a", "test,callerid_name: 300 ▒") in new stack
  == Spawn extension (macro-test, s, 2) exited non-zero on 'SIP/300-0000000a' in macro 'test'```



> app_userevent: Does not handle non-ASCII characters
> ---------------------------------------------------
>
>                 Key: ASTERISK-28971
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28971
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_userevent
>    Affects Versions: 13.32.0, 16.15.0
>         Environment: CentOS virtual machine running on VMware ESXi
>            Reporter: Volodya Ivanets
>
> Every time when a string with a "special" character is passed to dialplan application UserEvent, Asterisk stops dialplan execution and rejects the call with a 603 Declined response.
> Below is a simple context that I used for testing.
> {noformat}
> [macro-test]
> exten => s,1,Noop(${CALLERID(name)})
> exten => s,n,UserEvent(test,callerid_name: ${CALLERID(name)})
> exten => s,n,Answer
> exten => s,n,Wait(5)
> exten => s,n,Hangup
> {noformat}
> If CallerID name contains the "á" character call will be dropped. "300 á" in the example below:
> {noformat}
>     -- Executing [s at macro-test:1] NoOp("SIP/300-0000000a", "300 ▒ 300") in new stack
>     -- Executing [s at macro-test:2] UserEvent("SIP/300-0000000a", "test,callerid_name: 300 ▒") in new stack
>   == Spawn extension (macro-test, s, 2) exited non-zero on 'SIP/300-0000000a' in macro 'test'
> {noformat}



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



More information about the asterisk-bugs mailing list