Beispiel #1
0
 /**
  * Re-invites the remote user.
  *
  * <p>Starts a new InviteTransactionClient and changes the dialog state information
  *
  * <p>Parameters: <br>
  * - contact : the contact url OR the contact username; if null, the previous contact is used <br>
  * - session_descriptor : the message body
  */
 public void reInvite(String contact, String session_descriptor) {
   printLog("inside reInvite(contact,sdp)", LogLevel.MEDIUM);
   if (!statusIs(D_CALL)) return;
   // else
   Message invite = MessageFactory.createInviteRequest(this, session_descriptor);
   if (contact != null) {
     NameAddress contact_url;
     if (contact.indexOf("sip:") >= 0) contact_url = new NameAddress(contact);
     else
       contact_url =
           new NameAddress(
               new SipURL(contact, sip_provider.getViaAddress(), sip_provider.getPort()));
     invite.setContactHeader(new ContactHeader(contact_url));
   }
   reInvite(invite);
 }
Beispiel #2
0
 /**
  * Re-invites the remote user with offer/answer in 2xx/ack
  *
  * <p>Starts a new InviteTransactionClient and changes the dialog state information
  */
 public void reInviteWithoutOffer(String contact, String session_descriptor) {
   invite_offer = false;
   reInvite(contact, session_descriptor);
 }
Beispiel #3
0
 /**
  * Re-invites the remote user with offer/answer in 2xx/ack
  *
  * <p>Starts a new InviteTransactionClient and changes the dialog state information
  */
 public void reInviteWithoutOffer(Message invite) {
   invite_offer = false;
   reInvite(invite);
 }
Beispiel #4
0
 /** Modify the current call */
 public void modify(String contact, String sdp) {
   local_sdp = sdp;
   if (dialog != null) dialog.reInvite(contact, local_sdp);
 }