ladendirekt / pjsip4net

A wrapper library exposing the pjsip library to the .NET world in a OO-friendly way.
71 stars 42 forks source link

Getting call ID #85

Closed bkraut closed 6 years ago

bkraut commented 6 years ago

Hi,

I'd like to get CDR uniqueid from the current call. I tried with call.Id (ICall), but the Id is 0. Is there any way to get the CDR id?

Best, Bojan

siniypin commented 6 years ago

Hi, you can query a dialog call id from Call. DialogId https://github.com/siniypin/pjsip4net/blob/master/pjsip4net/Calls/Call.cs#L118

bkraut commented 6 years ago

Hi,

Thank you. But as I've seen the DialogId is DialogId = "daeab28b1aa849d993a2c8a12b7b461a" But in CDR table I het uniqueid like 1489580474.6

Best, Bojan

siniypin commented 6 years ago

You're right, my mistake. The CDR table you refer to is your exchange server's internal table, and frankly, I'm not even sure this information gets transferred to a client ever.