asterisk-java-users Mailing List for Asterisk-Java Library (Page 175)
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: Stefan R. <sr...@re...> - 2005-07-01 16:31:31
|
Hi Michael, what you want to do seems to me like a kind of IVR, right? If thats the case it's better to use FastAGI than the Manager API. Have a look at the HelloAGI example in the tutorial available at http://asterisk-java.sourceforge.net/tutorial.html. Using FastAGI you can play prompts to the user (via the streamFile method of AbstractAGIScript) and read user input, i.e. touch tones. The method=20 streamFile(channel, file, escapeDigits) returns the digit the user pressed while playing the file. If you also need to receive digits after the streaming you can send an WaitForDigitCommand to wait for the user to press a key. Hope that helps you get started. =3DStefan |
From: Michael E. <mi...@gr...> - 2005-07-01 16:14:09
|
My application needs to have the capability of capturing touch tones = from a called user and reacting to those. I have sent an Originate action to the astrisk server. In the javadocs, = the Originate action states: "Note that no call detail record will be written when directly = connecting to an application, so it may be better to connect to an = extension that starts the application you wish to connect to." I'm confused as to what this means. Perhaps the word "application" = refers to a particular asterisk specific concept. How would I code this, and what would I need to setup in the = extensions.conf file to get capture dialtones as an Event? |
From: Stefan R. <sr...@re...> - 2005-07-01 12:36:20
|
> I am very interesting your version 0.2, because it include a MAGI suppo= rt! > How long you release this version? I will try to release 0.2 short time after Asterisk 1.2 is released. MAGI support is still planned but i am unsure if there are up to date MAG= I patches submitted to Asterisk's BugTracker so that it will end up in 1.2. David Pollak wanted to update and submit them, but I haven't seem much going on there for quite some time now. So if you intend to use MAGI via Asterisk-Java please make sure MAGI finds its way into mainstream Asterisk! (Probably the best way to do this is to contact David and discuss how to help him...) =3DStefan |
From: liyuqian <liy...@95...> - 2005-07-01 05:51:13
|
Hi, Stefan: I am very interesting your version 0.2, because it include a MAGI support! How long you release this version? Li yuqian |
From: Stefan R. <sr...@re...> - 2005-06-30 19:01:33
|
On Tue, 2005-06-28 at 12:46 +0800, liyuqian wrote: > I want use java-asterisk manager action to transfer a call, how i can=20 > do? thanks. Have a look at the tutorial at http://asterisk-java.sourceforge.net/tutorial.html. It shows how to send actions to Asterisk in general. To do the transfer you need to send a RedirectAction (net.sf.asterisk.manager.action.RedirectAction) see=20 http://www.voip-info.org/tiki-index.php?page=3DAsterisk+Manager+API+Action +Redirect for an example of its usage. =3DStefan |
From: Chad K. <ch...@cm...> - 2005-06-29 08:14:27
|
Stefan Reuter wrote: > p.s. what is this crap at the end of your messages? > He's using Outlook+Exchange, and it decided to base64 encode his entire message (his client is probably set to use "Rich Text" messages by default) without using MIME multipart. SourceForge tried to add their advertisement to the bottom of the message, but since it wasn't in base64, it got decoded into gibberish. It's also why his replies all have winmail.dat attachments. Gotta hand it to Microsoft sometimes -- they take an apparently simple task and make it complex. This particular (mis)behaviour can be configured on the server, where you can tell it to convert Outlook-specific Rich Text messages to plain text. I would suggest not using Rich Text format in general when sending to internet recipients because any attachments have a tendancy to get wrapped in the TNEF 'winmail.dat' file, and end up unreadable for non-Outlook users. Plain text or even HTML format doesn't have this problem. Chad Kitching |
From: liyuqian <liy...@95...> - 2005-06-28 04:47:13
|
I want use java-asterisk manager action to transfer a call, how i can do? thanks. |
From: Johannes B. <j....@ad...> - 2005-06-23 12:37:00
|
V2VsbCAuLi4geWV0IGFub3RoZXIgcHJvYmxlbS4gSSBzZXQgdXAgYW4gb3JpZ2luYXRlQWN0aW9u IGFuZCBzZW5kIGl0IHdpdGggdGhlIG1hbmFnZXJDb25uZWN0aW9uLiBOb3cgSSBnZXQgc29tZSBD aGFubmVsRXZlbnRzIGFuZCBmb3Igc29tZSByZWFzb25zIEkgaGF2ZSB0byBrbm93IGlmIHRob3Nl IGV2ZW50cyBhcmUgcmVzdWx0cyBmcm9tIHRoZSBhY3Rpb24gSSBzZW5kIHByZXZpb3VzbHkuIElz IGl0IHBvc3NpYmxlIHRvIGdldCB0aGUgdW5pcXVlSWQgSSBjYW4gZmV0Y2ggZnJvbSBhIE1hbmFn ZXJSZXNwb25zZSBiZWZvcmUgdGhlIHNlbmRBY3Rpb24tY29tbWFuZCByZXR1cm5zPw0KIA0KQ2hl ZXJzDQpKb2hhbm5lcyBCb2VzbA0K |
From: Johannes B. <j....@ad...> - 2005-06-23 08:08:39
|
SSBpbWFnaW5lZCBzb21ldGhpbmcgbGlrZSBjaGFuZ2luZyB0aGUgc3RhdGUgb2YgYW4gYXN0ZXJp c2stY2hhbm5lbCBzbyB0aGF0IG15IHBob25lIG5vdGljZXMgdGhhdCBpdCBpcyBub3cgY29ubmVj dGVkIGFuZCBjaGFuZ2VzIGl0IHN0YXRlLCB0b28uIA0KQW5kIEkgaGF2ZSBubyBpZGVhIHdoYXQg aGVjayB0aG9zZSBzeW1ib2xzIGFyZSBJIHNlZSBpbiB5b3VyIHJlc3BvbnNlLiBNdXN0IGJlIG1l c3NlZCB1cCBzb21laG93IGJ5IG15IG1haWxzZXJ2ZXIuDQogDQo= |
From: Stefan R. <sr...@re...> - 2005-06-22 20:00:10
|
On Wed, 2005-06-22 at 15:52 +0200, Johannes Boesl wrote: > can somebody tell me please how I can tell the manager > to pick up my phone when the corresponding channel is Ringing.=20 > I got stuck on that point somehow. I just think this is impossible. AFAIK there is no way for Asterisk to cause your phone to answer a call. If you are using a Cisco IP phone you can telnet to the phone, set=20 it to test mode and enable the speaker or headset as adm (http://adm.hamnett.org/) does. =3DStefan p.s. what is this crap at the end of your messages? > HS^=E9=9A=8AX'u(j=CC=8B{2(+j=D8=A8+kj=D7=A0=1F=04b"^Z0Fl=DA=8A=08m~jZ=D8= =9C"+bm=C6=AC=C6=A7vj+xgzb=0Cwv z=DB=A9)y_ja=7Flgri=D8=9D=03;e=C8=9D=03^j)= =01br@,H=DA=BDz&j)b b,H=DA=BDz%lq=07zm?X(=1E~zwXb?j^+$=DA=BA=C7=AB |
From: Stefan R. <sr...@re...> - 2005-06-22 19:34:27
|
Hi Andrew, the official Asterisk release does not include the uniqueid in the respons to the OriginateAction. Asterisk servers patched with "bristuff" from junghanns.net however do. (That's where the stuff in DefaultAsteriskManager that you noticed resulted from) So as long as you run a vanilla Asterisk you have to listen for the corresponding OriginateSuccessEvent. There was a discussion about this some weeks ago on the list (you will find it in the archives). That discussion resulted in Ben Hencke to send a patch for the DefaultAsteriskManager that does exactly this. I just finished including that patch into CVS so you will get it in the latest snapshot from http://maven.reucon.com/maven/asterisk-java/distributions/ Please note however that this is not well tested and must be regarded experimental at best. =3DStefan |
From: Andrew W. <an...@ji...> - 2005-06-22 17:06:56
|
Hi, I am trying to get the unique ID back from the call I have established with the originate action, however I ManagerResponse#getUniqueId() always returns null. Is this the expected behavior or is this a bug. My code: ManagerConnection con = ManagerConnectionPoolFactory.getManagerConnectionPool().getConnection(); OriginateAction action = new OriginateAction(); action.setChannel("6141"); action.setCallerId("99999"); action.setExten(extension); action.setContext("default"); action.setPriority(1); ManagerResponse response = con.sendAction(action, 5 * JiveConstants.SECOND); String uniqueID = response.getUniqueId(); I have also noticed that DefaultAsteriskManager#orginateCall uses the same general idea. If this is the correct behavior is the only around this to create a listener and wait for the next event that would contain the uniqueID (such as the Link event)? thanks in advance, Andrew |
From: Johannes B. <j....@ad...> - 2005-06-22 13:28:27
|
SGksDQpjYW4gc29tZWJvZHkgdGVsbCBtZSBwbGVhc2UgaG93IEkgY2FuIHRlbGwgdGhlIG1hbmFn ZXIgdG8gcGljayB1cCBteSBwaG9uZSB3aGVuIHRoZSBjb3JyZXNwb25kaW5nIGNoYW5uZWwgaXMg UmluZ2luZy4gSSBnb3Qgc3R1Y2sgb24gdGhhdCBwb2ludCBzb21laG93Lg0KIA0KVGhhbmtzIGlu IGFkdmFuY2UsDQpKb2hhbm5lcyBCb2VzbA0K |
From: Johannes B. <j....@ad...> - 2005-06-21 10:03:55
|
VGhhdCB3b3Jrcy4gVGhhbmtzIGEgbG90LiBJIHdvbmRlciB3aHkgSSBoYXZlIG92ZXJsb29rZWQg dGhhdC4NCiANCkpvaGFubmVzIEJvZXNsDQogDQoNCgktLS0tLVVyc3Byw7xuZ2xpY2hlIE5hY2hy aWNodC0tLS0tIA0KCVZvbjogYXN0ZXJpc2stamF2YS11c2Vycy1hZG1pbkBsaXN0cy5zb3VyY2Vm b3JnZS5uZXQgaW0gQXVmdHJhZyB2b24gU3RldmUgS3dlZSANCglHZXNlbmRldDogRGkgMjEuMDYu MjAwNSAxMToyMCANCglBbjogYXN0ZXJpc2stamF2YS11c2Vyc0BsaXN0cy5zb3VyY2Vmb3JnZS5u ZXQgDQoJQ2M6IA0KCUJldHJlZmY6IFJlOiBbQXN0ZXJpc2stamF2YS11c2Vyc10gSG93IHRvIGdl dCBzaXAgdXNlcnMNCgkNCgkNCgkgDQoNCg== |
From: Steve K. <kw...@it...> - 2005-06-21 09:20:51
|
Hi, As far as I know nearly all the commands that work in the asterisk console can be used via asterisk-java. So if "sip show users" works in the console on your installation it also works in asterisk-java. You can use a CommandAction for this and should set up a *ManagerResponseHandler to catch the response.* The examples from the tutorial do not need many changes to get this working. Look at the specific class of the response in a Debugger (Eclipse). You might have to do a cast to *CommandResponse and then a getResult to get the list of users. Cheers Steve * Johannes Boesl schrieb: >Hi, >I'm want to get all sip users from my asterisk. I tried it by sending a commandAction with "sip show users" but i guess it doesn't work this way. Is it possible to fetch those information with Asterisk-Java and in case of 'yes' - how? > >Cheers! >Johannes Boesl >HS^隊X'u<(= >j̋{2(+jب+kjנஉb"^Z0Flm~jZ."+bmƧvj+xgzǫbwv z)y_jalgr i؝ώjYhr'r-z6j.XX-z6j.b," >y+m+-.-ǟ+-3b2~ڲ#j > > -- Freundliche Grüße Steve Kwee ________________________________________________ IT Warehouse AG e-Mail: Kw...@it... Fon: +49 (0) 40.32 33 54.28 Fax: +49 (0) 40.32 33 54.99 |
From: Johannes B. <j....@ad...> - 2005-06-21 09:10:17
|
SGksDQpJJ20gd2FudCB0byBnZXQgYWxsIHNpcCB1c2VycyBmcm9tIG15IGFzdGVyaXNrLiBJIHRy aWVkIGl0IGJ5IHNlbmRpbmcgYSBjb21tYW5kQWN0aW9uIHdpdGggInNpcCBzaG93IHVzZXJzIiBi dXQgaSBndWVzcyBpdCBkb2Vzbid0IHdvcmsgdGhpcyB3YXkuIElzIGl0IHBvc3NpYmxlIHRvIGZl dGNoIHRob3NlIGluZm9ybWF0aW9uIHdpdGggQXN0ZXJpc2stSmF2YSBhbmQgaW4gY2FzZSBvZiAn eWVzJyAtIGhvdz8NCiANCkNoZWVycyENCkpvaGFubmVzIEJvZXNsDQo= |
From: Stefan R. <sr...@re...> - 2005-06-19 09:18:42
|
hi, the StatusAction results in StatusEvents being sent for each active channel. So to test your application you have to establish at least one call and then run it. when I do this i get the following: [...] # send command # response : net.sf.asterisk.manager.response.ManagerResponse: actionId=3D'null'; message=3D'Channel status will follow'; response=3D'Success'; uniqueId=3D'null'; systemHashcode=3D67987976 # response : {actionid=3D67538227_2#, message=3DChannel status will follow, response=3DSuccess} # event : net.sf.asterisk.manager.event.StatusEvent: dateReceived=3DSun Jun 19 09:15:33 UTC 2005; privilege=3DCall; systemHashcode=3D67990288 # Event: net.sf.asterisk.manager.event.StatusEvent: dateReceived=3DSun Jun 19 09:15:33 UTC 2005; privilege=3DCall; systemHashcode=3D67990288 # event : net.sf.asterisk.manager.event.StatusCompleteEvent: dateReceived=3DSun Jun 19 09:15:33 UTC 2005; systemHashcode=3D67993823 source : AsteriskServer[hostname=3D'localhost',port=3D5038] [...] seems to work as expected... are you sure there was at least one active channel when you sent the StatusAction command? =3DStefan |
From: sKwee <sk...@it...> - 2005-06-19 01:16:01
|
Hi, i am trying to get some status information using the manager interface. I tried a StatusAction and several CommandActions with commands like "show sip users" etc. All I get are StatusCompleteEvents whith respone =3D "Success" and message =3D "Channel status will follow". I did setup a responseHandler and an eventHandler but what i cannot find anywhere is the status itself, i.e. a list of connected users. Did i miss something or is this kind of function not yet implemented ? regards and thanks for any hints =A0=A0=A0=A0=A0=A0Steve package default; import java.io.IOException; import net.sf.asterisk.manager.AuthenticationFailedException; import net.sf.asterisk.manager.ManagerConnection; import net.sf.asterisk.manager.ManagerConnectionFactory; import net.sf.asterisk.manager.ManagerEventHandler; import net.sf.asterisk.manager.ManagerResponseHandler; import net.sf.asterisk.manager.TimeoutException; import net.sf.asterisk.manager.action.StatusAction; import net.sf.asterisk.manager.event.ManagerEvent; import net.sf.asterisk.manager.event.PeerStatusEvent; import net.sf.asterisk.manager.event.StatusCompleteEvent; import net.sf.asterisk.manager.response.ManagerResponse; public class HelloManager implements ManagerEventHandler, ManagerResponseHandler { =A0=A0=A0private ManagerConnection managerConnection; =A0=A0=A0public HelloManager() throws IOException =A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0ManagerConnectionFactory factory =3D new ManagerConnectionFactory(); =A0=A0=A0=A0=A0=A0=A0this.managerConnection =3D factory.getManagerConnection("localhost", =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0"admin", "xxx"); =A0=A0=A0} =A0=A0=A0/** =A0=A0=A0=A0* @see net.sf.asterisk.manager.ManagerResponseHandler#handleResponse(net.sf.asteri= sk.manager.response.ManagerResponse) =A0=A0=A0=A0*/ =A0=A0=A0public void handleResponse(ManagerResponse response) =A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0System.out.println ("# response : " + response); =A0=A0=A0=A0=A0=A0=A0System.out.println ("# response : " + response.getAttr= ibutes()); =A0=A0=A0} =A0=A0=A0 =A0=A0=A0public void handleEvent(ManagerEvent event) =A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0System.out.println ("# event : " + event); =A0=A0=A0=A0=A0=A0=A0if (event instanceof PeerStatusEvent) =A0=A0=A0=A0=A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0PeerStatusEvent pevent =3D (PeerStatusEven= t)event; =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0System.out.println ("cause=A0 : " + pevent= .getCause()); =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0System.out.println ("peer=A0=A0 : " + peve= nt.getPeer()); =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0System.out.println ("status : " + pevent.g= etPeerStatus()); =A0=A0=A0=A0=A0=A0=A0} =A0=A0=A0=A0=A0=A0=A0else if (event instanceof StatusCompleteEvent) =A0=A0=A0=A0=A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0StatusCompleteEvent sevent =3D (StatusComp= leteEvent)event; =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0System.out.println ("source : " + sevent.g= etSource()); =A0=A0=A0=A0=A0=A0=A0} =A0=A0=A0=A0=A0=A0=A0else =A0=A0=A0=A0=A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0// just print received events =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0System.out.println("# Event: " + event); =A0=A0=A0=A0=A0=A0=A0} =A0=A0=A0} =A0=A0=A0 =A0=A0=A0public void run() throws IOException, AuthenticationFailedExceptio= n, =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0TimeoutException, InterruptedException =A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0// register for events =A0=A0=A0=A0=A0=A0=A0managerConnection.addEventHandler(this); =A0=A0=A0=A0=A0=A0=A0// connect to Asterisk and log in =A0=A0=A0=A0=A0=A0=A0System.out.println ("# login"); =A0=A0=A0=A0=A0=A0=A0managerConnection.login(); =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0System.out.println ("# send command"); =A0=A0=A0=A0=A0=A0=A0managerConnection.sendAction(new StatusAction(), this)= ; =A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0for (int i=3D0; i<10000; i++) =A0=A0=A0=A0=A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0Thread.sleep(20000); =A0=A0=A0=A0=A0=A0=A0} =A0=A0=A0=A0=A0=A0=A0// and finally log off and disconnect =A0=A0=A0=A0=A0=A0=A0managerConnection.logoff(); =A0=A0=A0} =A0=A0=A0public static void main(String[] args) throws Exception =A0=A0=A0{ =A0=A0=A0=A0=A0=A0=A0HelloManager helloManager; =A0=A0=A0=A0=A0=A0=A0helloManager =3D new HelloManager(); =A0=A0=A0=A0=A0=A0=A0helloManager.run(); =A0=A0=A0} } |
From: Stefan R. <sr...@re...> - 2005-06-18 18:43:12
|
Hi Rick, did you have a look at the HelloEvents sample in the tutorial available from http://asterisk-java.sourceforge.net/tutorial.html ? If you need any further assistance you can usually find me on irc (irc.freenode.org, nick: srt) or jabber (blo...@ja...) =3DStefan |
From: Rick H. <ri...@ha...> - 2005-06-18 17:31:05
|
Hi there, I'm quite new to java, although I've done a bit at uni. I was wondering if people could kindly send me some sample .java's using the manager interface, that I can use as references as It's incredibly difficult to find any on the web (I don't think there actually are any, as it's all quite new!). I'm specifically looking at how to monitor and grab the caller ID, as I can't work out how to override the method correctly! I'd appreciate any help Thanks kindly, Rick |
From: Darnell G. <da...@bi...> - 2005-06-07 06:45:36
|
Stefan, That simple change did the trick. Thanks for your help. - darnell gadberry On 6/6/05 11:11 PM, "Stefan Reuter" <sr...@re...> wrote: >> originateAction.setChannel("IAX2/NuFone"); >> originateAction.setContext("nufone-outgoing"); >> originateAction.setExten(phoneNumber); > > [snip] > >> ----------------------- >> >> From my extensions.conf file the nufone-outgoing context >> >> [nufone-ougoing] >> exten => _1NXXNXXXXXX,1,Dial,IAX2/NuFone >> >> ----------------------------------- > > what you probably want to do is to connect an internal phone to the > external nuphone number. > So channel must point to a local phone (SIP/myuser or whatever) and > context/exten/priority to the external number. What you did is pointing > both to the external number... > > =Stefan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput > a projector? How fast can you ride your desk chair down the office luge track? > If you want to score the big prize, get to know the little guy. > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users |
From: Stefan R. <sr...@re...> - 2005-06-07 06:11:59
|
> originateAction.setChannel("IAX2/NuFone"); > originateAction.setContext("nufone-outgoing"); > originateAction.setExten(phoneNumber); [snip] > ----------------------- > > From my extensions.conf file the nufone-outgoing context > > [nufone-ougoing] > exten => _1NXXNXXXXXX,1,Dial,IAX2/NuFone > > ----------------------------------- what you probably want to do is to connect an internal phone to the external nuphone number. So channel must point to a local phone (SIP/myuser or whatever) and context/exten/priority to the external number. What you did is pointing both to the external number... =Stefan |
From: Darnell G. <da...@bi...> - 2005-06-07 02:44:53
|
Hello, Perhaps I'm just thick, but, I can't seem to get my head around the proper syntax for specifying a channel when dialing out via IAX through the Manager interface and its related context in extensions.conf. I'm attempting to dial a PSTN # via NuFone using IAX rather than SIP to a extension. My code snippet below shows what I am attempting to do: ------ snip ----- // Create an OriginateAction instance to fire off our call... originateAction = new OriginateAction(); originateAction.setChannel("IAX2/NuFone"); originateAction.setContext("nufone-outgoing"); originateAction.setExten(phoneNumber); originateAction.setPriority(new Integer(priority)); originateAction.setTimeout(new Integer(timeout)); try { currentMode = EXECUTING_COMMAND; originateResponse = mc.sendAction(originateAction, timeout); currentMode = IDLE; } catch(IOException ioe) { throw new AVRManagerException(ioe); } catch(TimeoutException te) { throw new AVRManagerException(te); } ----------------------- From my extensions.conf file the nufone-outgoing context [nufone-ougoing] exten => _1NXXNXXXXXX,1,Dial,IAX2/NuFone ----------------------------------- From the Asterisk console (IP addresses and phone #'s changed for privacy...): == Parsing '/etc/asterisk/manager.conf': Found == Manager 'manager' logged on from 208.XX.XXX.XXX -- Call accepted by 66.225.202.72 (format ulaw) -- Format for call is ulaw -- Executing Dial("IAX2/NuFone/3", "IAX2/NuFone") in new stack -- Called NuFone -- Hungup 'IAX2/NuFone/4' == Spawn extension (nufone-outgoing, 18003253535, 1) exited non-zero on 'IAX2/NuFone/3' -- Hungup 'IAX2/NuFone/3' -- Call accepted by 66.225.202.72 (format ulaw) == Manager 'manager' logged off from 208.XX.XXX.XXX -------------------- Help. Thanks, - Darnell Gadberry |
From: Stefan R. <sr...@re...> - 2005-06-01 14:28:18
|
> Is it possible to use EAGI with asterisk-java ? No this is not possible. EAGI over network is not supported by Asterisk, it only works locally via conventional AGI. > I would like to > send Audio to a speech rec application using the Java FastAGI. A better approach is probably to use IAX to pass voice to/from Java applications. There were at least two people on the asterisk-dev mailing list who were working on an IAX lib for Java but i am not aware on the exact status of them. > If it is not there - how big of a job would it be to add it ? Without a modification of Asterisk itself impossible. =3DStefan |
From: John M. <jo...@sy...> - 2005-06-01 11:37:16
|
Is it possible to use EAGI with asterisk-java ? I would like to send Audio to a speech rec application using the Java FastAGI. Is this possible ? If it is not there - how big of a job would it be to add it ? thanks, John. |