Summary:ASTERISK-16482: [patch] Asterisk is restarted to make a single ring
Reporter:Sergio (salecha)Labels:
Date Opened:2010-07-30 13:56:46Date Closed:2010-08-07 17:07:43
Versions:Frequency of
Environment:Attachments:( 0) backtrace.txt
( 1) backtrace-threads.txt
( 2) debug_asterisk
( 3) skinny.answercrash.diff
Description:1 - I make a phone call from a SIP phone to a cisco 7910.
2 - to make the first ring on the phone cisco, take the call.
3 - restart asterisk.

In short, responding to a call in the first ring, there is a core dump. If I make more than two ring no problem.
Comments:By: Paul Belanger (pabelanger) 2010-07-30 14:05:21

Thank you for your bug report. In order to move your issue forward, we require a backtrace from the core file produced after the crash. Please see the doc/backtrace.txt file in your Asterisk source directory.

Also, be sure you have DONT_OPTIMIZE enabled in menuselect within the Compiler Flags section, then:

make install

after enabling, reproduce the crash, and then execute the instructions in doc/backtrace.txt.

When complete, attach that file to this issue report. Thanks!

By: Damien Wedhorn (wedhorn) 2010-07-30 15:39:44

Can you also set skinny debugging (skinny set debug on) and include the contents of the console when the crash occurs.

I can't replicate this issue. What sort of computer is asterisk running on?

By: Sergio (salecha) 2010-08-02 06:24:58

I am using a Cisco IP Phone 7910. Application Load ID P00405000700.


   -- Executing [2410@default:1] Dial("SIP/", "SKINNY/2410,120,tw") in new stack
   -- skinny_request(2410)
skinny_new: tmp->nativeformats=0xc (ulaw|alaw) fmt=ulaw
skinny_get_rtp_peer() Channel = Skinny/2410@Phone Skinny-2
   -- skinny_call(Skinny/2410@Phone Skinny-2)
Displaying Prompt Status 'Ring-In'
Setting Callinfo to LinkSys 01(2850) from Cisco Skinny(2410) on Phone Skinny(1)
Setting ringer mode to '2'.
   -- Called 2410
   -- Skinny/2410@Phone Skinny-2 is ringing
 == Found device: Phone Skinny
Disconnected from Asterisk server
Executing last minute cleanups
Asterisk cleanly ending (0).
[root@vmelastix /]#

By: Damien Wedhorn (wedhorn) 2010-08-02 14:18:15

Salecha, we really need the console log when you get a segfault. The above doesn't include a segfault.

Or am I not understanding your issue?

By: Paul Belanger (pabelanger) 2010-08-02 19:55:42

Reproduce your crash, while debugs are enabled (see below).
We require a complete debug log to help triage the issue.

This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue:


By: Damien Wedhorn (wedhorn) 2010-08-04 14:14:29

Salecha, the debug you attached is just the startup. There a no skinny calls in the debug and no crashes. Please attach a debug of the crash occurring.

By: Sergio (salecha) 2010-08-05 07:33:01

Good day. asterisk to update my version SVN-branch-1.6.2-r280812M and I have only this problem. Thank you.

By: Damien Wedhorn (wedhorn) 2010-08-05 15:21:47

Salecha, can you confirm this issue is the asterisk versions 1.6.2?

Have you tried trunk?

By: Sergio (salecha) 2010-08-05 15:50:11

if this problem is in version 1.6.2. The version of the trunk (1.8?) Does not exhibit this problem.

By: Damien Wedhorn (wedhorn) 2010-08-05 15:56:51

I'm sorry, but we seem to be having communication issues.

Have you tried trunk? (yes or no)

What do you get on the asterisk console when you type "core show version"?

Does this issue still occur in trunk? (yes or no)

By: Sergio (salecha) 2010-08-05 16:06:08

I'm sorry.

1 - Have you tried trunk?
sorry, I have not tried. as the trunk release of Asterisk 1.6.2?

2 - What do you get on the asterisk console when you type "core show version"?

Asterisk SVN-branch-1.6.2-r280812M built by root @ vmelastix on a i686 running
Linux on 2010-08-05 12:13:56 UTC

sorry, I have not tried. as the trunk release of Asterisk 1.6.2? Tell me and now I test it.

sorry and thanks.

By: Damien Wedhorn (wedhorn) 2010-08-05 16:17:20

Salecha, I'm sorry but I don't think I'll be able to help as you are using elastix.

Skinny is still in development and as such you really need to install linux and then get the source (http://www.asterisk.org/developers/get-source) and compile it. I doubt that this is doable in elastix.

By: Sergio (salecha) 2010-08-05 16:23:51

I very much regret the confusion. But I'm not using ELASTIX, I am using Asterisk from SVN.
http://svn.asterisk.org/svn/asterisk/branches/1.6.2 svn checkout.
and download everything from the page you sent me.

By: Damien Wedhorn (wedhorn) 2010-08-05 16:26:51

Okay, sorry about that. Can you get trunk:

svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk-trunk

By: Sergio (salecha) 2010-08-05 16:27:03

recien descarge asterisk trunk. En la version trunk no se presenta el problema. gracias

By: Sergio (salecha) 2010-08-05 16:27:22

just downloaded asterisk trunk. The trunk version does not present the problem. thanks

By: Leif Madsen (lmadsen) 2010-08-05 16:49:34

Closed per wedhorn.

By: Damien Wedhorn (wedhorn) 2010-08-06 17:05:09

Re-opened, there seems to be some issue with rtp. skinny_indicate is being called to AST_CONTROL_SRCUPDATE (from SIP) but there is no rtp on the skinny side and so ast_rtp_instance_update_source(instance 0x0) segfaults.

backtrace attached to https://issues.asterisk.org/view.php?id=17692

By: Damien Wedhorn (wedhorn) 2010-08-06 17:41:30

Patch added to start rtp on answer before the answer is queued.

Unable to test as I can't replicate the issue.

Salecha, please test both individually and with the transfer patch in bug 17692 and provide feedback here.

Edit: also, please test the patch in 17772 which includes this fix.

By: Sergio (salecha) 2010-08-07 06:59:43

the patch works perfectly on the first ring. Thank you.

By: Digium Subversion (svnbot) 2010-08-07 17:07:42

Repository: asterisk
Revision: 281226

U   trunk/channels/chan_skinny.c

r281226 | wedhorn | 2010-08-07 17:07:42 -0500 (Sat, 07 Aug 2010) | 10 lines

Start rtp on answer before the answer is queued

(closes issue ASTERISK-16482)
Reported by: salecha
     skinny.answercrash.diff uploaded by wedhorn (license 30)
Tested by: salecha

Review: NA