hi everybody, i'm a new user of the jsip library,i want to establish a connection to asterisk server using the library jsip,i managed to register and i want to send an invite message,this is the code i'm using :
SipUri uri = new SipUri( "sip:taha@155.132.215.237" );
hi everybody, i'm a new user of the jsip library,i want to establish a connection to asterisk server using the library jsip,i managed to register and i want to send an invite message,this is the code i'm using :
SipUri uri = new SipUri( "sip:taha@155.132.215.237" );
SipClient client = SipClient.getSipClient();
SipUser user = null;
client.setDefaultUserMode( true );
client.setExplicitProxyMode( false );
String laddr = Sip.getLocalAddress();
client.setCallForward( false );
client.setCallForwardUri( null );
client.setCallForwardMessage( null );
client.setMaxForwards( 0 );
client.setBusyMessage( null );
client.setHideViaMode( SipClient.HideHop );
user = new SipUser( client, uri );
if ( DEBUG ) System.out.println( "SipClient: initialization complete" );
// create a REGISTER message to a server
String serveurl = "sip:155.132.215.182";
SipRegister reg = user.addServer( serveurl );
reg.requestRegister( "nopass" );
can anybody help me on how to create an invite message and send it,thank you so much