[Asterisk-Dev] Error installing Prepaid App

reseaux reseauxit at yahoo.it
Thu Jun 10 03:57:32 MST 2004


Dear Steve
	thanks for your reply !! :-)
I have change the four line with your modification like this:
res = ast_say_number(chan, result.rem, "", chan->language, (char*)NULL);
but when i try to make i found this error:
---
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
---
I have made some error?
Thanks in advance
Dimitri

On Thursday 10 June 2004 12:23 pm, steve at daviesfam.org wrote:
> 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
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list