Re: [Asterisk-java-users] fastagi.command.GetDataCommand issue
Brought to you by:
srt
|
From: Stefan R. <sr...@re...> - 2005-04-29 23:33:05
|
On Fri, 2005-04-29 at 16:17 -0700, Steve Drach wrote:
> It is legal to send this command to asterisk "GET DATA foo". This=20
> implies a six second timeout and unlimited digits. But new=20
> GetDataCommand("foo") translates to "GET DATA foo 0 1024",
> which really isn't the same thing.
>=20
when having a look at asterisk's res/res_agi.c the corresponding
function is:
static int handle_getdata(struct ast_channel *chan, AGI *agi, int argc,
char *argv[])
{
int res;
char data[1024];
int max;
int timeout;
if (argc < 3)
return RESULT_SHOWUSAGE;
if (argc >=3D 4)
timeout =3D atoi(argv[3]);
else
timeout =3D 0;
if (argc >=3D 5)
max =3D atoi(argv[4]);
else
max =3D 1024;
[...]
}
It seems to me that "GET DATA foo" is translated to "GET DATA foo 0
1024" and thats exactly what asterisk-java sends. right?
=3DStefan
|