Hello,

using xlog() and relying on syslog for writing is a good solution.

Is the CALL-ID in your example an auto-increment or should be the value
of Call-ID SIP header?

Cheers,
Daniel


On 31.07.17 18:56, amit Kumar wrote:
> Hi Developers,
>
> 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.
>
> For example:
>
> CALL-ID               TO                    FROM                   
> START TIME                      END TIME  ....        MISSED    COMPLETED
>     1            sip:[email protected] <mailto:sip%[email protected]>   
> sip:[email protected] <mailto:sip%[email protected]>      2017-07-28
> 18:29:14          2017-07-28 18:29:14       yes               no
>     2            sip:[email protected] <mailto:sip%[email protected]>   
> sip:[email protected] <mailto:sip%[email protected]>      2017-07-28
> 18:29:14          2017-07-28 18:29:14       no                 yes
>     3            sip:[email protected] <mailto:sip%[email protected]>   
> sip:[email protected] <mailto:sip%[email protected]>      2017-07-28
> 18:29:14          2017-07-28 18:29:14       no                 yes
>
> 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.
> 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
>
> For ex.
> $avp(from)=$fu;
> $avp(to)=$tu;
> $avp(starttime)=startime
> $avp(endtime)=endtime
> etc...
>
> //log at call end in a seperate logs file
> and xlog("LOG_INFO",$avp(from),,$avp(to),$avp(starttime),$avp(endtime))
>
> Please let know if this approach is correct or any other way to
> achieve this,
>
> Thanks,
> Amit
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to