[Home]

Summary:ASTERISK-06314: App_queue crashes asterisk when using chan_sccp
Reporter:Francisco Sedano (fsedano)Labels:
Date Opened:2006-02-14 14:12:08.000-0600Date Closed:2006-03-10 22:28:18.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:To recreate, call from a SCCP device using http://chan-sccp.berlios.de/ driver. As soon as the agent gets the call, asterisk will crash. I'm reporting as a app_queue bug because the crash is in:

               if (!strcmp(qe->chan->type,"Zap"))
                       ast_channel_setoption(qe->chan, AST_OPTION_TONE_VERIFY, &nondataquality, sizeof(nondataquality), 0);

SCCP driver is not setting chan->type, so the comparation will core dump. Simply checking validity of chan->type before using it solves the issue

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

To test the patch:

 /* Check for validity */

               if( !qe->chan->type )
                       qe->chan->type="DUMMY";

               if (!strcmp(qe->chan->type,"Zap"))
                       ast_channel_setoption(qe->chan, AST_OPTION_TONE_VERIFY, &nondataquality, sizeof(nondataquality), 0);
Comments:By: Jason Parker (jparker) 2006-03-10 16:28:14.000-0600

Which version of chan_sccp are you using?  There were recently some changes to channel type.

I can think of a few cases where this would "break", such as downgrading from svn trunk without recompiling chan_sccp.

I know there are people who run 1.2.4 and chan_sccp with queues, and it works fine for them.  Do you have any more information that might be relevant to this report?

I would try clearing out /usr/lib/asterisk/modules/, recompile asterisk, then recompile the latest version of chan_sccp, and see if the problem persists.

By: Tilghman Lesher (tilghman) 2006-03-10 22:28:18.000-0600

As chan_sccp is not a part of Asterisk, this report does not belong here.  Please file this bug with the developers of that channel driver.