• Idefisk
  • Tools
  • Tutorials
  • Reviews
  • VoIP Providers
  • Archives
ZOIPER softphone
AsteriskGuru Archives
Mailing List Archives
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[asterisk-users] how to detect dtmf in meetme

 
   AsteriskGuru Archives Forum Index -> Asterisk-Users
View previous topic :: View next topic  
Author Message
aofeisheng at 163.com
Guest





PostPosted: Fri May 29, 2009 5:32 am    Post subject: [asterisk-users] how to detect dtmf in meetme

hello<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
   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
 
Back to top
aofeisheng at 163.com
Guest





PostPosted: Fri May 29, 2009 5:34 am    Post subject: [asterisk-users] how to detect dtmf in meetme

hello<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
   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
 
Back to top
dbackeberg at gmail.com
Guest





PostPosted: Fri May 29, 2009 3:29 pm    Post subject: [asterisk-users] how to detect dtmf in meetme

2009/5/29 robert <aofeisheng@163.com>:
Quote:
   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.

Does dtmf work anywhere?

What happens if you try to have the call navigate an IVR?

You probably need to set your asterisk to match the way that DTMF is
getting passed. You can find out the way DTMF is getting passed by
doing a
cli> set sip debug on

and reading through the packet trace when you nail the DTMF buttons.

Start by getting DTMF working at all, and then figure out whether it's
just a problem with MeetMe()

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
asterisk.org at sedwards.
Guest





PostPosted: Fri May 29, 2009 6:42 pm    Post subject: [asterisk-users] how to detect dtmf in meetme

Date: Fri, 29 May 2009 14:27:16 +0800
From: robert <aofeisheng@163.com>

Date: Fri, 29 May 2009 14:28:43 +0800
From: robert <aofeisheng@163.com>

Impatient?

On Fri, 29 May 2009, robert wrote:

Quote:
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

Quote:
[from-internal]

[snip]

Quote:
exten =>121,4,MeetMe(900,MDbF)

Is your AGI named "conf-background.agi?" (Personally, I think setting
MEETME_AGI_BACKGROUND is a better idea.)

Quote:
#!/usr/bin/php -q

[snip]

Quote:
print "get_data('demo-welcome', 15, 5)\"\"\n";

This is not the proper format for an AGI request.

The request should look more like:

get data demo-congrats 15 5

Quote:
$agivars = (fgets(STDIN));

The response will look like:

200 result=1 (timeout)

or

200 result= (timeout)

or even

200 result=

It's a text string that you need to parse, not a single digit.

Quote:
print "MeetMeAdmin(900,k,$agivars)\"\"\n";

"Meetmeadmin" is not a AGI command and even if it was, the syntax is
wrong.

Quote:
print "set extension 121\"\"\n";
print "set priority 5\"\"\n";

This violates the AGI protocol.

You will save yourself a lot of time and hair if you use an established
AGI library.

Keep in mind that when the AGI exits, you exit the meetme. Also, the "b"
option overrides the "p" and "X" options.

Another "gotcha" -- the "user" number you pass to meetmeadmin is not "the
nth user in the conference" its "the nth user who has joined the
conference."

Let's suppose you have a long running conference. You join and are user 1.
I join and am user 2. You leave and come back. You are now user 3. This
becomes more meaningful as hundreds of users join and leave the
conference. Thus, in a conference you could have users 1, 55, and 999.

I recently solved this for a client by writing an AGI that connected to
Asterisk via AMI to parse the output of "meetme list <conf-name>" so the
admin could mute/unmute/kill the users by index instead of user number.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
   AsteriskGuru Archives Forum Index -> Asterisk-Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™