Summary: | ASTERISK-15228: [patch] Segmentation Fault on Originate command. | ||
Reporter: | Parantido Julius De Rica (parantido) | Labels: | |
Date Opened: | 2009-11-27 10:11:34.000-0600 | Date Closed: | 2009-12-02 09:53:02.000-0600 |
Priority: | Critical | Regression? | Yes |
Status: | Closed/Complete | Components: | Applications/app_dial |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) extensions.conf ( 1) gdb.txt ( 2) issue_16337.diff | |
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@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@outbound_route -- Requested transfer capability: 0x00 - SPEECH -- Executing [302@from-pstn:1] NoOp("DAHDI/30-1", "PSTN ==> Incoming call for: 302 from ") in new stack -- Executing [302@from-pstn:2] Goto("DAHDI/30-1", "users,400,1") in new stack -- Goto (users,400,1) -- Executing [400@users:1] NoOp("DAHDI/30-1", "Users ==> Incoming call for: 400 from ") in new stack -- Executing [400@users:2] Set("DAHDI/30-1", "DNDVAL=") in new stack -- Executing [400@users:3] NoOp("DAHDI/30-1", "Users ==> Extension 400 DND: ") in new stack -- Executing [400@users:4] GotoIf("DAHDI/30-1", "0?maxreached") in new stack -- Executing [400@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@outbound_route == Using SIP RTP CoS mark 5 -- Executing [xxxxxxx@outbound_route:1] NoOp("SIP/400-00000000", "Default OutGoing Rule for: 3482513178") in new stack -- Executing [xxxxxxx@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. | ||
Comments: | By: Parantido Julius De Rica (parantido) 2009-11-27 10:23:34.000-0600 Attached gdb.txt and extensions.conf as reported in doc/backtrace.txt By: Leif Madsen (lmadsen) 2009-11-30 14:16:14.000-0600 Thanks for the well filed bug report. By: David Vossel (dvossel) 2009-12-01 17:47:25.000-0600 I posted a patch that may resolve the issue. By: Parantido Julius De Rica (parantido) 2009-12-02 02:39:34.000-0600 Great, i do some tests and all seems to works fine! Really nice job! By: Digium Subversion (svnbot) 2009-12-02 09:49:12.000-0600 Repository: asterisk Revision: 232268 U branches/1.4/funcs/func_groupcount.c ------------------------------------------------------------------------ r232268 | dvossel | 2009-12-02 09:49:11 -0600 (Wed, 02 Dec 2009) | 9 lines fixes segfault in func_groupcount closes issue ASTERISK-15228) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=232268 By: Digium Subversion (svnbot) 2009-12-02 09:50:30.000-0600 Repository: asterisk Revision: 232269 _U trunk/ U trunk/funcs/func_groupcount.c ------------------------------------------------------------------------ r232269 | dvossel | 2009-12-02 09:50:30 -0600 (Wed, 02 Dec 2009) | 15 lines Merged revisions 232268 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02 Dec 2009) | 9 lines fixes segfault in func_groupcount closes issue ASTERISK-15228) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=232269 By: Digium Subversion (svnbot) 2009-12-02 09:51:03.000-0600 Repository: asterisk Revision: 232270 _U branches/1.6.2/ U branches/1.6.2/funcs/func_groupcount.c ------------------------------------------------------------------------ r232270 | dvossel | 2009-12-02 09:51:03 -0600 (Wed, 02 Dec 2009) | 22 lines Merged revisions 232269 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r232269 | dvossel | 2009-12-02 09:42:54 -0600 (Wed, 02 Dec 2009) | 15 lines Merged revisions 232268 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02 Dec 2009) | 9 lines fixes segfault in func_groupcount closes issue ASTERISK-15228) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=232270 By: Digium Subversion (svnbot) 2009-12-02 09:51:32.000-0600 Repository: asterisk Revision: 232271 _U branches/1.6.1/ U branches/1.6.1/funcs/func_groupcount.c ------------------------------------------------------------------------ r232271 | dvossel | 2009-12-02 09:51:31 -0600 (Wed, 02 Dec 2009) | 22 lines Merged revisions 232269 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r232269 | dvossel | 2009-12-02 09:42:54 -0600 (Wed, 02 Dec 2009) | 15 lines Merged revisions 232268 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02 Dec 2009) | 9 lines fixes segfault in func_groupcount closes issue ASTERISK-15228) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=232271 By: Digium Subversion (svnbot) 2009-12-02 09:53:01.000-0600 Repository: asterisk Revision: 232272 _U branches/1.6.0/ U branches/1.6.0/funcs/func_groupcount.c ------------------------------------------------------------------------ r232272 | dvossel | 2009-12-02 09:53:01 -0600 (Wed, 02 Dec 2009) | 22 lines Merged revisions 232269 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r232269 | dvossel | 2009-12-02 09:42:54 -0600 (Wed, 02 Dec 2009) | 15 lines Merged revisions 232268 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02 Dec 2009) | 9 lines fixes segfault in func_groupcount closes issue ASTERISK-15228) Reported by: Parantido Patches: issue_16337.diff uploaded by dvossel (license 671) Tested by: Parantido, dvossel ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=232272 |