[sr-dev] [kamailio/kamailio] [uac] REGISTER source port alternates between 5060 and != 5060 (#936)

Peter Colberg notifications at github.com
Thu Jan 19 06:50:02 CET 2017


I apologize for the incomplete report so far. I was tracing the SIP traffic with `sngrep` and unfortunately did not save the pcap file while I was testing something else. The registrations with an alternate source port are in fact hard to reproduce and appear to occur, if at all, only right after (re)starting kamailio. kamailio sends out one (or multiple, in the configured interval of 600-60 seconds) registrations with sport != 5060 and eventually switches to sport 5060 for all subsequent registrations.

The registration dialogs were absolutely normal apart from the source port, e.g.,
```
1.2.3.4:1026 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.

5.6.7.8:5060 -> 1.2.3.4:1026
SIP/2.0 401 Unauthorized.

1.2.3.4:1026 -> 5.6.7.8:5060
REGISTER sip:sip.example.org SIP/2.0.

5.6.7.8:5060 -> 1.2.3.4:1026
SIP/2.0 200 OK.
```

Can there be a race between obtaining the listening sockets and sending out the first registration?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/936#issuecomment-273688137
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170118/bd0d6c86/attachment.html>


More information about the sr-dev mailing list