Package org.zoolu.sip.transaction

Examples of org.zoolu.sip.transaction.TransactionClient.request()


      log.info("Registering contact " + contact + " (it expires in " + expireTime + " secs)");
    else
      log.info("Unregistering contact " + contact);
   
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }

  public void unregister() {
    if (isPeriodicallyRegistering()) {
      stopRegistering();
View Full Code Here


         req.setAuthorizationHeader(ah);
      }
      if (expire_time>0) printLog("Registering contact "+contact+" (it expires in "+expire_time+" secs)",LogLevel.HIGH);
      else printLog("Unregistering contact "+contact,LogLevel.HIGH);
      TransactionClient t=new TransactionClient(sip_provider,req,this);
      t.request();
   }


   /** Unregister with the registrar server */
   public void unregister()
View Full Code Here

   
    Message req = MessageFactory.createRegisterRequest(sipProvider, target, target, null);
    req.setExpiresHeader(new ExpiresHeader(String.valueOf(0)));
    log.info("Unregistering all contacts");
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }

  /**
   * Periodically registers with the registrar server.
   *
 
View Full Code Here

      //ContactHeader contact_star=new ContactHeader(); // contact is *
      //req.setContactHeader(contact_star);
      req.setExpiresHeader(new ExpiresHeader(String.valueOf(0)));
      printLog("Unregistering all contacts",LogLevel.HIGH);
      TransactionClient t=new TransactionClient(sip_provider,req,this);
      t.request();
   }


   /** Periodically registers with the registrar server.
     * @param expire_time expiration time in seconds
View Full Code Here

        else
          authHeader = digest.getProxyAuthorizationHeader();

        req.setAuthorizationHeader(authHeader);
        TransactionClient t = new TransactionClient(sipProvider, req, this);
        t.request();

      } else {
        String result = code + " " + status.getReason();
        lastRegFailed = true;
        regInprocess = false;
View Full Code Here

            //printLog("DEBUG: qop-options: "+qop_options,LogLevel.MEDIUM);
            qop=(qop_options!=null)? "auth" : null;
            AuthorizationHeader ah=(new DigestAuthentication(SipMethods.REGISTER,req.getRequestLine().getAddress().toString(),wah,qop,null,username,passwd)).getAuthorizationHeader();
            req.setAuthorizationHeader(ah);
            TransactionClient t=new TransactionClient(sip_provider,req,this);
            t.request();
         }
         else
         String result=code+" "+status.getReason();
            printLog("Registration failure: "+result,LogLevel.HIGH);
            if (listener!=null) listener.onUaRegistrationFailure(this,target,contact,result);
View Full Code Here

      printLog("Registering contact " + contact + " (it expires in " + expireTime + " secs)");
    else
      printLog("Unregistering contact " + contact);
   
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }

  public void unregister() {
    if (isPeriodicallyRegistering()) {
      stopRegistering();
View Full Code Here

   
    Message req = MessageFactory.createRegisterRequest(sipProvider, target, target, null);
    req.setExpiresHeader(new ExpiresHeader(String.valueOf(0)));
    printLog("Unregistering all contacts");
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }

  /**
   * Periodically registers with the registrar server.
   *
 
View Full Code Here

        else
          authHeader = digest.getProxyAuthorizationHeader();

        req.setAuthorizationHeader(authHeader);
        TransactionClient t = new TransactionClient(sipProvider, req, this);
        t.request();

      } else {
        String result = code + " " + status.getReason();
        lastRegFailed = true;
        regInprocess = false;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.