[SR-Users] Fwd: CDR preserve original call direction

Ahmed Fouad afouad at gmail.com
Thu Feb 10 19:05:33 CET 2022


Thanks but this is already configured and still the same problem.

On Thu, Feb 10, 2022 at 12:47 PM Bastian Triller <bastian.triller at gmail.com>
wrote:

> Check if rr module is loaded before acc and rr's parameter append_from_tag
> is set to 1.
>
>
> http://www.kamailio.net/docs/modules/5.3.x/modules/rr.html#rr.p.append_fromtag_id
> http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#idm211
>
> On Thu, Feb 10, 2022, 17:29 Ahmed Fouad <afouad at gmail.com> wrote:
>
>> Thanks for the reply but like I mentioned I tried to enable/disable
>> direction parameter but didn't help.
>> ------------------------------
>> *From:* sr-users <sr-users-bounces at lists.kamailio.org> on behalf of
>> Ovidiu Sas <osas at voipembedded.com>
>> *Sent:* Thursday, February 10, 2022 12:44:39 PM
>> *To:* Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
>> *Subject:* Re: [SR-Users] Fwd: CDR preserve original call direction
>>
>>
>> Check the documentation and adjust your config accordingly:
>>
>> http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#acc.p.detect_direction
>>
>> modparam("acc", "detect_direction", 1)
>>
>> In your config is set to 0.
>>
>> Regards,
>> Ovidiu Sas
>>
>> On Wed, Feb 9, 2022 at 08:01 Ahmed Fouad <afouad at gmail.com> wrote:
>>
>>
>> Hi,
>>
>> I've enabled ACC and CDR logging and it's working fine for the logging
>> but I noticed something wrong in the CDR table , the call source and
>> destinations are depending on the BYE message not the initial invite dialog
>>
>> ACC table
>>
>> +-----+--------+--------------------------------------+---------------------+---------------+---------------------------+--------------+--------------+--------------------------------------+
>> | id  | method | callid                               | time
>>    | src_ip        | src_domain                | src_user     | dst_ouser
>>  | dst_domain                           |
>>
>> +-----+--------+--------------------------------------+---------------------+---------------+---------------------------+--------------+--------------+--------------------------------------+
>> | 216 | BYE    | 81fa79a0-3deb-47b6-80ab-831a78a5d46e | 2022-02-09
>> 06:57:51 | x.x.x.x  | domain.com       |  DST_CLID |  SRC_CLID |
>> domain.com                  |
>> | 215 | INVITE | 81fa79a0-3deb-47b6-80ab-831a78a5d46e | 2022-02-09
>> 06:55:17 | x.x.x.x  | domain.com              | SRC_CLID   | DST_CLID |
>> dst_domain.com            |
>>
>> The INVITE is the correct one with SRCIP x.x.x.x and domain.com but the
>> BYE reversed the order since the the DST_CLID who sent the BYE so it's now
>> logged as the source
>>
>> and the final CDR log looks like
>>
>>
>> +--------+--------------+---------------------------+--------------+--------------------------------------+---------------------+---------------------+----------+-----+-------+--------+-------+---------+
>> | cdr_id | src_username | src_domain                | dst_username |
>> dst_domain                           | call_start_time     | call_end_time
>>
>>
>> +--------+--------------+---------------------------+--------------+--------------------------------------+---------------------+---------------------+----------+-----+-------+--------+-------+---------+
>> |    195 |  DST_CLID | domain.com       |  SRC_CLID | domain.com
>>          | 2022-02-09 06:55:12 | 2022-02-09 06:57:51 |
>>
>> the CDR as shown is reversed regarding the source/dst username
>>
>> I tried to enable the direction ACC direction flag but didn't help and
>> here is my current paramters
>>
>> modparam("acc", "early_media", 0)
>> modparam("acc", "report_ack", 0)
>> modparam("acc", "report_cancels", 0)
>> modparam("acc", "detect_direction", 0)
>> modparam("acc", "log_flag", FLT_ACC)
>> modparam("acc", "log_missed_flag", FLT_ACCMISSED)
>> modparam("acc", "cdr_enable", 1)
>> modparam("acc", "cdrs_table", "cdrs")
>>
>> Can you please advise how to configure ACC/CDR to log the CDR with the
>> correct initial INVITE call flow regardless of the BYE direction ?
>>
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * sr-users at lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> VoIP Embedded, Inc.
>> http://www.voipembedded.com
>> __________________________________________________________
>> Kamailio - Users Mailing List - Non Commercial Discussions
>>   * sr-users at lists.kamailio.org
>> Important: keep the mailing list in the recipients, do not reply only to
>> the sender!
>> Edit mailing list options or unsubscribe:
>>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>


-- 
Best Regards,
Ahmed Fouad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220210/1550b8d0/attachment.htm>


More information about the sr-users mailing list