<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    I have tried to use "append_hf" in onreply_route.<br>
    How can i use it in local-request ? According to documentation it
    can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE,
    BRANCH_ROUTE.<br>
    <br>
    Sorry forgot to mention that kamailio version is 3.0.2, but i have
    looked at t_repy.c (tm module from 3.2) and didn't find any changes
    which can help me.<br>
    <br>
    <blockquote
cite="mid:CAA30pc4BcFFmBpOWj7vaCh3F-R_DsyQB4opbe2t2sP-SjhTncw@mail.gmail.com"
      type="cite">
      <div dir="ltr"><font color="#3366ff"><font><font
              face="tahoma,sans-serif">Hi,<br>
              <br>
              In which route did you try append_hf ?<br>
              "event_route[tm:local-request]" is the route executed for
              locally generated requests, I think you should be trying
              to modify it there.<br clear="all">
            </font></font></font>
        <div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br>
          </font>
          <div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div>
        </div>
        <br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Thu, Apr 26, 2012 at 16:10,
            Vitaliy Aleksandrov <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:vitalik.voip@gmail.com" target="_blank">vitalik.voip@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;">Hi all,<br>
              <br>
              I have Kamailio connected to PSTN gateway.<br>
              <br>
              Sometimes gateway replies with "503 temporary
              unavailable". PSTN gateway adds a "reason" header with
              ISUP code.<br>
              But according to RFC <a moz-do-not-send="true"
                href="tel:3261" value="+333261" target="_blank">3261</a>
              kamailio doesn't forward 503 replies transparently. When
              503 reply is received Kamailio replaces 503 with a 500
              which is created from original request
              (build_res_buf_from_sip_req).<br>
              I have tried append_hf from textops module, but it's not
              working with a locally generated replies.<br>
              <br>
              How can i copy Reason header from 503 to 500 ?<br>
              <br>
              <br>
              I will appreciate your help with this situation.<br>
              <br>
              Best regards,<br>
              &nbsp; &nbsp;Vitaliy Aleksandrov.<br>
              <br>
              <br>
              _______________________________________________<br>
              SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
              mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:sr-users@lists.sip-router.org"
                target="_blank">sr-users@lists.sip-router.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users"
                target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
  </body>
</html>