<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Moises,</span></div><div><span><br></span></div><div><span>May I ask if asterisk is already SS7 ready? </span></div><div> </div><div><span style="font-weight: bold; color: rgb(33, 33, 67); font-family: 'times new roman', 'new york', times, serif; ">RITCHEL E. QUISOY</span><br><span style="font-style:italic;">Technical Services Group</span><br><span style="font-weight:bold;color:rgb(0, 0, 127);background-color:rgb(255, 255, 255);">Cruz Telephone Company Inc</span><span style="background-color:rgb(255, 255, 255);">.</span><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div dir="ltr"><font size="2" face="Arial"><b><span
style="font-weight:bold;"><br></span></b></font></div><div dir="ltr"><font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Moises Silva <moises.silva@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> asterisk-r2@lists.digium.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 14, 2012 8:59 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [asterisk-r2] Alarm on openR2 spans leave channels with RxCAS 0xC state<br> </font> </div> <br><div id="yiv1038169075"><div class="yiv1038169075gmail_quote">On Mon, Feb 6, 2012 at 10:04 PM, Marcelo Pacheco <span dir="ltr"><<a rel="nofollow" ymailto="mailto:marcelo@m2j.com.br" target="_blank" href="mailto:marcelo@m2j.com.br">marcelo@m2j.com.br</a>></span> wrote:<br><blockquote class="yiv1038169075gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<u></u>
<div>
I noticed openr2 doesn't discard signalling if the fixed bits
(usually 01) are different from the proper settings.<br>
I changed src/r2proto.c, function openr2_proto_handle_cas:<br>
<br>
adding:<br>
if ((cas & 3) != r2chan->r2context->cas_nonr2bits)<br>
{ // Treat NON CAS bits diferent than expected as an invalid CAS
bits<br>
r2chan->cas_tx_signal = OR2_CAS_INVALID;<br>
return 0;<br>
}<br>
/* pick up only the R2 bits */ <- This comment already existed<br>
<br>
In addition, ignore alarms (continue handling input CAS bits as
normal).<br>
</div></blockquote><div><br></div><div>I'm not sure I am following what you're doing here. You are basically taking the non cas bits by doing:</div><div><br></div><div>(cas & 3) ... this basically takes the CD bits only. Then you compare the CD bits to see if they are what we expect. If they are not what we expect, then you ignore the whole thing? how do you know the AB bits did not change?? you just assume that a change in bits CD will not happen at the same time than a change in AB. I don't think that's right.</div>
<div><br></div><div>In fact, the current code in openr2 seems to make more sense, it takes the bits that matter, and only if the bits that matter change, then we do something, otherwise, we ignore the bit changes in the bits that do not matter anyways.</div>
<div><br></div><div>Can you elaborate what is this supposed to fix?</div><div><br></div><div><br class="yiv1038169075Apple-interchange-newline"><table border="0" cellspacing="0" cellpadding="0" width="648" style="width:486.3pt;border-collapse:collapse;">
<tbody><tr style="height:60.55pt;"><td style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt;">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><b><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(14, 93, 167); font-family: Arial, sans-serif; ">Moises Silva<br>
</span></b><b><i><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Software Engineer, Development Manager</span></i></b><b><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(14, 93, 167); font-family: Arial, sans-serif; "></span></b></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; "><a rel="nofollow" ymailto="mailto:msilva@sangoma.com" target="_blank" href="mailto:msilva@sangoma.com">msilva@sangoma.com</a></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; ">Sangoma Technologies</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; ">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(255, 192, 0); font-family: Arial, sans-serif; "></span></div>
</td><td width="187" style="width:140.45pt;border-right-style:none;border-bottom-style:none;border-left-style:none;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt;">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; "><br>t. +1 800 388 2475 (N. America)</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; ">t. +1 905 474 1990 x128</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(0, 92, 165); font-family: Arial, sans-serif; ">f. +1 905 474 9223</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><span lang="EN-CA" style="font-size: 8pt; line-height: 12px; color: rgb(31, 73, 125); font-family: Arial, sans-serif; "> </span></div></td><td width="149" rowspan="2" style="width:111.55pt;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;border-left-style:none;border-left-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;border-right-style:none;border-right-color:initial;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt;">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><a rel="nofollow" target="_blank" href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email+signatures"><b><span style="color:rgb(31,73,125);text-decoration:none;"><img border="0" width="96" height="15"></span></b></a><span style="color:rgb(31,73,125);"></span></div>
</td></tr><tr><td width="500" colspan="2" style="width:374.75pt;border-top-style:none;border-right-style:none;border-left-style:none;border-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px;"><a rel="nofollow" target="_blank" href="http://sangoma.com/products?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Products</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a rel="nofollow" target="_blank" href="http://sangoma.com/solutions?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Solutions</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a
rel="nofollow" target="_blank" href="http://sangoma.com/about_us/events?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Events</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a rel="nofollow" target="_blank" href="http://www.sangoma.com/contact?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Contact</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a rel="nofollow" target="_blank"
href="http://wiki.sangoma.com/?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Wiki</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a rel="nofollow" target="_blank" href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Facebook</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "> | </span><a rel="nofollow" target="_blank"
href="http://www.twitter.com/sangoma?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures"><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">Twitter</span></a><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; ">`| | </span><span lang="PT-BR" style="font-size: 8pt; line-height: 12px; color: rgb(128, 176, 214); font-family: Arial, sans-serif; "><a rel="nofollow" target="_blank" href="http://www.youtube.com/sangomatechnologies?utm_source=signature&utm_medium=email&utm_campaign=email%2Bsignatures">YouTube</a></span></div>
</td></tr></tbody></table></div></div>
</div><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-r2 mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-r2" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-r2</a><br><br> </div> </div> </div></body></html>