tags:

views:

24

answers:

0

Here's the applet: http://asterisk-java.org/iax/development/demo.html

I'm trying to implement it on my own site, but I keep getting the error register null on the applet's output.

Here's the javascript I'm using to interface with the applet:

        /* create the phone */
        var attributes = {
            code: 'org.asteriskjava.iax.faceless.Faceless.class',
      archive: 'asterisk-java-iax-1.0.0.jar',
      width: 300, 
      height: 100,
      id: 'phone'
     };
     var parameters = { debug: 4 };
     var version = '1.6';
     deployJava.runApplet(attributes, parameters, version);

     function loaded() {
       phone = getPhone();

       /* register */
       phone.setHost('pbx.server.net');
       phone.setUser('1000');
       phone.setPass('1000');
       phone.setWantIncoming(true);
       phone.register();

     }

     function getPhone() {
      return document.getElementById('phone');
     }

My Asterisk console shows no connection activity what-so-ever. If I use the exact same credentials in Zoiper Free, I am able register and connect with no issues.

Can anyone help me with this?!? Google has been fantastically frustrating with finding implementation of any Java-based IAX softphone...