asterisk-java-devel Mailing List for Asterisk-Java Library (Page 9)
Brought to you by:
srt
You can subscribe to this list here.
2005 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
(8) |
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(8) |
Feb
(6) |
Mar
(1) |
Apr
|
May
(2) |
Jun
|
Jul
(17) |
Aug
(21) |
Sep
(2) |
Oct
(7) |
Nov
(8) |
Dec
(12) |
2007 |
Jan
(10) |
Feb
(19) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(6) |
Nov
(1) |
Dec
(5) |
2008 |
Jan
(12) |
Feb
(15) |
Mar
(18) |
Apr
(34) |
May
(3) |
Jun
(34) |
Jul
(5) |
Aug
(1) |
Sep
(8) |
Oct
|
Nov
(2) |
Dec
(2) |
2009 |
Jan
(8) |
Feb
(2) |
Mar
(35) |
Apr
(16) |
May
(11) |
Jun
(2) |
Jul
(6) |
Aug
(2) |
Sep
(1) |
Oct
|
Nov
(4) |
Dec
|
2010 |
Jan
(43) |
Feb
(15) |
Mar
(1) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(1) |
Aug
(3) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(2) |
Mar
(9) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2012 |
Jan
(9) |
Feb
(2) |
Mar
(4) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(1) |
Oct
(10) |
Nov
(10) |
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
(10) |
Dec
|
2014 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
(5) |
Jul
(11) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
(2) |
Mar
(7) |
Apr
(39) |
May
(18) |
Jun
(6) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(9) |
Mar
(1) |
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Timothy R. <tim...@gm...> - 2010-04-16 14:38:02
|
Hi all, I'm having an issue using the live API where I get a no such channel exception when using local channels to initiate playback in a conference. However, even though this happens the playback completes and the local channel is created in asterisk. I want the channel object returned so I can add a listener to find out when playback completes on hangup. I was wondering if anybody faced similar problems and had any ideas? Thanks, Tim |
From: Makon M. <mac...@ma...> - 2010-04-10 10:09:22
|
Hi Yves, Thanks for your guidance...I'm inclined towards using the Busy Line Feature to get things working...that was substantial help :) Cheers Makon <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span> |
From: Yves A. <yv...@gm...> - 2010-04-08 20:51:21
|
Hi, afaik, the feature you´re looking for is not that much "wishful thinking"... it is not impossible, but the amount of work you have to do also depends on the asterisk-version you are using. As i mentioned... depending on the asterisk-version, you could use: (*) 1st) "SIP subscriptions" this feature is known as BLF (Busy Line Feature) or Presence / HINTs. 2nd) since asterisk 1.6 via DEVSTATE (afaik there is a backport for asterisk 1.4) 3rd) Implement it yourself using listeners for peer-, extension- and channelevents.. and... there may be other ways that I am not aware right now.... (*) try to google for more information about the listed possibilities if one of them is of interest for you. If you're encountering problems in configuring one of the mentioned features, you could also mail the asterik-users mailing list for help as this is going to be out of focus of the asterisk-java mailing list. Makon Maki schrieb: > Hi Yves, > > Thanks for your prompt reply... > > I'm sorry I've emailed you directly 'cause I really didn't know how to > reply to the list so that it would continue my original thread instead > of creating a new one. > > I've had success with getting the extension status (reachable, > registered etc.) when an extension comes online but still unable to > figure out how to get extension state as in whether it is off-hook or > idle. > > Is there a way to get such an extension state or is it just wishful > thinking. > > Here is some code of how I got the PeerEntryEvents and > PeerStatusEvents while running the class as a thread so it > continuously keeps sending the SipPeersAction. > > > /** > * This method sets up the StatusAction which requests the state of all > * active channels > */ > public void readAsteriskStatus() { > try { > managerConnection.sendAction(new StatusAction()); > } catch (Exception e) { > utility.logE(classCode, "readAsteriskStatus", e); > } > } > > /** > * This method sets up the SipPeersAction which requests status of all > active > * extensions > */ > public void readPeerStatus() { > try { > managerConnection.sendAction(new SipPeersAction()); > } catch (Exception e) { > utility.logE(classCode, "readPeerStatus", e); > } > } > > > /** > * Event handler for a PeerEntryEvent on the CAN Server > */ > public void handleEvent(PeerEntryEvent event) { > utility.logA("PeerEntryEvent", "Handle PeerEntry Event"); > printPeerEntry(event); > } > > /** > * Event handler for a PeerStatusEvent on the CAN Server > */ > public void handleEvent(PeerStatusEvent event) { > utility.logA("PeerStatusEvent", "Handle PeerStatus Event"); > printPeerStatus(event); > } > > private void printPeerEntry(PeerEntryEvent e) { > System.out.println("---PeerEntry---------------------"); > System.out.println("ActionID " + e.getActionId()); > System.out.println("ChannelType " + e.getChannelType()); > System.out.println("File " + e.getFile()); > System.out.println("ChanObjType " + e.getChanObjectType()); > System.out.println("Server " + e.getServer()); > System.out.println("Privilege " + e.getPrivilege()); > System.out.println("Function " + e.getFunc()); > System.out.println("SeqNo " + e.getSequenceNumber()); > System.out.println("Timestamp " + e.getTimestamp()); > System.out.println("DateReceived " + e.getDateReceived()); > System.out.println("Line " + e.getLine()); > System.out.println("Encryption " + e.getEncryption()); > System.out.println("InternalActID " + e.getInternalActionId()); > System.out.println("IPAddress " + e.getIpAddress()); > System.out.println("ObjectName " + e.getObjectName()); > System.out.println("ObjUserName " + e.getObjectUserName()); > System.out.println("RealTymDevice " + e.getRealtimeDevice()); > System.out.println("Status " + e.getStatus()); > System.out.println("------------------------"); > } > > private void printPeerStatus(PeerStatusEvent e) { > System.out.println("---PeerStatus---------------------"); > System.out.println("Address " + e.getAddress()); > System.out.println("ChannelType " + e.getChannelType()); > System.out.println("File " + e.getFile()); > System.out.println("Cause " + e.getCause()); > System.out.println("Server " + e.getServer()); > System.out.println("Privilege " + e.getPrivilege()); > System.out.println("Function " + e.getFunc()); > System.out.println("SeqNo " + e.getSequenceNumber()); > System.out.println("Timestamp " + e.getTimestamp()); > System.out.println("DateReceived " + e.getDateReceived()); > System.out.println("Line " + e.getLine()); > System.out.println("Peer " + e.getPeer()); > System.out.println("PeerStatus " + e.getPeerStatus()); > System.out.println("Port " + e.getPort()); > System.out.println("------------------------"); > } > > > > Thank your for your help, > > Makon > > _______________________________________________________________ > Get the Free email that has everyone talking at http://www.mail2world.com > Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More! > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: Makon M. <mac...@ma...> - 2010-04-08 01:23:40
|
Hi Yves, Thanks for your prompt reply... I'm sorry I've emailed you directly 'cause I really didn't know how to reply to the list so that it would continue my original thread instead of creating a new one. I've had success with getting the extension status (reachable, registered etc.) when an extension comes online but still unable to figure out how to get extension state as in whether it is off-hook or idle. Is there a way to get such an extension state or is it just wishful thinking. Here is some code of how I got the PeerEntryEvents and PeerStatusEvents while running the class as a thread so it continuously keeps sending the SipPeersAction. /** * This method sets up the StatusAction which requests the state of all * active channels */ public void readAsteriskStatus() { try { managerConnection.sendAction(new StatusAction()); } catch (Exception e) { utility.logE(classCode, "readAsteriskStatus", e); } } /** * This method sets up the SipPeersAction which requests status of all active * extensions */ public void readPeerStatus() { try { managerConnection.sendAction(new SipPeersAction()); } catch (Exception e) { utility.logE(classCode, "readPeerStatus", e); } } /** * Event handler for a PeerEntryEvent on the CAN Server */ public void handleEvent(PeerEntryEvent event) { utility.logA("PeerEntryEvent", "Handle PeerEntry Event"); printPeerEntry(event); } /** * Event handler for a PeerStatusEvent on the CAN Server */ public void handleEvent(PeerStatusEvent event) { utility.logA("PeerStatusEvent", "Handle PeerStatus Event"); printPeerStatus(event); } private void printPeerEntry(PeerEntryEvent e) { System.out.println("---PeerEntry---------------------"); System.out.println("ActionID " + e.getActionId()); System.out.println("ChannelType " + e.getChannelType()); System.out.println("File " + e.getFile()); System.out.println("ChanObjType " + e.getChanObjectType()); System.out.println("Server " + e.getServer()); System.out.println("Privilege " + e.getPrivilege()); System.out.println("Function " + e.getFunc()); System.out.println("SeqNo " + e.getSequenceNumber()); System.out.println("Timestamp " + e.getTimestamp()); System.out.println("DateReceived " + e.getDateReceived()); System.out.println("Line " + e.getLine()); System.out.println("Encryption " + e.getEncryption()); System.out.println("InternalActID " + e.getInternalActionId()); System.out.println("IPAddress " + e.getIpAddress()); System.out.println("ObjectName " + e.getObjectName()); System.out.println("ObjUserName " + e.getObjectUserName()); System.out.println("RealTymDevice " + e.getRealtimeDevice()); System.out.println("Status " + e.getStatus()); System.out.println("------------------------"); } private void printPeerStatus(PeerStatusEvent e) { System.out.println("---PeerStatus---------------------"); System.out.println("Address " + e.getAddress()); System.out.println("ChannelType " + e.getChannelType()); System.out.println("File " + e.getFile()); System.out.println("Cause " + e.getCause()); System.out.println("Server " + e.getServer()); System.out.println("Privilege " + e.getPrivilege()); System.out.println("Function " + e.getFunc()); System.out.println("SeqNo " + e.getSequenceNumber()); System.out.println("Timestamp " + e.getTimestamp()); System.out.println("DateReceived " + e.getDateReceived()); System.out.println("Line " + e.getLine()); System.out.println("Peer " + e.getPeer()); System.out.println("PeerStatus " + e.getPeerStatus()); System.out.println("Port " + e.getPort()); System.out.println("------------------------"); } Thank your for your help, Makon <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span> |
From: Yves A. <yv...@gm...> - 2010-04-07 09:35:42
|
Hi Makon, take a look at the documentation, especially the class "PeerEntryEvent" should guide you to your objective. The tutorials show you how to implement the Listeners you need... (see "Hello Events" Section on the tutorial-page) If you have further problems, paste your code and all necessary information for getting more help on this. yves Makon Maki schrieb: > Hello all, > > Just needed some guidance on how to get a list of all the extensions > that are connected and online on my Asterisk Server using the > Asterisk-Java API. > > The application that I am building requires to get information of > which extensions are online and what state each of them is in - > offhook, ringing etc. > > I would appreciate some direction as to what I should be doing to be > able to retrieve such information. > > Thank you > > _______________________________________________________________ > Get the Free email that has everyone talking at http://www.mail2world.com > Unlimited Email Storage -- POP3 -- Calendar -- SMS -- Translator -- > Much More! > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: Makon M. <mac...@ma...> - 2010-04-06 23:38:15
|
Hello all, Just needed some guidance on how to get a list of all the extensions that are connected and online on my Asterisk Server using the Asterisk-Java API. The application that I am building requires to get information of which extensions are online and what state each of them is in - offhook, ringing etc. I would appreciate some direction as to what I should be doing to be able to retrieve such information. Thank you <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br> <font color=#999999>Unlimited Email Storage – POP3 – Calendar – SMS – Translator – Much More!</font></font></span> |
From: Augusto C. <a-c...@cr...> - 2010-03-31 18:12:31
|
Hi there, After the next code I still have several threads with name ServiceLevelTimer-{$queue_name} running, and it'll add one thread for each queue on each run. Does anyone know how to clean up this? using lib asterisk-java-1.0.0.CI-20100325.204537-174 <asterisk-java-1.0.0.CI-20100325.204537-174-bin.zip> --ex-- private DefaultAsteriskServer asteriskServer = null; private DefaultManagerConnection asteriskManagerConnection = null; ...(use connection and server on several operations including getQueues)... try { if (asteriskManagerConnection != null) { asteriskManagerConnection.logoff(); } if (asteriskServer != null) { asteriskServer.shutdown(); } } finally { asteriskServer = null; asteriskManagerConnection = null; Runtime.getRuntime().gc(); } --ex-- Thanks -- Augusto Campos |
From: Miguel M. <mm...@mi...> - 2010-02-24 15:56:07
|
Hi, This is not an asterisk-java related issue. Please post your issue in the asterisk-users list, where you surely will get help on this. Cheers, -- Ing. Miguel Molina Grupo de Tecnología Millenium Phone Center ahmed magdy escribió: > Hello, > > Asterisk Real time database worked on astersik 1.6.2.0 but now i am > working on Asterisk to latest version which is 1.6.2.2 ,there is a a > warning > [Feb 24 16:26:14] WARNING[4053]: config.c:2025 find_engine: Realtime > mapping for 'sippeers' found to engine 'mysql', but the engine is not > available > [Feb 24 16:26:14] NOTICE[4053]: chan_sip.c:21500 > handle_request_register: Registration from > '"555"<sip:555@192.168.50.109 <mailto:sip%3A555@192.168.50.109>>' > failed for '192.168.50.105' - No matching peer found > > is there a problem in version compatability? > > if anyone knows anything ,help me please. > > -- > > Ahmed Magdy Mahmoud > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: David F. <dd...@gm...> - 2010-02-24 15:49:47
|
this post belong here http://lists.digium.com/mailman/listinfo/asterisk-users 2010/2/24 ahmed magdy <ama...@gm...> > Hello, > > Asterisk Real time database worked on astersik 1.6.2.0 but now i am working > on Asterisk to latest version which is 1.6.2.2 ,there is a a warning > [Feb 24 16:26:14] WARNING[4053]: config.c:2025 find_engine: Realtime > mapping for 'sippeers' found to engine 'mysql', but the engine is not > available > [Feb 24 16:26:14] NOTICE[4053]: chan_sip.c:21500 handle_request_register: > Registration from '"555"<sip:555@192.168.50.109 <sip%3A555@192.168.50.109>>' > failed for '192.168.50.105' - No matching peer found > > is there a problem in version compatability? > > if anyone knows anything ,help me please. > > -- > > Ahmed Magdy Mahmoud > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. |
From: ahmed m. <ama...@gm...> - 2010-02-24 15:42:50
|
Hello, Asterisk Real time database worked on astersik 1.6.2.0 but now i am working on Asterisk to latest version which is 1.6.2.2 ,there is a a warning [Feb 24 16:26:14] WARNING[4053]: config.c:2025 find_engine: Realtime mapping for 'sippeers' found to engine 'mysql', but the engine is not available [Feb 24 16:26:14] NOTICE[4053]: chan_sip.c:21500 handle_request_register: Registration from '"555"<sip:555@192.168.50.109 <sip%3A555@192.168.50.109>>' failed for '192.168.50.105' - No matching peer found is there a problem in version compatability? if anyone knows anything ,help me please. -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-02-20 11:18:32
|
Hi , I am trying to use Bridge action to bridge two active channel , the point now that i have made it with silly solution by making originate with SIP/111 (first channel) with exten 222 then originate the next channel SIP/333 with exten 222 then bridge the two active channel. it is working but i think there is another. could anyone give anyhelp? please it is urgent. Thanks -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-02-19 03:41:28
|
Hello , How can i can call originate with number outside the call center? example : agent 111 will call 00224031475 agent 111 will call 0012234567 thanks -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-02-16 10:04:08
|
Hello, the CID of the extension is printed Null , this my extensions definition [555] type=friend callerid="Ahmed" <555> username=555 host=dynamic secret=ahmedm12 canreinvite=yes nat=yes qualify=yes context=from-internal in Handle exception protected void handleEvent(AgentCalledEvent event) { System.out.println(event.getCallerIdName() + ":" +event.getAgentName()+":"+event.getAgentCalled()+":"+event.getChannelCalling()+":"+event.getCallerId()+":"+event.getContext()); } getCallerIdName is null any help please thanks -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-02-15 08:54:16
|
Hello, I am using Agent Listener with Agent Event Called which is triggered when an agent is received the call but the event didnot fire. { managerConnection.addEventListener(this); originateAction = new OriginateAction(); originateAction.setChannel("SIP/222"); originateAction.setContext("from-internal"); originateAction.setExten("5000"); // System.out.println(Agentcalledevent.getCallerIdNum()); //originateAction.setCallerId("111"); originateAction.setPriority(new Integer(1)); managerConnection.login(); originateResponse = managerConnection.sendAction(originateAction, 30000); Thread.sleep(10000); managerConnection.logoff(); } @Override // it doesn't work protected void handleEvent(AgentCalledEvent event) { System.out.println(event.getCallerIdName() + ":" + event.getCallerIdName()); } -- |
From: David F. <dd...@gm...> - 2010-02-14 15:21:14
|
i think you are making an issue from nothing.... if you monitor with a manager/live objects the customer call you will know to wich agent it is bridged. David 2010/2/14 ahmed magdy <ama...@gm...> > Hello, > > I need to know which extensions ,will be receive the call before routing > the call. > 5000 support (queue) 3 sip phone 111 (customer) 2222(agent) 333(agnet) > 222 and 333 already logged in 5000* > OriginateAction originateAction; > ManagerResponse originateResponse; > > originateAction = new OriginateAction(); > originateAction.setChannel("SIP/111"); > originateAction.setContext("from-internal"); > > originateAction.setExten("5000"); > i need know the name of extensions which will receive the call 222 or 333? > i know it is according to my strategy but is there any method to know the > the agent? > > Thanks > -- > Ahmed Magdy Mahmoud > > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > -- (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination. |
From: ahmed m. <ama...@gm...> - 2010-02-14 09:51:37
|
Hello, I need to know which extensions ,will be receive the call before routing the call. 5000 support (queue) 3 sip phone 111 (customer) 2222(agent) 333(agnet) 222 and 333 already logged in 5000* OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/111"); originateAction.setContext("from-internal"); originateAction.setExten("5000"); i need know the name of extensions which will receive the call 222 or 333? i know it is according to my strategy but is there any method to know the the agent? Thanks -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-02-11 14:08:37
|
Hello, I need a test outbound dialer , i used orignate action for calling customer extensions (111) then put the channel in support queue then transfer the call to extension 222 which is agent the point now that i didn't see in Asterisk that call 111 was added to queue. this is my code : OriginateAction originateAction; ManagerResponse originateResponse; originateAction = new OriginateAction(); originateAction.setChannel("SIP/111"); originateAction.setContext("from-internal"); originateAction.setPriority(new Integer(1)); managerConnection.login(); ///SIP/111 Customer QueueAddAction queueaction=new QueueAddAction("support","SIP/111"); System.out.print(queueaction.getQueue()); System.out.print(queueaction.getInterface()); originateAction.setExten("222"); ///222 is Agent originateResponse = managerConnection.sendAction(originateAction, 30000); System.out.println(originateResponse.getResponse()); // and finally log off and disconnect managerConnection.logoff(); Thanks -- Ahmed Magdy Mahmoud |
From: Tomás L. P. T. <tom...@gm...> - 2010-02-08 21:30:53
|
Hi list: I tried to build Asterisk-Java this morning and I found two issues: The first one seems to be related to the revision 1393 which involves a modification to the Maven's pom.xml file. Trying to build AJ with any revision later to 1392 produces the following error: http://pastebin.com/d17d35afe Not being an Maven expert, this could be related to my Maven 2 installation. I downloaded the package, uncompressed it and configured as the docs suggests. Maybe I'm missing some additonal step. Here is there relevant information from SVN: tomas@newells:~/AJ/svn/asterisk-java-trunk$ svn log -r1393 ------------------------------------------------------------------------ r1393 | srt | 2009-12-15 12:45:03 -0300 (mar 15 de dic de 2009) | 1 line Replaced ${artifactId} by ${project.artifactId} ------------------------------------------------------------------------ tomas@newells:~/AJ/svn/asterisk-java-trunk$ svn diff -r1392:1393 Index: pom.xml =================================================================== --- pom.xml (revisión: 1392) +++ pom.xml (revisión: 1393) @@ -3,7 +3,7 @@ <parent> <groupId>org.asteriskjava</groupId> <artifactId>asterisk-java-parent</artifactId> - <version>1</version> + <version>2-SNAPSHOT</version> </parent> <artifactId>asterisk-java</artifactId> <name>Asterisk-Java</name> @@ -113,7 +113,7 @@ <version>2.0</version> </plugin> </plugins> - <finalName>${artifactId}</finalName> + <finalName>${project.artifactId}</finalName> </build> <dependencies> <dependency> The second one seems to be related by the dependencies downloaded by Maven to build AJ. I get the following error (using pom.xml revision 1392) when trying to build: http://pastebin.com/f132c471f (relevant lines are highlighted). Searching in the web, I've spotted this issue in other projects. It seems to be related to the repository from which the JARs are being downloaded. For example, the content of the file /home/tomas/.m2/repository/javax/jms/jms/1.1/jms-1.1.pom is: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body> <h1>Moved Permanently</h1> <p>The document has moved <a href=" http://download.java.net/maven/1/javax.jms/poms/jms-1.1.pom">here</a>.</p> <hr> <address>Apache Server at maven-repository.dev.java.net Port 443</address> </body></html> I've found that this problem seems to be related to log4j ( http://jira.codehaus.org/browse/MEV-649?page=com.atlassian.streams.streams-jira-plugin%3Aactivity-stream-issue-taband http://jira.codehaus.org/browse/MNG-4428). Excluding this dependency at build time is an option but I thought that this information could be from your interest. Best regards, Tomás. |
From: Tomás L. P. T. <tom...@gm...> - 2010-02-08 19:24:41
|
On Mon, Feb 8, 2010 at 2:58 PM, Augusto Campos <a-c...@cr...>wrote: > > Hi there, > > As you can see in (http://www.voip-info.org/wiki/view/Asterisk+cmd+MeetMe) > the command for list the meetme rooms is only "meetme" so how in > MeetMeManager class is "meetme list? > > class MeetMeManager > { > private static final String MEETME_LIST_COMMAND = *"meetme list"*; > ... > > Hi Augusto: Asterisk-Java use the meetme list command to populate the information about the participants in each meet rooms with users in the system. This command is used only internally by the Live API. I hope that this clarifies your doubt. Best regards, Tomás. |
From: Augusto C. <a-c...@cr...> - 2010-02-08 17:59:04
|
Hi there, As you can see in (http://www.voip-info.org/wiki/view/Asterisk+cmd+MeetMe) the command for list the meetme rooms is only "meetme" so how in MeetMeManager class is "meetme list? class MeetMeManager { private static final String MEETME_LIST_COMMAND = *"meetme list"*; ... There's also a new family of CLI commands for managing MeetMe: * Meetme List all conferences * MeetMe kick <confno> <user> Kick a user out of a conference ... |
From: Augusto C. <a-c...@cr...> - 2010-02-04 20:58:48
|
Hi there, I'm using the 1.0.0-CI with java 1.6 and a server with a patched astmanproxy And executing the next code works only with no astmanproxy, why if the response is the same (event with a new path in astmanproxy to remove the "Server: localhost")? String command = "iax2 show peers"; Collection<String> mm = null; mm = asteriskServer.executeCLICommand(command); System.out.println(mm.toString()); CommandAction commandAction = new CommandAction(command); CommandResponse response = (CommandResponse) asteriskManagerConnection.sendAction(commandAction); for (String line : response.getResult()) { System.out.println(line); } *with astmanproxy* action: command command: iax2 show peers Response: Follows Privilege: Command Name/Username Host Mask Port Status iax-augcampos/i (Unspecified) (D) 255.255.255.255 0 UNKNOWN 1 iax2 peers [0 online, 1 offline, 0 unmonitored] --END COMMAND-- Server: localhost *No astmanproxy* (patched to ) action: command command: iax2 show peers Response: Follows Privilege: Command Name/Username Host Mask Port Status iax-augcampos/i (Unspecified) (D) 255.255.255.255 0 UNKNOWN 1 iax2 peers [0 online, 1 offline, 0 unmonitored] --END COMMAND-- *Log with astmanproxy* Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property 'iax-augcampos/i' to ' (Unspecified) (D) 255.255.255.255 0 UNKNOWN ' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property '1' to 'iax2 peers [0 online, 1 offline, 0 unmonitored]' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property 'name/username' to ' Host Mask Port Status ' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ [] Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property 'iax-augcampos/i' to ' (Unspecified) (D) 255.255.255.255 0 UNKNOWN ' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property '1' to 'iax2 peers [0 online, 1 offline, 0 unmonitored]' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ Feb 4, 2010 8:49:35 PM org.asteriskjava.manager.internal.AbstractBuilder setAttributes WARNING: Unable to set property 'name/username' to ' Host Mask Port Status ' on org.asteriskjava.manager.response.CommandResponse: no setter. Please report at http://jira.reucon.org/browse/AJ *log no astmanproxy* Name/Username Host Mask Port Status iax-augcampos/i (Unspecified) (D) 255.255.255.255 0 UNKNOWN 1 iax2 peers [0 online, 1 offline, 0 unmonitored] [] Name/Username Host Mask Port Status iax-augcampos/i (Unspecified) (D) 255.255.255.255 0 UNKNOWN 1 iax2 peers [0 online, 1 offline, 0 unmonitored] |
From: ahmed m. <ama...@gm...> - 2010-02-02 13:17:14
|
Hello, I need to detect the incoming call , suppose i have an exten 111 which will call exten 1300, i need to put the call of exten 111 in queue then rout it to exten 1300. so could any one help me? Thanks -- Ahmed Magdy Mahmoud |
From: ahmed m. <ama...@gm...> - 2010-01-27 18:47:35
|
Thank you Yves :) On Wed, Jan 27, 2010 at 7:45 PM, Yves Arikoglu <yv...@gm...> wrote: > Hi ahmed, > > its always nice to see people, that are eager to learn and that use this > great technology provided by the asterisk-team and > especially S. Reuter and his contributors from asterisk-java. > But sometimes it is annoying to always repeat the same things... please > take care of the rules, otherwise it may happen very > soon, that nobody takes care of your posts any more. > > Concerning to your question: > > - it is not an asterisk-java specific question, so you placed it in the > wrong list.. you should try asterisk-users instead. > > but... before you do... try a search on google. with the right keywords, > you´ll get a lot of tutorials that show you how > to do it. Its really easy. > > Yves > > ahmed magdy schrieb: > > Hello > > > > I need to add sip extensions from my UI so without going through > > sip.conf so i created table > > CREATE TABLE `sipfriends` ( > > `name` varchar(40) NOT NULL default '', > > `username` varchar(40) default '', > > `secret` varchar(40) NOT NULL default '', > > `context` varchar(40) NOT NULL default '', > > `ipaddr` varchar(20) NOT NULL default '', > > `port` int(6) NOT NULL default '0', > > `regseconds` int(11) NOT NULL default '0', > > PRIMARY KEY (`name`) > > ) TYPE=MyISAM > > then i put sip.conf > > [general] > > hostname=localhost > > dbname=asterisk > > table= sipfriends > > password=ahmed > > user=root > > then i insert in sql this statment insert into sipfriends values > > ('555','555','1234','555','192.168.50.149',5060,2); > > i tried from Xlite to register with 555 but i couldn't > > any help please > > > > -- > > Ahmed Magdy Mahmoud > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------------ > > The Planet: dedicated and managed hosting, cloud storage, colocation > > Stay online with enterprise data centers and the best network in the > business > > Choose flexible plans and management services without long-term contracts > > Personal 24x7 support from experience hosting pros just a phone call > away. > > http://p.sf.net/sfu/theplanet-com > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Asterisk-java-devel mailing list > > Ast...@li... > > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > > > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > -- Ahmed Magdy Mahmoud |
From: Yves A. <yv...@gm...> - 2010-01-27 18:43:05
|
Hi ahmed, its always nice to see people, that are eager to learn and that use this great technology provided by the asterisk-team and especially S. Reuter and his contributors from asterisk-java. But sometimes it is annoying to always repeat the same things... please take care of the rules, otherwise it may happen very soon, that nobody takes care of your posts any more. Concerning to your question: - it is not an asterisk-java specific question, so you placed it in the wrong list.. you should try asterisk-users instead. but... before you do... try a search on google. with the right keywords, you´ll get a lot of tutorials that show you how to do it. Its really easy. Yves ahmed magdy schrieb: > Hello > > I need to add sip extensions from my UI so without going through > sip.conf so i created table > CREATE TABLE `sipfriends` ( > `name` varchar(40) NOT NULL default '', > `username` varchar(40) default '', > `secret` varchar(40) NOT NULL default '', > `context` varchar(40) NOT NULL default '', > `ipaddr` varchar(20) NOT NULL default '', > `port` int(6) NOT NULL default '0', > `regseconds` int(11) NOT NULL default '0', > PRIMARY KEY (`name`) > ) TYPE=MyISAM > then i put sip.conf > [general] > hostname=localhost > dbname=asterisk > table= sipfriends > password=ahmed > user=root > then i insert in sql this statment insert into sipfriends values > ('555','555','1234','555','192.168.50.149',5060,2); > i tried from Xlite to register with 555 but i couldn't > any help please > > -- > Ahmed Magdy Mahmoud > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > ------------------------------------------------------------------------ > > _______________________________________________ > Asterisk-java-devel mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-devel > |
From: ahmed m. <ama...@gm...> - 2010-01-27 16:39:39
|
Hello I need to add sip extensions from my UI so without going through sip.conf so i created table CREATE TABLE `sipfriends` ( `name` varchar(40) NOT NULL default '', `username` varchar(40) default '', `secret` varchar(40) NOT NULL default '', `context` varchar(40) NOT NULL default '', `ipaddr` varchar(20) NOT NULL default '', `port` int(6) NOT NULL default '0', `regseconds` int(11) NOT NULL default '0', PRIMARY KEY (`name`) ) TYPE=MyISAM then i put sip.conf [general] hostname=localhost dbname=asterisk table= sipfriends password=ahmed user=root then i insert in sql this statment insert into sipfriends values ('555','555','1234','555','192.168.50.149',5060,2); i tried from Xlite to register with 555 but i couldn't any help please -- Ahmed Magdy Mahmoud |