[OpenSIPS-Users] media-dispatcher and media relay connection problem
Barsan Liviu
barsanl at yahoo.com
Wed May 25 14:36:50 CEST 2011
Hello,
I installed OpenSIPs and MediaProxy in order to have a far-end NAT traversal
solution, unfortunately the server isn't stable, I can speak from one Blink
client to another few times, but most of the time I can not call because
media-relay and media proxy can not connect, I see in the logs the following
error:
May 25 10:43:16 P4025 media-dispatcher[2517]: Starting MediaProxy Dispatcher
2.4.4
May 25 10:43:17 P4025 media-dispatcher[2517]: using set_wakeup_fd
May 25 10:43:17 P4025 media-dispatcher[2517]: Twisted is using epollreactor
May 25 10:43:17 P4025 media-dispatcher[2517]: mediaproxy.dispatcher.RelayFactory
starting on 25060
May 25 10:43:17 P4025 media-dispatcher[2517]:
mediaproxy.dispatcher.OpenSIPSControlFactory starting on
"'/tmp/dispatcher.sock'"
May 25 10:43:17 P4025 media-dispatcher[2517]:
mediaproxy.dispatcher.ManagementControlFactory starting on 25061
May 25 10:43:24 P4025 media-dispatcher[2517]: debug: Connection from relay at
80.97.161.39
May 25 10:43:24 P4025 media-dispatcher[2517]: debug: Issuing "sessions" command
to relay at 80.97.161.39
May 25 10:43:24 P4025 media-relay[2493]: error: Could not connect to dispatcher
at 80.97.161.39:25060 (retrying in 10 seconds): An unexpected TLS packet was
received.
May 25 10:43:24 P4025 media-dispatcher[2517]: error: Connection with relay at
80.97.161.39 was lost: Rehandshake was requested by the peer.
May 25 10:43:24 P4025 media-dispatcher[2517]: error: Unhandled error in
Deferred:
May 25 10:43:24 P4025 media-dispatcher[2517]: RelayError: Relay at 80.97.161.39
disconnected
This error I see even if just media-relay and media-dispatcher are started,
opensips not.
This is the only error, the opensipsctl ul show display two registered blink
clients and no other problems in logs.
And here are my server settings:
- Ubuntu 10.04 with public IP
- iptables loaded for media relay with sudo modprobe ip_tables
- OpenSIPs - opensips-1.6.4-2-tls and MediaProxy 2.4.4
- MediaProxy tls dir copied to /etc/mediaproxy/tls
My config.ini from /etc/mediaproxy is
[Relay]
dispatchers = 80.97.xxx.xx:25060
port_range = 50000:60000
log_level = DEBUG
on_hold_timeout = 1800
[Dispatcher]
socket_path = /tmp/dispatcher.sock
listen = 80.97.xxx.xx:25060
listen_management = 127.0.0.1:25061
management_use_tls = no
log_level = DEBUG
[TLS]
certs_path = /etc/mediaproxy/tls
[Database]
dburi = mysql://X:Y@localhost/opensips
; Name for the table.
sessions_table = media_sessions
callid_column = call_id
fromtag_column = from_tag
totag_column = to_tag
info_column = info
When I received the above error I made a netstat -anp and I got:
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
1063/mysqld
tcp 0 0 80.97.161.39:25060 80.97.161.39:57402 TIME_WAIT
-
tcp 0 0 80.97.161.39:22 80.97.161.66:48333 ESTABLISHED
2396/1
tcp 0 0 80.97.161.39:25060 80.97.161.39:57399 TIME_WAIT
-
tcp 0 0 80.97.161.39:25060 80.97.161.39:57403 TIME_WAIT
-
tcp 0 52 80.97.161.39:22 80.97.161.66:8757 ESTABLISHED
2124/0
tcp 0 0 80.97.161.39:22 80.97.161.66:22183 ESTABLISHED
2305/sshd: root at not
tcp 0 0 80.97.161.39:25060 80.97.161.39:57400 TIME_WAIT
-
tcp 0 0 80.97.161.39:22 80.97.161.66:9150 ESTABLISHED
2232/sshd: root at not
Any help would be appreciated since I have no idea why the relay and dispatcher
does not connect
Thank you,
Liviu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110525/682d9f27/attachment.htm>
More information about the Users
mailing list