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;
                }

.....

}
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to