[asterisk-users] IAX Java Softphone?
Josiah Bryan
jbryan at productiveconcepts.com
Wed Jan 14 15:25:32 CST 2009
Tim Panton wrote:
> 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.
>
Understood - thanks for your patience with these questions.
Regards,
-josiah
More information about the asterisk-users
mailing list