<HTML><BODY>Hi Daniel,<br><br>Thank You for the explanation - but unfortunately, our ISP still insisting to send them back received parameter into VIA header when replying with 100.<br><br>I would like to do these changes with this ISP only. So, I tried:<br><br><p>if ($si=="10.1.1.100") {<br>send_reply("100", "Trying (Code:$cfg(line))");<br>xlogl("L_INFO", "Reply to ISP\n");<br>}</p><br>Now, the problem is how can i edit this reply before it will go outside kamailio?<br>I need something like "append_to_reply();" function - but to be able to modify existing headers by using textops module. (subst_hf)<br><br>Thank You.<br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;"><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_15435719890000000353_BODY"><div class="class_1547072315">
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 sip:<a href="mailto:+123456789@X.X.X.X">+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: "<span class="js-phone-number">+135792468</span>" <sip:<a href="mailto:+135792468@Y.Y.Y.Y">+135792468@Y.Y.Y.Y</a>>;tag=as51334407<br>To: <sip:<a href="mailto:+123456789@X.X.X.X">+123456789@X.X.X.X</a>><br>Contact: <sip:+135792468@Y.Y.Y.Y:5060><br>Call-ID: 47e864f029a7b5d5700944aa4035e50b@Y.Y.Y.Y:5060<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: <sip:<a href="mailto:+135792468@Y.Y.Y.Y">+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: "<span class="js-phone-number">+123456789</span>" <sip:<a href="mailto:+123456789@X.X.X.X">+123456789@X.X.X.X</a>>;tag=as51334407<br>To: <sip:<a href="mailto:+987654312@Y.Y.Y.Y">+987654312@Y.Y.Y.Y</a>><br>Call-ID: 47e864f029a7b5d5700944aa4035e50b@X.X.X.X:5060<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 sip:+123456789@X.X.X.X:5060;transport=udp;user=phone SIP/2.0<br>Call-ID: <a href="mailto:19685-LC-04d65acb-182279a33@hostname.isp.com">19685-LC-04d65acb-182279a33@hostname.isp.com</a><br>Contact: <sip:Y.Y.Y.Y:5060><br>Content-Type: application/sdp<br>CSeq: 60513704 INVITE<br>From: "<span class="js-phone-number">+987654321</span>" <sip:+987654321@hostname.isp.com;user=phone>;tag=19685-KU-04d65acc-31cdba992<br>Max-Forwards: 69<br>Record-Route: <sip:Y.Y.Y.Y:5060;user=0000a839;lr;Cpkt=CPJIS;C=on-gw><br>Supported: timer<br>To: <sip:+123456789@Y.Y.Y.Y:5060;user=phone><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"<sip:+987654321@hostname.isp.com;user=phone><br>P-Preferred-Identity: <sip:+987654321@hostname.isp.com;user=phone><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 href="mailto:19685-LC-04d65acb-182279a33@hostname.isp.com">19685-LC-04d65acb-182279a33@hostname.isp.com</a><br>CSeq: 60513704 INVITE<br>From: "<span class="js-phone-number">+123456789</span>" <sip:+123456789@hostname.isp.com;user=phone>;tag=19685-KU-04d65acc-31cdba992<br>To: <sip:+987654321@X.X.X.X:5060;user=phone><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 href="mailto:miconda@gmail.com">miconda@gmail.com</a>>:<br>
        <br>
        <div id="">






<div class="js-helper_mailru_css_attribute_postfix js-readmsg-msg_mailru_css_attribute_postfix">
        <style></style>
        <div>
                
                
            <div id="style_15435623580000000365_BODY_mailru_css_attribute_postfix"><div class="class_1543588327_mailru_css_attribute_postfix">
  
    
  
  
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Hello,</div>
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
    </div>
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_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_mailru_css_attribute_postfix"><br>
    </div>
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix">Cheers,<br>
      Daniel</div>
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_mailru_css_attribute_postfix"><br>
    </div>
    <div class="moz-cite-prefix_mailru_css_attribute_postfix_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_mailru_css_attribute_postfix"></fieldset>
      <pre class="moz-quote-pre_mailru_css_attribute_postfix_mailru_css_attribute_postfix" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://e.mail.ru/compose/?mailto=mailto%3asr%2dusers@lists.kamailio.org" target="_blank" rel=" noopener noreferrer">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank" rel=" noopener noreferrer">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature_mailru_css_attribute_postfix_mailru_css_attribute_postfix" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.asipto.com" target="_blank" rel=" noopener noreferrer">www.asipto.com</a>
<a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.twitter.com/miconda" target="_blank" rel=" noopener noreferrer">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.linkedin.com/in/miconda" target="_blank" rel=" noopener noreferrer">www.linkedin.com/in/miconda</a>
Kamailio World Conference -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.kamailioworld.com" target="_blank" rel=" noopener noreferrer">www.kamailioworld.com</a>
Kamailio Advanced Training, Nov 12-14, 2018, in Berlin -- <a class="moz-txt-link-abbreviated_mailru_css_attribute_postfix_mailru_css_attribute_postfix" href="http://www.asipto.com" target="_blank" rel=" noopener noreferrer">www.asipto.com</a></pre>
  

</div></div>
            
        
                
        </div>

        
</div>


</div>
</blockquote> <div><br></div><div><br></div><div><br></div></div></div></div></div></div></blockquote></BODY></HTML>