[OpenSIPS-Users] multi-leg accounting in case of redirect

Ruchir ruchir.lists at gmail.com
Thu Aug 21 08:06:50 CEST 2008


The last mail bounced back because of size so I truncated older
conversations.

On Thu, Aug 21, 2008 at 11:32 AM, Ruchir <ruchir.lists at gmail.com> wrote:

> I'm populating it from onreply route. Below is my onreply route.
> 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 ");
>         avp_subst("$avp(s:src_user_reply)",
> "/(.*)<sip:(.*)@(.*)>;reason=(.*)/\4/");
>         $avp(s:src) = $rU;
>         switch($avp(s:src_user_reply))
>         {
>             case "unconditional":
>                 $avp(s:call_type) = "cwfd";
>                 break;
>             case "user-busy":
>                 $avp(s:call_type) = "cwfdbusy";
>                 break;
>             case "no-answer":
>                 $avp(s:call_type) = "cwfdnoanswer";
>                 break;
>             default:
>                 log("no forwarding\n");
>         }
>         xlog("FORWARDING REASON: $avp(s:call_type) \n ");
>
>
>     }
>
> On Tue, Aug 19, 2008 at 5:49 PM, Bogdan-Andrei Iancu <
> bogdan at voice-system.ro> wrote:
>
>> Hi Ruchir,
>>
>> I see in failure route you are using route[1] to do the job if a redirect
>> happens. How exactly are you populating in the second set of caller/callee
>> in route[1] ?
>>
>> Regards,
>> Bogdan
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20080821/a2637bf8/attachment.htm 


More information about the Users mailing list