[OpenSIPS-Users] Opensips + Mediaproxy
Artur Staniec
arturstaniec at gmail.com
Wed Apr 10 10:48:10 CEST 2013
Hello everyone,
I need some help setting mediaproxy up with opensips.
opensips 1.9.0-1-98851
mediaproxy-2.5.2
The server is Ubuntu 11.04 and I compiled mediaproxy myself
I use engage_media_proxy() function to take care of it all.
Currently I get all the signaling correct, but when the mediaproxy is on I
don't get any audio.
I'm almost sure it isn't a firewall blocking its way.
I use media proxy only to prevent no BYE conversations.
There's no errors in the opensips.log on hi level debug, but in the
media-relay there are messages while establishing a call. Let me know if
you need anything more to investigate it.
Thanks for all your responses.
debug: Added new stream: (audio) 195.114.183.87:7078 (RTP: Unknown, RTCP:
Unknown) <-> 127.0.0.1:50004 <-> 127.0.0.1:50006 <-> Unknown (RTP: Unknown,
RTCP: Unknown)
debug: created new session 1052305028: 11111 at 5.178.33.133 (1017758578) -->
22222 at 5.178.33.133
debug: updating existing session 1052305028: 11111 at 5.178.33.133 (1017758578)
--> 22222 at 5.178.33.133
debug: Received updated SDP answer
debug: Got initial answer from callee for stream: (audio)
195.114.183.87:7078 (RTP: Unknown, RTCP: Unknown) <-> 127.0.0.1:50004 <->
127.0.0.1:50006 <-> 195.114.183.87:4002 (RTP: Unknown, RTCP: Unknown)
#################opensips.cfg
#### Dialog module module
loadmodule "dialog.so"
modparam("dialog", "default_timeout",7200)
modparam("dialog", "db_url", "mysql://xxxxxx")
modparam("dialog", "db_mode", 1)
#### Mi datagram module
loadmodule "mi_datagram.so"
modparam("mi_datagram", "socket_name", "/var/run/opensips/opensips.sock")
modparam("mi_datagram", "unix_socket_group", "opensips")
modparam("mi_datagram", "unix_socket_user", "opensips")
##### Media Proxy module
loadmodule "mediaproxy.so"
modparam("mediaproxy", "disable", 0)
modparam("mediaproxy", "mediaproxy_socket",
"/run/mediaproxy/dispatcher.sock")
modparam("mediaproxy", "mediaproxy_timeout", 500)
modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")
modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)")
in the main route I have just this one
if (is_method("INVITE") && !has_totag()) {
engage_media_proxy();
}
##########/etc/mediaproxy/config.ini
[Relay]
dispatchers = localhost 127.0.0.1
port_range = 50000:60000
relay_ip = 127.0.0.1
log_level = DEBUG
stream_timeout = 90
on_hold_timeout = 7200
[Dispatcher]
socket_path = dispatcher.sock
accounting = database
[TLS]
[Database]
dburi = mysql://xxxxxxxxxx
sessions_table = media_sessions
callid_column = call_id
fromtag_column = from_tag
totag_column = to_tag
info_column = info
[Radius]
config_file = /etc/freeradius/clients.conf
additional_dictionary = /etc/freeradius/dictionary
[OpenSIPS]
socket_path = /var/run/opensips/opensips.sock
ii conntrack 1:1.0.0-2ubuntu1 Program
to modify the conntrack tables
ii libnetfilter-conntrack-dev 0.9.1-1ubuntu1
Development files for libnetfilter-conntrack3
ii libnetfilter-conntrack3 0.9.1-1ubuntu1 Netfilter
netlink-conntrack library
ii libcurl3-gnutls 7.22.0-3ubuntu4
Multi-protocol file transfer library (GnuTLS)
ii libgnutls26 2.12.14-5ubuntu3.1 GNU TLS
library - runtime library
Best regards,
Artur Staniec
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130410/e29edf08/attachment.htm>
More information about the Users
mailing list