Examples of CallID


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

     */
    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());
        String tid = message.getTransactionId();
        TimeStampHeader tsHdr = (TimeStampHeader) message.getHeader(TimeStampHeader.NAME);
        long tsval = tsHdr == null ? 0 : tsHdr.getTime();
View Full Code Here

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

     * @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());
        String tid = message.getTransactionId();
        TimeStampHeader tshdr = (TimeStampHeader) message.getHeader(TimeStampHeader.NAME);
        long tsval = tshdr == null ? 0 : tshdr.getTime();
View Full Code Here

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

     * @see javax.sip.SipProvider#getNewCallId()
     */
    public CallIdHeader getNewCallId() {
        String callId = Utils.getInstance().generateCallIdentifier(this.getListeningPoint()
                .getIPAddress());
        CallID callid = new CallID();
        try {
            callid.setCallId(callId);
        } catch (java.text.ParseException ex) {
        }
        return callid;

    }
View Full Code Here

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

     * @see javax.sip.SipProvider#getNewCallId()
     */
    public CallIdHeader getNewCallId() {
        String callId = Utils.getInstance().generateCallIdentifier(this.getListeningPoint()
                .getIPAddress());
        CallID callid = new CallID();
        try {
            callid.setCallId(callId);
        } catch (java.text.ParseException ex) {
        }
        return callid;

    }
View Full Code Here

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

   * @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

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

   * @see javax.sip.SipProvider#getNewCallId()
   */
  public CallIdHeader getNewCallId() {
    String callId = Utils.getInstance().generateCallIdentifier(this.getListeningPoint()
        .getIPAddress());
    CallID callid = new CallID();
    try {
      callid.setCallId(callId);
    } catch (java.text.ParseException ex) {
    }
    return callid;

  }
View Full Code Here

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

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

    }
    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

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

     * @see javax.sip.SipProvider#getNewCallId()
     */
    public CallIdHeader getNewCallId() {
        String callId = Utils.getInstance().generateCallIdentifier(this.getListeningPoint()
                .getIPAddress());
        CallID callid = new CallID();
        try {
            callid.setCallId(callId);
        } catch (java.text.ParseException ex) {
        }
        return callid;

    }
View Full Code Here

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

    /**
     * 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
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.