The short answer is that Kamailio is a SIP proxy, and what you’re describing is a Back to Back User Agent (B2BUA), so there’s no easy direct way to do this.  It’s also worth noting that the default config for kamailio’s max_branches is 12 and has an upper limit of 31.

 

A better question might be why you need a separate call-id for each call.  Kamailio will generate a new branch parameter for the via’s that it adds, so this shouldn’t be necessary.

 

Regards,

Kaufman.

 

 

From: Vanderlei Torres Batistela via sr-users <sr-users@lists.kamailio.org>
Sent: Tuesday, November 7, 2023 11:36 AM
To: sr-users@lists.kamailio.org
Cc: Vanderlei Torres Batistela <v.batistela@hotmail.com>
Subject: [SR-Users] Sequential fork with different Call-Ids

 

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hello all,

 

I have a scenario on wich requires sequential fork (up to 30 possible destinations) with different

Call-ID for each leg. I am using topoh module enabled, but it always puts the same Call-ID.

Someone have a solution for this scenario?

 

Regards