[SR-Users] Using a single virtual domain in a multi-domain setup
Rhys Hanrahan
rhys.hanrahan at gmail.com
Wed May 15 13:38:29 CEST 2019
HI All,
Just to add I've also tried adding multiple alias= definitions, but have
the same issue - kamailio says "user at fqdn" not found in usrloc when doing
lookup(). Maybe I need to modify my lookup() call to use a hardcoded URI?
But I haven't seen any examples where this was required for multidomain
setups.
Would really appreciate some guidance as I'm quite stuck on this.
Thanks!
Rhys.
On Tue, May 14, 2019 at 11:58 AM Rhys Hanrahan <rhys.hanrahan at gmail.com>
wrote:
> Hi All,
>
> I am trying to setup Kamailio to allow me to have multiple different
> domains (and IPs) treated as one. I am using the domain module for this. As
> an example I have:
>
> * A handset registered to Kamailio by IP address.
> * A SIP trunk between Asterisk and Kamilio using an FQDN that uses SRV
> records for redundancy on Asterisk's side.
>
> I have added all domains and IPs under the same "domain identifier". It
> seems the "old" domain module now uid_domain had this capability of a
> single virtual domain, but is this possible with the more current domain.so
> module? From what I've said the uid_* modules older modules from the SIP
> Router project, and should be replaced by more recent Kamailio modules?
>
> - https://www.kamailio.org/docs/modules/5.0.x/modules/uid_domain.html
> VS.
> - https://kamailio.org/docs/modules/5.1.x/modules/domain.html
>
>
> MariaDB [kamailio]> select * from domain;
>
>
> +----+------------------------------------+------------+---------------------+
>
> | id | domain | did | last_modified
> |
>
>
> +----+------------------------------------+------------+---------------------+
>
> | 1 | 12.34.56.53 | vocalpoint | 2000-01-01
> 00:00:01 |
>
> | 2 | 23.34.56.54 | vocalpoint | 2000-01-01
> 00:00:01 |
>
> | 3 | sbc.foo | vocalpoint | 2000-01-01 00:00:01 |
>
> | 4 | sbc.nsw.foo | vocalpoint | 2000-01-01 00:00:01 |
>
> | 5 | sbc.vic.foo | vocalpoint | 2000-01-01 00:00:01 |
>
> | 6 | sbc.foo2 | vocalpoint | 2000-01-01 00:00:01 |
>
> | 7 | sbc.nsw.foo2 | vocalpoint | 2000-01-01 00:00:01 |
>
> | 8 | sbc.vic.foo2 | vocalpoint | 2000-01-01 00:00:01 |
>
>
> +----+------------------------------------+------------+---------------------+
>
> 8 rows in set (0.000 sec)
>
> I managed to get registrations working by hardcoding a static realm in the
> config, but when when usrloc does a lookup on a handset, Kamailio can't
> find user at sbc.nsw.foo and Kamailio returns 404.
>
> It looks like this is because in the locations table it is listed with a
> domain of 12.34.56.53 (because the handset is registered by IP).
>
> How should this work normally? Or is it even possible?
>
> Thanks,
>
> Rhys.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190515/951284e7/attachment.html>
More information about the sr-users
mailing list