<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  
  
    <font face="Courier New, Courier, monospace">Hello Daniel;<br>
          source and destination is different machines and ips. they are
      sniffed by tshark and they are the same and truncated.<br>
          i tried to remove all extra addes  , include Record-Route and
      send messsage , no truncate. and then started to add headers and
      BOOM. after 5 headers , it is truncated. configuration become
      simple to testing one by one. i couldnt find way to solve it.<br>
          i tried to sniff with tcpdump and sdp body result here ,
      truncated.;<br>
      <br>
      <br>
      <br>
      Call Flows ---<br>
      <br>
      UAC1 --> Kamailio1--->kamailio2-->UAC2  --truncated sdp
      body<br>
      <br>
      UAC1 --> Kamailio2--->UAC2              --No problem<br>
      <br>
      <br>
      <br>
    </font><br>
    <font face="Courier New, Courier, monospace"><font face="Courier
        New, Courier, monospace">Destination ip tcpdump:<br>
        <br>
      </font>host-kamailio2ip.sip-tls > uac2ip.sip: SIP, length: 1472<br>
              INVITE sip:1021uac2num@uac2ip:5060 SIP/2.0<br>
              Via: SIP/2.0/UDP
      kamailio2ip:5061;branch=z9hG4bK61c7.f5edc3dbd9effe58f3d04a6b77b11f13.0<br>
              Via: SIP/2.0/UDP
kamailio1:5061;rport=5061;branch=z9hG4bK61c7.189d12e4e39ec53abb760692e8a8afee.0<br>
              Via: SIP/2.0/UDP
192.168.0.225:10251;received=uac1ip;branch=z9hG4bK702835784163333;rport=17762<br>
              From: uac1 <sip:uac1@kamailio1:5061>;tag=1848614912<br>
              To: "0uac2num" <sip:0uac2num@kamailio1;user=phone><br>
              Call-ID: 228601536217236-500684316713@uac1ip<br>
              CSeq: 2 INVITE<br>
              Contact: <sip:uac1@uac1ip:17762><br>
              Proxy-Authorization: Digest username="uac1",
      realm="kamailio1", nonce="Vwd5PlcHeBLSAh0pqSU3AvKzvNAD+QGC",
      uri="sip:0uac2num@kamailio1;user=phone",
      response="d296105a65958144cf1b60c921aef11b", algorithm=MD5<br>
              Max-Forwards: 68<br>
              Supported: replaces, join, path<br>
              User-Agent: Fanvil C58/C58P 2.2.41.13<br>
              Allow: INVITE, ACK, OPTIONS, BYE, CANCEL, REFER, NOTIFY,
      INFO, PRACK, UPDATE, MESSAGE<br>
              Content-Type: application/sdp<br>
              Content-Length: 276<br>
              P-Provider:kamailio1<br>
              P-Unique:srid-5707759b-29c4-1<br>
              atik:1231345123<br>
              atik2:1231345123<br>
              atik3:1231345123<br>
              atik4:1231345123<br>
              atik5:1231345123<br>
      <br>
              v=0<br>
              o=8503027337 2007313085 1038110647 IN IP4 192.168.0.225<br>
              s=A conversation<br>
              c=IN IP4 192.168.0.225<br>
              t=0 0<br>
              m=audio 10208 RTP/AVP 8 0 18 101<br>
              a=rtpmap:8 PCMA/8000<br>
              a=rtpmap:0 PCMU/8000<br>
              a=rtpmap:18 G729/8000<br>
              a=rtpmap:101 telephone-event/8000<br>
              a=fmtp:1[|sip]<br>
      <br>
      <br>
    </font><br>
    <div class="moz-cite-prefix">08.04.2016 12:03 tarihinde
      Daniel-Constantin Mierla-6 [via SIP Router] yazdı:<br>
    </div>
    <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' cite="mid:570773C8.6090404@gmail.com" type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      Hello,<br>
      <br>
      how did you asserted the fact that the message is truncated? Is
      the next SIP hop not retrieving it with full content? Or just you
      looked at some traces on the net, if this one, note that some
      network sniffing tools are having their limitations in what they
      display.<br>
      <br>
      Daniel<br>
      <br>
      <div class="moz-cite-prefix">On 08/04/16 09:30, ycaner wrote:<br>
      </div>
      <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em"
        cite="mid:57075DD5.9040403@netgsm.com.tr" type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        <font face="Courier New, Courier, monospace">Hello Daniel;<br>
          <br>
              in request route when invite comes, a header is added like
          P-SrcUserid. when i added new header , it truncate sdpbody.
          before t_relay(), i try to remove header, and it didnt. main
          problem is why truncates sdpbody when i added new header?<br>
          <br>
          Thanks.<br>
          <br>
          <br>
          Works fine sip messages: <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="http://pastebin.com/t7v9c2vW" target="_top" rel="nofollow" link="external">http://pastebin.com/t7v9c2vW</a><br>
          removes coming headers cfg,but i couldnt remove </font><font
          face="Courier New, Courier, monospace"><span style="color:
            rgb(51, 51, 51); font-family: Consolas, Menlo, Monaco,
            'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
            'Bitstream Vera Sans Mono', monospace, serif; font-size:
            12px; font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: 24px; orphans:
            auto; text-align: left; text-indent: 0px; text-transform:
            none; white-space: normal; widows: 1; word-spacing: 0px;
            -webkit-text-stroke-width: 0px; display: inline !important;
            float: none; background-color: rgb(255, 255, 255);">P-Provider

            and </span></font><font face="Courier New, Courier,
          monospace"><span style="color: rgb(51, 51, 51); font-family:
            Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation
            Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
            monospace, serif; font-size: 12px; font-style: normal;
            font-variant: normal; font-weight: normal; letter-spacing:
            normal; line-height: 24px; orphans: auto; text-align: left;
            text-indent: 0px; text-transform: none; white-space: normal;
            widows: 1; word-spacing: 0px; -webkit-text-stroke-width:
            0px; display: inline !important; float: none;
            background-color: rgb(255, 255, 255);"><span style="color:
              rgb(51, 51, 51); font-family: Consolas, Menlo, Monaco,
              'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono',
              'Bitstream Vera Sans Mono', monospace, serif; font-size:
              12px; font-style: normal; font-variant: normal;
              font-weight: normal; letter-spacing: normal; line-height:
              24px; orphans: auto; text-align: left; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 1;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              display: inline !important; float: none; background-color:
              rgb(255, 255, 255);">P-<font face="Courier New, Courier,
                monospace">Uniqueid</font></span></span> :<a
            moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://pastebin.com/9tB7Lx3U" target="_top" rel="nofollow" link="external"><a class="moz-txt-link-freetext" href="http://pastebin.com/9tB7Lx3U" target="_top" rel="nofollow" link="external">http://pastebin.com/9tB7Lx3U</a></a><br>
          <br>
          truncateting sip message : <a moz-do-not-send="true"
            class="moz-txt-link-freetext"
            href="http://pastebin.com/DNuuJxhM" target="_top" rel="nofollow" link="external">http://pastebin.com/DNuuJxhM</a><br>
        </font><br>
        <font face="Courier New, Courier, monospace"><font face="Courier
            New, Courier, monospace">removes coming headers cfg,but i
            couldnt remove </font><font face="Courier New, Courier,
            monospace"><span style="color: rgb(51, 51, 51); font-family:
              Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation
              Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono',
              monospace, serif; font-size: 12px; font-style: normal;
              font-variant: normal; font-weight: normal; letter-spacing:
              normal; line-height: 24px; orphans: auto; text-align:
              left; text-indent: 0px; text-transform: none; white-space:
              normal; widows: 1; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; display: inline
              !important; float: none; background-color: rgb(255, 255,
              255);">P-Provider and </span></font><font face="Courier
            New, Courier, monospace"><span style="color: rgb(51, 51,
              51); font-family: Consolas, Menlo, Monaco, 'Lucida
              Console', 'Liberation Mono', 'DejaVu Sans Mono',
              'Bitstream Vera Sans Mono', monospace, serif; font-size:
              12px; font-style: normal; font-variant: normal;
              font-weight: normal; letter-spacing: normal; line-height:
              24px; orphans: auto; text-align: left; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 1;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              display: inline !important; float: none; background-color:
              rgb(255, 255, 255);"><span style="color: rgb(51, 51, 51);
                font-family: Consolas, Menlo, Monaco, 'Lucida Console',
                'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera
                Sans Mono', monospace, serif; font-size: 12px;
                font-style: normal; font-variant: normal; font-weight:
                normal; letter-spacing: normal; line-height: 24px;
                orphans: auto; text-align: left; text-indent: 0px;
                text-transform: none; white-space: normal; widows: 1;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                display: inline !important; float: none;
                background-color: rgb(255, 255, 255);">P-<font
                  face="Courier New, Courier, monospace">Uniqueid</font></span></span> 
            and added P-SrcUserid : <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
              href="http://pastebin.com/XxhcV55v" target="_top" rel="nofollow" link="external">http://pastebin.com/XxhcV55v</a></font><br>
        </font><br>
        <div class="moz-cite-prefix">08.04.2016 09:22 tarihinde
          Daniel-Constantin Mierla-6 [via SIP Router] yazdı:<br>
        </div>
        <blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em"
          cite="mid:57074DF4.3030406@gmail.com" type="cite"> Hello, <br>
          <br>
          On 08/04/16 08:06, ycaner wrote: <br>
          > Hello; <br>
          > i think i found problem. it is textops module.Appending
          new header doesnt <br>
          > increase content length. in addition , remove_hf doesnt
          work correctly that <br>
          > doesnt remove headers. <br>
          > <br>
          the value of content lenght is about the body size, it is not
          affected <br>
          by new headers or removing old headers. <br>
          <br>
          What do you mean by remove_hf() is not working? How you try
          it? Can you <br>
          send here how you use remove_hf() in config and the incoming,
          plus the <br>
          outgoing sip message? <br>
          <br>
          Cheers, <br>
          Daniel <br>
          <br>
          -- <br>
          Daniel-Constantin Mierla <br>
          <a moz-do-not-send="true" href="http://www.asipto.com"
            target="_top" rel="nofollow" link="external">http://www.asipto.com</a><br>
          <a moz-do-not-send="true"
            href="http://twitter.com/#%21/miconda" target="_top" rel="nofollow" link="external">http://twitter.com/#!/miconda</a> -


          <a moz-do-not-send="true"
            href="http://www.linkedin.com/in/miconda" target="_top" rel="nofollow" link="external">http://www.linkedin.com/in/miconda</a><br>
          Kamailio World Conference, Berlin, May 18-20, 2016 - <a
            moz-do-not-send="true" class="moz-txt-link-freetext"
            href="http://www.kamailioworld.com" target="_top" rel="nofollow" link="external"><a class="moz-txt-link-freetext" href="http://www.kamailioworld.com" target="_top" rel="nofollow" link="external">http://www.kamailioworld.com</a></a><br>
          <br>
          <br>
          _______________________________________________ <br>
          SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
          mailing list <br>
          <a moz-do-not-send="true"
            href="/user/SendEmail.jtp?type=node&node=147338&i=0"
            target="_top" rel="nofollow" link="external">[hidden email]</a>
          <br>
          <a moz-do-not-send="true"
            href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
            target="_top" rel="nofollow" link="external">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
          <br>
          <br>
          <hr color="#cccccc" noshade="noshade" size="1">
          <div style="color:#444; font: 12px
            tahoma,geneva,helvetica,arial,sans-serif;">
            <div style="font-weight:bold">If you reply to this email,
              your message will be added to the discussion below:</div>
            <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147338.html"
              target="_top" rel="nofollow" link="external">http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147338.html</a>
          </div>
          <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
            To unsubscribe from truncating sip message, <a
              moz-do-not-send="true" href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
            <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
        </blockquote>
        <br>
        <div class="moz-signature">-- <br>
          <meta http-equiv="Content-Type" content="text/html;
            charset=utf-8">
          <title></title>
          <div align="left">
            <div style="width:300px;" align="left"> <a
                moz-do-not-send="true" href="http://www.netgsm.com.tr"
                target="_blank" rel="nofollow" link="external"> <img
                  moz-do-not-send="true"
src="http://sip-router.1086192.n5.nabble.com/attachment/147342/0/yasin-imza-2014.jpg"
                  alt"netgsm"="" border="0"> </a> </div>
          </div>
        </div>
        <br>
        <hr align="left" width="300"> View this message in context: <a
          moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147342.html"
          target="_top" rel="nofollow" link="external">Re: truncating
          sip message</a><br>
        Sent from the <a moz-do-not-send="true"
          href="http://sip-router.1086192.n5.nabble.com/Users-f3.html"
          target="_top" rel="nofollow" link="external">Users mailing
          list archive</a> at Nabble.com.<br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="/user/SendEmail.jtp?type=node&node=147343&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_top" rel="nofollow" link="external">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com" target="_top" rel="nofollow" link="external">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda" target="_top" rel="nofollow" link="external">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda" target="_top" rel="nofollow" link="external">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kamailioworld.com" target="_top" rel="nofollow" link="external">http://www.kamailioworld.com</a></pre>
      <br>
      _______________________________________________
      <br>
      SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
      list
      <br>
      <a moz-do-not-send="true"
        href="/user/SendEmail.jtp?type=node&node=147343&i=1"
        target="_top" rel="nofollow" link="external">[hidden email]</a>
      <br>
      <a moz-do-not-send="true"
        href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
        target="_top" rel="nofollow" link="external">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
      <br>
      <br>
      <hr color="#cccccc" noshade="noshade" size="1">
      <div style="color:#444; font: 12px
        tahoma,geneva,helvetica,arial,sans-serif;">
        <div style="font-weight:bold">If you reply to this email, your
          message will be added to the discussion below:</div>
        <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147343.html" target="_top" rel="nofollow" link="external">http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147343.html</a>
      </div>
      <div style="color:#666; font: 11px
tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        To unsubscribe from truncating sip message, <a
          moz-do-not-send="true"
href="" target="_top" rel="nofollow" link="external">click
          here</a>.<br>
        <a moz-do-not-send="true"
href="http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a> </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title></title>
      <div align="left">
        <div style="width:300px;" align="left">
          <a href="http://www.netgsm.com.tr" target="_blank" rel="nofollow" link="external">
            <img src="http://sip-router.1086192.n5.nabble.com/attachment/147348/0/yasin-imza-2014.jpg"
              alt"netgsm"="" border="0">
          </a>
        </div>
      </div>
    </div>
  



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://sip-router.1086192.n5.nabble.com/truncating-sip-message-tp147332p147348.html">Re: truncating sip message</a><br/>
Sent from the <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html">Users mailing list archive</a> at Nabble.com.<br/>