[SR-Users] Dialog Module: How to get two different dialogues if a call is looped through kamailo (call forwarding scenario)

Henning Westerholt hw at gilawa.com
Fri Oct 21 11:32:43 CEST 2022


Hello,

Kamailio is not a B2BUA. So, the dialog module will only track the early dialog and then later update its to a "normal" dialog. After the end of the dialog the acc module will create the CDR, I think.
Just to list some suggestions: 

- use a B2BUA (obviously)
- add some dialog variables to the CDR to track the call forwarding
- switch to transaction-based forwarding and have another component to generate CDRs from those records
- of course also the modules could be extended, but this probably needs a bit more discussions

Cheers,

Henning

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Benoit Panizzon
Sent: Thursday, October 20, 2022 4:23 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] Dialog Module: How to get two different dialogues if a call is looped through kamailo (call forwarding scenario)

Hi

Using the dialog module to generate CDR for billing.

We have this situation:

Kamailio 'routing' instance, where dialog is used and billing happens.
Kamailio 'register' instance.

IC is connected to the routing instance. Customers register to the register instance.

Call originates from 'A' via IC through routing instance to register instance and rings customer 'B'. This times out and 'call forwarding' is engaged by sending the call back to the routing instance with a new RURI containing the call forwarding destination 'C'. An appropriate 'no-answer' Diversion Header is added.

Now we need two different CDR for this scenario (add more CDR if the call is forwarded multiple times)

One from the A to B leg to bill termination fee to the IC carrier.
One from B to C to bill the forwarded call with destination 'C' to customer B.

The issue I now face is that I only get the kamailio routing instance to generates one dialogue from B to C despite handling two separate connections.

How could that challenge be solved?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions sr-users at lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


More information about the sr-users mailing list