[asterisk-users] persistent TCP conection over registration duration

xaled xaled at web.de
Wed Dec 9 11:08:19 CST 2015


Hi,

 

Every time pjsip reregisters it establishes a new tcp connection and then after 10 seconds closes the old one. This results in a temporal presence of two contacts that leads to a forking in a 10 seconds registration overlap span. Is it a wanted behavior? 

Is it possible to configure TCP connection to persist over the registration duration avoiding the disconnection and reconnection of TCP connection with every reregistration?

REGISTER sip:test.com SIP/2.0

Via: SIP/2.0/TCP 4.3.2.1:38778;rport;branch=z9hG4bKPjee70b46c-259f-4fff-a46d-3c36338d35b7;alias

Call-ID: 966f92dc-285e-480a-bdd5-163b5dc2c1af

CSeq: 48489 REGISTER

Contact: <sip:+123456789 at 4.3.2.1:38778>

Expires: 240

 

SIP/2.0 200 OK

Via: SIP/2.0/TCP 4.3.2.1:38778;rport=38778;branch=z9hG4bKPjee70b46c-259f-4fff-a46d-3c36338d35b7;alias

Call-ID: 966f92dc-285e-480a-bdd5-163b5dc2c1af

Contact: <sip:+123456789 at 4.3.2.1:46522>;expires=10

Contact: <sip:+123456789 at 4.3.2.1:38778>;expires=240

CSeq: 48489 REGISTER

 

REGISTER sip:test.com SIP/2.0

Via: SIP/2.0/TCP 4.3.2.1:42699;rport;branch=z9hG4bKPj002d0a40-0fea-4a40-91bd-411d15a2679f;alias

Call-ID: 966f92dc-285e-480a-bdd5-163b5dc2c1af

CSeq: 48491 REGISTER

Contact: <sip:+123456789 at 4.3.2.1:42699>

Expires: 240

 

SIP/2.0 200 OK

Via: SIP/2.0/TCP 4.3.2.1:42699;rport=42699;branch=z9hG4bKPj002d0a40-0fea-4a40-91bd-411d15a2679f;alias

Call-ID: 966f92dc-285e-480a-bdd5-163b5dc2c1af

Contact: <sip:+123456789 at 4.3.2.1:38778>;expires=10

Contact: <sip:+123456789 at 4.3.2.1:42699>;expires=240

CSeq: 48491 REGISTER

 

Thanks,

xaled

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20151209/ccd33f62/attachment.html>


More information about the asterisk-users mailing list