<div dir="ltr">Hello everyone,<div><br></div><div>I basically know Asterisk and SIP but new to OpenSIPS. I am working on a call flow where I need to receive a call from the provider and send it to an endpoint or a trunk and store Call start timestamp(INVITE), connect timestamp(200 OK) and end timestamp(BYE) in MongoDB. </div><div>Now my questions are </div><div>(1) What is the best way to get those values in opensips script? Use $Ts at different stages and store the values in dialogue? </div><div>(2)What is the best way to perform insert into MongoDB? I see there is a cachedb_mongodb module and you can use cache_raw_query. </div><div>(3)Will my above approaches work when I do parallel forking too? </div><div><br></div><div>BR,</div><div><br></div></div>