[asterisk-bugs] [JIRA] (ASTERISK-24664) PJSIP exception on non-ascii sip callerid

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed Jan 7 15:29:34 CST 2015


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

Rusty Newton commented on ASTERISK-24664:
-----------------------------------------

It appears res_pjsip will allow you to configure an endpoint ID as such:

{noformat}
 Endpoint:  6001                                                 Unavailable   0 of inf
     InAuth:  6001/6001
        Aor:  6001                                               1

 Endpoint:  ΟΠΡΣΤΥΦ                                       Unavailable   0 of inf
     InAuth:  ΟΠΡΣΤΥΦ/ΟΠΡΣΤΥΦ
        Aor:  ΟΠΡΣΤΥΦ                                     1
{noformat}

However I get the same results with registration. Asterisk ignores the request and produces the error:

{noformat}
[Jan  7 15:24:41] ERROR[17677]: pjsip:0 <?>: 	sip_transport. Error processing 538 bytes packet from UDP 10.24.18.124:62265 : PJSIP syntax error exception when parsing '' header on line 4 col 29:
REGISTER sip:10.24.18.124 SIP/2.0
Call-ID: c8c0d7f26897cbd75f87fec71f48ae6e at 0:0:0:0:0:0:0:0
CSeq: 1 REGISTER
From: "ΟΠΡΣΤΥΦ" <sip:ΟΠΡΣΤΥΦ@10.24.18.124>;tag=aadbc398
To: "ΟΠΡΣΤΥΦ" <sip:ΟΠΡΣΤΥΦ@10.24.18.124>
Via: SIP/2.0/UDP 10.24.18.124:62265;branch=z9hG4bK-343638-a14e551696b5af6e3fb65aa6f8da38ce
Max-Forwards: 70
User-Agent: Jitsi2.5.5065Linux
Expires: 600
Contact: "ΟΠΡΣΤΥΦ" <sip:ΟΠΡΣΤΥΦ@10.24.18.124:62265;transport=udp;registering_acc=10_24_18_124>;expires=600
Content-Length: 0
{noformat}

Asterisk does not respond to the request.

If we are can't handle these characters on requests, we shouldn't allow a user to configure objects using them. If we can't handle the requests, I wonder if a 488 Not Acceptable would be appropriate?

> PJSIP exception on non-ascii sip callerid
> -----------------------------------------
>
>                 Key: ASTERISK-24664
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24664
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: pjproject/pjsip
>    Affects Versions: 13.1.0
>         Environment: Ubuntu 12.04 x86_64; pjproject build from source https://github.com/asterisk/pjproject using `./configure --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr`
>            Reporter: Y Ateya
>            Assignee: Rusty Newton
>         Attachments: pjproject_strange_callerid.txt
>
>
> While investigating messages.log for my asterisk server; I found multiple occurrences of this pjsip exception (see attached log).
> It happens when the sip caller id is non-ascii, like this (first one appears in the log)
> - اسماعيل 
> - ٩٩٥٠
> - ΟΠΡΣΤΥΦ
> This call is rejected from asterisk; and asterisk continues as normal.



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



More information about the asterisk-bugs mailing list