[Asterisk-Dev] Error installing Prepaid App

steve at daviesfam.org steve at daviesfam.org
Thu Jun 10 03:23:47 MST 2004


On Thu, 10 Jun 2004, reseaux wrote:

> Dear Steve
> 	I have found the same issue when i try compile "Prepaid.c" in Asterisk 1 
> stable :
> app_prepaid.c: In function `prepaid_ivr_authenticate':
> app_prepaid.c:237: error: too many arguments to function `ast_say_number'
> app_prepaid.c:253: error: too many arguments to function `ast_say_number'
> app_prepaid.c: In function `prepaid_ivr_authorize':
> app_prepaid.c:371: error: too many arguments to function `ast_say_number'
> app_prepaid.c:397: error: too many arguments to function `ast_say_number'
> make[1]: *** [app_prepaid.o] Error 1
> make[1]: Leaving directory `/usr/src/asterisk/apps'
> make: *** [subdirs] Error 1
> 
> i look in the source and i found this line:
> 237:> res = ast_say_number(chan, euros, "", chan->language, "f");
> 253:> res = ast_say_number(chan, cents, "", chan->language, "f");
> 371:> res = ast_say_number(chan, result.quot, "", chan->language, "f");
> 397:> res = ast_say_number(chan, result.rem, "", chan->language, "f");
> You say this:
> > Make the calls to ast_say_number look like this:
> >   res = ast_say_number(chan, result.quot, "", chan->language, (char
> > *)NULL);
> > substitute result.rem as appropriate.
> But in this line what i need to change? You say to change "result.rem as 
> appropriate, im sorry i cant understand? Can you give me some help :-)
> 
> Thanks in advance
> Dimitri

Hi,

Add ", (char *)NULL" In between the ""f"" and the ");"

Steve




More information about the asterisk-dev mailing list