[SR-Users] Copy reason field from 503 to 500.

Reda Aouad reda.aouad at gmail.com
Thu Apr 26 16:13:33 CEST 2012


Hi,

In which route did you try append_hf ?
"event_route[tm:local-request]" is the route executed for locally generated
requests, I think you should be trying to modify it there.

Reda



On Thu, Apr 26, 2012 at 16:10, Vitaliy Aleksandrov
<vitalik.voip at gmail.com>wrote:

> Hi all,
>
> I have Kamailio connected to PSTN gateway.
>
> Sometimes gateway replies with "503 temporary unavailable". PSTN gateway
> adds a "reason" header with ISUP code.
> But according to RFC 3261 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).
> I have tried append_hf from textops module, but it's not working with a
> locally generated replies.
>
> How can i copy Reason header from 503 to 500 ?
>
>
> I will appreciate your help with this situation.
>
> Best regards,
>    Vitaliy Aleksandrov.
>
>
> ______________________________**_________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users<http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120426/61a00c87/attachment.htm>


More information about the sr-users mailing list