<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Henning,<div><br></div><div>I added record_route() and now I see an extra record-route and Via: header:</div><div><br></div><div><pre style="-webkit-user-select: text; position: absolute; top: -99px; z-index: auto; ">.9........INVITE <a href="sip:44800800150@pstn-out.netfuse.net">sip:44800800150@pstn-out.netfuse.net</a> SIP/2.0
Record-Route: <<a href="sip:85.13.242.55;lr=on">sip:85.13.242.55;lr=on</a>>
Via: SIP/2.0/UDP 85.13.242.55;branch=z9hG4bK388f.04bc8632.1
Via: SIP/2.0/UDP 81.88.163.210:5060;rport=5060;branch=z9hG4bK82ae6ced</pre><div><div><font face="Courier New">    INVITE <a href="sip:44800800150@our-pstn-switch">sip:44800800150@our-pstn-switch</a> SIP/2.0</font></div><div><font face="Courier New">    Record-Route: <<a href="sip:mvno-edge;lr=on">sip:mvno-edge;lr=on</a>></font></div><div><font face="Courier New">    Via: SIP/2.0/UDP mvno-edge;branch=z9hG4bK388f.04bc8632.1</font></div><div><font face="Courier New">    Via: SIP/2.0/UDP mvno-carrier:5060;rport=5060;branch=z9hG4bK82ae6ced</font></div></div><div><font face="Courier New">    Contact: <<a href="sip:441234567890@mvno-carrier:5060">sip:441234567890@mvno-carrier:5060</a>></font></div><div><br></div><div>I have replaced the relevant IP addresses in the example with mvno-edge, mvno-carrier, and outbound-carrier. So the route got "recorded" but the Contact: still referenced my mvno-carrier when inviting my outbound-carrier.</div><div><br></div><div>Accordingly, I do not get the BYE message from my originating mvno-carrier, after I send them 200 OK they try to talk to my outbound-carrier.</div><div><br></div><div>Note this is how I am routing the call to my gateway:</div><div><br></div><div><div><font face="Courier New">        # Change destination URI to our carrier</font></div><div><font face="Courier New">        $ru = "sip:" + $rU + "@" + $sel(cfg_get.gateways.outbound_carrier_1);</font></div></div><div><br></div><div>Any other ideas on how the Contact header should be modified?</div><div><br></div><div>Cheers</div><div>Leo</div><div><br><div><div>On 3 May 2013, at 16:29, Henning Westerholt <<a href="mailto:hw@kamailio.org">hw@kamailio.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">if you want to ensure that your kamailio stays on the path of the dialog for<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">following requests you probably want to use record-route headers for this.<span class="Apple-converted-space"> </span></span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">This is usally done with the rr module, record_route() function.</span><br style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "></blockquote></div><br></div></div></body></html>