Page 1 of 1

3 records when calling and 2 record when receiving

Posted: Thu Mar 02, 2017 11:07 pm
by rubinhozzz
Hello

Looking at my call history records. When I call somebody, I get 3 records. 1 In and 2 OUT. Shouldn't it be just ONE record with direction "IN"??

The same for when I'm receiving a call, I get 1 IN and 1 OUT.

How does it work?

Thanks in advance.

Re: 3 records when calling and 2 record when receiving

Posted: Tue Mar 07, 2017 10:06 am
by Aaron
Unlike a typical VoIP service the CDRs with the sipsorcery service correspond directly to the SIP transactions.

For an outgoing call (where a sipsorcery user connects to an external SIP Provider):

First CDR: user -> sipsorcery server
Second CDR: sipsorcery server -> SIP Provider

If you happen to attempt two SIP Providers in your sys.Dial command, e.g. sys.Dial("provider1&provider2") then you will get a third CDR:

First CDR: user -> sipsorcery server
Second CDR: sipsorcery server -> provider1
Third CDR: sipsorcery server -> provider2

Incoming calls are the same but reversed.