I'm rewriting the Contact header in the REGISTER to be Kamailio on port
5060. For some reason Asterisk is sending INVITEs on the source port of
the message and not 5060. I thought rport would correct that, but it
sounds like rport is only intended to for subsequent messages in a given
transaction
Hello,
rport and Via headers are used for routing the SIP responses back to the
device sending the request. They are not used at all for routing INVITE
requests.
The tutorial you refer to is generating a new REGISTER from Kamailio to
Asterisk, putting in it the Contact header with the addres
Basically, I'm trying to get Asterisk to send all future INVITEs to
Kamailio on port 5060 and not the source port of the REGISTER. My REGISTER
looks like this:
U 1.1.1.1:59738 -> 2.2.2.2:5060
REGISTER sip:2.2.2.2:5060 SIP/2.0.
Via: SIP/2.0/UDP 1.1.1.1:5060;branch=z9hG4bK404.05c2e5a7.0.
Via: SIP/2