<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Make sure asterisk is stopping.<br>
kill it if necessary<br>
killall -9 /usr/sbin/asterisk<br>
<br>
<div class="moz-cite-prefix">On 11/01/2015 08:34 AM, Larry da Ponte
wrote:<br>
</div>
<blockquote
cite="mid:CA+=Lr4U=teUdd5yk=mDk3rexuVujNSDYj4oxAx2pCQ9YfvP+fw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>After setting up the outstreamcmd parameter in rpt.conf
with ezstream on my DIAL AllStar node I noticed that when I
stopped and restarted the asterisk service, I was getting the
following error in the log:<br>
</div>
<div><br>
</div>
<div>[Oct 29 23:15:37] WARNING[19838] manager.c: Unable to bind
socket: Address already in use<br>
</div>
<div><br>
</div>
<div>I found that after a service asterisk stop, port 5038 was
still in use.</div>
<div><br>
</div>
<div>my manager.conf file has port = 5038</div>
<div><br>
</div>
<div>prior to a service asterisk stop - I get the following:</div>
<div><br>
</div>
<div>
<div>root@Server1:~# ps -ef | grep 7497</div>
<div>root 7497 1 24 13:45 ? 00:09:24
/usr/sbin/asterisk</div>
<div>root 7528 7497 0 13:45 ? 00:00:00 /bin/sh
-c /usr/bin/lame --preset cbr 16 -r -m m -s 8 --bitwidth 16
- - | /usr/bin/ezstream -qvc /etc/asterisk/ezstream.xml</div>
</div>
<div><br>
</div>
<div>after a service asterisk stop I can still see port 5038 in
use:</div>
<div><br>
</div>
<div>
<div>root@Server1:~# netstat -nlp|grep 5038</div>
<div>tcp 0 0 <a moz-do-not-send="true"
href="http://127.0.0.1:5038">127.0.0.1:5038</a>
0.0.0.0:* LISTEN 7528/sh</div>
</div>
<div><br>
</div>
<div>Now, when I issue asterisk service start I get the
following error:</div>
<div><br>
</div>
<div>manager.c: Unable to bind socket: Address already in use<br>
</div>
<div><br>
</div>
<div>and Asterisk fails to load</div>
<div><br>
</div>
<div>If I kill pid 7528 then my service asterisk start works
fine.</div>
<div><br>
</div>
<div>I assume outstreamcmd is using manager, shells out to
ezstream which is a child of asterisk, and when asterisk shuts
down, the process running ezstream is left running.</div>
<div><br>
</div>
<div>Should I put something in my asterisk startip script to
look for processes using 5038 and kill them?</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>-Larry</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
App_rpt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:App_rpt-users@ohnosec.org">App_rpt-users@ohnosec.org</a>
<a class="moz-txt-link-freetext" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a>
To unsubscribe from this list please visit <a class="moz-txt-link-freetext" href="http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users">http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users</a> and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem. </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
"Anything is possible if you don't know what you are talking about."
1st Law of Logic</pre>
</body>
</html>