Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Callweaver-users] corelib/dsp.c compile problem


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> CallWeaver Users
View previous topic :: View next topic  
Author Message
chad at shire.net
Guest





PostPosted: Sat Nov 22, 2008 12:19 am    Post subject: [Callweaver-users] corelib/dsp.c compile problem Reply with quote

(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, Cool;
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
Callweaver-users@callweaver.org
http://lists.callweaver.org/mailman/listinfo/callweaver-users
Back to top
adrianwalag at gmail.com
Guest





PostPosted: Sat Nov 22, 2008 12:32 pm    Post subject: [Callweaver-users] corelib/dsp.c compile problem Reply with quote

hi Chad,

you may follow what was done here. i remembered this worked with mine, too.

http://www.mail-archive.com/callweaver-users@callweaver.org/msg01260.html

On Sat, Nov 22, 2008 at 1:18 PM, Chad Leigh -- Shire.Net LLC <chad@shire.net (chad@shire.net)> wrote:
Quote:
(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, Cool;
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
Callweaver-users@callweaver.org (Callweaver-users@callweaver.org)
http://lists.callweaver.org/mailman/listinfo/callweaver-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> CallWeaver Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services