[OpenSIPS-Users] Store $DLG_dir in acc Database
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Feb 6 19:11:26 CET 2014
Hello,
If you want to add to your acc record information from the BYE time, you
need to use the db_extra_bye (versus db_extra which is for info at
INVITE time):
http://www.opensips.org/html/docs/modules/1.10.x/acc.html#id294720
So try:
modparam("acc", "db_extra_bye", "direction=$DLG_dir")
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 30.01.2014 19:04, Wilmar Campos wrote:
> Hi Razvan, Yes I have, but it have an empty value.
> I have even try to assign it to a pvar but nothing works.
>
> So far I have try this: dialog_dir=$avp(dlg_dir)")
> and dialog_dir=$DLG_dir)")
>
> Please note that I have a local route for the dialog timer:
> local_route {
> if (is_method("BYE") && $DLG_dir=="UPSTREAM") {
> acc_db_request("200 Dialog Timeout","acc_bye");
> xlog("L_ERROR", "$si $rU Dialog Timeout | $DLG_dir \n");
> }
> }
>
> In this record, the $DLG_dir value is stored correctly.
>
> Thanks,
>
>
> On Thu, Jan 30, 2014 at 4:13 AM, Ra(zvan Crainea <razvan at opensips.org
> <mailto:razvan at opensips.org>> wrote:
>
> Hi, Wilmar!
>
> Have you tried setting the $DLG_dir pvar in the db_extra? For example:
>
> modparam("acc", "db_extra", "direction=$DLG_dir")
>
> Don't forget you have to add the direction column to your database
> table, both acc and missed_calls.
>
> Best regards,
>
> Razvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 01/29/2014 09:15 PM, Wilmar Campos wrote:
>
> Hi All,
>
> Can someone please point me to the right direction on how to
> store the
> $DLG_dir into the accounting cdr?
>
> Thanks,
>
> Wilmar
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> 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/20140206/d4782ee3/attachment.htm>
More information about the Users
mailing list