Hello Benoit,

just to double check, you are aware that lookup() will also work with multiple 
contacts, e.g. will create additional branches that can be used to fork 
additional calls to the other contacts? And there is also a lookup_branches() 
function that will lookup for main branch and additional branches?

I did not test it right now, but I would expect that the lookup and lookup 
branches also set the $du correctly when there is a proper path entry in the 
location table.

I probably did not understood your requirements, but wouldn’t work this two 
function for you?

Cheers,

Henning

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

> -----Original Message-----
> From: Benoît Panizzon via sr-users <sr-users@lists.kamailio.org>
> Sent: Freitag, 20. September 2024 12:10
> To: sr-users@lists.kamailio.org
> Cc: Benoît Panizzon <benoit.paniz...@imp.ch>
> Subject: [SR-Users] Pseudo Variable containing 'path' of main branch? / How
> to compose $du manually with path?
> 
> Hi List
> 
> I want to be able to parallel branch a call to multiple registered locations /
> multiple different AOR. So using the registrar lookup() function can not be
> used.
> 
> I loop through all required AOR with reg_fetch_contacts, those could be
> registered via a proxy and therefore require to use Path:
> 
> $ulc(aor=>path) in this case, contains the path to that destination.
> 
> On all 'additional' branches added with append_branch() I can set the path
> using $branch(path).
> 
> But i struggle with the main aka first branch on which I directly set:
> 
> * $ru
> * $fs
> * $du
> 
> From the documentation, if I would use the registrar lookup() function, then
> $du would correctly be set respecting the path for all contacts on an AOR.
> 
> But who do I build $du manually with what I find in $ulc(aor=>path) when not
> using lookup()?
> 
> --
> Mit freundlichen Grüssen
> 
> -Benoît Panizzon- @ HomeOffice und normal erreichbar
> --
> 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 To unsubscribe
> send an email to sr-users-le...@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the
> sender!
> Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to