No subject


Thu Jul 10 23:27:17 CEST 2014


#### MI_DATAGRAM moduleloadmodule "mi_datagram.so"modparam("mi_datagram"=2C=
 "socket_name"=2C "/var/run/opensips/opensips.sock")=0A=

#####NAT modulesloadmodule "nat_traversal.so"modparam("nat_traversal"=2C "k=
eepalive_interval"=2C 90)modparam("nat_traversal"=2C "keepalive_method"=2C =
"OPTIONS")=0A=

loadmodule "mediaproxy.so"modparam("mediaproxy"=2C "disable"=2C 0)modparam(=
"mediaproxy"=2C "mediaproxy_socket"=2C "/var/run/mediaproxy/dispatcher.sock=
")  # CUSTOMIZE ME=0A=
modparam("mediaproxy"=2C "mediaproxy_timeout"=2C 500)
####### Routing Logic ########
# main request routing logic
=0A=
route{
        if (!mf_process_maxfwd_header("10")) {                sl_send_reply=
("483"=2C"Too Many Hops")=3B                exit=3B        }=0A=

        if (method=3D=3DINVITE && !has_totag()) {                # We can a=
lso use a specific media relay if we need to                #$avp(media_rel=
ay) =3D "1.2.3.4"=3B=0A=
                engage_media_proxy()=3B        }
        if (client_nat_test ("3")) {                fix_contact()=3B       =
 }
=0A=
        if ((method=3D=3D"REGISTER" || method=3D=3D"SUBSCRIBE" ||          =
      (method=3D=3D"INVITE" && !has_totag())) && client_nat_test("3")) {   =
             nat_keepalive()=3B=0A=
        }ETC=2C ETC.
=0A=
 		 	   		  =0A=

_______________________________________________
=0A=
Users mailing list
=0A=
Users at lists.opensips.org
=0A=
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
=0A=


=0A=

_______________________________________________=0A=
Users mailing list=0A=
Users at lists.opensips.org=0A=
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 		 	   		  =

--_f4333c4e-a0ec-4b58-8737-b911dcc0f7c5_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>Craig<div><br></div><div>Thanks =
for getting back to me. &nbsp=3BWhen I do a "ps ax | grep media-" on my Ope=
nSIPS / MediaProxy dispatcher server=2C it shows that media-dispatcher is N=
OT running. &nbsp=3BI thought that was because media-dispatcher process tri=
ed to start but aborted when it couldn't locate "dispatcher.sock" in /var/r=
un/mediaproxy.</div><div><br></div><div>Because my OpennSIPS config loads t=
he mediaproxy.so module w/the "modparam("mediaproxy"=2C "mediaproxy_socket"=
=2C "var/run/mediaproxy/dispatcher.sock") set in the OpenSIPS config file=
=2C I thought OpenSIPS created the dispatcher.sock. &nbsp=3BOr do I have it=
 backwards - does MediaProxy's media-dispatcher process create dispatcher.s=
ock?</div><div><br></div><div>As for rights=2C I have to confess that I hav=
en't paid attention to rights. &nbsp=3BI followed instructions from the Med=
iaProxy documentation on installing MediaProxy using the Debian respository=
. &nbsp=3BThe instructions didn't mention setting rights for MediaProxy pro=
cesses. &nbsp=3BI did install MediaProxy via a sudo user account. I also ma=
de sure that I copied all of the included MediaProxy certificates into the =
directory specified in the [TLS] section of MediaProxy's config.ini file.&n=
bsp=3B &nbsp=3B</div><div><br></div><div>But I'm not sure which process cre=
ates "dispatcher.sock" so I don't know whether the rights are configured co=
rrectly. &nbsp=3BWhen I do a "ls -l /var/run/mediaproxy/" i got</div><div><=
br></div><div>drwxr-xr-x 2 root root 160 Jul 20 19:38 tls</div><div><br></d=
iv><div><span style=3D"font-size: 12pt=3B">(I see I was sloppy and used "di=
spatcher.sock" and "dispatcher.socket" in my post. &nbsp=3BI double-checked=
 my OpenSIPS and MediaProxy config files and I did use "dispatcher.sock" in=
 both. &nbsp=3BSorry about that.)</span></div><div><br></div><div>Regards</=
div><div><br></div><div>Gary<br><br><div><hr id=3D"stopSpelling">Date: Mon=
=2C 21 Jul 2014 09:30:51 +0800<br>From: craig.a.guy at gmail.com<br>To: users@=
lists.opensips.org<br>Subject: Re: [OpenSIPS-Users] OpenSIPS + MediaProxy: =
"dispatcher.socket" not being created<br><br><div dir=3D"ltr">Do you have m=
ediaproxy-dispatcher running? Also does the relevant process have rights to=
 create the dispatcher.sock?</div><div class=3D"ecxgmail_extra"><br><br><di=
v class=3D"ecxgmail_quote">On 21 July 2014 09:22=2C Gary Patton <span dir=
=3D"ltr">&lt=3B<a href=3D"mailto:gpatton.public at outlook.com" target=3D"_bla=
nk">gpatton.public at outlook.com</a>&gt=3B</span> wrote:<br>=0A=
<blockquote class=3D"ecxgmail_quote" style=3D"border-left:1px #ccc solid=3B=
padding-left:1ex=3B">=0A=
=0A=
=0A=
<div><div dir=3D"ltr">=0A=
=0A=
=0A=
<div dir=3D"ltr">Hi all. &nbsp=3BOpenSIPS 1.11.1 and MediaProxy 2.6.1. &nbs=
p=3B</div><div dir=3D"ltr"><br></div><div dir=3D"ltr">My OpenSIPS creates t=
he opensips.sock just fine. &nbsp=3BI don't believe my OpenSIPS is creating=
 the "dispatcher.sock" properly or at all. &nbsp=3BAfter I do a "/etc/init.=
d/opensips restart" command=2C I look in the /var/run/mediaproxy/ directory=
 and I never see the "dispatcher.socket" in there.<br>=0A=
<div><br></div><div>Here's one of the error message lines from my opensips.=
log:</div><div><span style=3D"font-size:12pt=3B"><br></span></div><div><spa=
n style=3D"font-size:12pt=3B">&gt=3B</span></div><div>&gt=3B<span style=3D"=
font-size:12pt=3B">Jul 20 19:44:50 opensips1 /usr/local/opensips_proxy/sbin=
/opensips[9476]: ERROR:mediaproxy:mediaproxy_connect: failed to connect to =
/var/run/mediaproxy/dispatcher.sock: No such file or directory</span></div>=
=0A=
<div>&gt=3B</div><div><br></div><div>The strange thing is that I always get=
 a</div><div><br></div><div>INFO:core:daemonize: pre-daemon process exiting=
 with -0</div><div><br></div><div>and my SIP softphones register with no pr=
oblems and I can make calls.</div>=0A=
<div><br></div><div>Any direction on what to look for=2C research=2C or rec=
onfigure would be appreciated. &nbsp=3BThanks.</div><div><br></div><div>Reg=
ards</div><div><br></div><div>Gary</div><div><br></div><div><span style=3D"=
font-size:12pt=3B">=3D=3D=3D=3D=3D</span></div>=0A=
<div><br></div><div>From my opensips_residential_01.cfg file:</div><div><br=
></div><div><div>#### MI_DATAGRAM module</div><div>loadmodule "mi_datagram.=
so"</div><div>modparam("mi_datagram"=2C "socket_name"=2C "/var/run/opensips=
/opensips.sock")</div>=0A=
</div><div><div><br></div><div>#####NAT modules</div><div><div>loadmodule "=
nat_traversal.so"</div><div>modparam("nat_traversal"=2C "keepalive_interval=
"=2C 90)</div><div>modparam("nat_traversal"=2C "keepalive_method"=2C "OPTIO=
NS")</div>=0A=
</div><div><br></div><div>loadmodule "mediaproxy.so"</div><div>modparam("me=
diaproxy"=2C "disable"=2C 0)</div><div>modparam("mediaproxy"=2C "mediaproxy=
_socket"=2C "/var/run/mediaproxy/dispatcher.sock") &nbsp=3B# CUSTOMIZE ME</=
div>=0A=
</div><div>modparam("mediaproxy"=2C "mediaproxy_timeout"=2C 500)</div><div>=
<br></div><div><div>####### Routing Logic ########</div><div><br></div><div=
># main request routing logic</div><div><br></div><div>=0A=
route{</div><div><br></div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B if (!mf=
_process_maxfwd_header("10")) {</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=
=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B sl_send_reply("483"=2C"Too Many Hop=
s")=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbs=
p=3B &nbsp=3B exit=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B }</div>=
=0A=
<div><br></div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B if (method=3D=3DINV=
ITE &amp=3B&amp=3B !has_totag()) {</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nb=
sp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B # We can also use a specific medi=
a relay if we need to</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=
=3B &nbsp=3B &nbsp=3B &nbsp=3B #$avp(media_relay) =3D "1.2.3.4"=3B</div>=0A=
<div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=
=3B engage_media_proxy()=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B }=
</div><div><br></div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B if (client_na=
t_test ("3")) {</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbs=
p=3B &nbsp=3B &nbsp=3B fix_contact()=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=
=3B &nbsp=3B }</div><div><br></div><div>=0A=
&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B if ((method=3D=3D"REGISTER" || method=
=3D=3D"SUBSCRIBE" ||</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B=
 &nbsp=3B &nbsp=3B &nbsp=3B (method=3D=3D"INVITE" &amp=3B&amp=3B !has_totag=
())) &amp=3B&amp=3B client_nat_test("3")) {</div><div>&nbsp=3B &nbsp=3B &nb=
sp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B nat_keepalive()=3B</div>=
=0A=
<div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B }</div><div>ETC=2C ETC.</div></div=
><div><br></div></div>=0A=
 		 	   		  </div></div>=0A=
<br>_______________________________________________<br>=0A=
Users mailing list<br>=0A=
<a href=3D"mailto:Users at lists.opensips.org">Users at lists.opensips.org</a><br=
>=0A=
<a href=3D"http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target=
=3D"_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br=
>=0A=
<br></blockquote></div><br></div>=0A=
<br>_______________________________________________=0A=
Users mailing list=0A=
Users at lists.opensips.org=0A=
http://lists.opensips.org/cgi-bin/mailman/listinfo/users</div></div> 		 	  =
 		  </div></body>
</html>=

--_f4333c4e-a0ec-4b58-8737-b911dcc0f7c5_--



More information about the Users mailing list