[OpenSIPS-Users] ngrep-sip on mediaproxy

Madovsky infos at madovsky.org
Wed Feb 10 16:19:46 CET 2010


--------------------- I start opensips mediaproxy

Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24191]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24188]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24181]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24185]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24190]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24189]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24186]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24184]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24187]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24183]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24182]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24179]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24180]: INFO:core:sig_usr: 
signal 15 received
Feb 10 09:53:39 node250 opensips: INFO:core:init_tcp: using epoll_lt as the 
TCP io watch method (auto detected)
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: NOTICE:core:main: 
version: opensips 1.6.1-notls (x86_64/linux)
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:core:main: 
using 32 Mb shared memory
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:core:main: 
using 1 Mb private memory per process
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:db_postgres:mod_init: initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
NOTICE:signaling:mod_init: initializing module ...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:sl:mod_init: 
Initializing StateLess engine
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:tm:mod_init: 
TM - initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:maxfwd:mod_init: initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:usrloc:ul_init_locks: locks array size 512
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:registrar:mod_init: initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:textops:mod_init: initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:xlog:mod_init: 
initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: INFO:acc:mod_init: 
initializing...
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:dialog:mod_init: Dialog module - initializing
Feb 10 09:53:39 node250 /usr/local/sbin/opensips[24889]: 
INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 512 kb



---------------------------------- I open one linphone with account on 
iptel.org and proxy set to my server


[root at node250 VOIP]# ./ngrep-sip
interface: any
filter: (ip or ip6) and ( port 5060 )
#
U 2010/02/10 09:58:50.353988 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.208:5060;rport;branch=z9hG4bK31850
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>
Call-ID: 9507
CSeq: 1 REGISTER
Contact: <sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 09:58:50.353988 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.208:5060;rport;branch=z9hG4bK31850
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>
Call-ID: 9507
CSeq: 1 REGISTER
Contact: <sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 09:58:50.355557 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK31850;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8108
Call-ID: 9507
CSeq: 1 REGISTER
Contact: <sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 09:58:50.355566 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK31850;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8108
Call-ID: 9507
CSeq: 1 REGISTER
Contact: <sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 09:58:50.355570 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK31850;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8108
Call-ID: 9507
CSeq: 1 REGISTER
Contact: <sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 09:58:50.669966 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.208:5060;rport;branch=z9hG4bK6330
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>
Call-ID: 9507
CSeq: 2 REGISTER
Contact: <sip:coucou38 at 70.81.84.xxx:5060;line=0d6cc18480d1ba4>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 09:58:50.669966 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.208:5060;rport;branch=z9hG4bK6330
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>
Call-ID: 9507
CSeq: 2 REGISTER
Contact: <sip:coucou38 at 70.81.84.xxx:5060;line=0d6cc18480d1ba4>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 09:58:50.670652 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK6330;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.9979
Call-ID: 9507
CSeq: 2 REGISTER
Contact: 
<sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600, 
<sip:coucou38 at 70.81.84.xxx:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 09:58:50.670658 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK6330;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.9979
Call-ID: 9507
CSeq: 2 REGISTER
Contact: 
<sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600, 
<sip:coucou38 at 70.81.84.xxx:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 09:58:50.670660 {PUBLIC IP}:5060 -> 70.81.84.xxx:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.208:5060;rport=5060;branch=z9hG4bK6330;received=70.81.84.xxx
From: <sip:coucou38 at iptel.org>;tag=10961
To: <sip:coucou38 at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.9979
Call-ID: 9507
CSeq: 2 REGISTER
Contact: 
<sip:coucou38 at 192.168.1.208:5060;line=0d6cc18480d1ba4>;expires=3600, 
<sip:coucou38 at 70.81.84.xxx:5060;line=0d6cc18480d1ba4>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0



----------------------------- I open the second linphone

[root at node250 VOIP]# ./ngrep-sip
interface: any
filter: (ip or ip6) and ( port 5060 )
#
U 2010/02/10 10:04:55.586786 70.81.84.xxx:1024 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.142:5060;rport;branch=z9hG4bK32300
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>
Call-ID: 23763
CSeq: 1 REGISTER
Contact: <sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 10:04:55.586786 70.81.84.xxx:1024 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.142:5060;rport;branch=z9hG4bK32300
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>
Call-ID: 23763
CSeq: 1 REGISTER
Contact: <sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 10:04:55.587466 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK32300;received=70.8 
1.84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8c41
Call-ID: 23763
CSeq: 1 REGISTER
Contact: <sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.587475 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK32300;received=70.8 
1.84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8c41
Call-ID: 23763
CSeq: 1 REGISTER
Contact: <sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.587483 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK32300;received=70.8 
1.84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.8c41
Call-ID: 23763
CSeq: 1 REGISTER
Contact: <sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.654773 70.81.84.xxx:1024 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.142:5060;rport;branch=z9hG4bK530
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>
Call-ID: 23763
CSeq: 2 REGISTER
Contact: <sip:madovsky at 70.81.84.xxx:1024;line=302df913dc9ae9e>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 10:04:55.654773 70.81.84.xxx:1024 -> {PUBLIC IP}:5060
REGISTER sip:{PUBLIC IP} SIP/2.0
Via: SIP/2.0/UDP 192.168.1.142:5060;rport;branch=z9hG4bK530
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>
Call-ID: 23763
CSeq: 2 REGISTER
Contact: <sip:madovsky at 70.81.84.xxx:1024;line=302df913dc9ae9e>
Max-Forwards: 70
User-Agent: Linphone/3.2.1 (eXosip2/3.3.0)
Expires: 3600
Content-Length: 0


#
U 2010/02/10 10:04:55.655499 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK530;received=70.81. 
84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.eb3c
Call-ID: 23763
CSeq: 2 REGISTER
Contact: 
<sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600, <s 
ip:madovsky at 70.81.84.xxx:1024;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.655512 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK530;received=70.81. 
84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.eb3c
Call-ID: 23763
CSeq: 2 REGISTER
Contact: 
<sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600, <s 
ip:madovsky at 70.81.84.xxx:1024;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.655516 {PUBLIC IP}:5060 -> 70.81.84.xxx:1024
SIP/2.0 200 OK
Via: SIP/2.0/UDP 
192.168.1.142:5060;rport=1024;branch=z9hG4bK530;received=70.81. 
84.218
From: <sip:madovsky at iptel.org>;tag=29358
To: <sip:madovsky at iptel.org>;tag=67e4bb0933480f011c1299e872dd7f37.eb3c
Call-ID: 23763
CSeq: 2 REGISTER
Contact: 
<sip:madovsky at 192.168.1.142:5060;line=302df913dc9ae9e>;expires=3600, <s 
ip:madovsky at 70.81.84.xxx:1024;line=302df913dc9ae9e>;expires=3600
Server: OpenSIPS (1.6.1-notls (x86_64/linux))
Content-Length: 0


#
U 2010/02/10 10:04:55.758516 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
jaKijaKija
#
U 2010/02/10 10:04:55.758516 70.81.84.xxx:5060 -> {PUBLIC IP}:5060
jaK


--------------------------------------- I Call the first linphone to second 
linphone

no trace as it seems there is no sip data thru the proxy.

opensips and mediaproxy-dispatcher and relay are on the same server same IP.

I configured the 2 linphones as usual : sip identity -> my sip account, sip 
proxy -> the IP of opensips

even if I disable iptables it remains the same.



That's it



Tanks and good luck



Franck









More information about the Users mailing list