<div dir="auto"><br></div><div dir="auto">Check the documentation and adjust your config accordingly:</div><div dir="auto"><div><a href="http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#acc.p.detect_direction">http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#acc.p.detect_direction</a></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)"><br></span></div><div dir="auto"><span style="border-color:rgb(0,0,0);color:rgb(0,0,0)">modparam("acc", "detect_direction", 1)</span><br></div><div dir="auto"><br></div><div dir="auto">In your config is set to 0.</div><div dir="auto"><br></div>Regards,</div><div dir="auto">Ovidiu Sas</div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Wed, Feb 9, 2022 at 08:01 Ahmed Fouad <<a href="mailto:afouad@gmail.com">afouad@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div>Hi,</div><div><br></div><div>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 <br></div><div><br></div><div>ACC table<br></div><div>+-----+--------+--------------------------------------+---------------------+---------------+---------------------------+--------------+--------------+--------------------------------------+<br>| id  | method | callid                               | time                | src_ip        | src_domain                | src_user     | dst_ouser    | dst_domain                           |<br>+-----+--------+--------------------------------------+---------------------+---------------+---------------------------+--------------+--------------+--------------------------------------+<br>| 216 | BYE    | 81fa79a0-3deb-47b6-80ab-831a78a5d46e | 2022-02-09 06:57:51 | x.x.x.x  | <a href="http://domain.com" target="_blank">domain.com</a>       | 
DST_CLID

 | 
SRC_CLID

 | <a href="http://domain.com" target="_blank">domain.com</a>                  |<br>| 215 | INVITE | 81fa79a0-3deb-47b6-80ab-831a78a5d46e | 2022-02-09 06:55:17 | x.x.x.x  | <a href="http://domain.com" target="_blank">domain.com</a>              | SRC_CLID   | DST_CLID | <a href="http://dst_domain.com" target="_blank">dst_domain.com</a>            |<br></div><div><br></div><div>The INVITE is the correct one with SRCIP x.x.x.x and <a href="http://domain.com" target="_blank">domain.com</a> but the BYE reversed the order since the the DST_CLID who sent the BYE so it's now logged as the source <br></div><div><br></div><div>and the final CDR log looks like <br></div><div><br></div><div>+--------+--------------+---------------------------+--------------+--------------------------------------+---------------------+---------------------+----------+-----+-------+--------+-------+---------+<br>| cdr_id | src_username | src_domain                | dst_username | dst_domain                           | call_start_time     | call_end_time       <br>+--------+--------------+---------------------------+--------------+--------------------------------------+---------------------+---------------------+----------+-----+-------+--------+-------+---------+</div><div>|    195 | 
DST_CLID

 | <a href="http://domain.com" target="_blank">domain.com</a>       | 
SRC_CLID

 | <a href="http://domain.com" target="_blank">domain.com</a>                  | 2022-02-09 06:55:12 | 2022-02-09 06:57:51 |</div><div><br></div><div>the CDR as shown is reversed regarding the source/dst username <br></div><div><br></div><div>I tried to enable the direction ACC direction flag but didn't help and here is my current paramters</div><div><br></div><div>modparam("acc", "early_media", 0)<br>modparam("acc", "report_ack", 0)<br>modparam("acc", "report_cancels", 0)<br>modparam("acc", "detect_direction", 0)<br>modparam("acc", "log_flag", FLT_ACC)<br>modparam("acc", "log_missed_flag", FLT_ACCMISSED)<br>modparam("acc", "cdr_enable", 1)<br>modparam("acc", "cdrs_table", "cdrs")</div><div><br></div><div>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 ?<br></div><div></div></div></div><br></div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">VoIP Embedded, Inc.<br><a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a></div>