<div dir="ltr">Thanks but this is already configured and still the same problem.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 10, 2022 at 12:47 PM Bastian Triller <<a href="mailto:bastian.triller@gmail.com">bastian.triller@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Check if rr module is loaded before acc and rr's parameter append_from_tag is set to 1.<div dir="auto"><br></div><div dir="auto"><a href="http://www.kamailio.net/docs/modules/5.3.x/modules/rr.html#rr.p.append_fromtag_id" target="_blank">http://www.kamailio.net/docs/modules/5.3.x/modules/rr.html#rr.p.append_fromtag_id</a></div><div dir="auto"><a href="http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#idm211" target="_blank">http://www.kamailio.net/docs/modules/5.3.x/modules/acc.html#idm211</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 10, 2022, 17:29 Ahmed Fouad <<a href="mailto:afouad@gmail.com" target="_blank">afouad@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Thanks for the reply but like I mentioned I tried to enable/disable direction parameter but didn't help.
<hr style="display:inline-block;width:98%">
<div id="gmail-m_2853681884441548470m_5075107599989894970divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of Ovidiu Sas <<a href="mailto:osas@voipembedded.com" rel="noreferrer" target="_blank">osas@voipembedded.com</a>><br>
<b>Sent:</b> Thursday, February 10, 2022 12:44:39 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> Re: [SR-Users] Fwd: CDR preserve original call direction</font>
<div> </div>
</div>
<div>
<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" rel="noreferrer" target="_blank">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 dir="auto">
<div dir="ltr">On Wed, Feb 9, 2022 at 08:01 Ahmed Fouad <<a href="mailto:afouad@gmail.com" rel="noreferrer" target="_blank">afouad@gmail.com</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><br>
<div>
<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" rel="noreferrer" target="_blank">domain.com</a> | DST_CLID | SRC_CLID |
<a href="http://domain.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">domain.com</a> | SRC_CLID | DST_CLID |
<a href="http://dst_domain.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">domain.com</a> | SRC_CLID |
<a href="http://domain.com" rel="noreferrer" 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" rel="noreferrer" 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 noreferrer" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr">VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" rel="noreferrer" target="_blank">http://www.voipembedded.com</a></div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
* <a href="mailto:sr-users@lists.kamailio.org" rel="noreferrer" 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 noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></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><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Best Regards,<br>Ahmed Fouad</div></div>