Re: [Asterisk-java-users] parsing dial plan extension patterns
Brought to you by:
srt
From: Martin S. <ma...@be...> - 2007-09-13 20:03:52
|
> -----Original Message----- > From: ast...@li...=20 > [mailto:ast...@li...] On=20 > Behalf Of Aaron Evans > Sent: Thursday, September 13, 2007 3:48 PM > To: ast...@li... > Subject: Re: [Asterisk-java-users] parsing dial plan=20 > extension patterns >=20 > Hey Martin, >=20 > Thanks for the info. If I do come up with something, I will=20 > certainly share it. Glad to help. My interest in it was to replace SIPTAPI with a Java-based solution. I have Windows applications that only speak the Microsoft Telephony API, and one happened to speak TAPI very poorly, and deferenced null pointers from SIPTAPI that it shouldn't have (like when SIPTAPI said the structure was zero bytes). I was looking to make outgoing calls from our Windows application in this fashion: Windows app --> GJTAPI --> Asterisk-JTAPI --> Asterisk Unfortunately, GJTAPI mostly implemented the other way around, i.e.: Java app --> GJTAPI --> MS TAPI --> Telephony Device > Speaking of Asterisk JTAPI, there doesn't seem to be a lot out there > in terms of asterisk specific examples. Yes, I ended up going through the sources myself to find out what to do. What it lacks in documentation, it makes up for in runtime exceptions that complain when you don't give the right commandline arguments. > I would like to know for instance how to implement a simple Originate > action in JTAPI. It is unclear to me how the terminals, addresses and > so on map to the asterisk nomenclature. >From what I can tell, the point of JTAPI is that (like TAPI), everyone writes to the JTAPI API and then you don't need Asterisk-specific examples. This is very similar to Microsoft Tapi -- you have clients that know the API, and people who provide TAPI-like devices make a service-provider (a TSP) that speaks the API from the other side. =20 > Do you know of any good resources out there for JTAPI? I think I remember discovering that I needed JTAPI 1.3 to get GCJTAPI working, which made me go looking for the Java API files (they aren't in Java SE). I got them at http://java.sun.com/products/jtapi/, which does provide some HTML and PDFs about the specification. Beyond that, it was Google and trying to run some examples and call some methods in a blank main method :). I got it working, but discovered the chain (the one I mentioned above) was in the wrong direction. > Also, is it > even compatible with asterisk-java 0.3? JTAPI and AJ-3.0 are only related through Asterisk-JTAPI, and last I looked, it wasn't able to use any Asterisk-Java version that was new (it expected the org.sf... Packages from Asterisk-Java). > I guess this is a little off topic... Nah :) Martin Smith, Systems Developer ma...@be... Bureau of Economic and Business Research University of Florida (352) 392-0171 Ext. 221=20 |