Mamadou Lamine KA
2004-May-18 04:46 UTC
[Asterisk-Users] Dial and MeetMe on the same channel
Hello everybody,
I would like to know whether it is possible to run Dial and MeetMe
commands simultaneoously on the same channel.
I am using a C AGI as below but it seems to me that only the first
command that is called in the agi is executed.
...........
// Pr?paration de la commande pour l'appel du client
fprintf(stderr,"%s%s",numtocall," is the number to
call\n");
strcpy(cmd,"EXEC Dial ");
strcat(cmd,numtocall); //numtocall is a variable quote from teh database
strcat(cmd," 60");
// Ex?cution de la commande et lib?ration du buffer
fprintf(stderr,"%s\n",cmd);
printf("%s\n",cmd);
fflush(stdout);
resultcode = checkresult();
// Mise en conf?rence de l'operateur
strcpy(cmd1,"");
strcpy(cmd1,"EXEC MeetMe ");
strcat(cmd1,confroom); //confroom is a variable quote from teh database
strcat(cmd1,"|q");
fprintf(stderr,"%s\n",cmd1);
printf("%s\n",cmd1);
fflush(stdout);
..........
Any reason on why only the first command is successfull??
Thanks in adavance.
Lamine
That's the correct behavior. AGI commands are always executed in series. Are you trying to dial out from a MeetMe conference? Recently, someone posted this improved Meetme http://www.areski.net/asterisk-meetme/about.php The other option would be to execute the dial then use manager API to redirect the call to meetme conference. FYI. Mamadou Lamine KA wrote:> Hello everybody, > > I would like to know whether it is possible to run Dial and MeetMe > commands simultaneoously on the same channel. > I am using a C AGI as below but it seems to me that only the first > command that is called in the agi is executed. > > > ........... > // Pr?paration de la commande pour l'appel du client > fprintf(stderr,"%s%s",numtocall," is the number to call\n"); > strcpy(cmd,"EXEC Dial "); > strcat(cmd,numtocall); //numtocall is a variable quote from teh > database > strcat(cmd," 60"); > // Ex?cution de la commande et lib?ration du buffer > fprintf(stderr,"%s\n",cmd); > printf("%s\n",cmd); > fflush(stdout); > resultcode = checkresult(); > // Mise en conf?rence de l'operateur > strcpy(cmd1,""); > strcpy(cmd1,"EXEC MeetMe "); > strcat(cmd1,confroom); //confroom is a variable quote from teh > database > strcat(cmd1,"|q"); > fprintf(stderr,"%s\n",cmd1); > printf("%s\n",cmd1); > fflush(stdout); > .......... > > Any reason on why only the first command is successfull?? > > Thanks in adavance. > > Lamine > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >