[Asterisk-Users] Using manager interface to play aanouncmentsin aMeetMe

Dan Austin Dan_Austin at Phoenix.com
Fri Apr 8 20:27:42 MST 2005


A little more googling and wiki browsing shows that the default
behaviour
of the Local channel is to dump the variables.  According to the wiki I
can append /n to the channel identifier to preserve variables, but this
does
not seem to be working.  I'm running 1.0.7.

Can anyone lend me a clue?

Thanks,
Dan

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Dan Austin
Sent: Friday, April 08, 2005 3:13 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Using manager interface to play
aanouncmentsin aMeetMe

I've run into a snag.  I make extensive use of dynamic conferences
and thought it would be a no-brainer to pass the conference number
with the manager interface.  Looking at the wiki and sample code,
I thought I had it right, but no joy.

PHP manager call-
$res = $as->connect();
if (!$res){ echo 'Error connection to the manager!'; exit();}
$res = $as->send_request('Originate', array('Channel' =>
'Local/9998 at mm-announce', 'Context' => 'mm-announce', 'Exten' => '9999',
'Priority' => '1', 'Variable' => 'confNo=$confNo'));
$res = $as->disconnect();

extensions.conf-
 
[mm-announce]
exten => 9998,1,Answer
exten => 9998,2,noop,${confNo} ;to test, it was meetme(${confNo})
exten => 9998,3,Hangup

exten => 9999,1,Answer
exten => 9999,2,Playback(this-conf-will-end-in-5-minutes)
exten => 9999,3,Hangup

Console output-
  == Manager 'MeetMe' logged on from 127.0.0.1
    -- Executing Answer("Local/9998 at mm-announce-6b36,2", "") in new
stack
    -- Executing NoOp("Local/9998 at mm-announce-6b36,2", "") in new stack
    -- Executing Hangup("Local/9998 at mm-announce-6b36,2", "") in new
stack
    -- Executing Answer("Local/9998 at mm-announce-6b36,1", "") in new
stack
    -- Executing Playback("Local/9998 at mm-announce-6b36,1",
"this-conf-will-end-in-5-minutes") in new stack
    -- Playing 'this-conf-will-end-in-5-minutes' (language 'en')
  == Manager 'MeetMe' logged off from 127.0.0.1

So it appears that my variable ${confNo} is not being set, or at least
honored. 

Any thoughts?
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of mattf
Sent: Thursday, April 07, 2005 6:40 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Using manager interface to play
aanouncmentsin a MeetMe

Hello,

Here's jsut a simple manager Action to send, make sure that you have an
extension set up to play the message(exten => 1234,1,Playback(file)) and
that's the extension that will be called from the meetme room. Also,
make
sure that that extension calls in to the meetme room extension with the
'q'
flag so that noone hears the welcome and leaving tone.

exten => 1234,1,Answer
exten => 1234,2,Playback(out_of_time)
exten => 1234,3,Hangup


Action: Originate
Channel: Local/78600051 at default
Context: default
Exten: 1234
Priority: 1


where 78600051 is the exten to get to your meetme room.

Let me know if you have any questions,

MATT---


-----Original Message-----
From: Dan Austin [mailto:Dan_Austin at Phoenix.com]
Sent: Thursday, April 07, 2005 7:20 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] Using manager interface to play
aanouncmentsin a MeetMe


A sample would be great.  I'm hoping that the Official MeetMe2
will have provisions for this, but until then I'll have a
fully functional scheduler.

Dan 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of mattf
Sent: Thursday, April 07, 2005 3:31 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Using manager interface to play
aanouncmentsin a MeetMe

just create an extension that plays the message and hangs up and use the
manager interface to drop it into the meetme room.

Let me know if you would like an example and I'll whip one up.

We do this kind of thing in astGUIclient to play DTMF tones
automatically in
meetme rooms.

MATT---


-----Original Message-----
From: Dan Austin [mailto:Dan_Austin at Phoenix.com]
Sent: Thursday, April 07, 2005 6:17 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Using manager interface to play aanouncments
in a MeetMe


I am wrapping up a PHP addon script to my scheduling
framework and have it properly tracking and closing
conferences.

I need to play an announcement into the room that the
conference will end soon.  I haven't found a great way
to do that.  One way that I have thought of, but would
like to avoid is adding a Playback command to the 
MeetMeAdmin commands.

If anyone knowns of another way, I would be delighted.

Dan
_______________________________________________
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