[asterisk-users] how to detect dtmf in meetme

robert aofeisheng at 163.com
Fri May 29 01:27:16 CDT 2009


hello

   i want to kick participant in a meeting by pressing the digit on sip phone.when i entry the meeting ,no matter how i press the button,the dtmf does not work.

here is my dialplan and my agi script,and sip.conf

[from-internal]
exten =>121,1,MeetMeCount(900,CONFCOUNT)
exten =>121,2,GotoIF($[${CONFCOUNT}<10]?3:100)
exten =>121,3,Authenticate(123456)
exten =>121,4,MeetMe(900,MDbF)
exten =>121,5,MeetMe(900,MD)
exten =>121,100,Playback(demo-moreinfo)

#!/usr/bin/php -q
<?php
//include("phpagi.php");
//include("phpagi-asmanager.php");
//$agi = new AGI;
set_time_limit(60);
ob_implicit_flush(false);
if(!defined('STDIN'))
{
   define('STDIN',fopen('php://stdin','r'));
}
if(!defined('STDOUT'))
{
   define('STDOUT',fopen('php://stdout','w'));
}
if(!defined('STDERR'))
{
   define('STDERR',fopen('php://stderr','w'));
}
//$stdout = fopen('php://stdout', 'w');
//print "GET DATA <hello-world.gsm> [<30>[<10>]]\"\"\n";
print "get_data('demo-welcome', 15, 5)\"\"\n";
$agivars = (fgets(STDIN));

print "MeetMeAdmin(900,k,$agivars)\"\"\n";
print "set extension 121\"\"\n";
print "set priority 5\"\"\n";
//fflush($stdout);
//;$result = <STDIN>;
//;$checkresult($result);

 

//print STDERR "4.  Testing 'saynumber'...";
print "SAY NUMBER 192837465 \"\"\n";
//;my $result = <STDIN>;
//;&checkresult($result);
?>

[111]
type = friend
username = 111
secret = 111
host = dynamic
context = from-internal
canreinvite = no
dtmfmode = rfc2833
[222]
type = friend
username = 222
secret = 222
host = dynamic
context = from-internal
canreinvite = no
dtmfmode = rfc2833

i can here that say number.....

some one help me please

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090529/94222ca1/attachment.htm 


More information about the asterisk-users mailing list