Package gov.nist.javax.sip.header

Examples of gov.nist.javax.sip.header.CallID


     *
     * @param isServer is set to true if this is the UAS
     * and set to false if this is the UAC
     */
    public String getDialogId(boolean isServer) {
        CallID cid = (CallID) this.getCallId();
        From from = (From) this.getFrom();
        To to = (To) this.getTo();
        StringBuffer retval = new StringBuffer(cid.getCallId());
        if (!isServer) {
            //retval.append(COLON).append(from.getUserAtHostPort());
            if (from.getTag() != null) {
                retval.append(COLON);
                retval.append(from.getTag());
View Full Code Here


        }
        return retval.toString().toLowerCase();
    }

    public String getDialogId(boolean isServer, String toTag) {
        CallID cid = (CallID) this.getCallId();
        From from = (From) this.getFrom();
        StringBuffer retval = new StringBuffer(cid.getCallId());
        if (!isServer) {
            //retval.append(COLON).append(from.getUserAtHostPort());
            if (from.getTag() != null) {
                retval.append(COLON);
                retval.append(from.getTag());
View Full Code Here

    /**
     * Get a dialog id given the remote tag.
     */
    public final String getDialogId(boolean isServer, String toTag) {
        From from = (From) this.getFrom();
        CallID cid = (CallID) this.getCallId();
        StringBuffer retval = new StringBuffer(cid.getCallId());
        if (!isServer) {
            // retval.append(COLON).append(from.getUserAtHostPort());
            if (from.getTag() != null) {
                retval.append(COLON);
                retval.append(from.getTag());
View Full Code Here

     *
     * @param callId -- the call identifier to be assigned to the call id header
     */
    public void setCallId(String callId) throws java.text.ParseException {
        if (callIdHeader == null) {
            this.setHeader(new CallID());
        }
        callIdHeader.setCallId(callId);
    }
View Full Code Here

   *
   * @param isServer is set to true if this is the UAS
   * and set to false if this is the UAC
   */
  public String getDialogId(boolean isServer) {
    CallID cid = (CallID) this.getCallId();
    From from = (From) this.getFrom();
    To to = (To) this.getTo();
    StringBuffer retval = new StringBuffer(cid.getCallId());
    if (!isServer) {
      //retval.append(COLON).append(from.getUserAtHostPort());
      if (from.getTag() != null) {
        retval.append(COLON);
        retval.append(from.getTag());
View Full Code Here

    }
    return retval.toString().toLowerCase();
  }

  public String getDialogId(boolean isServer, String toTag) {
    CallID cid = (CallID) this.getCallId();
    From from = (From) this.getFrom();
    StringBuffer retval = new StringBuffer(cid.getCallId());
    if (!isServer) {
      //retval.append(COLON).append(from.getUserAtHostPort());
      if (from.getTag() != null) {
        retval.append(COLON);
        retval.append(from.getTag());
View Full Code Here

     */
    public void logMessage(SIPMessage message, String from, String to, boolean sender, long time) {
        checkLogFile();
        if (message.getFirstLine() == null)
            return;
        CallID cid = (CallID) message.getCallId();
        String callId = null;
        if (cid != null)
            callId = cid.getCallId();
        String firstLine = message.getFirstLine().trim();
        String inputText = (logContent ? message.encode() : message.encodeMessage(new StringBuilder()).toString());
        String tid = message.getTransactionId();
        TimeStampHeader tsHdr = (TimeStampHeader) message.getHeader(TimeStampHeader.NAME);
        long tsval = tsHdr == null ? 0 : tsHdr.getTime();
View Full Code Here

     * @param time is the reception time.
     */
    public void logMessage(SIPMessage message, String from, String to, String status,
            boolean sender, long time) {
        checkLogFile();
        CallID cid = (CallID) message.getCallId();
        String callId = null;
        if (cid != null)
            callId = cid.getCallId();
        String firstLine = message.getFirstLine().trim();
        String encoded = (logContent ? message.encode() : message.encodeMessage(new StringBuilder()).toString());
        String tid = message.getTransactionId();
        TimeStampHeader tshdr = (TimeStampHeader) message.getHeader(TimeStampHeader.NAME);
        long tsval = tshdr == null ? 0 : tshdr.getTime();
View Full Code Here

    /**
     * Get a dialog id given the remote tag.
     */
    public final String getDialogId(boolean isServer, String toTag) {
        From from = (From) this.getFrom();
        CallID cid = (CallID) this.getCallId();
        StringBuffer retval = new StringBuffer(cid.getCallId());
        if (!isServer) {
            // retval.append(COLON).append(from.getUserAtHostPort());
            if (from.getTag() != null) {
                retval.append(COLON);
                retval.append(from.getTag());
View Full Code Here

     *
     * @param callId -- the call identifier to be assigned to the call id header
     */
    public void setCallId(String callId) throws java.text.ParseException {
        if (callIdHeader == null) {
            this.setHeader(new CallID());
        }
        callIdHeader.setCallId(callId);
    }
View Full Code Here

TOP

Related Classes of gov.nist.javax.sip.header.CallID

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.