<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">Hi,<br><br>In which route did you try append_hf ?<br>&quot;event_route[tm:local-request]&quot; 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 href="mailto:vitalik.voip@gmail.com" target="_blank">vitalik.voip@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have Kamailio connected to PSTN gateway.<br>
<br>
Sometimes gateway replies with &quot;503 temporary unavailable&quot;. PSTN gateway adds a &quot;reason&quot; header with ISUP code.<br>
But according to RFC <a href="tel:3261" value="+333261" target="_blank">3261</a> kamailio doesn&#39;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&#39;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>
    Vitaliy Aleksandrov.<br>
<br>
<br>
______________________________<u></u>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br></div></div>