[SR-Users] Order of record-route
Dirk Teurlings - Signet B.V.
dteurlings at signet.nl
Thu Oct 6 16:35:01 CEST 2016
Looking at an issue with SIP-Cisco and a Barracuda firewall, I've come
across something I need to know more about.
The setup is as follows:
CLIENT -> KAMAILIO -> ASTERISK
CLIENT <- KAMAILIO <- ASTERISK
Client sends INVITE, Kamailio forwards to Asterisk, SIP 100 and SIP 183
are being sent and finally a 200 OK. We now expect the Client to send
back an ACK packet, but that never reaches us.
In this case the SIP 183 is the first packet that contains the full
record route of the path, the 200 OK contain the same record-routes being:
192.168.0.200 is the private address of Kamailio
126.96.36.199 is the public address of Kamailio
188.8.131.52 is the public address of the Client
10.0.0.101 is some private addres of the Client
What we're seeing is that the Client is sending his ACK message to our
192.169.200 private address, which he will never reach. So me question
in this case is; is the order of the Record-route headers relevant and
do I have any say in which order Kamailio outputs these headers?
To be clear, the Kamailio config only contains one reference to
record_route which is caught for INVITE messages, which only fires when
all things like NAT and transaction checks haven't already picked it up.
More information about the sr-users