<div dir="ltr"><div><div>Hi Developers,<br><br></div>I need help to log the call flow in a file. Our purpose to have only one entry per call in a file based system at the end of the call.<br><br></div><div>For example:<br><br></div><div>CALL-ID               TO                    FROM                    START TIME                      END TIME  ....        MISSED    COMPLETED<br></div><div>    1            <a href="mailto:sip%3A1@abc.com">sip:1@abc.com</a>    <a href="mailto:sip%3A100@abc.com">sip:100@abc.com</a>      2017-07-28 18:29:14          2017-07-28 18:29:14       yes               no<br></div><div>    2            <a href="mailto:sip%3A2@abc.com">sip:2@abc.com</a>    <a href="mailto:sip%3A100@abc.com">sip:100@abc.com</a>      2017-07-28 18:29:14          2017-07-28 18:29:14       no                 yes <br>    3            <a href="mailto:sip%3A3@abc.com">sip:3@abc.com</a>    <a href="mailto:sip%3A100@abc.com">sip:100@abc.com</a>      2017-07-28 18:29:14          2017-07-28 18:29:14       no                 yes<br><br></div><div>I have gone through various trace module, but its appear that all module record the call flow/logs in database. ie siptrace,acc,dialoge module.<br></div><div>Could you please help me to log the information. one of the approach I have thought to store all the variable in AVP variables in request_route,failure_route,on_reply route..etc <br><br></div><div>For ex.<br></div><div>$avp(from)=$fu;<br>$avp(to)=$tu;<br></div><div>$avp(starttime)=startime<br></div><div>$avp(endtime)=endtime<br></div><div>etc...<br><br></div><div>//log at call end in a seperate logs file <br></div><div>and xlog("LOG_INFO",$avp(from),,$avp(to),$avp(starttime),$avp(endtime))<br><br></div><div>Please let know if this approach is correct or any other way to achieve this,<br></div><div><br></div><div>Thanks,<br></div><div>Amit<br></div><div></div><div><br></div></div>