Given a call flowlike the one shown, you could consider using redirects from the registrar rather than passing traffic through the registrar.  I agree that this does very much feel like a place where a B2BUA is appropriate given what may be a very non-standard implementation by another UA.  With that said it's fairly cheap and easy to add more kamailio to any environment - even use alternate ports as needed and run it in a container.


Regards,
Kaufman


From: Alex Balashov via sr-users <sr-users@lists.kamailio.org>
Sent: Monday, December 30, 2024 5:54 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Alex Balashov <abalashov@evaristesys.com>
Subject: [SR-Users] Re: how to call loose_route() after adding route header without using msg_apply_changes?
 
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.


> On Dec 30, 2024, at 2:39 am, Benoît Panizzon via sr-users <sr-users@lists.kamailio.org> wrote:
>
> So the call flow is:
>
> Alice => Registrar => Core => Registrar => Bob
>
> The same call passes the registrar twice. This, as I observe (it's
> still possible I did something wrong), breaks topos and header get
> replaced the wrong way!

As far as I know, this situation badly cries out for a lightweight B2BUA. It's no accident that pretty much all SBCs are based on a B2BUA.

However, I could be mistaken...

-- Alex

--
Alex Balashov
Principal Consultant
Evariste Systems LLC
Web: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fevaristesys.com%2F&data=05%7C02%7Cbkaufman%40bcmone.com%7C4a51c83d233c45ea0b7008dd28c97b3a%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C638711568027873996%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=MB6PbQFAPcy2A%2F%2FNEMoIfmxS871mAHvZNbmVR03hlPw%3D&reserved=0
Tel: +1-706-510-6800

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
K