<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>