I'm trying to make a little example program for register to an Asterisk PBX
and dial a softphone, but i just can't register to the PBX.
package iax;
import net.sourceforge.iaxclient.Call;
import net.sourceforge.iaxclient.JIAXClient;
import net.sourceforge.iaxclient.Registration;
public class TestIAX {
public static void main(String[] args) {
Registration registration;
JIAXClient client = JIAXClient.getInstance();
client.initialize(1, 10);
registration = client.register("kike", "elkike",
"10.32.81.31:4569
");
client.setCallerID("Kike", "1001");
client.call("1002");
System.out.println(registration);
}
}
I'm frustrated because JIAX doesn't throw any exception, but the code is
not
working properly.
Greetings,
--
Enrique Sanchez
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060629/2c9aad5e/attachment.htm
"Enrique Sanchez" <esanchez@itnova.com.mx> writes:> I'm trying to make a little example program for register to an > Asterisk PBX and dial a softphone, but i just can't register to the > PBX.Buenos noches Enrique, I've been trying to get JIAXClient working for over a month with no success. It fails mysteriously at different places with no exceptions, and my efforts to figure out why have so far failed. So I can't offer helpful advice, only sympathy. :) Does this work for other people? If so, what's your build environment like? ---Scott.
I think you have to set where to get the libraries (jiaxc*.jar files).
Setup a webserver somewhere and put the jar files there.
Then in your code before initialize
client.setCodeBase("your URL to the jar files");
HTH,
richard
Enrique Sanchez <esanchez@itnova.com.mx> wrote:
I'm trying to make a little example program for register to an Asterisk
PBX and dial a softphone, but i just can't register to the PBX.
package iax;
import net.sourceforge.iaxclient.Call;
import net.sourceforge.iaxclient.JIAXClient;
import net.sourceforge.iaxclient.Registration;
public class TestIAX {
public static void main(String[] args) {
Registration registration;
JIAXClient client = JIAXClient.getInstance();
client.initialize (1, 10);
registration = client.register("kike", "elkike",
"10.32.81.31:4569");
client.setCallerID("Kike", "1001");
client.call("1002");
System.out.println(registration);
}
}
I'm frustrated because JIAX doesn't throw any exception, but the code
is not working properly.
Greetings,
--
Enrique Sanchez
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060701/9a3cbb16/attachment.htm