<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>if you are looking to remove the server header (server
      signature), that can be controlled via global parameters:</p>
    <p>  -
      <a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/cookbooks/4.4.x/core#server_header">https://www.kamailio.org/wiki/cookbooks/4.4.x/core#server_header</a></p>
    <p>Note that there is another header, User-Agent, that may be added
      by Kamailio in local generate request. There is a global parameter
      to control it as well.<br>
    </p>
    If you want more than that, can you add a bit more details, because
    CANCEL and BYE are processed differently. With which one you get
    issues?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 12/01/2017 17:00, Diego Nadares
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAP-r+ep6R+7HJ+uExPq2n+rTaY124TfrC2jNnMsMG7AN1McD+w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi List,
        <div><br>
        </div>
        <div>I'm trying to add and remove some headers in 200 canceling
          and 200 ok to BYEs with no success.</div>
        <div><br>
        </div>
        <div>I don't know in which route to add my remove_hf and
          append_hf. It seems that I can't catch it on reply either on
          request route.</div>
        <div><br>
        </div>
        <div>I tried adding it in </div>
        <div><br>
        </div>
        <div>
          <div>event_route[tm:local-response] {</div>
          <div>        xlog("L_ERR", "TM LOCAL REPONSE!");</div>
          <div>        route(MANAGE_HEADERS);</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>This is my route to manage hdrs:</div>
        <div><br>
        </div>
        <div>
          <div>route[MANAGE_HEADERS]{</div>
          <div><br>
          </div>
          <div>        xlog("L_ERR", "MANAGE HDRS !");</div>
          <div><br>
          </div>
          <div>        keep_hf("TH"); # for topoh</div>
        </div>
        <div><br>
        </div>
        <div>        append("AHDR1:asdf\r\n");</div>
        <div><br>
        </div>
        <div>        return;</div>
        <div>}</div>
        <div><br>
        </div>
        <div>I suppose SERVER HDR should be removed but:</div>
        <div><br>
        </div>
        <div>
          <div>U 2017/01/12 12:45:41.566733 <a moz-do-not-send="true"
              href="http://172.16.213.38:5060" target="_blank">172.16.213.38:5060</a>
            -> <a moz-do-not-send="true"
              href="http://172.16.50.41:5060" target="_blank">172.16.50.41:5060</a></div>
          <div>SIP/2.0 200 canceling.</div>
          <div>Via: SIP/2.0/UDP 172.16.50.41:5060;branch=<wbr>z9hG4bKgg8ekd3080braugkm700.1.</div>
          <div>CSeq: 102 CANCEL.</div>
          <div>From: <<a moz-do-not-send="true"
              href="mailto:sip%3Axx@172.16.50.41" target="_blank">sip:xx@172.16.50.41</a>>;tag=<wbr>SD7b10b01-as5ba5e269.</div>
          <div>To: <<a moz-do-not-send="true"
              href="mailto:sip%3Axxx@172.16.213.38" target="_blank">sip:xxx@172.16.213.38</a>>;tag=<wbr>4a86e96addfb27a943bc86e1872032<wbr>b6-0a8b.</div>
          <div>Call-ID: SD7b10b01-<wbr>6a7d1089793bda79481f25cf88c023<wbr>ed-c540dl1.</div>
          <div>Server: kamailio (4.4.4 (x86_64/linux)).</div>
          <div>Content-Length: 0.</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Any help will be very appreciated.<br>
        </div>
        <div><br>
        </div>
        <div>Thanks in advance!</div>
        <div><br>
        </div>
        <div>Diego</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">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 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 - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>