Hello Benoit,
ok, thanks for the additional information.
I would probably solve it the classical way, by adding one layer of indirection.
Have a mapping table for the real number +49XXX for lookup the two user77 and user88
records which you then lookup from the normal location table. Maybe by just looping the
call one time to the proxy, or by some additional logic.
But of course, the way discussed on the mailing list with the branch_set_uri(..) is also
possible.
Cheers,
Henning
-----Original Message-----
From: Benoît Panizzon <benoit.panizzon(a)imp.ch>
Sent: Freitag, 20. September 2024 15:02
To: Henning Westerholt <hw(a)gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Subject: Re: [SR-Users] Pseudo Variable containing 'path' of main branch? /
How to compose $du manually with path?
Hi Henning + All
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?
I have just checked in the documentation. No, there does not seem to be a
way to specify multiple URI with lookup() or how do you do this?
Maybe we don't tank about the same situation.
It's not about multiple contacts registered to one 'username' but multiple
'username'.
Example:
location database:
user77:
contact: sip:user77@1.2.3.4:5060
contact: sip:user77@5.6.7.8:5060
user88:
contact: sip:user88@4.3.2.1:5060
From my call logic, I assign +41661234567 to both usernames
So when +41661234567 is called, I would like to parallel branch to all contacts
of user77 and user88.
Is this possible with lookup()?
For those who will ask: Why are doing this crazy complicated stuff!?!
(I have open ears for suggestions how to do it differently btw)
We have several use cases, besides customers with multiple offices and
multiple redundant PBX the main one is residential customers:
Simultaneous Ring on Mobile and CPE.
Landline CPE are automatically provisioned. The credentials are not know to
the customer (in this example, user77) the connection is not nomadic and has
a fixed geolocation for emergency calls. Contractual, the CPE is on our
responsibility as VSP.
The customer can get a different set of credentials to use his landline phone
number on any devices of his choice, mostly with a mobile app. By doing so,
he takes full responsibility for the usage of those credentials.
So this makes sense to create a separate credentials set for this for marking
calls to emergency number as nomadic, apply more strict fraud detection
measures in case his credentials are stolen, etc...
--
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
______________________________________________________