[asterisk-bugs] [JIRA] (ASTERISK-24330) Requirement for 'wss' value in Contact header transport parameter on inbound traffic violates RFC7118

Jørgen H (JIRA) noreply at issues.asterisk.org
Thu Feb 16 05:59:10 CST 2017


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

Jørgen H commented on ASTERISK-24330:
-------------------------------------

This commit breaks tls-based websocket (wss) suport causing error messages like:
ERROR[48671]: res_pjsip.c:3616 endpt_send_request: Error 171060 'Unsupported transport (PJSIP_EUNSUPTRANSPORT)' sending OPTIONS request to endpoint xxx

FYI: My sipjs (0.7.5) works fine without modifications with wss://

> Requirement for 'wss' value in Contact header transport parameter on inbound traffic violates RFC7118
> -----------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-24330
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24330
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/WebSocket, Resources/res_http_websocket
>    Affects Versions: 11.12.0
>            Reporter: Marek Cervenka
>      Target Release: 13.14.0, 14.3.0
>
>
> i'm trying make webrtc client with SIP.js library
> i have working asterisk 11.12.0 wss configuration
> when i REGISTER the header looks like
> {noformat}
> REGISTER sip:sip.example.com SIP/2.0
> Via: SIP/2.0/WSS 192.0.2.136;branch=z9hG4bK7133687
> Max-Forwards: 70
> To: <sip:web_101_5416b222f0efa at sip.example.com>
> From: <sip:web_101_5416b222f0efa at sip.example.com>;tag=qok8o8thta
> Call-ID: 1np04l3k9bumr5aqbi6tpr
> CSeq: 81 REGISTER
> Contact: <sip:rlr4g88u at 192.0.2.136;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:f55544fa-c05d-468b-9c51-fd7a837864b5>";expires=600
> Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
> Supported: path,gruu,outbound
> User-Agent: SIP.js/0.6.2
> Content-Length: 0
> {noformat}
> the problem is in the contact line
> {{Contact: <sip:rlr4g88u at 192.0.2.136;transport=ws>;}}
> it's correct - http://tools.ietf.org/html/rfc7118#section-5.2
> but it's not working. 
> if i change the code in SIP.js to transport=wss then it works



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



More information about the asterisk-bugs mailing list