[asterisk-users] Channel is rsrvd and does not turn off

Rodrigo Lang rodrigoferreiralang at gmail.com
Thu Jul 19 15:49:39 CDT 2012


Hi list.

I have Asterisk installed on a Debian 1.8 6 64-bit.

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.

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.

Can one imagine what might be happening?


*Output of command "core show channels":*
*
*
charger*CLI> core show channels
Channel              Location             State   Application(Data)
Khomp_SMS/B0C2-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp_SMS/B0C1-0     s at khomp-sms:1        Rsrvd   (None)
Khomp/B0C1-0.0       (None)               Up      AppDial((Outgoing Line))
SIP/9549-00000f2c    s at macro-dialout-trun Up
 Dial(Khomp/*gebs/99451060,300,
13 active channels
1 active call
4884 calls processed


*Here's the context:*

context khomp-sms {
    s => {
        Noop(Mensagem recebida);
        Noop(Tipo de mensagem: ${KSmsType});
        if( "${KSmsType}" = "confirm" ) {
            Noop(Mensagem de confirmacao de entrega);
            Agi(confirmation.py);
            if( "${AGISTATUS}" = "SUCCESS") {
                Log(NOTICE,AGI executado com sucesso);
            } else {
                Log(WARNING,Problema ao executar AGI - Status:
${AGISTATUS});
            }
        }
        Hangup();
    }
    h => { Hangup(); }
}


*Follow the logs of the channel:*

[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:1]
NoOp("Khomp_SMS/B0C0-0", "Mensagem recebida") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:2]
NoOp("Khomp_SMS/B0C0-0", "Tipo de mensagem: confirm") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:3]
GotoIf("Khomp_SMS/B0C0-0", "1?4:11") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Goto (khomp-sms,s,4)
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:4]
NoOp("Khomp_SMS/B0C0-0", "Mensagem de confirmacao de entrega") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:5]
AGI("Khomp_SMS/B0C0-0", "confirmation.py") in new stack
[2012-07-19 10:15:26] VERBOSE[554] res_agi.c:     -- <Khomp_SMS/B0C0-0>AGI
Script confirmation.py completed, returning 0
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:6]
GotoIf("Khomp_SMS/B0C0-0", "1?7:9") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Goto (khomp-sms,s,7)
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:7]
Log("Khomp_SMS/B0C0-0", "NOTICE,AGI executado com sucesso") in new stack
[2012-07-19 10:15:26] NOTICE[554] Ext. s: AGI executado com sucesso
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:8]
Goto("Khomp_SMS/B0C0-0", "10") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Goto (khomp-sms,s,10)
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:10]
NoOp("Khomp_SMS/B0C0-0", "Finish if_if_khomp-sms_335_336") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:11]
NoOp("Khomp_SMS/B0C0-0", "Finish if_khomp-sms_335") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [s at khomp-sms:12]
Hangup("Khomp_SMS/B0C0-0", "") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:   == Spawn extension (khomp-sms,
s, 12) exited non-zero on 'Khomp_SMS/B0C0-0'
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:     -- Executing [h at khomp-sms:1]
Hangup("Khomp_SMS/B0C0-0", "") in new stack
[2012-07-19 10:15:26] VERBOSE[554] pbx.c:   == Spawn extension (khomp-sms,
h, 1) exited non-zero on 'Khomp_SMS/B0C0-0'
[2012-07-19 12:45:23] VERBOSE[554] asterisk.c:     -- Remote UNIX
connection disconnected


I appreciate any help!

Best regards
-- 
Rodrigo Lang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120719/777a8a43/attachment.htm>


More information about the asterisk-users mailing list