<div>I think you have to set where to get the libraries (jiaxc*.jar files).</div> <div> </div> <div>Setup a webserver somewhere and put the jar files there.</div> <div>Then in your code before initialize</div> <div> client.setCodeBase("your URL to the jar files");</div> <div> </div> <div>HTH,</div> <div> </div> <div>richard</div> <div> </div> <div> </div> <div><BR><BR><B><I>Enrique Sanchez <esanchez@itnova.com.mx></I></B> wrote:</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"> <DIV>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.</DIV> <DIV> </DIV> <div>package iax;</div> <div>import net.sourceforge.iaxclient.Call;<BR>import net.sourceforge.iaxclient.JIAXClient;<BR>import net.sourceforge.iaxclient.Registration;</div> <div><BR>public class TestIAX
{<BR> public static void main(String[] args) { <BR> <BR> Registration registration;<BR> <BR> JIAXClient client = JIAXClient.getInstance();<BR> client.initialize (1, 10);<BR> registration = client.register("kike", "elkike", "<A href="http://10.32.81.31:4569/">10.32.81.31:4569</A>");<BR> client.setCallerID("Kike", "1001"); <BR> client.call("1002");<BR> System.out.println(registration);<BR> <BR> }<BR>}</div> <DIV>I'm frustrated because JIAX doesn't throw any exception, but the code is not working properly.<BR
clear=all></DIV> <DIV>Greetings,</DIV> <DIV><BR>-- <BR>Enrique Sanchez </DIV>_______________________________________________<BR>--Bandwidth and Colocation provided by Easynews.com --<BR><BR>Asterisk-Users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><BR>