[asterisk-bugs] [JIRA] (ASTERISK-25096) Segfault when registering over websockets with PJSIP (in ast_sockaddr_isnull at /include/asterisk/netsock2.h)
Josh Kitchens (JIRA)
noreply at issues.asterisk.org
Wed May 20 17:30:32 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=226308#comment-226308 ]
Josh Kitchens commented on ASTERISK-25096:
------------------------------------------
So, this happens when I register, unregister, wait some time (>~20mins) then have the same sipJS UA register again. I did notice that the UA uses the same call-id as the last register/unregister. Is that the problem here? I don't quite understand https://tools.ietf.org/html/rfc3261#section-8.1.1.4 (Call-ID Definitaion in the SIP RFC).
{code:title=Unregister, Response, Register|borderStyle=solid}
13:51:41.482 AKDT
REGISTER sip:testerisk.microcom.tv SIP/2.0
Via: SIP/2.0/WSS 192.0.2.26;branch=z9hG4bK262665
Max-Forwards: 70
To: <sip:3883ws at testerisk.microcom.tv>
From: <sip:3883ws at testerisk.microcom.tv>;tag=t601r9h9l7
Call-ID: 8k66qli3e5lt508nsjgi14
CSeq: 83 REGISTER
Authorization: Digest algorithm=MD5, username="3883ws", realm="asterisk", nonce="1432158862/ff10df63bd59e001305fbd575b10d3a4", uri="sip:testerisk.microcom.tv", response="1c431aea63b9652c621aac6dd753cf1b", opaque="3274ceb57a1bf800", qop=auth, cnonce="jphct6760h6u", nc=00000001
Contact: <sip:q6tf3g61 at 192.0.2.26;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:fca0da87-6640-476b-ba93-98c552fce98d>";expires=0
Supported: path,gruu,outbound
User-Agent: SIP.js/0.6.4
Content-Length: 0
13:51:41.661 AKDT
SIP/2.0 200 OK
Via: SIP/2.0/WSS 192.0.2.26;rport=44041;received=10.100.100.198;branch=z9hG4bK262665
Call-ID: 8k66qli3e5lt508nsjgi14
From: <sip:3883ws at testerisk.microcom.tv>;tag=t601r9h9l7
To: <sip:3883ws at testerisk.microcom.tv>;tag=z9hG4bK262665
CSeq: 83 REGISTER
Date: Wed, 20 May 2015 21:54:41 GMT
Server: Asterisk PBX GIT-master-908c6a5
Content-Length: 0
14:12:13.995 AKDT
REGISTER sip:testerisk.microcom.tv SIP/2.0
Via: SIP/2.0/WSS 192.0.2.26;branch=z9hG4bK6090101
Max-Forwards: 70
To: <sip:3883ws at testerisk.microcom.tv>
From: <sip:3883ws at testerisk.microcom.tv>;tag=t601r9h9l7
Call-ID: 8k66qli3e5lt508nsjgi14
CSeq: 84 REGISTER
Authorization: Digest algorithm=MD5, username="3883ws", realm="asterisk", nonce="1432158862/ff10df63bd59e001305fbd575b10d3a4", uri="sip:testerisk.microcom.tv", response="1c431aea63b9652c621aac6dd753cf1b", opaque="3274ceb57a1bf800", qop=auth, cnonce="jphct6760h6u", nc=00000001
Contact: <sip:q6tf3g61 at 192.0.2.26;transport=wss>;reg-id=1;+sip.instance="<urn:uuid:fca0da87-6640-476b-ba93-98c552fce98d>";expires=600
Allow: ACK,CANCEL,BYE,OPTIONS,INFO,NOTIFY,INVITE
Supported: path,gruu,outbound
User-Agent: SIP.js/0.6.4
Content-Length: 0
{code}
> Segfault when registering over websockets with PJSIP (in ast_sockaddr_isnull at /include/asterisk/netsock2.h)
> -------------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-25096
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25096
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip
> Affects Versions: SVN
> Environment: Debian 7.8, pjproject 2.3.0, Asterisk GIT-master-908c6a5 (18/May/15)
> Reporter: Josh Kitchens
> Assignee: Josh Kitchens
> Attachments: core20150518-0943.txt, core.txt, pjsip configuration.conf, WSasteriskcrash.txt, wsRegister20150518-0943.txt
>
>
> Asterisk crashes when I attempt to register from a browser, but only after I leave the browser open for some time without registering (~1 hour).
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list