<html><head></head><body><div class="ydpca85db7ayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div>Hi Steven,<br><div><br><div>Are you sure your dispatcher and relay daemons are running ?<br><div>use "ps aux | grep media" and see if they are actually running as background processes<br><div><br>btw look of it your dispatcher doesn't seems to be running. if it was, it'll create the socket file given in the config.<br></div></div></div></div></div><div></div>
        <div><br></div><div><br></div>
        
        </div><div id="yahoo_quoted_8707149469" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Monday, 24 September 2018, 6:07:15 PM GMT+5:30, Steven Platt <steven@olli-ai.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv9088743335"><div dir="ltr">Greetings, <div><br></div><div>I am having difficulty getting OpensSIPS to connect to MediaProxy for the purpose of bridging media of clients behind NAT, and hope the community has advice on how to resolve. </div><div><br></div><div>I have installed MediaProxy from the Debian Jessie repository, and updated the config.ini file to disable TLS, Radius, etc - and set the dispatcher and relay IP to the public IP of my opensips server. I have mediaproxy and opensips installed to the same server with a direct public IP. </div><div><br></div><div>Currently, it looks as though opensips correctly detects the client is behind NAT and tried to invoke mediaproxy. The calls seem to fail when opensips goes to connect to mediaproxy using the designated socket. Although mediaproxy service is running - it does not create the socket. </div><div><br></div><div>Opensips version = 2.3.5</div><div><br></div><div>--------------------------------------------------------</div><div><br></div><div>cat /var/log/opensips.log shows | tail </div><div><br></div><div><div>root@[my-server]:~# cat /var/log/opensips.log | tail</div><div>Sep 21 19:08:59 [my-server] /usr/sbin/opensips[16080]: INFO:core:probe_max_sock_buff: using snd buffer of 416 kb</div><div>Sep 21 19:08:59 [my-server] /usr/sbin/opensips[16080]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 61</div><div>Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: ERROR:mediaproxy:mediaproxy_connect: failed to connect to /var/run/mediaproxy/dispatcher.sock: No such file or directory</div><div>Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: new branch at sip:1000@[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCP</div><div>Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: INFO:core:probe_max_sock_buff: using snd buffer of 416 kb</div><div>Sep 21 19:09:21 [my-server] /usr/sbin/opensips[16081]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 63</div><div>Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: ERROR:mediaproxy:mediaproxy_connect: failed to connect to /var/run/mediaproxy/dispatcher.sock: No such file or directory</div><div>Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: new branch at sip:1000@[client-outside-nat-ip]:44180;rinstance=4050910af32f1c09;transport=TCP</div><div>Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: INFO:core:probe_max_sock_buff: using snd buffer of 416 kb</div><div>Sep 21 19:13:34 [my-server] /usr/sbin/opensips[16081]: INFO:core:init_sock_keepalive: TCP keepalive enabled on socket 63</div></div><div><br></div><div>--------------------------------------------------------  <br></div><div><br></div><div>/etc/init.d/mediaproxy-relay and mediaproxy-dispatcher start does not give any error, and returns OK status for MediaProxy. </div><div><br></div><div>The opensips module config for MediaProxy is: </div><div><br></div><div><div>#### Media Proxy module</div><div>loadmodule "mediaproxy.so"</div><div>modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")</div><div>modparam("mediaproxy", "mediaproxy_timeout", 500)</div><div>modparam("mediaproxy", "signaling_ip_avp", "$avp(nat_ip)")</div><div>modparam("mediaproxy", "media_relay_avp", "$avp(media_relay)")</div><div>modparam("mediaproxy", "ice_candidate", "low-priority")</div><div>modparam("mediaproxy", "ice_candidate_avp", "$avp(ice_candidate)")</div></div><div><br></div><div>The MediaProxy config.ini set the socket to this as well: </div><div><br></div><div><div>[Dispatcher]</div><div>; Local socket on which to communicate with OpenSIPS. The OpenSIPS mediaproxy</div><div>; module should be configured to connect to this socket. If a relative path,</div><div>; /var/run/mediaproxy will be prepended. Default value is dispatcher.sock.</div><div>;</div><div>socket_path = dispatcher.sock</div></div><div><br></div><div>Any advice for this would be much appreciated. I have tried to resolve and find configuration examples for a few hours now. </div></div></div>_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@lists.opensips.org" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br></div>
            </div>
        </div></body></html>