Hi list.<div><br></div><div><div>I have Asterisk installed on a Debian 1.8 6 64-bit.</div><div><br></div><div>What happens is the following, some channels are not being hangup properly. They run the hangup in dialplan, but the output of the command "core show channels" shows several channels with status "rsrvd." Checking the server's memory, the "top" command shows multiple processes and stopped using the Asterisk server memory. </div>
<div><br></div><div>I tried to shut down the channels with the command "channel request hangup Khomp_SMS/B0C2-0" (Khomp_SMS/B0C2-0 the channel is locked), but nothing happens. I can only release these channels when I restart asterisk.</div>
<div><br></div><div>Can one imagine what might be happening?</div><div><br></div><div><br></div><div><u>Output of command "core show channels":</u></div><div><u><br></u></div><div><div>charger*CLI> core show channels</div>
<div>Channel Location State Application(Data)</div><div>Khomp_SMS/B0C2-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div>
<div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div>
<div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div><div>Khomp_SMS/B0C1-0 s@khomp-sms:1 Rsrvd (None)</div>
<div>Khomp/B0C1-0.0 (None) Up AppDial((Outgoing Line))</div><div>SIP/9549-00000f2c s@macro-dialout-trun Up Dial(Khomp/*gebs/99451060,300,</div><div>13 active channels</div><div>1 active call</div>
<div>4884 calls processed</div></div><div><br></div><div><br></div><div><u>Here's the context:</u></div><div><br></div><div><div>context khomp-sms {</div><div> s => {</div><div> Noop(Mensagem recebida);</div>
<div> Noop(Tipo de mensagem: ${KSmsType});</div><div> if( "${KSmsType}" = "confirm" ) {</div><div> Noop(Mensagem de confirmacao de entrega);</div><div> Agi(confirmation.py);</div>
<div> if( "${AGISTATUS}" = "SUCCESS") {</div><div> Log(NOTICE,AGI executado com sucesso);</div><div> } else {</div><div> Log(WARNING,Problema ao executar AGI - Status: ${AGISTATUS});</div>
<div> }</div><div> }</div><div> Hangup();</div><div> }</div><div> h => { Hangup(); }</div><div>}</div></div><div><br></div><div><br></div><div><u>Follow the logs of the channel:</u></div>
</div><div><br></div><div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:1] NoOp("Khomp_SMS/B0C0-0", "Mensagem recebida") in new stack</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:2] NoOp("Khomp_SMS/B0C0-0", "Tipo de mensagem: confirm") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:3] GotoIf("Khomp_SMS/B0C0-0", "1?4:11") in new stack</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Goto (khomp-sms,s,4)</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:4] NoOp("Khomp_SMS/B0C0-0", "Mensagem de confirmacao de entrega") in new stack</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:5] AGI("Khomp_SMS/B0C0-0", "confirmation.py") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] res_agi.c: -- <Khomp_SMS/B0C0-0>AGI Script confirmation.py completed, returning 0</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:6] GotoIf("Khomp_SMS/B0C0-0", "1?7:9") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Goto (khomp-sms,s,7)</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:7] Log("Khomp_SMS/B0C0-0", "NOTICE,AGI executado com sucesso") in new stack</div>
<div>[2012-07-19 10:15:26] NOTICE[554] Ext. s: AGI executado com sucesso</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:8] Goto("Khomp_SMS/B0C0-0", "10") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Goto (khomp-sms,s,10)</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:10] NoOp("Khomp_SMS/B0C0-0", "Finish if_if_khomp-sms_335_336") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:11] NoOp("Khomp_SMS/B0C0-0", "Finish if_khomp-sms_335") in new stack</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [s@khomp-sms:12] Hangup("Khomp_SMS/B0C0-0", "") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: == Spawn extension (khomp-sms, s, 12) exited non-zero on 'Khomp_SMS/B0C0-0'</div><div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: -- Executing [h@khomp-sms:1] Hangup("Khomp_SMS/B0C0-0", "") in new stack</div>
<div>[2012-07-19 10:15:26] VERBOSE[554] pbx.c: == Spawn extension (khomp-sms, h, 1) exited non-zero on 'Khomp_SMS/B0C0-0'</div><div>[2012-07-19 12:45:23] VERBOSE[554] asterisk.c: -- Remote UNIX connection disconnected</div>
</div><div><br></div><div><br></div><div>I appreciate any help!</div><div><br clear="all"><div>Best regards</div>-- <br>Rodrigo Lang<br><br>
</div>