[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] Response VIA Header
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2018-11-30 10:16:00
Message-ID: 637a5ed2-46ca-8ce9-022c-9f212344dfb2 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,

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.

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.

Cheers,
Daniel

On 30.11.18 10:59, Soltanici Ilie wrote:
> Hi,
> 
> 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:
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> INVITE sip:+123456789@X.X.X.X SIP/2.0
> Via: SIP/2.0/UDP Y.Y.Y.Y:5060;branch=z9hG4bK6ae093c7;rport
> Max-Forwards: 70
> From: "+135792468" <sip:+135792468@Y.Y.Y.Y>;tag=as51334407
> To: <sip:+123456789@X.X.X.X>
> Contact: <sip:+135792468@Y.Y.Y.Y:5060>
> Call-ID: 47e864f029a7b5d5700944aa4035e50b@Y.Y.Y.Y:5060
> CSeq: 102 INVITE
> User-Agent: COMPANY
> Date: Fri, 30 Nov 2018 09:30:49 GMT
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> INFO, PUBLISH, MESSAGE
> Supported: replaces, timer
> Diversion: <sip:+135792468@Y.Y.Y.Y>;reason=unknown
> Content-Type: application/sdp
> Content-Length: 265
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> And this is 100 Trying generated by Kamailio:
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> SIP/2.0 100 trying -- your call is important to us
> Via: SIP/2.0/UDP
> X.X.X.X:5060;branch=z9hG4bK6ae093c7;rport=5060;*received=X.X.X.X*
> From: "+123456789" <sip:+123456789@X.X.X.X>;tag=as51334407
> To: <sip:+987654312@Y.Y.Y.Y>
> Call-ID: 47e864f029a7b5d5700944aa4035e50b@X.X.X.X:5060
> CSeq: 102 INVITE
> Server: Nuacom SBC
> Content-Length: 0
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> But for the below INVITE - Kamailio is sending back without 'received'
> parameter:
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> INVITE sip:+123456789@X.X.X.X:5060;transport=udp;user=phone SIP/2.0
> Call-ID: 19685-LC-04d65acb-182279a33@hostname.isp.com
> Contact: <sip:Y.Y.Y.Y:5060>
> Content-Type: application/sdp
> CSeq: 60513704 INVITE
> From: "+987654321"
> <sip:+987654321@hostname.isp.com;user=phone>;tag=19685-KU-04d65acc-31cdba992
> Max-Forwards: 69
> Record-Route: <sip:Y.Y.Y.Y:5060;user=0000a839;lr;Cpkt=CPJIS;C=on-gw>
> Supported: timer
> To: <sip:+123456789@Y.Y.Y.Y:5060;user=phone>
> Via: SIP/2.0/UDP Y.Y.Y.Y:5060;branch=z9hG4bK-CPJI-0cdf0724-27de6173
> Allow: UPDATE,INVITE,INFO,ACK,OPTIONS,NOTIFY,BYE,CANCEL,PRACK
> Min-SE: 90
> Session-Expires: 600
> User-Agent: GATEWAY
> P-Asserted-Identity:
> "+987654321"<sip:+987654321@hostname.isp.com;user=phone>
> P-Preferred-Identity: <sip:+987654321@hostname.isp.com;user=phone>
> P-Charging-Vector:
> icid-value="IBCF-2-154357024260892067507758";orig-ioi=3GPP-UTRAN
> Content-Length: 220
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> SIP/2.0 100 trying -- your call is important to us
> Call-ID: 19685-LC-04d65acb-182279a33@hostname.isp.com
> CSeq: 60513704 INVITE
> From: "+123456789"
> <sip:+123456789@hostname.isp.com;user=phone>;tag=19685-KU-04d65acc-31cdba992
> To: <sip:+987654321@X.X.X.X:5060;user=phone>
> Via: SIP/2.0/UDP
> X.X.X.X:5060;branch=z9hG4bK-CPJI-0cdf0724-27de6173;rport=5060
> Server: Nuacom SBC
> Content-Length: 0
> 
> -----------------------------------------------------------------------------------------------------------------------------------------------
>  
> In this case parameter 'received' is missing for all responses
> generated by Kamailio.
> 
> 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?
> Thank You.
> 
> Daniel-Constantin Mierla <miconda@gmail.com>:
> 
> Hello,
> 
> 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?
> 
> Cheers,
> Daniel
> 
> On 29.11.18 18:24, Soltanici Ilie wrote:
> > Hi,
> > 
> > version: kamailio 5.1.6 (x86_64/linux) 7d1964
> > 
> > Also, i'm using  force_rport(); in routing configuration file, but
> > 'received' parameter anyway is missing :(
> > Thank You.
> > 
> > 
> > _______________________________________________
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
> -- 
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference -- www.kamailioworld.com
> Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com
> 
> 
> 
> 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- www.asipto.com


[Attachment #5 (text/html)]

<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">&lt;sip:+135792468@Y.Y.Y.Y&gt;</a>;tag=as51334407<br>
                
        To: <a class="moz-txt-link-rfc2396E" \
                href="sip:+123456789@X.X.X.X">&lt;sip:+123456789@X.X.X.X&gt;</a><br>
        Contact: <a class="moz-txt-link-rfc2396E" \
href="sip:+135792468@Y.Y.Y.Y:5060">&lt;sip:+135792468@Y.Y.Y.Y:5060&gt;</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">&lt;sip:+135792468@Y.Y.Y.Y&gt;</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">&lt;sip:+123456789@X.X.X.X&gt;</a>;tag=as51334407<br>
                
        To: <a class="moz-txt-link-rfc2396E" \
href="sip:+987654312@Y.Y.Y.Y">&lt;sip:+987654312@Y.Y.Y.Y&gt;</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">&lt;sip:Y.Y.Y.Y:5060&gt;</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">&lt;sip:+987654321@hostname.isp.com;user=phone&gt;</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">&lt;sip:Y.Y.Y.Y:5060;user=0000a839;lr;Cpkt=CPJIS;C=on-gw&gt;</a><br>
  Supported: timer<br>
        To: <a class="moz-txt-link-rfc2396E" \
href="sip:+123456789@Y.Y.Y.Y:5060;user=phone">&lt;sip:+123456789@Y.Y.Y.Y:5060;user=phone&gt;</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">&lt;sip:+987654321@hostname.isp.com;user=phone&gt;</a><br>
  P-Preferred-Identity:
        <a class="moz-txt-link-rfc2396E" \
href="sip:+987654321@hostname.isp.com;user=phone">&lt;sip:+987654321@hostname.isp.com;user=phone&gt;</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">&lt;sip:+123456789@hostname.isp.com;user=phone&gt;</a>;tag=19685-KU-04d65acc-31cdba992<br>
                
        To: <a class="moz-txt-link-rfc2396E" \
href="sip:+987654321@X.X.X.X:5060;user=phone">&lt;sip:+987654321@X.X.X.X:5060;user=phone&gt;</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">&lt;miconda@gmail.com&gt;</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
                    &gt;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>


[Attachment #6 (text/plain)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic