<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=PT-BR>Hello Moises, <o:p></o:p></span></p>
<p class=MsoNormal><span lang=PT-BR><o:p> </o:p></span></p>
<p class=MsoNormal>We are having a problem that “locks” some
channels, precisely 15 channels when it occurs.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Description:<o:p></o:p></p>
<p class=MsoNormal>Asterisk originate the call<o:p></o:p></p>
<p class=MsoNormal>The call gets answered<o:p></o:p></p>
<p class=MsoNormal>Asterisk disconnect the call<o:p></o:p></p>
<p class=MsoNormal>(asterisk 1.4.26)<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>But from time to time, the channel can’t be used anymore.
It stays in “Clear Forward” state. It can be seen below:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New";
color:red'>95 BR 10 4 Yes No CLEAR FO
SEIZE AC<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>When it occurs, the first 15 channels on the E1 gets this
state. The last 15 channels work normally.<o:p></o:p></p>
<p class=MsoNormal>We put an analyzer at the E1 and found that:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The Clear forward is sent<o:p></o:p></p>
<p class=MsoNormal>The ack is received<o:p></o:p></p>
<p class=MsoNormal>The channel is released normally<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>But asterisk “thinks” it is still in Clear
Forward state, like if it was waiting for the ack.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Since the hardware and the signaling are working ok, it
seems that some internal flag remains at the old state. And that flag doesn’t
allow asterisk to dial on these channels.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This is a normal call:<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNoSpacing>[16:12:57:551] [Thread: 1123551552] [Chan 120] - CAS Rx
<< [ANSWER] 0x04<o:p></o:p></p>
<p class=MsoNoSpacing>[16:12:57:551] [Thread: 1123551552] [Chan 120] -
Attempting to cancel timer timer 3<o:p></o:p></p>
<p class=MsoNoSpacing>[16:12:57:551] [Thread: 1123551552] [Chan 120] - timer id
3 found, cancelling it now<o:p></o:p></p>
<p class=MsoNoSpacing>[16:12:57:551] [Thread: 1123551552] [Chan 120] -
Attempting to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNoSpacing>[16:12:57:551] [Thread: 1123551552] [Chan 120] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:960] [Thread: 1123551552] [Chan 120] -
Attempting to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:960] [Thread: 1123551552] [Chan 120] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:960] [Thread: 1123551552] [Chan 120] - CAS Tx
>> [CLEAR FORWARD] 0x08<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:960] [Thread: 1123551552] [Chan 120] - CAS Raw
Tx >> 0x09<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:992] [Thread: 1093957952] [Chan 120] - Bits
changed from 0x04 to 0x08<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:992] [Thread: 1093957952] [Chan 120] - CAS Rx
<< [IDLE] 0x08<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:992] [Thread: 1093957952] [Chan 120] - Call
ended<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:992] [Thread: 1093957952] [Chan 120] -
Attempting to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNoSpacing>[16:14:26:992] [Thread: 1093957952] [Chan 120] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This is the first problematic call: (at channel 1, span 4)<o:p></o:p></p>
<p class=MsoNormal>After this, the channel locks in “CLEAR FO”
state<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>[14:46:55:584] [Thread: 1099430208] [Chan 94] - scheduled
timer id 3 (r2_answer)<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - Bits changed
from 0x0C to 0x04<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - CAS Rx
<< [ANSWER] 0x04<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - Attempting
to cancel timer timer 3<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - timer id 3
found, cancelling it now<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - Attempting
to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNormal>[14:47:04:857] [Thread: 1099430208] [Chan 94] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNormal>[14:48:00:592] [Thread: 1099430208] [Chan 94] - Attempting
to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNormal>[14:48:00:592] [Thread: 1099430208] [Chan 94] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNormal>[14:48:00:592] [Thread: 1099430208] [Chan 94] - CAS Tx
>> [CLEAR FORWARD] 0x08<o:p></o:p></p>
<p class=MsoNormal>[14:48:00:592] [Thread: 1099430208] [Chan 94] - CAS Raw Tx
>> 0x09<o:p></o:p></p>
<p class=MsoNormal>[15:55:32:843] [Thread: 1146915136] [Chan 94] - Attempting
to cancel timer timer 0<o:p></o:p></p>
<p class=MsoNormal>[15:55:32:844] [Thread: 1146915136] [Chan 94] - Cannot
cancel timer 0<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>The logs of the ocurrency in other channels are incomplete
as the the process that is loggin the call seems to be interrupted (the last
line of the log is incomplete, the log is stoped at the middle of the line.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>We got 3 dumps too:<o:p></o:p></p>
<p class=MsoNormal> <o:p></o:p></p>
<p class=MsoNormal><span style='font-family:"Courier New";color:red'>1)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>(gdb) bt<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#0
0x0000000000000000 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#1
0x00000036af6038c5 in openr2_chan_handle_timers (r2chan=0xf8ec000) at
r2chan.c:318<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#2
0x00000036af6038f6 in openr2_chan_process_event (r2chan=0xf8ec000) at
r2chan.c:331<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#3
0x00002aaaba885f3c in mfcr2_monitor (data=<value optimized out>) at
chan_dahdi.c:9241<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#4
0x00000000004aff7c in dummy_start (data=<value optimized out>) at
utils.c:856<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#5
0x0000003f32606307 in start_thread () from /lib64/libpthread.so.0<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#6 0x0000003f31ad1ded
in clone () from /lib64/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New";color:red'>2)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#0
0x0000000000000000 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>(gdb) bt<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#0
0x0000000000000000 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#1
0x00000036af6038c5 in openr2_chan_handle_timers (r2chan=0x2aaaac070fe0) at
r2chan.c:318<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#2
0x00000036af6038f6 in openr2_chan_process_event (r2chan=0x2aaaac070fe0) at
r2chan.c:331<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#3
0x00002aaaba93407c in dahdi_func_read (chan=0x2aaaac070fe0, function=<value
optimized out>, data=0x0,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>
buf=0x36af6086db "H\211\225øþÿÿH\213\205\bÿÿÿH\213\200", len=0) at
chan_dahdi.c:3933<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#4
0x0000000000000013 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#5
0x0000000000000014 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#6
0x0000000000000016 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#7
0x0000000000000017 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#8
0x0000000000000018 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#9
0x0000000000000019 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#10
0x000000000000001a in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#11
0x000000000000001b in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#12
0x000000000000001c in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#13
0x000000000000001d in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#14
0x000000000000001e in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#15
0x000000000000001f in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#16
0x0002000300000020 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#17
0x0000000000000021 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#18
0x0000000000000022 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#19
0x0000000000000000 in ?? ()<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New";color:red'>3)<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>(gdb) bt<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#0
0x00000036af608f40 in set_cas_signal (r2chan=0x7c171c0,
signal=OR2_CAS_CLEAR_FORWARD) at r2proto.c:324<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#1
0x00000036af60e777 in send_clear_forward (r2chan=0x7c171c0) at r2proto.c:2397<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#2
0x00000036af60e8cd in openr2_proto_disconnect_call (r2chan=0x7c171c0,
cause=OR2_CAUSE_NORMAL_CLEARING) at r2proto.c:2460<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#3
0x00000036af60477d in openr2_chan_disconnect_call (r2chan=0x7c171c0,
cause=OR2_CAUSE_NORMAL_CLEARING) at r2chan.c:609<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#4
0x00002aaaba8a89a6 in dahdi_hangup (ast=0x7eb86a0) at chan_dahdi.c:3344<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#5
0x000000000043ccb2 in ast_hangup (chan=0x7eb86a0) at channel.c:1548<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#6
0x00002aaaacd3f6d9 in dial_exec_full (chan=0x2aaac4145930, data=<value
optimized out>, peerflags=0x44bf2560, continue_exec=0x0) at app_dial.c:1822<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#7
0x00002aaaacd42a55 in dial_exec (chan=0x0, data=0x4004da2b) at app_dial.c:1854<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#8
0x00000000004811cd in pbx_extension_helper (c=0x2aaac4145930, con=<value
optimized out>, context=0x2aaac4145b80 "macro-disca-ddd-telefonica",<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>
exten=0x2aaac4145bd0 "s", priority=8, label=<value optimized
out>, callerid=0x2aaac4110790 "", action=E_SPAWN) at pbx.c:538<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#9
0x0000000000481603 in ast_spawn_extension (c=0x0, context=0x16 <Address 0x16
out of bounds>,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>
exten=0xffffffffffffffb0 <Address 0xffffffffffffffb0 out of bounds>,
priority=775435825, callerid=<value optimized out>) at pbx.c:2285<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#10
0x00002aaabc7c581a in _macro_exec (chan=0x2aaac4145930, data=<value
optimized out>, exclusive=0) at app_macro.c:352<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#11 0x00000000004811cd
in pbx_extension_helper (c=0x2aaac4145930, con=<value optimized out>,
context=0x2aaac4145b80 "macro-disca-ddd-telefonica",<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>
exten=0x2aaac4145bd0 "s", priority=1, label=<value optimized
out>, callerid=0x2aaac4110790 "", action=E_SPAWN) at pbx.c:538<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#12
0x0000000000483852 in __ast_pbx_run (c=0x2aaac4145930) at pbx.c:2285<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#13
0x0000000000484719 in pbx_thread (data=0x0) at pbx.c:2602<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#14
0x00000000004aff7c in dummy_start (data=<value optimized out>) at
utils.c:856<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#15
0x0000003f32606307 in start_thread () from /lib64/libpthread.so.0<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-family:"Courier New"'>#16
0x0000003f31ad1ded in clone () from /lib64/libc.so.6<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>This is only occurring with “Telefonica E1s”.
Can it be a configuration problem? <o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I’ll wait your analysis,<o:p></o:p></p>
<p class=MsoNormal>Thanks,<o:p></o:p></p>
<p class=MsoNormal>Prado<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>