[Spce-user] Incoming call CDR

Vincent Dubois vdubois at b2b2c.com
Mon Apr 28 08:38:06 EDT 2025


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>
Sent: April 28, 2025 6:14 AM
To: 'Danny Cappellari' <cappellari at connectlife.it>; 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/7227876d/attachment-0001.htm>


More information about the Spce-user mailing list