Bug#386312: asterisk: deadlocks on channels

C. Chad Wallace cwallace at lodgingcompany.com
Thu Sep 7 01:15:42 UTC 2006


Subject: asterisk-classic: Similar issues
Followup-For: Bug #386312
Package: asterisk-classic
Version: 1:1.2.11.dfsg-1

We've been having similar issues.  I don't know if they're related.  We are also running a te110p card from Digium, but the problem seems to be happening with our SIP phones as well.  Once the system starts locking up, any queue you call gives dead air instead of the music-on-hold--after the initial announcement (An agent will be with you shortly...), which comes through just fine.  It never connects to anyone either, it just locks up.  Also, if anyone dials in to AgentCallbackLogin(), to log in or out, they also get dead air and nothing happens.

With a queue call, the console prints this:
    -- Goto (queue-overflow,s,1)
    -- Executing BackGround("SIP/79-0073b9d0", "menu/tlc-ann-1") in new stack
    -- Playing 'menu/tlc-ann-1' (language 'en')
    -- Executing Queue("SIP/79-0073b9d0", "overflow") in new stack
It doesn't report starting music-on-hold... but it stays connected until I hang up.

With AgentCallbackLogin, we see:
    -- Executing Wait("SIP/79-00762a70", "1") in new stack
    -- Executing AgentCallbackLogin("SIP/79-00762a70", "251||251 at internal") in new stack
and absolutely nothing comes through on the line... but again, it stays connected until I hang up.

I'm getting the same warning that Andres Junge reported:

Sep  6 16:04:12 WARNING[7256]: chan_zap.c:8505 pri_dchannel: Ring requested on channel 0/1 already in use on span 1.  Hanging up owner.

However, I didn't get any "Avoiding initial deadlock."

The output of show channels illustrates this pretty well:
janus*CLI> show channels
Channel              Location             State   Application(Data)
SIP/79-0073b9d0      s at queue-overflow:2   Up      Queue(overflow)
SIP/79-00735c10      s at macro-agentqueue:2 Up      Queue(ab1|n|||45)
SIP/31-0072fea0      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/61-0072a680      81 at internal:2        Up      AgentCallbackLogin(257||@inter
SIP/61-00724e60      81 at internal:2        Up      AgentCallbackLogin(257||@inter
SIP/61-0071f640      80 at internal:2        Up      AgentCallbackLogin(257||257 at in
SIP/79-00715ed0      s at macro-agentqueue:2 Up      Queue(co1|n|||45)
SIP/17-007106b0      81 at internal:2        Up      AgentCallbackLogin(228||@inter
SIP/17-0070ae90      81 at internal:2        Up      AgentCallbackLogin(228||@inter
SIP/31-0068e180      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/31-00688960      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/31-00683140      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/31-0067d920      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/31-006a32f0      81 at internal:2        Up      AgentCallbackLogin(262||@inter
SIP/35-006d72a0      80 at internal:2        Up      AgentCallbackLogin(240||240 at in
SIP/35-006d41b0      81 at internal:2        Up      AgentCallbackLogin(240||@inter
SIP/56-006c7df0      81 at internal:2        Up      AgentCallbackLogin(247||@inter
SIP/55-006c4d00      81 at internal:2        Up      AgentCallbackLogin(258||@inter
SIP/35-006a0240      81 at internal:2        Up      AgentCallbackLogin(240||@inter
SIP/55-00639160      81 at internal:2        Up      AgentCallbackLogin(258||@inter
SIP/56-00693f80      81 at internal:2        Up      AgentCallbackLogin(247||@inter
Zap/33-1             s at direct:1           Rsrvd   (None)
SIP/35-0063c210      80 at internal:2        Up      AgentCallbackLogin(240||240 at in
Zap/9-1              s at macro-agentqueue:2 Up      Queue(bc1|n|||45)
Zap/7-1              s at macro-agentqueue:2 Up      Queue(co1|n|||45)
SIP/79-0069d190      s at macro-agentqueue:2 Up      Queue(co1|n|||45)
Zap/4-1              s at macro-agentqueue:2 Up      Queue(co1|n|||45)
Agent/249            s at internal:1         Down    (None)
Local/249 at internal-f 249 at internal:1       Ring    (None)
Local/249 at internal-f s at internal:1         Down    (None)
Zap/1-1              s at macro-agentqueue:2 Up      Queue(co1|n|||45)
31 active channels
27 active calls

I'm pretty sure most of those channels have been disconnected.  Some I know for sure:  

1. SIP/79 is me; I called into a couple different queues, and then hung up after a lot of silence.  But asterisk still shows my channels open.
2. Zap channels 4, 7 and 9 are from the T1.  Those Zap channels are definitely not still "Up" because the T1 has been physically unplugged now... which we did *after* we started having problems... in case you were wondering. :-)

Here are the relevant packages:

ii  asterisk          1.2.11.dfsg-1     Open Source Private Branch Exchange (PBX)
ii  asterisk-classic  1.2.11.dfsg-1     Open Source Private Branch Exchange (PBX) - origin
ii  asterisk-config   1.2.11.dfsg-1     config files for asterisk
ii  asterisk-sounds-m 1.2.11.dfsg-1     sound files for asterisk
ii  zaptel            1.2.8.dfsg-1      zapata telephony utilities
ii  zaptel-modules-2. 1.2.8.dfsg-1+2.6. zaptel modules for Linux (kernel 2.6.17-2-amd64).
ii  zaptel-source     1.2.8.dfsg-1      Zapata telephony interface (source code for kernel

This also happened previously with Asterisk 1.2.10 and Zaptel 1.2.7 on the same machine.

So far, it's only been when the T1 is involved that Asterisk goes into this state.  I'll see tomorrow if I can get it to lock up with only SIP calls.

Regular calls SIP to SIP and SIP to Zap, and navigating through the menu, still work, so Asterisk isn't entirely locked up.  It's probably just that a particular lock that AgentCallbackLogin() and Queue() use is becoming deadlocked somehow.

Hope this helps to shed some light on things...  We will be investigating this further, but would appreciate any insights anyone may be able to offer.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)

Versions of packages asterisk-classic depends on:
ii  adduser                  3.97            Add and remove users and groups
ii  asterisk                 1:1.2.11.dfsg-1 Open Source Private Branch Exchang
ii  asterisk-config          1:1.2.11.dfsg-1 config files for asterisk
ii  asterisk-sounds-main     1:1.2.11.dfsg-1 sound files for asterisk
ii  libasound2               1.0.11-7        ALSA library
ii  libc6                    2.3.6.ds1-4     GNU C Library: Shared libraries
ii  libcomerr2               1.39-1          common error description library
ii  libcurl3                 7.15.5-1        Multi-protocol file transfer libra
ii  libgsm1                  1.0.10-13       Shared libraries for GSM speech co
ii  libidn11                 0.6.5-1         GNU libidn library, implementation
ii  libkrb53                 1.4.4~beta1-1   MIT Kerberos runtime libraries
ii  libncurses5              5.5-3           Shared libraries for terminal hand
ii  libnewt0.52              0.52.2-7        Not Erik's Windowing Toolkit - tex
ii  libpopt0                 1.10-3          lib for parsing cmdline parameters
ii  libpq4                   8.1.4-6         PostgreSQL C client library
ii  libpri1.2                1.2.3-1         Primary Rate ISDN specification li
ii  libspeex1                1.1.12-2        The Speex Speech Codec
ii  libsqlite0               2.8.16-1        SQLite shared library
ii  libssl0.9.8              0.9.8b-2        SSL shared libraries
ii  libtonezone1             1:1.2.8.dfsg-1  tonezone library (runtime)
ii  unixodbc                 2.2.11-13       ODBC tools libraries
ii  zlib1g                   1:1.2.3-13      compression library - runtime

asterisk-classic recommends no packages.

-- no debconf information


TTYL.
-- 

C. Chad Wallace, B.Sc.
The Lodging Company
http://skihills.com/
OpenPGP Public Key ID: 0x262208A0



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20060906/5c1ba909/signature-0001.pgp


More information about the Pkg-voip-maintainers mailing list