[Asterisk-Dev] Error installing Prepaid App

reseaux reseauxit at yahoo.it
Thu Jun 10 03:16:52 MST 2004


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

On Thursday 10 June 2004 08:27 am, steve at daviesfam.org wrote:
> On Wed, 9 Jun 2004, oi geli wrote:
> > I tried install the Prepaid application, I got the
> > following error.
> >
> > app_prepaid.c: In function `prepaid_ivr_authenticate':
> > app_prepaid.c:184: error: too few arguments to
> > function `ast_say_number'
> > app_prepaid.c:208: error: too few arguments to
> > function `ast_say_number'
> > app_prepaid.c: In function `prepaid_ivr_authorize':
> > app_prepaid.c:302: error: too few arguments to
> > function `ast_say_number'
> > app_prepaid.c:328: error: too few 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
>
> Hi,
>
> 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.
>
> I suspect if you couldn't figure this out you'll have trouble getting the
> Prepaid app working...
>
> Regards,
> 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