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")
#####NAT modulesloadmodule "nat_traversal.so"modparam("nat_traversal"=2C "k=
eepalive_interval"=2C 90)modparam("nat_traversal"=2C "keepalive_method"=2C =
"OPTIONS")
loadmodule "mediaproxy.so"modparam("mediaproxy"=2C "disable"=2C 0)modparam(=
"mediaproxy"=2C "mediaproxy_socket"=2C "/var/run/mediaproxy/dispatcher.sock=
")  # CUSTOMIZE MEmodparam("mediaproxy"=2C "mediaproxy_timeout"=2C 500)
####### Routing Logic ########
# main request routing logic
route{
        if (!mf_process_maxfwd_header("10")) {                sl_send_reply=
("483"=2C"Too Many Hops")=3B                exit=3B        }
        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                engage_media_proxy()=3B        }
        if (client_nat_test ("3")) {                fix_contact()=3B       =
 }
        if ((method=3D=3D"REGISTER" || method=3D=3D"SUBSCRIBE" ||          =
      (method=3D=3D"INVITE" && !has_totag())) && client_nat_test("3")) {   =
             nat_keepalive()=3B        }ETC=2C ETC.
=0A=
 		 	   		  =

--_8e675f82-bb51-4d8b-9e0e-1319934a2393_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
</head>
<body class=3D'hmmessage'><div dir=3D'ltr'>=0A=
=0A=
<style><!--=0A=
.hmmessage P=0A=
{=0A=
margin:0px=3B=0A=
padding:0px=0A=
}=0A=
body.hmmessage=0A=
{=0A=
font-size: 12pt=3B=0A=
font-family:Calibri=0A=
}=0A=
--></style>=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><div><br></div><div>H=
ere's one of the error message lines from my opensips.log:</div><div><span =
style=3D"font-size: 12pt=3B"><br></span></div><div><span 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]: E=
RROR:mediaproxy:mediaproxy_connect: failed to connect to /var/run/mediaprox=
y/dispatcher.sock: No such file or directory</span></div><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 problems and I can m=
ake calls.</div><div><br></div><div>Any direction on what to look for=2C re=
search=2C or reconfigure would be appreciated. &nbsp=3BThanks.</div><div><b=
r></div><div>Regards</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><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><d=
iv>modparam("mi_datagram"=2C "socket_name"=2C "/var/run/opensips/opensips.s=
ock")</div></div><div><div><br></div><div>#####NAT modules</div><div><div>l=
oadmodule "nat_traversal.so"</div><div>modparam("nat_traversal"=2C "keepali=
ve_interval"=2C 90)</div><div>modparam("nat_traversal"=2C "keepalive_method=
"=2C "OPTIONS")</div></div><div><br></div><div>loadmodule "mediaproxy.so"</=
div><div>modparam("mediaproxy"=2C "disable"=2C 0)</div><div>modparam("media=
proxy"=2C "mediaproxy_socket"=2C "/var/run/mediaproxy/dispatcher.sock") &nb=
sp=3B# CUSTOMIZE ME</div></div><div>modparam("mediaproxy"=2C "mediaproxy_ti=
meout"=2C 500)</div><div><br></div><div><div>####### Routing Logic ########=
</div><div><br></div><div># main request routing logic</div><div><br></div>=
<div>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=
 Hops")=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B =
&nbsp=3B &nbsp=3B exit=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 (method=3D=
=3DINVITE &amp=3B&amp=3B !has_totag()) {</div><div>&nbsp=3B &nbsp=3B &nbsp=
=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B # We can also use a specif=
ic media 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</di=
v><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>&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 &nbsp=3B &nbsp=3B &nbsp=3B &nbsp=3B &n=
bsp=3B &nbsp=3B nat_keepalive()=3B</div><div>&nbsp=3B &nbsp=3B &nbsp=3B &nb=
sp=3B }</div><div>ETC=2C ETC.</div></div><div><br></div></div>=0A=
 		 	   		  </div></body>
</html>=

--_8e675f82-bb51-4d8b-9e0e-1319934a2393_--



More information about the Users mailing list