[Kamailio-Users] multidomain test for domains 192.168.0.3 and 192.168.0.32

Zen Kato zenkato at zm.commufa.jp
Sun Aug 3 10:57:07 CEST 2008


I have installed openser-1.3.2-nontls on 192.168.0.3.
The phones are 0103 at 192.168.0.3, 0203 at 192.168.0.3 and
0303 at 192.168.0.3.

To test multidomain support, I added
modparam("auth_db|auth_diameter|group|uri_db|usrloc","use_domain",1)
and changed from "uri==myself" to "is_uri_host_local" 
in openser.cfg.

I added two phones 9101 and 9102 with domain 192.168.0.32.

These two phones are registered on mysql db as follows;
# openserctl add 9101 at 192.168.0.32 password 9101 at localhost
# openserctl add 9102 at 192.168.0.32 password 9102 at localhost

I also set up 192.168.0.32 for eth0:0. eth0 is 192.168.0.3. 

Then, I check:

[root at p4c8 multidomain]# openserctl domain show
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd domain_dump
192.168.0.3
192.168.0.32
FIFO command was:
:domain_dump:openser_receiver_6329

[root at p4c8 multidomain]# openserctl domain showdb
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
+----+--------------+---------------------+---------+
| id | domain       | last_modified       | version |
+----+--------------+---------------------+---------+
|  2 | 192.168.0.3  | 2008-04-09 16:13:12 |       0 | 
|  4 | 192.168.0.32 | 2008-01-01 00:00:00 |    NULL | 
+----+--------------+---------------------+---------+

[root at p4c8 multidomain]# openserctl ul show
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd ul_dump
Domain:: aliases table=512 records=0 max_slot=0
Domain:: location table=512 records=3 max_slot=1
        AOR:: 0203 at 192.168.0.3
                Contact:: sip:0203 at 192.168.0.102 Q=
                        Expires:: 295
                        Callid:: 91741a3a146e34bb at 192.168.0.102
                        Cseq:: 101
                        User-agent:: Grandstream BT110 1.0.8.23
                        State:: CS_SYNC
                        Flags:: 0
                        Cflag:: 0
                        Socket:: udp:192.168.0.3:5060
                        Methods:: 5695
        AOR:: 0303 at 192.168.0.3
                Contact:: sip:0303 at 192.168.0.103 Q=
                        Expires:: 294
                        Callid:: 4c0a9450bb744c33 at 192.168.0.103
                        Cseq:: 101
                        User-agent:: Grandstream BT100 1.0.6.8
                        State:: CS_SYNC
                        Flags:: 0
                        Cflag:: 0
                        Socket:: udp:192.168.0.3:5060
                        Methods:: 5695
        AOR:: 0103 at 192.168.0.3
                Contact:: sip:0103 at 192.168.0.101 Q=
                        Expires:: 295
                        Callid:: 60507d20c32ac791 at 192.168.0.101
                        Cseq:: 101
                        User-agent:: Grandstream BT110 1.0.8.23
                        State:: CS_SYNC
                        Flags:: 0
                        Cflag:: 0
                        Socket:: udp:192.168.0.3:5060
                        Methods:: 5695
FIFO command was:
:ul_dump:openser_receiver_6424

openserctl ul show does not show 9101 at 192.168.0.32 and
9102 at 192.168.0.32 !?


[root at p4c8 multidomain]# openserctl ul show 9101 at 192.168.0.32
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd ul_show_contact location 9101 at 192.168.0.32
404 AOR not found
FIFO command was:
:ul_show_contact:openser_receiver_6394
location
9101 at 192.168.0.32


What else shoud I set to test multidomain in this situation?

Regards,

Zen




More information about the sr-users mailing list