Hello all,
currently I am using asterisk-java 0-2.jar with trixbox 1.2
I am successful at making sip-sip calls using the following code:
public void callUser(String callee, String caller, String callerID) throws
IOException,
AuthenticationFailedException, TimeoutException
{
OriginateAction oAction;
ManagerResponse mResponse;
oAction = new OriginateAction();
oAction.setApplication("dial");
oAction.setChannel(caller); //this is the person that is calling FORMAT
sip/201.
oAction.setData(callee); //this is the person that is being called.
FORMAT sip/201
oAction.setCallerId(callerID); //this is the callerID of the person
calling.
oAction.setPriority(new Integer(1));
oAction.setTimeout(new Long(30000));
oAction.setAsync(Boolean.TRUE);
As you can see I pass the following strings for callee and caller : sip/201,
etc...
Now I have an IAX2 trunk using voipjet.
I can call 918504997800 from a xlite softphone and trixbox recognizes this
as an outbound line (bc of the 9) and sends it to the iax2 trunk and all
works well.
What is the syntax for the above method so that the call will be completed?
I tried the actual number but that doesnt work, I also tried
iax2/918504997800 but that doesnt work.
Any ideas?
Thanks!
|