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@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.