atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

occasionally chan_datacard crashes on hangup #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

sometimes the channel_driver crashes on hangup

What is the expected output? What do you see instead?

asterisk must be restarted

What version of the product are you using? On what operating system?

asterisk 1.6.2.15-rc1 with chan_datacard r57 on debian etch

Please provide any additional information below.

Original issue reported on code.google.com by hrhorn...@gmail.com on 29 Nov 2010 at 4:09

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 30 Nov 2010 at 11:42

GoogleCodeExporter commented 9 years ago
Crash occur when remove side hangup or local, both case ?

Original comment by bg_...@mail.ru on 30 Nov 2010 at 11:43

GoogleCodeExporter commented 9 years ago
in both cases.

Original comment by hrhorn...@gmail.com on 30 Nov 2010 at 5:07

GoogleCodeExporter commented 9 years ago
I receive coredump, but if possible also 

1) Rebuild chan_datacard with debugging support, Replace -O2 with -O0 -g in 
Makefile
make clean install

2) run asterisk as usually
3) attach gdb to asterisk 
gdb `pidof asterisk`

and type c<ENTER> in gdb prompt

In this case when asterisk execute invalid instruction gdb get control.

some useful gdb commands are

bt
l
info thread
p 'variable'

Original comment by bg_...@mail.ru on 30 Nov 2010 at 7:59

GoogleCodeExporter commented 9 years ago
perhaps the same problem, but my asterisk also crashes on hangup (incoming call 
and remote hangup first)

-- Executing [s@default:1] Wait("Datacard/datacard1-0100000000", "1") in new 
stack
    -- Executing [s@default:2] Answer("Datacard/datacard1-0100000000", "") in new stack
    -- Executing [s@default:3] Set("Datacard/datacard1-0100000000", "TIMEOUT(digit)=5") in new stack
    -- Digit timeout set to 5.000
    -- Executing [s@default:4] Set("Datacard/datacard1-0100000000", "TIMEOUT(response)=10") in new stack
    -- Response timeout set to 10.000
    -- Executing [s@default:5] BackGround("Datacard/datacard1-0100000000", "demo-congrats") in new stack
    -- <Datacard/datacard1-0100000000> Playing 'demo-congrats.gsm' (language 'en')
  == Spawn extension (default, s, 5) exited non-zero on 'Datacard/datacard1-0100000000'
[Dec  3 13:21:24] WARNING[7777]: channel.c:494 channel_hangup: call on 
unreferenced Datacard/datacard1-0100000000
[Dec  3 13:21:24] WARNING[7777]: channel.c:1488 ast_channel_free: Channel 
'Datacard/datacard1-0100000000' may not have been hung up properly

I'm using r60 version and the problem occurs for every model...

Original comment by pag...@gmail.com on 3 Dec 2010 at 12:17

GoogleCodeExporter commented 9 years ago
fixed in r63

Original comment by bg_...@mail.ru on 4 Dec 2010 at 11:06

GoogleCodeExporter commented 9 years ago
confirmed!!!  thanks...

Original comment by pag...@gmail.com on 4 Dec 2010 at 11:16

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 4 Dec 2010 at 11:21

GoogleCodeExporter commented 9 years ago
Issue 8 has been merged into this issue.

Original comment by bg_...@mail.ru on 4 Dec 2010 at 11:22

GoogleCodeExporter commented 9 years ago
It seems, that the problem is solved now!

Tx!

question: is the jitterbuffer integrated?
I saw no messages during a call.

Original comment by hrhorn...@gmail.com on 4 Dec 2010 at 2:41

GoogleCodeExporter commented 9 years ago
I check  configuration setting not applied to jb settings, and by default jb is 
off.
Fixed,  will commit after testing.

Original comment by bg_...@mail.ru on 4 Dec 2010 at 3:51

GoogleCodeExporter commented 9 years ago
sent r68, but untested

Original comment by bg_...@mail.ru on 4 Dec 2010 at 4:01

GoogleCodeExporter commented 9 years ago
Yes, the jb is working - great!

Original comment by hrhorn...@gmail.com on 4 Dec 2010 at 5:11