if($hdr(Diversion)!=null)
{
avp_delete("$avp(s:src_user_reply)");
$avp(s:src_user_reply) = $hdr(Diversion);
xlog("Client call forwarding to $avp(s:src_user_reply)\n ");
}
Hi Ruchir,
You may try the following approach:
1) in onreply_route, if 3xx, store the info from the reply in an AVP (be sure an enable onreply_avp_mode - http://www.openser.org/docs/modules/1.3.x/tm.html#AEN313)
2) in failure route, if the 3xx was selected as final response, use the AVP for extra accouting.
regards,
Bogdan
Ruchir wrote:
I'm using uac_redirect module to handle redirect and accounting from openser. Redirect works fine so as cdr but I'm not getting how to write redirect reason in cdr. I didn't find any way to find and store redirect reason(call forward, busy, no answer) in CDR. Does anyone know how to do it?------------------------------------------------------------------------