[SR-Users] Selectively enable / disable cdrs using acc module

M S shaheryarkh at gmail.com
Mon Jul 23 09:21:51 CEST 2018


I have tested it. It does not work. It only stops sip transaction
accounting but not the cdrs.

I think i have to add support in native code for dialog level flag or
variable to allow the customization of cdrs...humm, lets see.

Thank you.
On Sat, 21 Jul 2018 at 17:40, M S <shaheryarkh at gmail.com> wrote:

> Ok, let me try and get back to you.
>
> Thank you.
>
>
> On Sat, 21 Jul 2018 at 16:10, Sergiu Pojoga <pojogas at gmail.com> wrote:
>
>> I suppose it depends how one generates CDRs, directly from Kamailio or
>> using an external process.
>>
>> Still, not setting the acc log_flag should result in no cdrs. Why don't
>> you give it a try.
>>
>> On Sat, Jul 21, 2018 at 2:16 AM M S <shaheryarkh at gmail.com> wrote:
>>
>>> Humm, isn’t acc log_flag is for transaction logging, rather then cdrs?
>>>
>>> For cdrs, the acc module has just one relevant module parameter, that is
>>> cdr_enable which enables / disables cdrs for ALL calls.
>>> On Sat, 21 Jul 2018 at 00:01, Sergiu Pojoga <pojogas at gmail.com> wrote:
>>>
>>>> Assuming your acc log_flag is set to FLT_ACC, it should be as simple as
>>>> not setting or resetting the FLT_ACC flag, depending on the script logic.
>>>>
>>>> You will probably need to do that for both INVITEs and BYEs
>>>>
>>>>
>>>> On Fri, Jul 20, 2018 at 2:48 PM M S <shaheryarkh at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have a kamailio v5.0 setup where cdrs are enabled using acc module.
>>>>> Is there a way to enable / disable cdrs on per call basis in kamailio
>>>>> script? For example i want to allow cdrs only for offnet calls and disable
>>>>> them for onnet calls?
>>>>>
>>>>> May be a dialog flag configurable in module parameters to signal acc
>>>>> module whether or not to generate cdr for current dialog at the end of call?
>>>>>
>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180723/d5ac4fde/attachment.html>


More information about the sr-users mailing list