Hello, I am not an asterisk expert but i am developing a web application that is using asterisk. I would like to know if it is possible to configure a Manager to only monitor a special extension, and of course how to do that. The application is written in java and is using asterisk-java. Right now i have one manager that i am connected to and i receive all the events but i would like to have some kind of administrator and user. The administrator manager can receive all events but the normal user (agent) should only receive the events that are associated to its extension. I would have some kind of user 1010 (the actual extension and username too) Let's say that in manager.conf i would have again some user 1010 but i would like that this user can only see the events associated to the extension 1010 ... Does it makes any sens, and how to do that? Regards, Daniel
> <CLIPPED> > I would have some kind of user 1010 (the actual extension and username > too) > Let's say that in manager.conf i would have again some user 1010 but i > would like that this user can only see the events associated to the > extension 1010 ... > <CLIPPED>I am pretty sure that using the proxy, astmanproxy, you can achieve this goal. It is recommended to use the proxy so that there is only one connection to the server and all the other applications will connect to the proxy. -Jonathan
Not meaning to argue with you but the proxy replaces the manager interface so it could most likely be a seamless replacement to your application. It was for all but one of my applications and the problem there was in the way I parsed the startup string.> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Daniel Gradecak > Sent: Tuesday, December 12, 2006 1:06 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Asterisk Manager > > Hello Jonathan, thank you for answering ... > > I read about astmanproxy but it cannot help me. I am usingasterisk-java> all my application is written in java too. I already have a kind of > proxy ad I am not doing > several connection to the asterisk manager. I am afraid this is not > helping me much. Anyway, I have done this in my "proxy" but i thoughti> could avoid things like that in my code... > > I did not test the asterisk manager contexts and dial plan, so Iwonder> if I make a call via astman from 1010 to a GSM and that 1010 is in a > context that is not allowing calls to GSM > would astman execute it anyway or would it look also in the 1010 > context? I am asking that because my system guys are not availableuntil> friday ... > > Jonathan k. Creasy wrote: > >> <CLIPPED> > >> I would have some kind of user 1010 (the actual extension andusername> >> too) > >> Let's say that in manager.conf i would have again some user 1010but i> >> would like that this user can only see the events associated to the > >> extension 1010 ... > >> <CLIPPED> > >> > > > > I am pretty sure that using the proxy, astmanproxy, you can achievethis> > goal. It is recommended to use the proxy so that there is only one > > connection to the server and all the other applications will connectto> > the proxy. > > > > -Jonathan > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
On 12 Dec 2006, at 16:27, Daniel Gradecak wrote:> Hello, > > I am not an asterisk expert but i am developing a web application that > is using asterisk. I would like to know if it is possible to > configure a > Manager to only monitor a special > extension, and of course how to do that. > > The application is written in java and is using asterisk-java. > Right now > i have one manager that i am connected to and i receive all the events > but i would like to have some kind of administrator > and user. The administrator manager can receive all events but the > normal user (agent) should only receive the events that are associated > to its extension. > > I would have some kind of user 1010 (the actual extension and > username too) > Let's say that in manager.conf i would have again some user 1010 but i > would like that this user can only see the events associated to the > extension 1010 ... > > Does it makes any sens, and how to do that?The manager doesn't have any filters - per-se. You would need to add a layer in your asterisk-java program that filtered the channels/extensions you were interested in. The easiest thing might be to have your manager layer put the events into a lightweight (in memory?) database, then use some standard JDBC/servlets (or whatever) to query those events using the channel current user's as a key. Now, depending on what you are trying to do, there may be other ways to get there.... Tim Panton www.mexuar.net www.westhawk.co.uk/
Hi i am trying to record a call with exten = 9,1,Answer exten = 9,2,Monitor exten = 9,3,Dial(SIP/200) This will record the call, but asterisk generates 2 files in /var/spool/asterisk/monitor/ ....-in.wav ....-out.wav Can i have only one file? Can i customize the path where to save the files? Thanks
Your line number nine should also specify a file name to monitor to and the format, like this exten = 9,2,Monitor(from-${CALLEDID}-at-${TIMESTAMP},wav) or better yet, use MixMon instead, because this will merge the two files into just one. (both sides of the call) Ed Nu?ez IT/Telecom Engineer 4037 Metric Drive Winter Park, FL (o) 407-384-4200 x 1656 (f) 407-384-4222 (c) 732-925-0730 -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of nik600 Sent: Tuesday, December 12, 2006 5:00 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Asterisk manager Hi i am trying to record a call with exten = 9,1,Answer exten = 9,2,Monitor exten = 9,3,Dial(SIP/200) This will record the call, but asterisk generates 2 files in /var/spool/asterisk/monitor/ ....-in.wav ....-out.wav Can i have only one file? Can i customize the path where to save the files? Thanks _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users