Package org.cipango.sip

Examples of org.cipango.sip.SipFields


   
    setCallSession(request.getCallSession());
    setTransaction(request.getTransaction());
    setSession(request.session());
   
    SipFields reqFields = request.getFields();
    _fields.copy(reqFields, SipHeaders.VIA_BUFFER);
    _fields.copy(reqFields, SipHeaders.FROM_BUFFER);
    _fields.copy(reqFields, SipHeaders.TO_BUFFER);
    _fields.copy(reqFields, SipHeaders.CALL_ID_BUFFER);
    _fields.copy(reqFields, SipHeaders.CSEQ_BUFFER);
View Full Code Here


      return request;
    }
   
    protected void setDialogHeaders(SipRequest request, long cseq)
    {
      SipFields fields = request.getFields();
     
      fields.setAddress(SipHeaders.FROM_BUFFER, _localParty);
      fields.setAddress(SipHeaders.TO_BUFFER, _remoteParty);
     
      if (_remoteTarget != null)
        request.setRequestURI((URI) _remoteTarget.clone());
      else if (request.getRequestURI() == null)
        request.setRequestURI(request.to().getURI());
     
      if (_routeSet != null)
      {
        fields.remove(SipHeaders.ROUTE_BUFFER);
       
        for (String route: _routeSet)
        {
          fields.addString(SipHeaders.ROUTE_BUFFER, route);
        }
      }
      fields.setString(SipHeaders.CALL_ID_BUFFER, _callId);
      fields.setString(SipHeaders.CSEQ_BUFFER, cseq + " " + request.getMethod());
      fields.setString(SipHeaders.MAX_FORWARDS_BUFFER, "70");
     
      if (request.needsContact())
        fields.setAddress(SipHeaders.CONTACT_BUFFER, getContact());
    }
View Full Code Here

TOP

Related Classes of org.cipango.sip.SipFields

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.