I have installed openser-1.3.2-nontls on 192.168.0.3.
The phones are 0103(a)192.168.0.3, 0203(a)192.168.0.3 and
0303(a)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(a)192.168.0.32 password 9101@localhost
# openserctl add 9102(a)192.168.0.32 password 9102@localhost
I also set up 192.168.0.32 for eth0:0. eth0 is 192.168.0.3.
Then, I check:
[root@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@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@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(a)192.168.0.3
Contact:: sip:0203@192.168.0.102 Q=
Expires:: 295
Callid:: 91741a3a146e34bb(a)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(a)192.168.0.3
Contact:: sip:0303@192.168.0.103 Q=
Expires:: 294
Callid:: 4c0a9450bb744c33(a)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(a)192.168.0.3
Contact:: sip:0103@192.168.0.101 Q=
Expires:: 295
Callid:: 60507d20c32ac791(a)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(a)192.168.0.32 and
9102(a)192.168.0.32 !?
[root@p4c8 multidomain]# openserctl ul show 9101(a)192.168.0.32
database engine 'MYSQL' loaded
Control engine 'FIFO' loaded
entering fifo_cmd ul_show_contact location 9101(a)192.168.0.32
404 AOR not found
FIFO command was:
:ul_show_contact:openser_receiver_6394
location
9101(a)192.168.0.32
What else shoud I set to test multidomain in this situation?
Regards,
Zen
Show replies by date
Hi,
I added listen=udp:192.168.0.32:5060 in openser.cfg and then
9101(a)192.168.0.32 and 9102(a)192.168.0.32 are registered.
[root@p4c8 openser]# 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=6 max_slot=1
AOR:: 9102(a)192.168.0.32
Contact:: sip:9102@192.168.0.202:25628;transport=udp Q=
Expires:: 297
Callid:: 868e068ee6313ff3(a)192.168.0.202
Cseq:: 10719
User-agent:: Grandstream GXP2000 1.1.6.16
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: udp:192.168.0.32:5060
Methods:: 8063
AOR:: 9101(a)192.168.0.32
Contact:: sip:9101@192.168.0.201:40566;transport=udp Q=
Expires:: 230
Callid:: 8e8e4f8ea141fa04(a)192.168.0.201
Cseq:: 10013
User-agent:: Grandstream GXP2000 1.1.6.16
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: udp:192.168.0.32:5060
Methods:: 8063
AOR:: 0203(a)192.168.0.3
Contact:: sip:0203@192.168.0.102 Q=
Expires:: 210
Callid:: 91741a3a146e34bb(a)192.168.0.102
Cseq:: 118
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(a)192.168.0.3
Contact:: sip:0303@192.168.0.103 Q=
Expires:: 209
Callid:: 4c0a9450bb744c33(a)192.168.0.103
Cseq:: 118
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(a)192.168.0.3
Contact:: sip:0103@192.168.0.101 Q=
Expires:: 210
Callid:: 60507d20c32ac791(a)192.168.0.101
Cseq:: 118
User-agent:: Grandstream BT110 1.0.8.23
State:: CS_SYNC
Flags:: 0
Cflag:: 0
Socket:: udp:192.168.0.3:5060
Methods:: 5695
---
Zen