[OpenSIPS-Users] acconting messages

Ovidiu Sas osas at voipembedded.com
Wed Nov 17 06:22:39 CET 2010


It seems that you will need to stick to manual accounting.

Regards,
Ovidiu Sas

On Tue, Nov 16, 2010 at 1:02 AM, Denis Putyato <denis7979 at mail.ru> wrote:
> Thank you for reply
>
> First variant is not quite flexible for me.
> The second variant more interesting, but it doesn't work
>
> A piece of code from opensips.cfg:
>
> modparam("tm", "fr_timer", 10)
> modparam("tm", "wt_timer", 30)
> modparam("tm", "fr_inv_timer_avp", "$avp(i:25)")
> modparam("tm", "T1_timer", 1000)
> ...
> modparam("acc", "db_flag", 15)
> modparam("acc", "db_missed_flag", 16)
> modparam("acc", "failed_transaction_flag", 17)
> modparam("acc", "db_table_acc", "acc")
> modparam("acc", "db_table_missed_calls", "acc")
> ...
>
>     if ($avp(i:200)==1) {
>     t_newtran();
>     setflag(16);
>     setflag(17);
>     t_flush_flags();
>     t_reply("403", "Forbidden_gw");
>     exit;
>     }
>
> And after this there is no records in ACC table.
> May be I do something wrong?
>
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Ovidiu Sas
> Sent: Tuesday, November 16, 2010 8:40 AM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] acconting messages
>
> You can do manual accounting:
> http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id294003
>
> Or, you can create a new transaction, flag it for acc and then
> terminate it t_reply:
> http://www.opensips.org/html/docs/modules/1.6.x/tm.html#id293687
>
>
> Regards,
> Ovidiu Sas
>
> On Tue, Nov 16, 2010 at 12:30 AM, Denis Putyato <denis7979 at mail.ru> wrote:
>> Hello!
>>
>> Is there any chancy for accounting calls which were finished by sending
>> failure code using send_reply() func.?
>>
>> Thank you
>
> _______________________________________________
> Users mailing list
> 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
>



More information about the Users mailing list