[asterisk-dev] parse error in dahdi_cfg?

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Aug 26 10:13:03 CDT 2008


On Mon, Aug 25, 2008 at 04:11:55PM -0500, David A. Bandel wrote:
> On Mon, Aug 25, 2008 at 1:45 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
> > On Mon, Aug 25, 2008 at 01:25:28PM -0500, David A. Bandel wrote:
> >
> >> FYI: the dahdi_genconf still does not work.  echo_can not selected
> >> from /etc/dahdi/genconf_parameters and wctdm card seen from
> >> dahdi_genconf but modules not seen.
> >
> > This seems to be because the path to dahdi_cfg is incorrect .
> >
> > Can you try:
> >
> >  DAHDI_CFG=/usr/sbin/dahdi_cfg dahdi_genconf
> 
> well that produced some interesting results:
> root at guaca:/etc/dahdi# DAHDI_CFG=/usr/sbin/dahdi_cfg dahdi_genconf
> sh: line 1: 15129 Done                    echo fxsks=2
>      15130 Segmentation fault      | /usr/sbin/dahdi_cfg -c /dev/fd/0 > /dev/nu
> l 2>&1
> sh: line 1: 15135 Done                    echo fxsks=3
>      15136 Segmentation fault      | /usr/sbin/dahdi_cfg -c /dev/fd/0 > /dev/nu
> l 2>&1
> sh: line 1: 15141 Done                    echo fxsks=4
>      15142 Segmentation fault      | /usr/sbin/dahdi_cfg -c /dev/fd/0 > /dev/nu
> l 2>&1
> root at guaca:/etc/dahdi# cat system.conf
> # Autogenerated by /usr/sbin/dahdi_genconf on Mon Aug 25 16:09:11 2008 -- do no

The segfaulting command is basically:

  dahdi_cfg -c <(echo fxsks=2)

Does the above segfault?

Do you see anything in the kernel logs?

>  hand edit
> # Dahdi Configuration File
> #
> # This file is parsed by the Dahdi Configurator, dahdi_cfg
> #
> # Span 1: WCTDM/4 "Wildcard TDM400P REV I Board 5" (MASTER)
> fxols=1
> echocanceller=mg2,1
> # channel 2, WCTDM/4/1, no module.
> # channel 3, WCTDM/4/2, no module.
> # channel 4, WCTDM/4/3, no module.
> 
> # Span 2: DAHDI_DUMMY/1 "DAHDI_DUMMY/1 (source: HRtimer) 1"
> 
> # Global data
> 
> loadzone        = us
> defaultzone     = us
> 
> --- end output ----
> 
> So it got the first module right, but after that ....
> 
> 
> >
> > (or update SVN)
> 
> Will give that a try shortly.
> 
> 
> David A. Bandel
> -- 
> Focus on the dream, not the competition.
>  - Nemesis Air Racing Team motto
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
> 
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list