[asterisk-users] IAX Java Softphone?

Tim Panton thp at westhawk.co.uk
Wed Jan 14 15:03:38 CST 2009


On 14 Jan 2009, at 19:53, Josiah Bryan wrote:

> Tim -
>
> Do you have any minimal docs or hints on what hooks the DHTML/JS  
> methods
> are available for scripting? Something like a quickstart javascript  
> example?
>
> I'm great with javascript, but I havn't read thru the Java to figure  
> out
> the hooks yet - if thats whats needed, I dont mind, but I'd rather  
> hear
> from the guy who knows best.
>
> I'm assuming something like:
>
> <applet id="xyz" ...>
>
> <script>
> var applet = [get applet ref];
>
> function onDialButtonClick()
> {
> 	var number = myFunctionGetPhoneNumber();
> 	applet.connectToServer("my.iax.server.com","user","pass");
> 	applet.dial(number);
> 	[update UI]
> }
>
> function onHangupClick()  
> { applet.hangupCall();applet.disconnectServer() }
> </script>
>
> Something like that?
>
> -josiah


It's up to Mexuar to decide if they want to release any pre-existing  
documentation
(and since it isn't in the .rar I guess they don't intend to at the  
moment).

The easiest thing would be to run JavaDoc over the applet class and
see what public methods exist.

Tim.

------
Tim Panton - Web/VoIP consultant and implementor
www.westhawk.co.uk






More information about the asterisk-users mailing list