[OpenSIPS-Users] db_extra_bye values after loose_route
Răzvan Crainea
razvan at opensips.org
Wed Aug 31 10:24:33 CEST 2016
Hi, Pat!
Unfortunately there is no other way to do what you need. The idea is
that the accounting is done when you call loose_route(), and before that
you don't have the dialog - therefore you don't have the dlg_vals.
The only solution I can think of is to use local_cache, and find a way
to uniqly store the keys per dialog so that they don't overlap when you
have multiple legs.
As good news, this has been sorted out in the master branch, and will be
available starting from OpenSIPS 2.3 release.
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 08/30/2016 11:40 PM, Pat Burke wrote:
> Hello,
>
> I am trying to handle a case where the same call can be routed through
> the system (inbound call that is transferred to another phone number).
> I am trying to add values to the cdr record in the db_extra_bye
> values. Everything works if I populate the values prior to calling
> loose_route. But that doesn't work for me because am trying to use a
> dialog variable ($dlg_val(xxx)) to store/retrieve information in cache
> to calculate the duration of the call - in order to get the dialog
> values I have to call loose_route. The issue comes in because I the
> call can go through the system multiple times (up to twice) so I can't
> use the call id ($ci) to identify the call (both instances of the call
> have the same call id).
>
> Any suggestions?
>
> Regards,
> *Pat Burke*
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160831/0f61bc26/attachment.htm>
More information about the Users
mailing list