(FreeBSD 7.0  / callweaver 1.2.0.1 / spandsp-0.0.5pre4)

I am getting this now when doing a make

  gcc -DHAVE_CONFIG_H -include ../include/confdefs.h -I. -I../include - 
fomit-frame-pointer -D_REENTRANT -Wall -Wstrict-prototypes -Wmissing- 
prototypes -Wmissing-declarations -DTEMP_STORE=2 -DTHREADSAFE=1 - 
DSQLITE_OMIT_CURSOR -DNO_TCL -I../sqlite3-embedded -I../sqlite3- 
embedded -DOS_UNIX -I.. -I../include -g -O2 -I/usr/local/include -I/ 
usr/include/openssl -DHAVE_SSL -g -O2 -I/usr/local/include -MT  
libcallweaver_la-dsp.lo -MD -MP -MF .deps/libcallweaver_la-dsp.Tpo -c  
dsp.c  -fPIC -DPIC -o .libs/libcallweaver_la-dsp.o
dsp.c: In function 'cw_dsp_digitmode':
dsp.c:901: error: too few arguments to function 'dtmf_rx_parms'
dsp.c:903: error: too few arguments to function 'dtmf_rx_parms'
gmake[2]: *** [libcallweaver_la-dsp.lo] Error 1
gmake[2]: Leaving directory `/usr/localstuff/callweaver-1.2.0.1/corelib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/localstuff/callweaver-1.2.0.1/corelib'
gmake: *** [all] Error 2
#

This is the code in dsp.c where this is happening:


int cw_dsp_digitmode(struct cw_dsp *dsp, int digitmode)
{
     int new_mode;
     int old_mode;

     old_mode = dsp->digitmode & (DSP_DIGITMODE_DTMF |  
DSP_DIGITMODE_MF | DSP_DIGITMODE_MUTECONF | DSP_DIGITMODE_MUTEMAX);
     new_mode = digitmode & (DSP_DIGITMODE_DTMF | DSP_DIGITMODE_MF |  
DSP_DIGITMODE_MUTECONF | DSP_DIGITMODE_MUTEMAX);
     if (old_mode != new_mode)
     {
         /* Must initialize structures if switching from MF to DTMF or  
vice-versa */
         if ((new_mode & DSP_DIGITMODE_MF))
             bell_mf_rx_init(&dsp->bell_mf_rx, NULL, NULL);
         else
             dtmf_rx_init(&dsp->dtmf_rx, NULL, NULL);
         dsp->mute_lag = 0;
         modem_connect_tones_rx_init(&dsp->fax_cng_rx,
                                     MODEM_CONNECT_TONES_FAX_CNG,
                                     NULL,
                                     NULL);
         modem_connect_tones_rx_init(&dsp->fax_ced_rx,
                                     MODEM_CONNECT_TONES_FAX_CED,
                                     NULL,
                                     NULL);
     }
     if ((digitmode & DSP_DIGITMODE_RELAXDTMF))
         dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 8);
     else
         dtmf_rx_parms(&dsp->dtmf_rx, FALSE, 8, 4);
     dsp->digitmode = digitmode;
     return 0;
}


this function  dtmf_rx_parms is found in spandsp/dtmf.h  where it is  
defined as

void dtmf_rx_parms(dtmf_rx_state_t *s,
                    int filter_dialtone,
                    int twist,
                    int reverse_twist,
                    int threshold);


So there is a parameter problem in this function call.

Appreciate any guidance

Thanks
Chad

_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to