Package org.zoolu.sip.transaction

Examples of org.zoolu.sip.transaction.TransactionClient


    if (expireTime > 0)
      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();
  }
View Full Code Here


         ah.addResponseParam(response);
         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();
   }
View Full Code Here

    request = Request.UNREGISTERING;
   
    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();
  }
View Full Code Here

      Message req=MessageFactory.createRegisterRequest(sip_provider,target,target,null);
      //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();
   }
View Full Code Here

          authHeader = digest.getAuthorizationHeader();
        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

            String qop_options=wah.getQopOptionsParam();
            //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

    if (expireTime > 0)
      printLog("Registering contact " + contact + " (it expires in " + expireTime + " secs)");
    else
      printLog("Unregistering contact " + contact);
   
    TransactionClient t = new TransactionClient(sipProvider, req, this);
    t.request();
  }
View Full Code Here

    request = Request.UNREGISTERING;
   
    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();
  }
View Full Code Here

          authHeader = digest.getAuthorizationHeader();
        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

Related Classes of org.zoolu.sip.transaction.TransactionClient

Copyright © 2018 www.massapicom. 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.