<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">rport in top Via of the incoming
      request indicates that the sender whats received parameter in the
      response. If not, it should not be added.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">However, if source ip is different that
      the Via IP of the incoming request and you use force_rport() in
      kamailio.cfg, then kamailio should add the received parameter even
      rport is not in the incoming Via.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Cheers,<br>
      Daniel<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 30.11.18 10:59, Soltanici Ilie
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1543571988.308267718@f387.i.mail.ru">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hi,<br>
      <br>
      In the ACK received after 200 OK the parameter 'receiving' is
      missing as well. What I observed is that to some ISP Kamailio is
      sending back 'received' parameter, but for some of them - is not
      sending. See below an invite where Kamailio is setting back
      'received' parameter in via response:<br>
      <br>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <p>INVITE <a class="moz-txt-link-freetext" href="sip:+123456789@X.X.X.X">sip:+123456789@X.X.X.X</a> SIP/2.0<br>
        Via: SIP/2.0/UDP Y.Y.Y.Y:5060;branch=z9hG4bK6ae093c7;rport<br>
        Max-Forwards: 70<br>
        From: "+135792468" <a class="moz-txt-link-rfc2396E" href="sip:+135792468@Y.Y.Y.Y"><sip:+135792468@Y.Y.Y.Y></a>;tag=as51334407<br>
        To: <a class="moz-txt-link-rfc2396E" href="sip:+123456789@X.X.X.X"><sip:+123456789@X.X.X.X></a><br>
        Contact: <a class="moz-txt-link-rfc2396E" href="sip:+135792468@Y.Y.Y.Y:5060"><sip:+135792468@Y.Y.Y.Y:5060></a><br>
        Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:47e864f029a7b5d5700944aa4035e50b@Y.Y.Y.Y:5060">47e864f029a7b5d5700944aa4035e50b@Y.Y.Y.Y:5060</a><br>
        CSeq: 102 INVITE<br>
        User-Agent: COMPANY<br>
        Date: Fri, 30 Nov 2018 09:30:49 GMT<br>
        Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE,
        NOTIFY, INFO, PUBLISH, MESSAGE<br>
        Supported: replaces, timer<br>
        Diversion: <a class="moz-txt-link-rfc2396E" href="sip:+135792468@Y.Y.Y.Y"><sip:+135792468@Y.Y.Y.Y></a>;reason=unknown<br>
        Content-Type: application/sdp<br>
        Content-Length: 265<br>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      </p>
      And this is 100 Trying generated by Kamailio:<br>
      <br>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <p>SIP/2.0 100 trying -- your call is important to us<br>
        Via: SIP/2.0/UDP X.X.X.X:5060;branch=z9hG4bK6ae093c7;rport=5060;<strong>received=X.X.X.X</strong><br>
        From: "+123456789" <a class="moz-txt-link-rfc2396E" href="sip:+123456789@X.X.X.X"><sip:+123456789@X.X.X.X></a>;tag=as51334407<br>
        To: <a class="moz-txt-link-rfc2396E" href="sip:+987654312@Y.Y.Y.Y"><sip:+987654312@Y.Y.Y.Y></a><br>
        Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:47e864f029a7b5d5700944aa4035e50b@X.X.X.X:5060">47e864f029a7b5d5700944aa4035e50b@X.X.X.X:5060</a><br>
        CSeq: 102 INVITE<br>
        Server: Nuacom SBC<br>
        Content-Length: 0</p>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <br>
      But for the below INVITE - Kamailio is sending back without
      'received' parameter:<br>
      <br>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <p>INVITE <a class="moz-txt-link-freetext" href="sip:+123456789@X.X.X.X:5060;transport=udp;user=phone">sip:+123456789@X.X.X.X:5060;transport=udp;user=phone</a>
        SIP/2.0<br>
        Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:19685-LC-04d65acb-182279a33@hostname.isp.com">19685-LC-04d65acb-182279a33@hostname.isp.com</a><br>
        Contact: <a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.Y:5060"><sip:Y.Y.Y.Y:5060></a><br>
        Content-Type: application/sdp<br>
        CSeq: 60513704 INVITE<br>
        From: "+987654321"
<a class="moz-txt-link-rfc2396E" href="sip:+987654321@hostname.isp.com;user=phone"><sip:+987654321@hostname.isp.com;user=phone></a>;tag=19685-KU-04d65acc-31cdba992<br>
        Max-Forwards: 69<br>
        Record-Route:
        <a class="moz-txt-link-rfc2396E" href="sip:Y.Y.Y.Y:5060;user=0000a839;lr;Cpkt=CPJIS;C=on-gw"><sip:Y.Y.Y.Y:5060;user=0000a839;lr;Cpkt=CPJIS;C=on-gw></a><br>
        Supported: timer<br>
        To: <a class="moz-txt-link-rfc2396E" href="sip:+123456789@Y.Y.Y.Y:5060;user=phone"><sip:+123456789@Y.Y.Y.Y:5060;user=phone></a><br>
        Via: SIP/2.0/UDP
        Y.Y.Y.Y:5060;branch=z9hG4bK-CPJI-0cdf0724-27de6173<br>
        Allow: UPDATE,INVITE,INFO,ACK,OPTIONS,NOTIFY,BYE,CANCEL,PRACK<br>
        Min-SE: 90<br>
        Session-Expires: 600<br>
        User-Agent: GATEWAY<br>
        P-Asserted-Identity:
        "+987654321"<a class="moz-txt-link-rfc2396E" href="sip:+987654321@hostname.isp.com;user=phone"><sip:+987654321@hostname.isp.com;user=phone></a><br>
        P-Preferred-Identity:
        <a class="moz-txt-link-rfc2396E" href="sip:+987654321@hostname.isp.com;user=phone"><sip:+987654321@hostname.isp.com;user=phone></a><br>
        P-Charging-Vector:
        icid-value="IBCF-2-154357024260892067507758";orig-ioi=3GPP-UTRAN<br>
        Content-Length: 220</p>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <br>
      <p>SIP/2.0 100 trying -- your call is important to us<br>
        Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:19685-LC-04d65acb-182279a33@hostname.isp.com">19685-LC-04d65acb-182279a33@hostname.isp.com</a><br>
        CSeq: 60513704 INVITE<br>
        From: "+123456789"
<a class="moz-txt-link-rfc2396E" href="sip:+123456789@hostname.isp.com;user=phone"><sip:+123456789@hostname.isp.com;user=phone></a>;tag=19685-KU-04d65acc-31cdba992<br>
        To: <a class="moz-txt-link-rfc2396E" href="sip:+987654321@X.X.X.X:5060;user=phone"><sip:+987654321@X.X.X.X:5060;user=phone></a><br>
        Via: SIP/2.0/UDP
        X.X.X.X:5060;branch=z9hG4bK-CPJI-0cdf0724-27de6173;rport=5060<br>
        Server: Nuacom SBC<br>
        Content-Length: 0</p>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
      <br>
      In this case parameter 'received' is missing for all responses
      generated by Kamailio.<br>
      <br>
      Could it be that in the first INVITE - i'm receiving the 'rport'
      parameter in via request, but in the second INVITE - it is not?<br>
      Thank You.<br>
      <br>
      <blockquote style="border-left:1px solid #0857A6; margin:10px;
        padding:0 0 0 10px;">Daniel-Constantin Mierla
        <a class="moz-txt-link-rfc2396E" href="mailto:miconda@gmail.com"><miconda@gmail.com></a>:<br>
        <br>
        <div id="">
          <div class="js-helper js-readmsg-msg">
            <style type="text/css"></style>
            <div> <base target="_self" href="https://e.mail.ru/">
              <div id="style_15435623580000000365_BODY">
                <div class="class_1543588327">
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix">Hello,</div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix"><br>
                  </div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix">ACK
                    should be after 200 or a greater response code. Is
                    only 100 without received, or also other 1xx or
                    >200 responses sent out by Kamailio?</div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix"><br>
                  </div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix">Cheers,<br>
                    Daniel</div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix"><br>
                  </div>
                  <div
                    class="moz-cite-prefix_mailru_css_attribute_postfix">On
                    29.11.18 18:24, Soltanici Ilie wrote:<br>
                  </div>
                  <blockquote type="cite"
                    cite="mid:1543512261.25254545@f432.i.mail.ru"> Hi,<br>
                    <br>
                    version: kamailio 5.1.6 (x86_64/linux) 7d1964<br>
                    <br>
                    Also, i'm usingĀ force_rport(); in routing
                    configuration file, but 'received' parameter anyway
                    is missing :(<br>
                    Thank You.<br>
                    <br>
                    <br>
                    <fieldset
                      class="mimeAttachmentHeader_mailru_css_attribute_postfix"></fieldset>
                    <pre class="moz-quote-pre_mailru_css_attribute_postfix" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="//e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                  </blockquote>
                  <p><br>
                  </p>
                  <pre class="moz-signature_mailru_css_attribute_postfix" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="http://www.asipto.com" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">www.asipto.com</a>
<a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="http://www.twitter.com/miconda" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="http://www.linkedin.com/in/miconda" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="http://www.kamailioworld.com" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix" href="http://www.asipto.com" target="_blank" rel=" noopener noreferrer" moz-do-not-send="true">www.asipto.com</a></pre>
                </div>
              </div>
              <base target="_self" href="https://e.mail.ru/"> </div>
          </div>
        </div>
      </blockquote>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>