<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello everyone,</span><div style="font-family:arial,sans-serif;font-size:13px">I need some help setting mediaproxy up with opensips.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div style="font-family:arial;font-size:small"><font face="arial, sans-serif">opensips 1.9.0-1-98851</font></div><div style="font-family:arial;font-size:small">
<div style="font-size:13px;font-family:arial,sans-serif">mediaproxy-2.5.2<br></div><div><br></div></div></div><div style="font-family:arial,sans-serif;font-size:13px">The server is Ubuntu 11.04 and I compiled mediaproxy myself</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I use engage_media_proxy() function to take care of it all.</div><div style="font-family:arial,sans-serif;font-size:13px">
Currently I get all the signaling correct, but when the mediaproxy is on I don't get any audio.</div><div style="font-family:arial,sans-serif;font-size:13px">I'm almost sure it isn't a firewall blocking its way.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I use media proxy only to prevent no BYE conversations.</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">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. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks for all your responses.</div><div style="font-family:arial,sans-serif;font-size:13px"><br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>debug: Added new stream: (audio) <a href="http://195.114.183.87:7078/" target="_blank">195.114.183.87:7078</a> (RTP: Unknown, RTCP: Unknown) <-> <a href="http://127.0.0.1:50004/" target="_blank">127.0.0.1:50004</a> <-> <a href="http://127.0.0.1:50006/" target="_blank">127.0.0.1:50006</a> <-> Unknown (RTP: Unknown, RTCP: Unknown)</div>
<div>debug: created new session 1052305028: <a href="mailto:11111@5.178.33.133" target="_blank">11111@5.178.33.133</a> (1017758578) --> <a href="mailto:22222@5.178.33.133" target="_blank">22222@5.178.33.133</a></div><div>
debug: updating existing session 1052305028: <a href="mailto:11111@5.178.33.133" target="_blank">11111@5.178.33.133</a> (1017758578) --> <a href="mailto:22222@5.178.33.133" target="_blank">22222@5.178.33.133</a></div>
<div>
debug: Received updated SDP answer</div><div>debug: Got initial answer from callee for stream: (audio) <a href="http://195.114.183.87:7078/" target="_blank">195.114.183.87:7078</a> (RTP: Unknown, RTCP: Unknown) <-> <a href="http://127.0.0.1:50004/" target="_blank">127.0.0.1:50004</a> <-> <a href="http://127.0.0.1:50006/" target="_blank">127.0.0.1:50006</a> <-> <a href="http://195.114.183.87:4002/" target="_blank">195.114.183.87:4002</a> (RTP: Unknown, RTCP: Unknown)</div>
<div><br></div><div><br></div></div><div style="font-family:arial,sans-serif;font-size:13px"></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
#################opensips.cfg</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">#### Dialog module module</div><div style="font-family:arial,sans-serif;font-size:13px">
<div>loadmodule "dialog.so"</div><div>modparam("dialog", "default_timeout",7200)</div><div>modparam("dialog", "db_url", "mysql://xxxxxx")</div><div>modparam("dialog", "db_mode", 1)</div>
<div><br></div></div><div style="font-family:arial,sans-serif;font-size:13px">#### Mi datagram module</div><div style="font-family:arial,sans-serif;font-size:13px"><div>loadmodule "mi_datagram.so"</div><div>modparam("mi_datagram", "socket_name", "/var/run/opensips/opensips.sock")</div>
<div>modparam("mi_datagram", "unix_socket_group", "opensips")</div><div>modparam("mi_datagram", "unix_socket_user", "opensips")</div><div><br></div><div><div>##### Media Proxy module</div>
<div>loadmodule "mediaproxy.so"</div><div>modparam("mediaproxy", "disable", 0)</div><div>modparam("mediaproxy", "mediaproxy_socket", "/run/mediaproxy/dispatcher.sock")</div>
<div>modparam("mediaproxy", "mediaproxy_timeout", 500)</div><div><br></div><div>modparam("mediaproxy", "signaling_ip_avp", "$avp(s:nat_ip)")</div><div>modparam("mediaproxy", "media_relay_avp", "$avp(s:media_relay)")</div>
</div><div><br></div><div>in the main route I have just this one</div><div><br></div><div><div> if (is_method("INVITE") && !has_totag()) {</div><div> engage_media_proxy();</div><div>
}</div></div><div><br></div><div>##########/etc/mediaproxy/config.ini</div><div><div>[Relay]</div><div>dispatchers = localhost 127.0.0.1</div><div>port_range = 50000:60000</div><div>relay_ip = 127.0.0.1</div><div>
log_level = DEBUG</div><div>stream_timeout = 90</div><div>on_hold_timeout = 7200</div><div><br></div><div>[Dispatcher]</div><div>socket_path = dispatcher.sock</div><div>accounting = database</div><div><br></div><div>[TLS]</div>
<div><br></div><div>[Database]</div><div>dburi = mysql://xxxxxxxxxx</div><div>sessions_table = media_sessions</div><div>callid_column = call_id</div><div>fromtag_column = from_tag</div><div>totag_column = to_tag</div><div>
info_column = info</div><div><br></div><div>[Radius]</div><div>config_file = /etc/freeradius/clients.conf</div><div>additional_dictionary = /etc/freeradius/dictionary</div></div><div><br></div><div><div>[OpenSIPS]</div><div>
socket_path = /var/run/opensips/opensips.sock</div></div><div><br></div><div><br></div><div><br></div><div>ii conntrack 1:1.0.0-2ubuntu1 Program to modify the conntrack tables</div><div>
<div>ii libnetfilter-conntrack-dev 0.9.1-1ubuntu1 Development files for libnetfilter-conntrack3</div><div>ii libnetfilter-conntrack3 0.9.1-1ubuntu1 Netfilter netlink-conntrack library</div>
</div><div>ii libcurl3-gnutls 7.22.0-3ubuntu4 Multi-protocol file transfer library (GnuTLS)</div><div>ii libgnutls26 2.12.14-5ubuntu3.1 GNU TLS library - runtime library</div>
<div><br></div><div><br></div><div><br></div><div>Best regards,</div><div>Artur Staniec</div></div></div>