Hello,
I am trying to set up basic SER configuration ("Hello World" Reference Design
from SER-GettingStarted.pdf) but got in trouble at the UA connection.
My teststbench consist of:
SER server
IP address: 192.168.2.33
Hostname: centoshost
OS: CentOS 5.3
Workstation with Linphone softphone
IP address: 192.168.2.5
Hostname: susel
OS: openSUSE 11.2
ATA + regular phone
IP address: 192.168.2.191
Network switch + cabling
I had no problems with SER installation. It also runs correctly (I suppose).
When SER started with updated ser.cfg according to manual, I couldn't even make basic
registrations without any authentication.
In the next step I added SQL support, hoping to register UA with authentication, but this
didn't worked out either.
So I have looked at ports at server and secured their openess - gave no improvement.
I will be glad to receive some hint where to make changes in my system.
Below are some commands (with results) I have tried on a server and workstaton.
I use SSH to connect to the server and issue commands there.
As an attachement I provide ser.cfg file for inspection.
Kind Regards,
Slawomir
********************************************
[root@centoshost sbin]# cat /etc/*release
CentOS release 5.3 (Final)
[root@centoshost ~]# /etc/init.d/mysqld start
Starting MySQL: [ OK ]
[root@centoshost ~]# /etc/init.d/mysqld status
mysqld (pid 2640) is running...
[root@centoshost ~]# export SIP_DOMAIN="centoshost"
[root@centoshost sbin]# serctl start
Starting SER : started pid(2709)
[root@centoshost sbin]# serctl moni
Server: Sip EXpress router (0.9.6 (i386/linux)) ,2xx: 0
Now: Sun Oct 11 04:56:03 2009 2009 local) ,2xx: 0
Up Since: Sun Oct 11 04:00:30 2009 local) ,2xx: 0
Up time: 3333 [sec]ics 0, 5xx: 0, 4xx: 0, 3xx: 0,2xx: 0
Transaction Statistics Total: 0 (0 local) ,2xx: 0
Transaction Statistics Total: 0 (0 local) 4xx: 0
Current: 0 (0 waiting) Total: 0 (0 local) ,2xx: 0
Replied localy: 0 0, 5xx: 0, 4xx: 0, 3xx: 0,2xx: 0
Completion status 6xx: 0, 5xx: 0, 4xx: 0, 3xx: 0,2xx: 0
Stateless Server Statistics 407: 0 408: 0 483: 0 4xx: 0
Stateless Server Statistics
200: 0 202: 0 2xx: 0 0 0 408: 0 483: 0 4xx: 0
300: 0 301: 0 302: 0 3xx: 0 0 408: 0 483: 0 4xx: 0
400: 0 401: 0 403: 0 404: 0 407: 0 408: 0 483: 0 4xx: 0
500: 0 5xx: 0 xpired
6xx: 0 Expired
xxx: 0 Expired
failures: 0
UsrLoc Statstered Expired
UsrLoc Statstered Expired
Domain Registered Expired
'aliases' 0 00
'location' 0 0
[root@centoshost sbin]# serctl ps
0 2709 attendant
1 2714 fifo server
2 2717 receiver child=0 sock= 192.168.2.33:5060
3 2719 receiver child=1 sock= 192.168.2.33:5060
4 2721 receiver child=2 sock= 192.168.2.33:5060
5 2724 receiver child=3 sock= 192.168.2.33:5060
6 2727 timer
7 2730 tcp receiver
8 2733 tcp receiver
9 2735 tcp receiver
10 2739 tcp receiver
11 2742 tcp main process
[root@centoshost sbin]# serctl ping 1001(a)192.168.2.191
400
[root@centoshost sbin]# ping 192.168.2.191
PING 192.168.2.191 (192.168.2.191) 56(84) bytes of data.
64 bytes from 192.168.2.191: icmp_seq=1 ttl=250 time=2.77 ms
64 bytes from 192.168.2.191: icmp_seq=2 ttl=250 time=2.70 ms
64 bytes from 192.168.2.191: icmp_seq=3 ttl=250 time=1.51 ms
--- 192.168.2.191 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 1.510/2.330/2.778/0.582 ms
[root@centoshost sbin]# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.2.33:5060 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:757 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::ffff:192.168.2.33:22 ::ffff:192.168.2.5:56321 ESTABLISHED
udp 0 300 192.168.2.33:38530 192.168.12.254:53 ESTABLISHED
udp 0 0 192.168.2.33:44954 192.168.2.1:53 ESTABLISHED
udp 0 0 192.168.2.33:5060 0.0.0.0:*
udp 0 0 0.0.0.0:41417 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:751 0.0.0.0:*
udp 0 0 0.0.0.0:111 0.0.0.0:*
udp 0 0 0.0.0.0:754 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
udp 0 0 :::41038 :::*
udp 0 0 :::5353 :::*
mysql> select username, password, domain from subscriber;
+----------+----------+------------+
| username | password | domain |
+----------+----------+------------+
| admin | heslo | centoshost |
| 1001 | abc | centoshost |
| 1000 | abc | centoshost |
+----------+----------+------------+
****************************
susel:/usr/local # cat /etc/*release
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-ia32:core-3.2-ia32:core-4.0-ia32"
openSUSE 11.2 (i586)
VERSION = 11.2
susel:/usr/local # ping 192.168.2.33
PING 192.168.2.33 (192.168.2.33) 56(84) bytes of data.
64 bytes from 192.168.2.33: icmp_seq=1 ttl=64 time=0.421 ms
64 bytes from 192.168.2.33: icmp_seq=2 ttl=64 time=0.400 ms
64 bytes from 192.168.2.33: icmp_seq=3 ttl=64 time=0.425 ms
^C
--- 192.168.2.33 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.400/0.415/0.425/0.019 ms
susel:/usr/local # nmap -sS -p1-65535 192.168.2.33
Starting Nmap 5.00 (
http://nmap.org ) at 2011-03-21 20:32 CET
Interesting ports on 192.168.2.33:
Not shown: 65530 filtered ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp closed http
443/tcp closed https
631/tcp closed ipp
5060/tcp open sip
MAC Address: 08:00:06:0E:E1:FC (Siemens AG)
Nmap done: 1 IP address (1 host up) scanned in 152.32 seconds
susel:/usr/local # sipsak -vv -s sip:1001@192.168.2.33
received ICMP message (type: 3, code: 10): from 192.168.2.33
susel:/usr/local # sipsak -vv -s sip:1000@192.168.2.33
received ICMP message (type: 3, code: 10): from 192.168.2.33
susel:/usr/local # sipsak -T -s sip:1000@192.168.2.33
warning: IP extract from warning activated to be more informational
(type: 3, code: 10): from 192.168.2.33
susel:/usr/local # sipsak -T -s sip:1001@192.168.2.33
warning: IP extract from warning activated to be more informational
(type: 3, code: 10): from 192.168.2.33
susel:/usr/local # sipsak -a --password abc -s sip:1001@192.168.2.33
(type: 3, code: 10): from 192.168.2.33
susel:/usr/local # sipsak -a --password abc -s sip:1000@192.168.2.33
(type: 3, code: 10): from 192.168.2.33
-------------------------------------------------
Sily koalicji atakuja rezim. Skomplikowana sytuacja w Libii.
Raport »