[Asterisk-Users] MeetMe questions
PBXtech
list at t1.bz
Wed Feb 4 13:04:49 MST 2004
You rock! even though you dont like Janets TT :)
Thanks
Brian West wrote:
>#!/usr/bin/perl
>
>use Asterisk::AGI;
>
>$AGI = new Asterisk::AGI;
>my %input = $AGI->ReadParse();
>
>
>$AGI->setcallback(\&mycallback);
>
>my $connected = 1;
>
>my $digit;
>while ($connected) {
>
> $digit = $AGI->get_data('beep', -1, 1);
>
> if ($digit == '1') {
> $AGI->stream_file('somefile');
> } elsif ($digit == '2') {
> $AGI->stream_file('someotherfile');
> } elsif ($digit == '#') {
> $connected = 0;
> }
>
>}
>
>sub mycallback {
> my ($returncode) = @_;
> print STDERR "MYCALLBACK: User Hungup ($returncode)\n";
> exit($returncode);
>}
>
>
>On Wed, 4 Feb 2004, PBXtech wrote:
>
>
>
>>ok, makes sense. anyone got an AGI script that will pasrse DTMF? or
>>want to start one?
>>
>>Thanks
>>
>>Brian West wrote:
>>
>>
>>
>>> 'b' -- run AGI script specified in ${MEETME_AGI_BACKGROUND}
>>> Default: conf-background.agi
>>> (Note: This does not work with non-Zap channels in the same
>>>conference)
>>>
>>>
>>>NEXT!!! :P
>>>
>>>bkw
>>>
>>>On Wed, 4 Feb 2004, PBXtech wrote:
>>>
>>>
>>>
>>>
>>>
>>>>how? I dont see anything in there to listen for a 1 to trigger a
>>>>recording context... ?
>>>>
>>>>Jeremy McNamara wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>PBXtech wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>The Meetme needs to monitor DTMF and be able to trigger an AGI.
>>>>>>and
>>>>>>When the Meetme room is emptied it needs to be notified back to * so
>>>>>>you can trigger a clean-up event or what not.
>>>>>>
>>>>>>
>>>>>>that is what i would like to see. :)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>You can already do this, using Zap channels.
>>>>>
>>>>>show application MeetMe
>>>>>
>>>>>
>>>>>Jeremy McNamra
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>Asterisk-Users mailing list
>>>>>Asterisk-Users at 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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>_______________________________________________
>>>>Asterisk-Users mailing list
>>>>Asterisk-Users at 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
>>>>
>>>>
>>>>
>>>>
>>>>
>>>_______________________________________________
>>>Asterisk-Users mailing list
>>>Asterisk-Users at 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
>>>
>>>
>>>
>>>
>>>
>>>
>>_______________________________________________
>>Asterisk-Users mailing list
>>Asterisk-Users at 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
>>
>>
>>
>_______________________________________________
>Asterisk-Users mailing list
>Asterisk-Users at 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
>
>
>
>
More information about the asterisk-users
mailing list