<div class="gmail_quote">2010/11/22 John Novack <span dir="ltr">&lt;<a href="mailto:jnovack@stromberg-carlson.org">jnovack@stromberg-carlson.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  

<div bgcolor="#ffffff" text="#000000"><div class="im">
<br>
<br>
Danny Dias wrote:
<blockquote type="cite">Hello John,
  <div><br>
  </div>
  <div>What i am asking is if i can apply this patch manually or
something like this without making any upgrade of Asterisk, has anyone
done this before?</div>
  <div><br>
  </div>
</blockquote></div>
I can&#39;t answer that question.<div class="im"><br></div></div></blockquote><div><br></div><div><br></div><div>ummm why not? is something wrong?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000"><div class="im">
<blockquote type="cite">
  <div>Or i have to upgrade my Asterisk versions...i don&#39;t really want
to do this...</div>
  <div><br>
  </div>
</blockquote></div>
Why not? MANY fixes have been included in the upgrades. <br>
Improved security at the least. There are 10-15 versions between where
you are operating and what is current<br><font color="#888888">
<br></font></div></blockquote><div><br></div><div>I&#39;m sure that the upgrade will fix this, but if applying the patch without making any upgrade will be better for me, my asterisk servers are working with many calls, realtime, fop etc...and an upgrade could make something happen...</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"><font color="#888888">
John Novack</font><div><div></div><div class="h5"><br>
<br>
<blockquote type="cite">
  <div>Thanks in Advance!<br>
  <br>
  <div class="gmail_quote">2010/11/22 John Novack <span dir="ltr">&lt;<a href="mailto:jnovack@stromberg-carlson.org" target="_blank">jnovack@stromberg-carlson.org</a>&gt;</span><br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">Hasn&#39;t
this been fixed in later versions?<br>
1.4.37 is current, or at least it was in the last few days.<br>
    <br>
Upgrading with no reason isn&#39;t suggested, but in this case you have a
good reason, and if you dig deep enough you may find the fix is already
in place.<br>
    <br>
John Novack
    <div>
    <div><br>
    <br>
    <br>
Danny Dias wrote:<br>
    <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hello Asterisk community,<br>
      <br>
We are having some problems with crashes in Asterisk, my asterisk<br>
versions are 1.4.24.1 and 1.4.23.2. I have found this:<br>
      <br>
&quot;~/work/asterisk-branch-1.4$ svn log -c 260345<br>
------------------------------------------------------------------------<br>
r260345 | mmichelson | 2010-04-30 22:08:15 +0200 (Fri, 30 Apr 2010) |
18 lines<br>
      <br>
Fix potential crash from race condition due to accessing channel data<br>
without the channel locked.<br>
      <br>
In res_musiconhold.c, there are several places where a channel&#39;s<br>
stream&#39;s existence is checked prior to calling ast_closestream on it.
The issue<br>
here is that in several cases, the channel was not locked while
checking the<br>
stream. The result was that if two threads checked the state of the
channel&#39;s<br>
stream at approximately the same time, then there could be a situation
where<br>
both threads attempt to call ast_closestream on the channel&#39;s stream.
The result<br>
here is that the refcount for the stream would go below 0, resulting in
a crash.<br>
      <br>
I have added proper channel locking to res_musiconhold.c to ensure that<br>
we do not try to check chan-&gt;stream without the channel locked. A<br>
Digium customer has been using this patch for several weeks and has not<br>
 had any crashes since applying the patch.<br>
      <br>
ABE-2147<br>
&quot;<br>
      <br>
How can i apply this patch on my asterisk versions: 1.4.24.1 and<br>
1.4.23.2? do i have to apply this patch manually?<br>
      <br>
Thanks in advance for your help<br>
      <br>
  <br>
    </blockquote>
    <br>
-- <br>
    <br>
    </div>
    </div>
Dog is my Co-pilot<br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Ing. Danny Dias<br>
  <a href="http://www.DannTEL.net" target="_blank">www.DannTEL.net</a><br>
  </div>
</blockquote>
<br>
<pre cols="10000">-- 

Dog is my Co-pilot</pre>
</div></div></div>

</blockquote></div><br><br clear="all"><br>-- <br>Ing. Danny Dias<br><a href="http://www.DannTEL.net" target="_blank">www.DannTEL.net</a><br>