asterisk-java-users Mailing List for Asterisk-Java Library (Page 117)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(8) |
Mar
(33) |
Apr
(36) |
May
(19) |
Jun
(21) |
Jul
(53) |
Aug
(30) |
Sep
(36) |
Oct
(34) |
Nov
(43) |
Dec
(72) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(123) |
Feb
(75) |
Mar
(86) |
Apr
(46) |
May
(41) |
Jun
(29) |
Jul
(76) |
Aug
(38) |
Sep
(39) |
Oct
(68) |
Nov
(16) |
Dec
(17) |
2007 |
Jan
(34) |
Feb
(18) |
Mar
(39) |
Apr
(30) |
May
(20) |
Jun
(10) |
Jul
(59) |
Aug
(54) |
Sep
(60) |
Oct
(22) |
Nov
(14) |
Dec
(10) |
2008 |
Jan
(34) |
Feb
(67) |
Mar
(65) |
Apr
(67) |
May
(60) |
Jun
(51) |
Jul
(88) |
Aug
(75) |
Sep
(47) |
Oct
(143) |
Nov
(54) |
Dec
(42) |
2009 |
Jan
(46) |
Feb
(80) |
Mar
(162) |
Apr
(159) |
May
(200) |
Jun
(34) |
Jul
(46) |
Aug
(59) |
Sep
(5) |
Oct
(35) |
Nov
(73) |
Dec
(30) |
2010 |
Jan
(23) |
Feb
(50) |
Mar
(8) |
Apr
(24) |
May
(19) |
Jun
(49) |
Jul
(56) |
Aug
(35) |
Sep
(26) |
Oct
(79) |
Nov
(39) |
Dec
(34) |
2011 |
Jan
(27) |
Feb
(22) |
Mar
(28) |
Apr
(12) |
May
(16) |
Jun
(19) |
Jul
(1) |
Aug
(64) |
Sep
(19) |
Oct
(11) |
Nov
(17) |
Dec
(12) |
2012 |
Jan
(6) |
Feb
(8) |
Mar
(15) |
Apr
(43) |
May
(41) |
Jun
(14) |
Jul
(32) |
Aug
(3) |
Sep
(4) |
Oct
(7) |
Nov
(11) |
Dec
(11) |
2013 |
Jan
(35) |
Feb
(11) |
Mar
(23) |
Apr
(25) |
May
(37) |
Jun
(47) |
Jul
(25) |
Aug
(21) |
Sep
|
Oct
(1) |
Nov
(9) |
Dec
|
2014 |
Jan
(26) |
Feb
(2) |
Mar
(18) |
Apr
(41) |
May
(7) |
Jun
(7) |
Jul
(24) |
Aug
(5) |
Sep
(6) |
Oct
(8) |
Nov
(9) |
Dec
(7) |
2015 |
Jan
(7) |
Feb
(15) |
Mar
(8) |
Apr
(12) |
May
(7) |
Jun
|
Jul
|
Aug
(5) |
Sep
(1) |
Oct
(3) |
Nov
(30) |
Dec
(3) |
2016 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
|
May
(9) |
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(8) |
Dec
(4) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Maciek T. <mlo...@gm...> - 2008-03-31 13:42:10
|
Hi, Solution may be Tomcat webservice servlet, originating call to agent, with application param: AgentLogin(AgentNumber) or using AgentCallbackLogin action form asterisk-java. Regards, Maciek 2008/3/31, Gopal krishnan <sa...@gm...>: > > Hi, > > We are trying a agentlogin application with asterisk java. Is it > possible that from a web browser we can input the agent number and the > extension number(channel)? so that the agent name and the channel name will > be mapped. > > Currently we are now logging into the agentlogin application from the > softphone by, > exten => 7777,1,Agentlogin() > > we are trying this with web browser. Any suggestion would be appreciated. > > -- > Thank you with regards, > Gopal, > > <http://www.peopletech.co.in> > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Pozdrawiam Maciek Tokarski |
From: Gopal k. <sa...@gm...> - 2008-03-31 12:24:39
|
Hi, We are trying a agentlogin application with asterisk java. Is it possible that from a web browser we can input the agent number and the extension number(channel)? so that the agent name and the channel name will be mapped. Currently we are now logging into the agentlogin application from the softphone by, exten => 7777,1,Agentlogin() we are trying this with web browser. Any suggestion would be appreciated. -- Thank you with regards, Gopal, <http://www.peopletech.co.in> |
From: Gopal k. <gop...@pe...> - 2008-03-31 12:20:38
|
Hi, We have tried and its working with tomcat. On 3/28/08, Gopal krishnan <gop...@pe...> wrote: > > Hi, > Thank you , let me try this with some tweaking. > > On Thu, Mar 27, 2008 at 7:29 PM, Maciek Tokarski <mlo...@gm...> > wrote: > > > Hi, > > Let's say that you want to originate some call to somebody by clicking > > button on HTML site. PHP script will look something like that > > > > > > ----PHP CODE filename: clickToCall.php > > > > > > <?php > > if (!isset($_POST['call']) or $_POST['call']=='') { > > //display form to user > > ?> > > <form action="clickToCall.php" method="POST"> > > <input type="text" name="destination" value="enter destination number > > here...."> > > <input type="submit" value="call" name="call"> > > </form> > > <?php > > } else { > > //call web service using curl > > $destination=$_POST['destination']; > > > > $ch = curl_init(); > > $url="http://your.tomcat.host/serletname?dest=$destination"; //you can > > also use fopen or file_get_contents functions > > curl_setopt($ch, CURLOPT_URL,$url); > > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > > curl_setopt($ch, CURLOPT_POST, 1); > > curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); > > > > $data = curl_exec($ch); > > if ($data='OK') { > > echo "Ok... call is no the way"; > > } else { > > echo "Some problems...:-("; > > } > > } > > ?> > > ---end of PHP code > > I thin it won't work if You use Ctrl-C Ctrl-V, but it may looks like > > thise above > > > > Next you have to write a web service servlet that will handle request > > from php script: > > > > > > ----JAVA CODE > > > > package clickToCall; > > > > import java.io.*; > > import javax.servlet.*; > > import javax.servlet.http.*; > > import org.asteriskjava.manager.AuthenticationFailedException; > > import org.asteriskjava.manager.ManagerConnection; > > > > > > > > import org.asteriskjava.manager.ManagerConnectionFactory; > > import org.asteriskjava.manager.TimeoutException; > > import org.asteriskjava.manager.action.OriginateAction; > > import org.asteriskjava.manager.response.ManagerResponse; > > > > > > > > > > public class HelloWorld extends HttpServlet { > > public void doGet(HttpServletRequest request, > > HttpServletResponse response) > > throws ServletException, IOException { > > > > PrintWriter out = response.getWriter(); > > > > > > > > String destinationNo=request.getParameter("dest"); > > //pasted from http://asterisk-java.org/development/tutorial.html :-) > > > > > > try { > > > > ManagerConnectionFactory factory = new ManagerConnectionFactory( > > "localhost", "manager", "pa55w0rd"); // > > > > > > this.managerConnection = factory.createManagerConnection(); > > > > > > OriginateAction originateAction; > > ManagerResponse originateResponse; > > > > originateAction = new OriginateAction(); > > originateAction.setChannel("SIP/YOUR_TRUNK_NAME/"+destination); > > > > > > originateAction.setContext("default"); > > originateAction.setExten("1300"); > > originateAction.setPriority(new Integer(1)); > > originateAction.setTimeout(new Integer(30000)); > > > > > > > > // connect to Asterisk and log in > > managerConnection.login(); > > > > // send the originate action and wait for a maximum of 30 seconds for Asterisk > > // to send a reply > > originateResponse = managerConnection.sendAction(originateAction, 30000); > > > > > > > > > > > > // and finally log off and disconnect > > managerConnection.logoff(); > > > > out.println("OK"); > > } catch (Exception e) { > > out.println("NOT OK"); > > > > > > > > } > > > > } > > } > > > > ---End of JAVA code > > > > > > It also won't work after pasting it. Remember to put your Trunk name > > context etc. when setting up originate action. Of course you have to set up > > your Tomcat with this servlet. Php script can be simply putted into > > /varr/www folder of your server > > > > > > > > > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > > > Hi, > > > > > > Thanks for the reply, can I have any help or hello world example to > > > set this. It would be a great help for me. Thanks > > > > > > On Thu, Mar 27, 2008 at 2:51 PM, Maciek Tokarski <mlo...@gm...> > > > wrote: > > > > > > > HI, > > > > Yes- it is possible. Once, I've developed Tomcat servlet (simple > > > > WebService) on Asterisk box to monitor users count on MeetMe rooms. It works > > > > fine. In my opinion best way of integrating manager API with HTML sites is > > > > interract with Asterisk not exacly via Tomcat servlet but via WebServices > > > > servlets (on Tomcat) calling it form eg. PHP scripts using CURL. > > > > > > > > Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk > > > > Box > > > > > > > > > > > > Regards, Maciek > > > > > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > > > > > > > Hi, > > > > > > > > > > Is it possible I can use a manager api program with tomcat. If > > > > > so how should i integrate that, please assist me. > > > > > > > > > > I would like to initate a action from a html page so that it > > > > > will hit a program developed with manager api. > > > > > > > > > > -- > > > > > Thank you with regards, > > > > > Gopal, > > > > > PeopleTech Systems Private Limited > > > > > www.peopletech.co.in > > > > > > > > > > ------------------------------------------------------------------------- > > > > > Check out the new SourceForge.net Marketplace. > > > > > It's the best place to buy or sell services for > > > > > just about anything Open Source. > > > > > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > > > _______________________________________________ > > > > > Asterisk-java-users mailing list > > > > > Ast...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > > _______________________________________________ > > > > Asterisk-java-users mailing list > > > > Ast...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > > > -- > > > Thank you with regards, > > > Gopal, > > > PeopleTech Systems Private Limited > > > www.peopletech.co.in > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > -- > > Pozdrawiam > > Maciek Tokarski > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: Stefan R. <ste...@re...> - 2008-03-31 01:07:46
|
Hi Klaus, > I was wondering if you could give me some insight into how to stream > an ongoing asterik call (let's say pipe it to a media server). You could use ChanSpy [1] and connect that channel to an IAX/SIP media server. What is the use case for this? =Stefan [1] http://www.voip-info.org/wiki-Asterisk+cmd+ChanSpy -- reuter network consulting Neusser Str. 110 50760 Koeln Germany Telefon: +49 221 1305699-0 Telefax: +49 221 1305699-90 E-Mail: ste...@re... Jabber: ste...@re... WWW: http://www.reucon.com Steuernummern 215/5140/1791 USt-IdNr. DE220701760 |
From: Klaus T. <kla...@gm...> - 2008-03-31 00:19:07
|
Hi Folks, I was wondering if you could give me some insight into how to stream an ongoing asterik call (let's say pipe it to a media server). What I was hopping was that the record produced by the monitor application could be used for this purpose. Yet, it seems (at least as far as somix is concerned) that this function is called only at the end of the call. Any idea? Thanks, Klaus L'imbecile. -- GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen! Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx |
From: T. L. P. T. <tom...@gm...> - 2008-03-28 05:04:12
|
Hello Thomas: Could you please point me what version of Asterisk and what realtime engine (ODBC, MySQL, PostgreSQL, etc.) are you using with Asterisk Java and real time queue? Thank you. Best regards, Tomás. On Thu, Mar 27, 2008 at 12:14 PM, Thomas Kenner <tho...@ac...> wrote: > Hi Patrick, > > static realtime [1] means that you save your config files 1:1 into a database. > With dynamic realtime you use tables where one row represants an object. This > you can use e.g. for queues: [2]. > > I had some problems while using these realtime tables with asterisk-java. For > example: a queue is not visible until the first queue member logs in. > > Regards, > Thomas > > [1] http://www.voip-info.org/wiki/view/Asterisk+RealTime+Static > [2] http://www.voip-info.org/wiki/index.php?page=Asterisk+RealTime+Queue > > > On Thursday 27 March 2008 14:14:01 Patrick Breucking wrote: > > Hi Thomas, > > > > can you explain what do you mean with dynamic realtime? > > > > Regards, > > Patrick > > > > Thomas Kenner schrieb: > > > Hello, > > > > > > I'd like to know if AsteriskQueue and AsteriskQueueMember will work with > > > dynamic realtime? > > > > > > Thanks, > > > Thomas > > > > -- > DI Thomas Kenner > > acoveo OG > Schießstattg. 53, 8010 Graz, Austria > tho...@ac... > http://www.acoveo.com > > Firmenbuchnummer: FN 302890 b > Firmenbuchgericht: Landesgericht als Handelsgericht Graz > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > |
From: Gopal k. <gop...@pe...> - 2008-03-28 04:51:05
|
Hi, Thank you , let me try this with some tweaking. On Thu, Mar 27, 2008 at 7:29 PM, Maciek Tokarski <mlo...@gm...> wrote: > Hi, > Let's say that you want to originate some call to somebody by clicking > button on HTML site. PHP script will look something like that > > > ----PHP CODE filename: clickToCall.php > > > <?php > if (!isset($_POST['call']) or $_POST['call']=='') { > //display form to user > ?> > <form action="clickToCall.php" method="POST"> > <input type="text" name="destination" value="enter destination number > here...."> > <input type="submit" value="call" name="call"> > </form> > <?php > } else { > //call web service using curl > $destination=$_POST['destination']; > > $ch = curl_init(); > $url="http://your.tomcat.host/serletname?dest=$destination"; //you can > also use fopen or file_get_contents functions > curl_setopt($ch, CURLOPT_URL,$url); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_POST, 1); > curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); > > $data = curl_exec($ch); > if ($data='OK') { > echo "Ok... call is no the way"; > } else { > echo "Some problems...:-("; > } > } > ?> > ---end of PHP code > I thin it won't work if You use Ctrl-C Ctrl-V, but it may looks like thise > above > > Next you have to write a web service servlet that will handle request from > php script: > > > ----JAVA CODE > > package clickToCall; > > import java.io.*; > import javax.servlet.*; > import javax.servlet.http.*; > import org.asteriskjava.manager.AuthenticationFailedException; > import org.asteriskjava.manager.ManagerConnection; > > import org.asteriskjava.manager.ManagerConnectionFactory; > import org.asteriskjava.manager.TimeoutException; > import org.asteriskjava.manager.action.OriginateAction; > import org.asteriskjava.manager.response.ManagerResponse; > > > public class HelloWorld extends HttpServlet { > public void doGet(HttpServletRequest request, > HttpServletResponse response) > throws ServletException, IOException { > > PrintWriter out = response.getWriter(); > > String destinationNo=request.getParameter("dest"); > //pasted from http://asterisk-java.org/development/tutorial.html :-) > > try { > > ManagerConnectionFactory factory = new ManagerConnectionFactory( > "localhost", "manager", "pa55w0rd"); // > > this.managerConnection = factory.createManagerConnection(); > > > OriginateAction originateAction; > ManagerResponse originateResponse; > > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/YOUR_TRUNK_NAME/"+destination); > > originateAction.setContext("default"); > originateAction.setExten("1300"); > originateAction.setPriority(new Integer(1)); > originateAction.setTimeout(new Integer(30000)); > > // connect to Asterisk and log in > managerConnection.login(); > > // send the originate action and wait for a maximum of 30 seconds for Asterisk > // to send a reply > originateResponse = managerConnection.sendAction(originateAction, 30000); > > > > // and finally log off and disconnect > managerConnection.logoff(); > > out.println("OK"); > } catch (Exception e) { > out.println("NOT OK"); > > } > > } > } > > ---End of JAVA code > > > It also won't work after pasting it. Remember to put your Trunk name > context etc. when setting up originate action. Of course you have to set up > your Tomcat with this servlet. Php script can be simply putted into > /varr/www folder of your server > > > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > Hi, > > > > Thanks for the reply, can I have any help or hello world example to set > > this. It would be a great help for me. Thanks > > > > On Thu, Mar 27, 2008 at 2:51 PM, Maciek Tokarski <mlo...@gm...> > > wrote: > > > > > HI, > > > Yes- it is possible. Once, I've developed Tomcat servlet (simple > > > WebService) on Asterisk box to monitor users count on MeetMe rooms. It works > > > fine. In my opinion best way of integrating manager API with HTML sites is > > > interract with Asterisk not exacly via Tomcat servlet but via WebServices > > > servlets (on Tomcat) calling it form eg. PHP scripts using CURL. > > > > > > Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk > > > Box > > > > > > > > > Regards, Maciek > > > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > > > > > Hi, > > > > > > > > Is it possible I can use a manager api program with tomcat. If so > > > > how should i integrate that, please assist me. > > > > > > > > I would like to initate a action from a html page so that it will > > > > hit a program developed with manager api. > > > > > > > > -- > > > > Thank you with regards, > > > > Gopal, > > > > PeopleTech Systems Private Limited > > > > www.peopletech.co.in > > > > > > > > ------------------------------------------------------------------------- > > > > Check out the new SourceForge.net Marketplace. > > > > It's the best place to buy or sell services for > > > > just about anything Open Source. > > > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > > _______________________________________________ > > > > Asterisk-java-users mailing list > > > > Ast...@li... > > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > -- > > Thank you with regards, > > Gopal, > > PeopleTech Systems Private Limited > > www.peopletech.co.in > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -- > Pozdrawiam > Maciek Tokarski > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: E. M. <mar...@gm...> - 2008-03-27 21:27:01
|
Well in my case I was thinking in SIP attended transfers. With SIP phones in attended transfers the transfered channel starts doing whathever was doing the other channel: playing a sound, a bridge with another channel etc. On Thu, Mar 27, 2008 at 9:19 PM, Martin Smith <ma...@be...> wrote: > I haven't been able to do an attended transfer to anything natively. I > was under the impression that app_transfer does not do attended transfers > and ONLY transfers to an extension location in the dialplan (NOT an > extension in progress), and you can only do an attended transfer via the > features.conf method or a phone which knows how with a given channel > technology that also supports it i.e. NOT an attended transfer to > Voicemail, Playback, or any other such app. > > Maybe someone else here can comment on this. > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > ------------------------------ > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Eduard > Martínez > *Sent:* Thursday, March 27, 2008 2:36 PM > *To:* ast...@li... > *Subject:* Re: [Asterisk-java-users] Agi scripts and native transfers > > > > On Thu, Mar 27, 2008 at 2:36 PM, Martin Smith <ma...@be...> > wrote: > > > Can ongoing channel be able to be the target of a transfer? [...] > > > > As far as I know, yes. But that's not the point. Maybe a valid example for > you is: > Party A calls Party B. Party B puts the call on hold and calls to the AGI > script with the monkeys. Then Party B does the atended transfer with Party A > and the AGI call. > > Think in the loop directly in the dialplan: > > exten => 1234, 1, PlayBack(tt-monkeys) > exten => 1234, 2, Goto(1) > > If Party B does a native transfer to this extension, Party A starts > hearing the monkeys and the loop continues with his channel. > > > > > > As an example, I haven't been able (in my one 5 minute try, anyway) to > > convince Asterisk to do an attended transfer to voicemail. Asterisk-Java is > > beside the issue here. I don't think you can have a pre-existing channel as > > the target of an attended transfer, short of using an app that lets channels > > comingle, like meet me. > > > > Hopefully someone can correct me if I'm wrong. > > > > > > Martin Smith, Systems Developer > > ma...@be... > > Bureau of Economic and Business Research > > University of Florida > > (352) 392-0171 Ext. 221 > > > > > > ------------------------------ > > *From:* ast...@li... [mailto: > > ast...@li...] *On Behalf Of *Eduard > > Martínez > > *Sent:* Wednesday, March 26, 2008 6:44 PM > > *To:* ast...@li... > > *Subject:* [Asterisk-java-users] Agi scripts and native transfers > > > > Hello, > > I'm going to develop an AGI script but first I want to know if they have > > problems with attended transfers. For instance, imagine an agi script with a > > loop playing a sound (tt-monkeys?). Party A calls to Party B. Then Party A > > also calls to the AGI script and start hearing the monkeys. If Party A > > transfers Party B to the AGI script call, it will work? Sadly now I can test > > it because I don't have a phone with attended transfer support. > > Thank you. > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Martin S. <ma...@be...> - 2008-03-27 20:18:48
|
I haven't been able to do an attended transfer to anything natively. I was under the impression that app_transfer does not do attended transfers and ONLY transfers to an extension location in the dialplan (NOT an extension in progress), and you can only do an attended transfer via the features.conf method or a phone which knows how with a given channel technology that also supports it i.e. NOT an attended transfer to Voicemail, Playback, or any other such app. Maybe someone else here can comment on this. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Eduard Martínez Sent: Thursday, March 27, 2008 2:36 PM To: ast...@li... Subject: Re: [Asterisk-java-users] Agi scripts and native transfers On Thu, Mar 27, 2008 at 2:36 PM, Martin Smith <ma...@be...> wrote: Can ongoing channel be able to be the target of a transfer? [...] As far as I know, yes. But that's not the point. Maybe a valid example for you is: Party A calls Party B. Party B puts the call on hold and calls to the AGI script with the monkeys. Then Party B does the atended transfer with Party A and the AGI call. Think in the loop directly in the dialplan: exten => 1234, 1, PlayBack(tt-monkeys) exten => 1234, 2, Goto(1) If Party B does a native transfer to this extension, Party A starts hearing the monkeys and the loop continues with his channel. As an example, I haven't been able (in my one 5 minute try, anyway) to convince Asterisk to do an attended transfer to voicemail. Asterisk-Java is beside the issue here. I don't think you can have a pre-existing channel as the target of an attended transfer, short of using an app that lets channels comingle, like meet me. Hopefully someone can correct me if I'm wrong. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Eduard Martínez Sent: Wednesday, March 26, 2008 6:44 PM To: ast...@li... Subject: [Asterisk-java-users] Agi scripts and native transfers Hello, I'm going to develop an AGI script but first I want to know if they have problems with attended transfers. For instance, imagine an agi script with a loop playing a sound (tt-monkeys?). Party A calls to Party B. Then Party A also calls to the AGI script and start hearing the monkeys. If Party A transfers Party B to the AGI script call, it will work? Sadly now I can test it because I don't have a phone with attended transfer support. Thank you. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: E. M. <mar...@gm...> - 2008-03-27 18:35:41
|
On Thu, Mar 27, 2008 at 2:36 PM, Martin Smith <ma...@be...> wrote: > Can ongoing channel be able to be the target of a transfer? [...] > As far as I know, yes. But that's not the point. Maybe a valid example for you is: Party A calls Party B. Party B puts the call on hold and calls to the AGI script with the monkeys. Then Party B does the atended transfer with Party A and the AGI call. Think in the loop directly in the dialplan: exten => 1234, 1, PlayBack(tt-monkeys) exten => 1234, 2, Goto(1) If Party B does a native transfer to this extension, Party A starts hearing the monkeys and the loop continues with his channel. > > As an example, I haven't been able (in my one 5 minute try, anyway) to > convince Asterisk to do an attended transfer to voicemail. Asterisk-Java is > beside the issue here. I don't think you can have a pre-existing channel as > the target of an attended transfer, short of using an app that lets channels > comingle, like meet me. > > Hopefully someone can correct me if I'm wrong. > > > Martin Smith, Systems Developer > ma...@be... > Bureau of Economic and Business Research > University of Florida > (352) 392-0171 Ext. 221 > > > ------------------------------ > *From:* ast...@li... [mailto: > ast...@li...] *On Behalf Of *Eduard > Martínez > *Sent:* Wednesday, March 26, 2008 6:44 PM > *To:* ast...@li... > *Subject:* [Asterisk-java-users] Agi scripts and native transfers > > Hello, > I'm going to develop an AGI script but first I want to know if they have > problems with attended transfers. For instance, imagine an agi script with a > loop playing a sound (tt-monkeys?). Party A calls to Party B. Then Party A > also calls to the AGI script and start hearing the monkeys. If Party A > transfers Party B to the AGI script call, it will work? Sadly now I can test > it because I don't have a phone with attended transfer support. > Thank you. > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Thomas K. <tho...@ac...> - 2008-03-27 15:15:02
|
Hi Patrick, static realtime [1] means that you save your config files 1:1 into a database. With dynamic realtime you use tables where one row represants an object. This you can use e.g. for queues: [2]. I had some problems while using these realtime tables with asterisk-java. For example: a queue is not visible until the first queue member logs in. Regards, Thomas [1] http://www.voip-info.org/wiki/view/Asterisk+RealTime+Static [2] http://www.voip-info.org/wiki/index.php?page=Asterisk+RealTime+Queue On Thursday 27 March 2008 14:14:01 Patrick Breucking wrote: > Hi Thomas, > > can you explain what do you mean with dynamic realtime? > > Regards, > Patrick > > Thomas Kenner schrieb: > > Hello, > > > > I'd like to know if AsteriskQueue and AsteriskQueueMember will work with > > dynamic realtime? > > > > Thanks, > > Thomas -- DI Thomas Kenner acoveo OG Schießstattg. 53, 8010 Graz, Austria tho...@ac... http://www.acoveo.com Firmenbuchnummer: FN 302890 b Firmenbuchgericht: Landesgericht als Handelsgericht Graz |
From: Maciek T. <mlo...@gm...> - 2008-03-27 14:00:27
|
Hi, Let's say that you want to originate some call to somebody by clicking button on HTML site. PHP script will look something like that ----PHP CODE filename: clickToCall.php <?php if (!isset($_POST['call']) or $_POST['call']=='') { //display form to user ?> <form action="clickToCall.php" method="POST"> <input type="text" name="destination" value="enter destination number here...."> <input type="submit" value="call" name="call"> </form> <?php } else { //call web service using curl $destination=$_POST['destination']; $ch = curl_init(); $url="http://your.tomcat.host/serletname?dest=$destination"; //you can also use fopen or file_get_contents functions curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); $data = curl_exec($ch); if ($data='OK') { echo "Ok... call is no the way"; } else { echo "Some problems...:-("; } } ?> ---end of PHP code I thin it won't work if You use Ctrl-C Ctrl-V, but it may looks like thise above Next you have to write a web service servlet that will handle request from php script: ----JAVA CODE package clickToCall; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.asteriskjava.manager.AuthenticationFailedException; import org.asteriskjava.manager.ManagerConnection; import org.asteriskjava.manager.ManagerConnectionFactory; import org.asteriskjava.manager.TimeoutException; import org.asteriskjava.manager.action.OriginateAction; import org.asteriskjava.manager.response.ManagerResponse; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); String destinationNo=request.getParameter("dest"); //pasted from http://asterisk-java.org/development/tutorial.html :-) try { ManagerConnectionFactory factory = new ManagerConnectionFactory( "localhost", "manager", "pa55w0rd"); // this.managerConnection = factory.createManagerConnection(); OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/YOUR_TRUNK_NAME/"+destination); originateAction.setContext("default"); originateAction.setExten("1300"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); // connect to Asterisk and log in managerConnection.login(); // send the originate action and wait for a maximum of 30 seconds for Asterisk // to send a reply originateResponse = managerConnection.sendAction(originateAction, 30000); // and finally log off and disconnect managerConnection.logoff(); out.println("OK"); } catch (Exception e) { out.println("NOT OK"); } } } ---End of JAVA code It also won't work after pasting it. Remember to put your Trunk name context etc. when setting up originate action. Of course you have to set up your Tomcat with this servlet. Php script can be simply putted into /varr/www folder of your server Regards, Maciek 2008/3/27, Gopal krishnan <sa...@gm...>: > > Hi, > > Thanks for the reply, can I have any help or hello world example to set > this. It would be a great help for me. Thanks > > On Thu, Mar 27, 2008 at 2:51 PM, Maciek Tokarski <mlo...@gm...> > wrote: > > > HI, > > Yes- it is possible. Once, I've developed Tomcat servlet (simple > > WebService) on Asterisk box to monitor users count on MeetMe rooms. It works > > fine. In my opinion best way of integrating manager API with HTML sites is > > interract with Asterisk not exacly via Tomcat servlet but via WebServices > > servlets (on Tomcat) calling it form eg. PHP scripts using CURL. > > > > Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk Box > > > > > > Regards, Maciek > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > > > Hi, > > > > > > Is it possible I can use a manager api program with tomcat. If so > > > how should i integrate that, please assist me. > > > > > > I would like to initate a action from a html page so that it will > > > hit a program developed with manager api. > > > > > > -- > > > Thank you with regards, > > > Gopal, > > > PeopleTech Systems Private Limited > > > www.peopletech.co.in > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Pozdrawiam Maciek Tokarski |
From: Maciek T. <mlo...@gm...> - 2008-03-27 13:59:46
|
Hi, Let's say that you want to originate some call to somebody by clicking button on HTML site. PHP script will look something like that ----PHP CODE filename: clickToCall.php <?php if (!isset($_POST['call']) or $_POST['call']=='') { //display form to user ?> <form action="clickToCall.php" method="POST"> <input type="text" name="destination" value="enter destination number here...."> <input type="submit" value="call" name="call"> </form> <?php } else { //call web service using curl $destination=$_POST['destination']; $ch = curl_init(); $url="http://your.tomcat.host/serletname?dest=$destination"; //you can also use fopen or file_get_contents functions curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_data); $data = curl_exec($ch); if ($data='OK') { echo "Ok... call is no the way"; } else { echo "Some problems...:-("; } } ?> ---end of PHP code I thin it won't work if You use Ctrl-C Ctrl-V, but it may looks like thise above Next you have to write a web service servlet that will handle request from php script: ----JAVA CODE package clickToCall; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.asteriskjava.manager.AuthenticationFailedException; import org.asteriskjava.manager.ManagerConnection; import org.asteriskjava.manager.ManagerConnectionFactory; import org.asteriskjava.manager.TimeoutException; import org.asteriskjava.manager.action.OriginateAction; import org.asteriskjava.manager.response.ManagerResponse; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); String destinationNo=request.getParameter("dest"); //pasted from http://asterisk-java.org/development/tutorial.html :-) try { ManagerConnectionFactory factory = new ManagerConnectionFactory( "localhost", "manager", "pa55w0rd"); // this.managerConnection = factory.createManagerConnection(); OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/YOUR_TRUNK_NAME/"+destination); originateAction.setContext("default"); originateAction.setExten("1300"); originateAction.setPriority(new Integer(1)); originateAction.setTimeout(new Integer(30000)); // connect to Asterisk and log in managerConnection.login(); // send the originate action and wait for a maximum of 30 seconds for Asterisk // to send a reply originateResponse = managerConnection.sendAction(originateAction, 30000); // and finally log off and disconnect managerConnection.logoff(); out.println("OK"); } catch (Exception e) { out.println("NOT OK"); } } } ---End of JAVA code It also won't work after pasting it. Remember to put your Trunk name context etc. when setting up originate action. Of course you have to set up your Tomcat with this servlet. Php script can be simply putted into /varr/www folder of your server 2008/3/27, Gopal krishnan <sa...@gm...>: > > Hi, > > Thanks for the reply, can I have any help or hello world example to set > this. It would be a great help for me. Thanks > > On Thu, Mar 27, 2008 at 2:51 PM, Maciek Tokarski <mlo...@gm...> > wrote: > > > HI, > > Yes- it is possible. Once, I've developed Tomcat servlet (simple > > WebService) on Asterisk box to monitor users count on MeetMe rooms. It works > > fine. In my opinion best way of integrating manager API with HTML sites is > > interract with Asterisk not exacly via Tomcat servlet but via WebServices > > servlets (on Tomcat) calling it form eg. PHP scripts using CURL. > > > > Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk Box > > > > > > Regards, Maciek > > > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > > > Hi, > > > > > > Is it possible I can use a manager api program with tomcat. If so > > > how should i integrate that, please assist me. > > > > > > I would like to initate a action from a html page so that it will > > > hit a program developed with manager api. > > > > > > -- > > > Thank you with regards, > > > Gopal, > > > PeopleTech Systems Private Limited > > > www.peopletech.co.in > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Pozdrawiam Maciek Tokarski |
From: Martin S. <ma...@be...> - 2008-03-27 13:35:49
|
Can ongoing channel be able to be the target of a transfer? I don't think so. You can transfer BOTH calls into a conference room (meetme). You can also transfer party B to a new instance of the AGI script (transfer them to an extension that invokes the script). Otherwise, I think you'll need to consult the asterisk-users list. As an example, I haven't been able (in my one 5 minute try, anyway) to convince Asterisk to do an attended transfer to voicemail. Asterisk-Java is beside the issue here. I don't think you can have a pre-existing channel as the target of an attended transfer, short of using an app that lets channels comingle, like meet me. Hopefully someone can correct me if I'm wrong. Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Eduard Martínez Sent: Wednesday, March 26, 2008 6:44 PM To: ast...@li... Subject: [Asterisk-java-users] Agi scripts and native transfers Hello, I'm going to develop an AGI script but first I want to know if they have problems with attended transfers. For instance, imagine an agi script with a loop playing a sound (tt-monkeys?). Party A calls to Party B. Then Party A also calls to the AGI script and start hearing the monkeys. If Party A transfers Party B to the AGI script call, it will work? Sadly now I can test it because I don't have a phone with attended transfer support. Thank you. |
From: Martin S. <ma...@be...> - 2008-03-27 13:29:16
|
Hello Satish, I've found that simply enabling music on hold (http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+musiconhold) and holding the thread in a sleep will initiate hold-like behavior. I believe hold is usually a phone-based thing, though I don't details on that. Have you tried just Thread.sleep(n)? Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221 ________________________________ From: ast...@li... [mailto:ast...@li...] On Behalf Of Satish Kumar Sent: Thursday, March 27, 2008 5:44 AM To: Ast...@li... Subject: [Asterisk-java-users] How do we put the call on hold ? How do we put the call on hold ? |
From: Patrick B. <bre...@go...> - 2008-03-27 13:13:59
|
Hi Thomas, can you explain what do you mean with dynamic realtime? Regards, Patrick Thomas Kenner schrieb: > Hello, > > I'd like to know if AsteriskQueue and AsteriskQueueMember will work with > dynamic realtime? > > Thanks, > Thomas > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 |
From: Allan K. <kam...@ya...> - 2008-03-27 13:06:39
|
Then maybe $CATALINA_HOME/commons/lib You may try removing the web application then redeploying it - am not sure if it's possible to add jar files to an already deployed webapp ( my memory is rusty). You may need to look at the tomcat docs on deploying web applications and their associated jar files. Allan. ----- Original Message ---- From: preetha Ayyappan <pre...@gm...> To: ast...@li... Sent: Thursday, March 27, 2008 2:39:52 PM Subject: Re: [Asterisk-java-users] To run a standalone java program in a browser I have tried both the options.still i am getting the same error. On 3/27/08, Allan Kamau <kam...@ya...> wrote:Youmay need to place the jar file in the WEB-INF/lib directory of theservlet application you are deploying. If all fails, one of the lastoptions would be to place it (the jar file) in tomcat's installationwide directory (I think it is) $CATALINA_HOME/lib Allan. ----- Original Message ---- From: preetha Ayyappan <pre...@gm...> To: ast...@li... Sent: Thursday, March 27, 2008 12:52:37 PM Subject: Re: [Asterisk-java-users] To run a standalone java program in a browser Hi, As you suggested,I have placed the asteriskjava.jar file intowebapps/root/web-inf/lib.when i try to compile the servlet program i amgetting the following error: java.lang.NoClassDefFoundError: org/asteriskjava/manager/ManagerConnectionFactory since i am having the ManagerConnectionFactory.class as imported. Please assist me On 2/28/08, Patrick Breucking <bre...@go...> wrote:Hi Preetha, so you can use the package manager from your linux distribution to install a tomcat on your machine. If you are using e.g. debian, use: $> apt-get install tomcat I don't now if there is a way to run asp.net in a tomcat container, but you can use tomcat only for originate. So create a Webapp in your preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir for tomcat webapps. Create a Servlet with a .doGet() Method, so you can extract the extension parameter from URL with ... request.getAttribute("extension"); ... and you can use your Asterisk-Java code. The URL is http://localhost:8080/Servlet?extension=183 Hope this helps, let me know if you have problems or other questions. Regards, Patrick preetha Ayyappan schrieb: > Hi, > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > originate a call to an extension.But as it is a stanalone > application,I can able to run the program in console only.Then the > call gets originated to the extension i have specified.But my > requirement is ,If i click a number in a web based application which > is developed in asp.net <http://asp.net>,that number should be passed > to the HelloManager.java program and that number should be > originated.I cannot do this since HelloManager.java is standalone.How > could i run the java program in a browser? please let me know in > brief where should i download tomcat in my linux and how to run this? > > Thanks. > Preetha.A > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Preetha.A -----Inline Attachment Follows----- ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users Never miss a thing. Make Yahoo your homepage. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Preetha.A ____________________________________________________________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping |
From: preetha A. <pre...@gm...> - 2008-03-27 12:39:52
|
I have tried both the options.still i am getting the same error. On 3/27/08, Allan Kamau <kam...@ya...> wrote: > > You may need to place the jar file in the WEB-INF/lib directory of the > servlet application you are deploying. If all fails, one of the last options > would be to place it (the jar file) in tomcat's installation wide directory > (I think it is) $CATALINA_HOME/lib > > Allan. > > ----- Original Message ---- > From: preetha Ayyappan <pre...@gm...> > To: ast...@li... > Sent: Thursday, March 27, 2008 12:52:37 PM > Subject: Re: [Asterisk-java-users] To run a standalone java program in a > browser > > Hi, > As you suggested,I have placed the asteriskjava.jar file into > webapps/root/web-inf/lib.when i try to compile the servlet program i am > getting the following error: > > java.lang.NoClassDefFoundError: org/asteriskjava/manager/ManagerConnectionFactory > > since i am having the ManagerConnectionFactory.class as imported. > Please assist me > > > On 2/28/08, Patrick Breucking <bre...@go...> wrote: > > > > Hi Preetha, > > > > so you can use the package manager from your linux distribution to > > install a tomcat on your machine. If you are using e.g. debian, use: > > > > $> apt-get install tomcat > > > > I don't now if there is a way to run asp.net in a tomcat container, but > > you can use tomcat only for originate. So create a Webapp in your > > preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir > > for tomcat webapps. Create a Servlet with a .doGet() Method, so you can > > extract the extension parameter from URL with > > > > ... > > request.getAttribute("extension"); > > ... > > > > and you can use your Asterisk-Java code. The URL is > > http://localhost:8080/Servlet?extension=183 > > > > Hope this helps, let me know if you have problems or other questions. > > > > > > > > Regards, > > Patrick > > > > > > preetha Ayyappan schrieb: > > > > > Hi, > > > > > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > > > originate a call to an extension.But as it is a stanalone > > > application,I can able to run the program in console only.Then the > > > call gets originated to the extension i have specified.But my > > > requirement is ,If i click a number in a web based application which > > > > > is developed in asp.net <http://asp.net>,that number should be passed > > > > > to the HelloManager.java program and that number should be > > > originated.I cannot do this since HelloManager.java is standalone.How > > > could i run the java program in a browser? please let me know in > > > brief where should i download tomcat in my linux and how to run this? > > > > > > Thanks. > > > Preetha.A > > > > > > > ------------------------------------------------------------------------ > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Asterisk-java-users mailing list > > > Ast...@li... > > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > > -- > > > > Patrick Breucking <bre...@GO...> (System Engineer) > > * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg > > * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 > > * http://www.GONICUS.de > > > > *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg > > *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder > > *Vorsitzender des Beirats: Juergen Michels > > *Amtsgericht Arnsberg * HRB 1968 > > > > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > -- > Preetha.A > > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > -----Inline Attachment Follows----- > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > ------------------------------ > Never miss a thing. Make Yahoo your homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs> > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Preetha.A |
From: Allan K. <kam...@ya...> - 2008-03-27 11:55:25
|
You may need to place the jar file in the WEB-INF/lib directory of the servlet application you are deploying. If all fails, one of the last options would be to place it (the jar file) in tomcat's installation wide directory (I think it is) $CATALINA_HOME/lib Allan. ----- Original Message ---- From: preetha Ayyappan <pre...@gm...> To: ast...@li... Sent: Thursday, March 27, 2008 12:52:37 PM Subject: Re: [Asterisk-java-users] To run a standalone java program in a browser Hi, As you suggested,I have placed the asteriskjava.jar file intowebapps/root/web-inf/lib.when i try to compile the servlet program i amgetting the following error: java.lang.NoClassDefFoundError: org/asteriskjava/manager/ManagerConnectionFactory since i am having the ManagerConnectionFactory.class as imported. Please assist me On 2/28/08, Patrick Breucking <bre...@go...> wrote:Hi Preetha, so you can use the package manager from your linux distribution to install a tomcat on your machine. If you are using e.g. debian, use: $> apt-get install tomcat I don't now if there is a way to run asp.net in a tomcat container, but you can use tomcat only for originate. So create a Webapp in your preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir for tomcat webapps. Create a Servlet with a .doGet() Method, so you can extract the extension parameter from URL with ... request.getAttribute("extension"); ... and you can use your Asterisk-Java code. The URL is http://localhost:8080/Servlet?extension=183 Hope this helps, let me know if you have problems or other questions. Regards, Patrick preetha Ayyappan schrieb: > Hi, > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > originate a call to an extension.But as it is a stanalone > application,I can able to run the program in console only.Then the > call gets originated to the extension i have specified.But my > requirement is ,If i click a number in a web based application which > is developed in asp.net <http://asp.net>,that number should be passed > to the HelloManager.java program and that number should be > originated.I cannot do this since HelloManager.java is standalone.How > could i run the java program in a browser? please let me know in > brief where should i download tomcat in my linux and how to run this? > > Thanks. > Preetha.A > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Patrick Breucking <bre...@GO...> (System Engineer) * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 * http://www.GONICUS.de *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder *Vorsitzender des Beirats: Juergen Michels *Amtsgericht Arnsberg * HRB 1968 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users -- Preetha.A -----Inline Attachment Follows----- ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace -----Inline Attachment Follows----- _______________________________________________ Asterisk-java-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/asterisk-java-users ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |
From: preetha A. <pre...@gm...> - 2008-03-27 10:52:33
|
Hi, As you suggested,I have placed the asteriskjava.jar file into webapps/root/web-inf/lib.when i try to compile the servlet program i am getting the following error: java.lang.NoClassDefFoundError: org/asteriskjava/manager/ManagerConnectionFactory since i am having the ManagerConnectionFactory.class as imported. Please assist me On 2/28/08, Patrick Breucking <bre...@go...> wrote: > > Hi Preetha, > > so you can use the package manager from your linux distribution to > install a tomcat on your machine. If you are using e.g. debian, use: > > $> apt-get install tomcat > > I don't now if there is a way to run asp.net in a tomcat container, but > you can use tomcat only for originate. So create a Webapp in your > preffered Java IDE (Eclipse), put the asterisk java lib into the lib-Dir > for tomcat webapps. Create a Servlet with a .doGet() Method, so you can > extract the extension parameter from URL with > > ... > request.getAttribute("extension"); > ... > > and you can use your Asterisk-Java code. The URL is > http://localhost:8080/Servlet?extension=183 > > Hope this helps, let me know if you have problems or other questions. > > > > Regards, > Patrick > > > preetha Ayyappan schrieb: > > > Hi, > > > > I am using Asteriskjava's managerAPI program(HelloManager.java) to > > originate a call to an extension.But as it is a stanalone > > application,I can able to run the program in console only.Then the > > call gets originated to the extension i have specified.But my > > requirement is ,If i click a number in a web based application which > > > is developed in asp.net <http://asp.net>,that number should be passed > > > to the HelloManager.java program and that number should be > > originated.I cannot do this since HelloManager.java is standalone.How > > could i run the java program in a browser? please let me know in > > brief where should i download tomcat in my linux and how to run this? > > > > Thanks. > > Preetha.A > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > -- > > Patrick Breucking <bre...@GO...> (System Engineer) > * GONICUS GmbH * NL Arnsberg * Moehnestrasse 11-17 * D-59755 Arnsberg > * Tel.: +49 (0) 29 32 / 9 16 - 0 * Fax: +49 (0) 29 32 / 9 16 - 278 > * http://www.GONICUS.de > > *Sitz der Gesellschaft: Moehnestrasse 11-17 * D-59755 Arnsberg > *Geschaeftsfuehrer: Rainer Luelsdorf, Alfred Schroeder > *Vorsitzender des Beirats: Juergen Michels > *Amtsgericht Arnsberg * HRB 1968 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > -- Preetha.A |
From: Gopal k. <sa...@gm...> - 2008-03-27 10:38:12
|
Hi, Thanks for the reply, can I have any help or hello world example to set this. It would be a great help for me. Thanks On Thu, Mar 27, 2008 at 2:51 PM, Maciek Tokarski <mlo...@gm...> wrote: > HI, > Yes- it is possible. Once, I've developed Tomcat servlet (simple > WebService) on Asterisk box to monitor users count on MeetMe rooms. It works > fine. In my opinion best way of integrating manager API with HTML sites is > interract with Asterisk not exacly via Tomcat servlet but via WebServices > servlets (on Tomcat) calling it form eg. PHP scripts using CURL. > > Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk Box > > > Regards, Maciek > > 2008/3/27, Gopal krishnan <sa...@gm...>: > > > > Hi, > > > > Is it possible I can use a manager api program with tomcat. If so how > > should i integrate that, please assist me. > > > > I would like to initate a action from a html page so that it will hit > > a program developed with manager api. > > > > -- > > Thank you with regards, > > Gopal, > > PeopleTech Systems Private Limited > > www.peopletech.co.in > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > Asterisk-java-users mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: Satish K. <sa...@cr...> - 2008-03-27 09:46:11
|
How do we put the call on hold ? |
From: Maciek T. <mlo...@gm...> - 2008-03-27 09:21:47
|
HI, Yes- it is possible. Once, I've developed Tomcat servlet (simple WebService) on Asterisk box to monitor users count on MeetMe rooms. It works fine. In my opinion best way of integrating manager API with HTML sites is interract with Asterisk not exacly via Tomcat servlet but via WebServices servlets (on Tomcat) calling it form eg. PHP scripts using CURL. Your SITE<------CURL/SOAP------>Tomcat WS servlet<--AMI--->Asterisk Box Regards, Maciek 2008/3/27, Gopal krishnan <sa...@gm...>: > > Hi, > > Is it possible I can use a manager api program with tomcat. If so how > should i integrate that, please assist me. > > I would like to initate a action from a html page so that it will hit a > program developed with manager api. > > -- > Thank you with regards, > Gopal, > PeopleTech Systems Private Limited > www.peopletech.co.in > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |
From: Gopal k. <sa...@gm...> - 2008-03-27 08:04:37
|
Hi, Is it possible I can use a manager api program with tomcat. If so how should i integrate that, please assist me. I would like to initate a action from a html page so that it will hit a program developed with manager api. -- Thank you with regards, Gopal, PeopleTech Systems Private Limited www.peopletech.co.in |
From: E. M. <mar...@gm...> - 2008-03-26 22:44:20
|
Hello, I'm going to develop an AGI script but first I want to know if they have problems with attended transfers. For instance, imagine an agi script with a loop playing a sound (tt-monkeys?). Party A calls to Party B. Then Party A also calls to the AGI script and start hearing the monkeys. If Party A transfers Party B to the AGI script call, it will work? Sadly now I can test it because I don't have a phone with attended transfer support. Thank you. |