[OpenSIPS-Users] Acc - Can't get db_extra_bye to work
Razvan Crainea
razvan at opensips.org
Tue May 1 10:14:17 CEST 2012
Hi, Ryan!
Have you tried to set the avp values before 'loose_route' call?
Regards,
--
Răzvan Crainea
OpenSIPS Developer
http://www.opensips-solutions.com
On 04/28/2012 06:28 PM, Ryan Bullock wrote:
> Without any success I have been trying to get some values accounted
> using the 'db_extra_bye' parameter of the acc module. However,
> opensips still appears to always account the values as if they were
> taken from the original INVITE transaction and not the BYE.
>
> I have cdr accounting enabled, as well as several db_extra values.
>
> When a BYE is received I update a few avp variables. When I xlog these
> variables I can see that they are properly set, however opensips
> inserts empty values into the database. If I set these variables to
> something in the original INVITE, then that value will be accounted
> instead, but still not the updated value from the BYE.
>
> Has anyone been able to get this to work? Am I missing something obvious?
>
> Example Config:
>
> ....
> modparam("acc", "db_extra_bye", "call_val=$avp(call_val);
> bye_val=$avp(bye_val)")
> .....
> ......
> if (loose_route()) {
> if (is_method("BYE"))
> $avp(call_val) = "set";
> $avp(bye_val) = "set";
> }
> ................
> }
>
>
> Thanks.
>
> Regards,
>
> Ryan
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list