Hi List
I'm attempting to add a header to a reply message on failure.
Situation:
Registrar => Core => (dispatcher list) => Various IC
I would like to know on the registrar, which of the dispatcher groups
failed.
What I attempted sofar:
failure_route[DISPATCH_FAILURE]
{
append_to_reply("X-RR: (append reply) Final Dispatch Failure
$avp(dispgroup):$avp(trunkname)\r\n");
append_hf("X-RR: (append hf) Final Dispatch Failure
$avp(dispgroup):$avp(trunkname)\r\n");
$avp(rstatus) = t_get_status_code();
$avp(rtext) = $T_rpl($rr);
$avp(rtext) = "REMOTE REPLY: " + $T_rpl($rr);
t_send_reply("$avp(rstatus)", "$avp(rtext)");
}
I only get status text is getting through to my reply. I would much prefer to add a header
which I could then extract on the registrar. Am I missing something which could prevent
addition of a header in a reply?
Mit freundlichen Grüssen
-Benoît Panizzon-
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web
http://www.imp.ch
______________________________________________________