[SR-Users] append_hf to reply generated by kamailio

Grant Bagdasarian GB at cm.nl
Thu Oct 3 11:38:59 CEST 2013


Hello,

Is it possible to append a new header to a reply generated by Kamailio and also have it present when duplicating the message to a capture server?
At the moment the 603 Reply is duplicated to my capture server, but I don't know how to append a new header, because the kamailio script stops executing after exit is called.
>From what I understood: onreply_route is only executed when receiving replies.

Is there a reply_route which is executed for all replies, including the ones generated by kamailio itself?

For instance inside this code block:

request_route {

.....

                if($var(routing_query_result) =~ "DESTINATION_NOT_ALLOWED") {
                                xlog("L_INFO", "[R-CORE-INCOMING-INVITE:$ci] !>" "Rejecting the call, because the destination is not allowed\r\n");
                                sl_send_reply("603", "Decline");
                                exit;
                }

.....

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20131003/e15ade31/attachment.html>


More information about the sr-users mailing list