<div dir="ltr">On Thu, Aug 18, 2011 at 16:50, Bryant Zimmerman <span dir="ltr">&lt;<a href="mailto:BryantZ@zktech.com">BryantZ@zktech.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<span style="font-family:Arial, Helvetica, sans-serif;font-size:10pt"><span style="font-family:tahoma,arial,sans-serif;font-size:10pt"> <hr align="center" size="2" width="100%">
<b>From</b>: &quot;ik&quot; &lt;<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>&gt;<br>
<b>Sent</b>: Thursday, August 18, 2011 9:47 AM<br>
<b>To</b>: &quot;Asterisk Developers Mailing List&quot; &lt;<a href="mailto:asterisk-dev@lists.digium.com" target="_blank">asterisk-dev@lists.digium.com</a>&gt;<br>
<b>Subject</b>: Re: [asterisk-dev] Asterisk 1.8 SIP_CAUSE performance regression</span><br>
<br>
<div dir="ltr"><div><div></div><div class="h5">On Thu, Aug 18, 2011 at 16:31, Matthew Nicholson <span dir="ltr">&lt;<a href="mailto:mnicholson@digium.com" target="_blank">mnicholson@digium.com</a>&gt;</span> wrote:<br>
</div></div><div class="gmail_quote"><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left:#ccc 1px solid;margin:0px 0px 0px 0.8ex;padding-left:1ex">When chan_sip sets MASTER_CHANNEL(HASH(SIP_CAUSE,&lt;chan name&gt;)) the<br>


MASTER_CHANNEL function scans the channel list which can be a slow<br>
operation. Under moderate traffic loads this causes delays in processing<br>
sip messages which can cause retransmission timers to expire.<br>
<br>
There is no other way to know the response code of a SIP message, but<br>
depending on what you are using the response codes for, you may be able<br>
to accomplish the same thing a different way. What are you using the<br>
codes for?<br>
</blockquote>
<div><br>
I write application using Asterisk, and I use it to better understand the hangup cause, or error messages from SIP trunks. <br>
<br>
 <br>
Ido<br>
</div>
</div></div><blockquote class="gmail_quote" style="border-left:rgb(204,204,204) 1px solid;margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5"><br>
Also be aware that this feature is not going away, it simply will be<br>
disabled by default.<br>
</div></div><div>
<div></div>
<div><div><div></div><div class="h5"><br>
On Thu, 2011-08-18 at 15:49 +0300, ik wrote:<br>
&gt; I&#39;m using it.<br>
&gt;<br>
&gt; Can you please provide more information on the issue with this<br>
&gt; feature ?<br>
&gt; Is there another way to know the response code of SIP ?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; Ido<br>
&gt;<br>
&gt; On Thu, Aug 18, 2011 at 15:42, Matthew Nicholson<br>
&gt; &lt;<a href="mailto:mnicholson@digium.com" target="_blank">mnicholson@digium.com</a>&gt; wrote:<br>
&gt;         Greetings,<br>
&gt;<br>
&gt;         Recently a performance regression in chan_sip was discovered<br>
&gt;         in Asterisk<br>
&gt;         1.8. The regression is caused by chan_sip setting<br>
&gt;         MASTER_CHANNEL(HASH(SIP_CAUSE,&lt;chan name&gt;)) after each<br>
&gt;         response received<br>
&gt;         on a channel. That feature has been made optional in the<br>
&gt;         latest 1.8 SVN<br>
&gt;         code, but is currently still enabled by default. After some<br>
&gt;         internal<br>
&gt;         discussion, we decided to consider disabling this feature by<br>
&gt;         default in<br>
&gt;         future 1.8 versions. This would be an unexpected behavior<br>
&gt;         change for<br>
&gt;         anyone depending on that SIP_CAUSE update in their dialplan.<br>
&gt;         Alternatively, with this feature enabled, anyone upgrading<br>
&gt;         from Asterisk<br>
&gt;         1.4 will see a 60% decrease in the amount of SIP traffic they<br>
&gt;         can handle<br>
&gt;         before encountering problems.<br>
&gt;<br>
&gt;         Before disabling this feature, we wanted to get a feel for how<br>
&gt;         many<br>
&gt;         people are using it. If you use this feature, please respond<br>
&gt;         to this<br>
&gt;         email and let us know.<br>
&gt;         --<br>
&gt;         Matthew Nicholson<br>
&gt;         Digium, Inc. | Software Developer<br>
&gt;<br>
&gt;<br>
&gt;<br></div></div>
Does it give the same data as the hangupcause when you use the h context or is it different?<br></div></div></blockquote></div></div></span></blockquote><div><br>Nop, hangupcause is a translation of return codes. Some SIP return codes provide the same hangupcause code. SIP return codes contain more information. hangupcause is more protocol agnostic.<br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span style="font-family: Arial,Helvetica,sans-serif; font-size: 10pt;"><div dir="ltr">

<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div>
<br>
Bryant</div></div></blockquote></div></div></span></blockquote><div><br>Ido <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><span style="font-family: Arial,Helvetica,sans-serif; font-size: 10pt;"><div dir="ltr">

<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
</div>
</blockquote></div>
</div></span>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div>