Hello,
just using lookup() should do the job. It should create additional branches at the
execution of t_relay(). If its not working maybe the module is configured in a
non-standard way.
Cheers,
Henning
-----Original Message-----
From: Benoit Panizzon via sr-users <sr-users(a)lists.kamailio.org>
Sent: Tuesday, December 10, 2024 4:22 PM
To: Alex Balashov via sr-users <sr-users(a)lists.kamailio.org>
Cc: Benoit Panizzon <benoit.panizzon(a)imp.ch>
Subject: [SR-Users] Re: How to inspect/dump a stacked xavp? / How to stack two xavp on
each other?
Hi Alex
You might be overcomplicating this, as parallel
forking is out-of-the-box behaviour for lookup(), provided that `append_branches` is set
to 1:
https://kamailio.org/docs/modules/5.8.x/modules/registrar.html#idm175
It's the serial forking across contacts that takes extra work. With the parallel
forking, you don't need to mess with t_load_contacts() / t_next_contacts() at all.
This is, why I first try to get parallel forking to work, but somehow I don't.
Again what I want to do in this, I assume, simple and common scenario:
I have AoR alice registered with 4 contacts all with q=0.5 I have AoR bob registered with
1 contact with q=0.5
I try to get those total of 5 contacts in my destination set and parallel fork a call to
those 5 contacts.
I got this working the 'very hard' way by making use of reg_fetch_contacts and
append_branch and setting 'most' branch values from the $ulc() variables, but this
need manual tweaking each time I add some functionality like NAT or PATH support.
=> There must be an easier way, right?
What am I missing with the lookup() function to make this work 'out-of-the-box'?
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(a)lists.kamailio.org
To unsubscribe send an email to sr-users-leave(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!