[Spce-user] Incoming call CDR

Matthias Hohl matthias.hohl at telematica.at
Mon Apr 28 11:31:08 EDT 2025


Hey Vincent,

yes you are sure, I have forgotten about on-net calls.

There you need to look bit deeper and take <source_customer_cost> and <dest_customer_cost> from the same CDR line to bill a call from subscriber A to subscriber B.

But basically the identification of inbound and outbound is true. Just the on-net calls need to be fished out with another logic of source/dest customer costs.

 

 

Von: Vincent Dubois <vdubois at b2b2c.com> 
Gesendet: Montag, 28. April 2025 14:38
An: 'Danny Cappellari' <cappellari at connectlife.it>; spce-user at lists.sipwise.com
Betreff: Re: [Spce-user] Incoming call CDR

 

Not exactly true, what he suggested would make you miss some inbound calls. You can not separate in and out CDR for the simple reason that a CDR could be both.

 

If one of your customers could call another one of your customers, then the same CDR will be outgoing for one customer and incoming for the other customer.

 

You should have a system that checks every CDR, and bill the source_user and/or destination_user(_in) depending on your rules.

If you need to separate them, you will have to make duplicates sometimes.

 

Vincent Dubois | Analyste programmeur

B2B2C

514-908-5420

 

From: Matthias Hohl <matthias.hohl at telematica.at <mailto:matthias.hohl at telematica.at> > 
Sent: April 28, 2025 6:14 AM
To: 'Danny Cappellari' <cappellari at connectlife.it <mailto:cappellari at connectlife.it> >; spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com> 
Subject: Re: [Spce-user] Incoming call CDR

 

	
You don't often get email from matthias.hohl at telematica.at <mailto:matthias.hohl at telematica.at> . Learn why this is important <https://aka.ms/LearnAboutSenderIdentification>  

	

CAUTION : External Mail. Do not click on links or open attachments you do not trust.
ATTENTION : Courriel externe. Ne cliquez pas sur des liens et n'ouvrez pas de pièces jointes auxquels vous ne faites pas confiance.

 

You can easily idenfity a incoming and outcoming call by the tables in the CDR file.
so there is basically no separation needed.

 

 

OUTBOUND:

               IF 

                              "<source_account_id>" IS NOT "0" 

 

 

INBOUND:

               IF

                              "<source_account_id>" IS "0" 

               AND

                              "<destination_customer_cost>" IS NOT "0"

                              OR

                                            "<destination_customer_cost>" IS "0"

                              AND

                                            "destination_customer_free_time>" IS NOT "0"

 

 

 

 

Von: Danny Cappellari via Spce-user <spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com> > 
Gesendet: Montag, 28. April 2025 10:57
An: spce-user at lists.sipwise.com <mailto:spce-user at lists.sipwise.com> 
Betreff: [Spce-user] Incoming call CDR

 

Hello, we have to bill some of our customers for incoming calls. At the moment outgoing and incoming calls are recorded on the same CDR files. Is it possible to separate incoming calls into specific CDR files?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20250428/77732c35/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4999 bytes
Desc: not available
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20250428/77732c35/attachment.p7s>


More information about the Spce-user mailing list