[Home]

Summary:ASTERISK-05296: Asterisk crashes trying to use a Cisco 7920 phone
Reporter:Alessandro Polverini (alessandro polverini)Labels:
Date Opened:2005-10-14 09:05:55Date Closed:2006-07-08 23:50:13
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Channels/chan_skinny
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) cisco7910.tcpdump
( 1) Cisco7910.tethereal.txt
Description:I have a Cisco 7920 WIFI and would like to use it, even if without advanced features.
I configured skinny.conf this way:

[wifi]                  ; Device name
model=7920              ; Device model
device=SEP000d282e62b2  ; Offical identifier
nat=0
callerid="Alex WIFI" 17
line => 500             ; Dial(Skinny/500@duba)
context=default

And as soon as I turn on my 7920 asterisk crashes this way:

   -- Starting Skinny session from x.y.z.k
Oct 14 15:58:56 WARNING[22510]: chan_skinny.c:2347 handle_message: Client sent message #0 without first registering.
Device SEP000D282E62B2 is attempting to register
   -- Device 'wifi' successfuly registered
Requesting capabilities
RECEIVED UNKNOWN MESSAGE TYPE:  2b
Version Request
Received CapabilitiesRes
Buttontemplate requested
Sending 7920 template to 500@wifi (7920)
Recieved SoftKey Template Request
Received LineStateReq
Received LineStateReq
Segmentation fault


****** ADDITIONAL INFORMATION ******

Asterisk from today CVS, Fedora Core 4
Comments:By: Russell Bryant (russell) 2005-10-14 09:33:50

Please provide a backtrace from a non-optimized build of Asterisk.

# make clean; make dont-optimize; make install

For instructions on how to get a backtrace, see doc/README.backtraces or find someone on IRC to help you.

By: Alessandro Polverini (alessandro polverini) 2005-10-14 10:52:05

(gdb) bt
#0  0x0028203b in skinny_session (data=0x9cddaa0) at chan_skinny.c:2658
#1  0x00adfb80 in start_thread () from /lib/libpthread.so.0
#2  0x00a379ce in clone () from /lib/libc.so.6

(gdb) bt full
#0  0x0028203b in skinny_session (data=0x9cddaa0) at chan_skinny.c:2658
       res = Variable "res" is not available.

By: Jason Parker (jparker) 2006-01-07 17:40:10.000-0600

Can you post your config for this phone?  That way, somebody can try to replicate it, if possible.

Also, is this still happening?  There probably haven't been many changes to chan_skinny in 2 months, but it may have been related to something else.

By: Alessandro Polverini (alessandro polverini) 2006-01-08 09:13:55.000-0600

I just checked out latest asterisk from 1.2 branch, and the beaviour is the same.

Here is the relevant part of skinny.conf (SEP# masked):

[general]
port = 2000             ; Port to bind to, default tcp/2000
bindaddr = 0.0.0.0      ; Address to bind to
dateFormat = M-D-Y      ; M,D,Y in any order (5 chars max)
keepAlive = 120

[wifi]
model=7920
device=SEP000d282XXXXX
nat=0
callerid="Alex WIFI" 17
line => 500
context=default

By: jerjer (jerjer) 2006-01-08 09:36:15.000-0600

make a packet dump with tcpdump or tetheral and upload it.  All I need is TCP port 2000

By: Matt O'Gorman (mogorman) 2006-03-06 15:44:31.000-0600

Alessandro Polverini feel free to reopen the bug when you are ready to answer jerjer's question

By: Malcolm Davenport (mdavenport) 2006-07-06 09:26:16

Issue being reopened per request of Brooks Robinson, who is to provide a tcpdump.

By: Serge Vecher (serge-v) 2006-07-06 11:09:30

qwell: do you want to look at this one?

By: Brooks R Robinson (extremescholar) 2006-07-06 11:10:26

I've added a tcpdump from a Cisco 7910 which exhibits the same behavior as listed in the bug.  The parameters are/were 'tcpdump -w cisco7910.tcpdump port 2000'.  I'm using the Debian version Asterisk 1:1.2.9.1.dfsg-1.

By: Jason Parker (jparker) 2006-07-06 11:28:21

Please try this with the latest revision of branches/1.2, as well as trunk (it should already be fixed in trunk, since I've used both a 7910 and 7920 just days ago).

It would also be of far more use to me, to use tethereal -V (or if you could tell me how to decode a tcpdump file ala tethereal -V..).

Do note that even if we do fix the bug here and stop asterisk from crashing...  The phone will very likely not work as expected.

By: Brooks R Robinson (extremescholar) 2006-07-07 13:09:45

Tethereal upload done.  The capture was done by 'tethereal -V -f 'port 2000' > Cisco7910.tethereal.txt'.

By: Jason Parker (jparker) 2006-07-07 19:26:11

Can you reproduce this behavior on the latest trunk?

By: Brooks R Robinson (extremescholar) 2006-07-08 20:24:53

Asterisk SVN-trunk-r37318 builds and runs fine.  Can a patch for a 1.2.9.1 be generated?

By: Jason Parker (jparker) 2006-07-08 23:49:29

I hate to do this, but...no.  Unfortunately, this will not be fixed in 1.2.  With 1.4 coming soon, and the extensive changes that would be required to fix this, we're going to leave it "as is".  Even if we were to fix this bug, there will be many others that would make the phones simply not work.

When 1.4 is released, this (and many other bugs) will be fixed, and I would appreciate any bug reports against that (or a current trunk).

By: Jason Parker (jparker) 2006-07-08 23:50:12

Changes too extensive to be worth it...especially this close to 1.4.