Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-04 Thread Vlad Paiu
Hello Ryan, In your case, as a temporary solution, you'd better use cachedb_local , as it would be much faster compared to get_dialog_info(). Regards Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 05/03/2012 07:57 PM, Ryan Bullock wrote: Thanks for the info Razvan.

Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-04 Thread Ryan Bullock
I need these values to survive an opensips restart (we have dialog persistence to db for failover), so that rules out the cachedb_local. How slow is get_dialog_info() (I am going to guess it depends on the number of active dialogs)? Would a call to cachedb_memcached still be faster? Regards,

Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-03 Thread Ryan Bullock
Thanks for the info Razvan. Looks like I may be able to use get_dialog_info() as well to get what I need before calling loose_route. On Wed, May 2, 2012 at 3:58 AM, Razvan Crainea raz...@opensips.org wrote: Hi, Ryan! Unfortunately calling loose_route twice won't do the trick. You'll somehow

Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-02 Thread Razvan Crainea
Hi, Ryan! Unfortunately calling loose_route twice won't do the trick. You'll somehow have to make sure that all AVPs are populated before calling loose_route the first time. My suggestion is to use CacheDB to keep info between INVITE and BYE and fetch the info before loose_route. Regards,

Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-01 Thread Razvan Crainea
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'

Re: [OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-05-01 Thread Ryan Bullock
Thanks for the response. I have not tried setting them before loose_route(). I guess my example is bad, because I need to access some dialog values before I can set the acc variables, and my understanding is that I cannot access dlg variables until I call loose_route (or match_dialog). Is their

[OpenSIPS-Users] Acc - Can't get db_extra_bye to work

2012-04-28 Thread Ryan Bullock
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