Dan Austin
2005-Apr-08 20:27 UTC
[Asterisk-Users] Using manager interface to play aanouncmentsin aMeetMe
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@lists.digium.com [mailto:asterisk-users-bounces@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@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@mm-announce-6b36,2", "") in new stack -- Executing NoOp("Local/9998@mm-announce-6b36,2", "") in new stack -- Executing Hangup("Local/9998@mm-announce-6b36,2", "") in new stack -- Executing Answer("Local/9998@mm-announce-6b36,1", "") in new stack -- Executing Playback("Local/9998@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@lists.digium.com [mailto:asterisk-users-bounces@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@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@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@lists.digium.com [mailto:asterisk-users-bounces@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@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@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@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@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@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@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
Dan Austin
2005-Apr-11 11:17 UTC
[Asterisk-Users] Using manager interface to play aanouncmentsin aMeetMe
I found an almost two year old bug report about this. It was closed saying it's not a bug. The issue is that the target in the originate command is considered the secondary side of the call, and thus not privy to the variables. As a work-around I have preceeded the originate command with a dbput and then a matching dbget in the dialplan. This works. At the moment I process the ongoing conferences serially, so there is no (minimal) risk that the wrong conference will be used for the announcement. Thanks again for the hints and help with this, Dan -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of mattf Sent: Saturday, April 09, 2005 4:20 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Using manager interface to play aanouncmentsin aMeetMe I've wondered about this as well. I suggest posting a bug to the bug tracker and see if you can get a clarification or better yet, get someone to fix this. It would be nice to override the clearing of the vars for Local channels. MATT--- -----Original Message----- From: Dan Austin [mailto:Dan_Austin@Phoenix.com] Sent: Friday, April 08, 2005 11:28 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Using manager interface to play aanouncmentsin aMeetMe 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@lists.digium.com [mailto:asterisk-users-bounces@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@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@mm-announce-6b36,2", "") in new stack -- Executing NoOp("Local/9998@mm-announce-6b36,2", "") in new stack -- Executing Hangup("Local/9998@mm-announce-6b36,2", "") in new stack -- Executing Answer("Local/9998@mm-announce-6b36,1", "") in new stack -- Executing Playback("Local/9998@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@lists.digium.com [mailto:asterisk-users-bounces@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@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@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@lists.digium.com [mailto:asterisk-users-bounces@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@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@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@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@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@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@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@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@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