[SR-Users] append_hf to reply generated by kamailio
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Oct 3 13:37:25 CEST 2013
Use append_to_reply(txt) before sl_send_reply():
http://kamailio.org/docs/modules/4.1.x/modules/textops.html#idp17040608
regards
Klaus
On 03.10.2013 11:38, Grant Bagdasarian wrote:
> 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
More information about the sr-users
mailing list