<div dir="ltr"><br><div>Hi</div><div><br></div><div>While I'm trying to get the provider fix the SBC, I am implementing the workaround. </div><div><br></div><div>Almost done here, storing and retrieving the correct address is fine, but when I set my $ru to the corrected value (asterisk IP), the t_relay still sends the packet to the kamailio IP - </div><div><br></div><div>$ru="sip:number@asteriskip:5060";<br></div><div>if (!t_relay()) {<br></div><div>....</div><div><br></div><div>Why would the t_relay forward to the kamailio IP and not the asterisk ?</div><div><br></div><div>Rgds</div><div>J</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 8, 2018 at 11:49 AM, Jean Cérien <span dir="ltr"><<a href="mailto:cerien.jean@gmail.com" target="_blank">cerien.jean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px">Many, many thanks !</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I've posted the full dialog unredacted here: <a href="https://pastebin.com/EE9iwgZf" target="_blank">https://pastebin.com/EE9<wbr>iwgZf</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The OK from Kamailio back to VOIP provider has</div><div style="font-size:12.8px">Record-Route: <sip:KAMAILIOIP;lr=on;ftag=SD2<wbr>rbta01-8dd0e72b-0016-0379-0000<wbr>-0000;did=e0c.e0a1><br></div><div style="font-size:12.8px">Contact: <sip:NUMBER@ASTERISKIP:5060></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">So my understanding is that the ACK should be </div><div style="font-size:12.8px">ACK sip:NUMBER@ASTERISKIP:5060 SIP/2.0</div><div style="font-size:12.8px">....</div><div style="font-size:12.8px">and not</div><div style="font-size:12.8px">ACK sip:NUMBER@KAMAILIOIP:5060 SIP/2.0</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Am I understanding correctly ?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Rgds</div><span class="HOEnZb"><font color="#888888"><div style="font-size:12.8px">J</div><div class="m_1775844981210581009gmail-yj6qo m_1775844981210581009gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"></div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Jan 8, 2018 at 11:28 AM, Sebastian Damm <span dir="ltr"><<a href="mailto:damm@sipgate.de" target="_blank">damm@sipgate.de</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Mon, Jan 8, 2018 at 2:39 PM, Jean Cérien <span dir="ltr"><<a href="mailto:cerien.jean@gmail.com" target="_blank">cerien.jean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div>Thanks for this answer. The voip provider is not really eager to alter its SBC as it considers that the contact field is not mandatory in the ACK. The RFC states (section 8.1.1.8)</div></div></blockquote><div> </div></span><div>The problem is not that the ACK doesn't carry a Contact header. The problem is that the ACK is constructed incorrectly. This is what the RfC says to UAC behavior (section 12.1.2):</div><div><br></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div>The route set MUST be set to the list of URIs in the Record-Route
header field from the response, taken in reverse order and preserving
all URI parameters. If no Record-Route header field is present in
the response, the route set MUST be set to the empty set. This route
set, even if empty, overrides any pre-existing route set for future
requests in this dialog. <b>The remote target MUST be set to the URI
from the Contact header field of the response.</b> </div><div><br></div></div></div></blockquote>This is what the carrier's SBC gets wrong. It doesn't address your Asterisk but instead addresses your Kamailio, although the Contact of your 200 OK (hopefully) contains the Asterisk IP.<div class="gmail_extra"><div class="m_1775844981210581009m_2516756081510492400gmail_signature"></div>
</div><div><br></div><div>Please verify that your 200 OK going to the carrier actually does carry a Contact header with the Asterisk IP, but if it does, section 12.1.2 of the SIP RfC could help when arguing with the carrier.</div><div><br></div><div>Regards</div><span class="m_1775844981210581009HOEnZb"><font color="#888888"><div>Sebastian</div></font></span></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>