[Asterisk-Users] meetme an customized menu
Tobias Wolf
tobias.wolf at evision.de
Tue Jul 12 09:13:27 MST 2005
Hi,
today i have taken a strong look at meetme.c
what i am trying to accomplish is the following:
it should be possible to access an menu from within the conference in
order to perform special tasks, eg. to dial another number so that the
called person is joined with the conderence.
my first try was to use an agi-script for this, but as with agi enabled
sip-channels (for which pseudo-zap-channels are created) doesn't send or
get any audio.
so, i decided to add this function in meetme.c
in the standard menu you can press *1 to mute/unmute yourself and *2 (as
admin) to lock/unlock the conf.
what i have to do is to be able to let the user press *3. then there
should be an announcement for the number. the user then dials the number
and terminates with #.
but i seems not to be able to recognize any dtmf-tone after *3
here a little test-code:
case '3': /* Invite another Conferee */
menu_active = 0;
ast_log(LOG_WARNING,"Taste 3 gedrueckt -> now one more for testing!");
if (!ast_streamfile(chan, "whatNumberToInvite", chan->language))
dtmf = ast_waitstream(chan, AST_DIGIT_ANY);
else
dtmf = -1;
ast_log(LOG_WARNING,"Something pressed ?? :%d \n",dtmf);
break;
My thougt was, that ast_waitstrem waits a certain time period and then
return the dtmf-code. but somehow the code executes without pause
between the two log-outputs.
the original statement in the code, does indeed wait.
any thougts ??
maybe someone has an idea how sip+agi+meetme could work ?
thx in advance ...
tobias wolf
More information about the asterisk-users
mailing list