[OpenSIPS-Users] OpenSIPS cdr variables
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon May 18 12:01:01 EST 2020
Hi Asteriskman,
As per doc [1], the module will provide the timestamp of the 200 OK
(call answering) . If doing "cdrs", you will also get the call duration,
already computed.
For anything extra, you should use extra accounting data [2].
The accounting engine does not natively support noSQL backends, but you
can use the accounting CDR event [3] in script [4] in order to perform a
raw mongo query [5].
[1] https://opensips.org/html/docs/modules/3.0.x/acc.html#overview
[2] https://opensips.org/html/docs/modules/3.0.x/acc.html#ACC-extra-id
[3] https://opensips.org/html/docs/modules/3.0.x/acc.html#event_E_ACC_EVENT
[4] https://opensips.org/html/docs/modules/3.0.x/event_route.html#overview
[5] https://www.opensips.org/Documentation/Script-CoreFunctions-3-0#toc10
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
On 5/16/20 11:20 PM, Asteriskman wrote:
> Hello everyone,
>
> 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.
> Now my questions are
> (1) What is the best way to get those values in opensips script? Use
> $Ts at different stages and store the values in dialogue?
> (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.
> (3)Will my above approaches work when I do parallel forking too?
>
> BR,
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200518/7afceb01/attachment.html>
More information about the Users
mailing list