[asterisk-bugs] [Asterisk 0016337]: [patch] Segmentation Fault on Originate command.

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 1 17:47:25 CST 2009


The following issue requires your FEEDBACK. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16337 
====================================================================== 
Reported By:                Parantido
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16337
Category:                   Applications/app_dial
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.1.10 
JIRA:                       SWP-455 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-27 10:11 CST
Last Modified:              2009-12-01 17:47 CST
====================================================================== 
Summary:                    [patch] Segmentation Fault on Originate command.
Description: 
Hi,

I set up a lab in this way:

PSTN <---> Nortel Meridian Option11C <--- PRI Trunk ---> Asterisk 1.6.1.10
<----> SIP CLIENTS

Sip clients are able to successfully dial External PSTN Number or Nortel
Meridian Extension Number.

But I'm experiencing weird behavior when i'm trying to issue an originate
command over DAHDI channels (i discovered this during application
development) with the following syntax:

*CLI> originate DAHDI/G1/302 extension xxxxx at outbound_route

or by Manager in this way (carriage return & new line was reported only
for completeness):

Action: Originate\r\n
Channel: DAHDI/G1/302\r\n
Context: outbound_route\r\n
Exten: 302\r\n
Priority: 1\r\n
Timeout: 30000\r\n\r\n

Asterisk output looks like this:

*CLI> originate DAHDI/G1/302 extension 3482513178 at outbound_route
    -- Requested transfer capability: 0x00 - SPEECH
    -- Executing [302 at from-pstn:1] NoOp("DAHDI/30-1", "PSTN ==> Incoming
call for: 302 from ") in new stack
    -- Executing [302 at from-pstn:2] Goto("DAHDI/30-1", "users,400,1") in
new stack
    -- Goto (users,400,1)
    -- Executing [400 at users:1] NoOp("DAHDI/30-1", "Users ==> Incoming call
for: 400 from ") in new stack
    -- Executing [400 at users:2] Set("DAHDI/30-1", "DNDVAL=") in new stack
    -- Executing [400 at users:3] NoOp("DAHDI/30-1", "Users ==> Extension 400
DND: ") in new stack
    -- Executing [400 at users:4] GotoIf("DAHDI/30-1", "0?maxreached") in new
stack
    -- Executing [400 at users:5] Set("DAHDI/30-1", "GROUP()") in new stack
Segmentation fault (core dumped)
monkeyvoice:~#

I think is a DAHDI related issue because if I use following command:

*CLI>  originate SIP/400 extension xxxxxxx at outbound_route
    == Using SIP RTP CoS mark 5
    -- Executing [xxxxxxx at outbound_route:1] NoOp("SIP/400-00000000",
"Default OutGoing Rule for: 3482513178") in new stack
    -- Executing [xxxxxxx at outbound_route:2] Dial("SIP/400-00000000",
"DAHDI/G1/xxxxxxx") in new stack
    -- Requested transfer capability: 0x00 - SPEECH
    -- Called G1/xxxxxxx
    -- DAHDI/31-1 is proceeding passing it to SIP/400-00000000
    -- DAHDI/31-1 is ringing
    -- DAHDI/31-1 answered SIP/400-00000000
    -- Hungup 'DAHDI/31-1'
  == Spawn extension (outbound_route, xxxxxxx, 2) exited non-zero on
'SIP/400-00000000'

Asterisk is able to successfully complete call setup.
====================================================================== 

---------------------------------------------------------------------- 
 (0114490) dvossel (administrator) - 2009-12-01 17:47
 https://issues.asterisk.org/view.php?id=16337#c114490 
---------------------------------------------------------------------- 
I posted a patch that may resolve the issue. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-01 17:47 dvossel        Note Added: 0114490                          
2009-12-01 17:47 dvossel        Status                   acknowledged =>
feedback
======================================================================




More information about the asterisk-bugs mailing list