Home | History | Annotate | Download | only in message

Lines Matching refs:nextHeader

687         SIPHeader nextHeader;
701 nextHeader = (SIPHeader) headerIterator.next();
702 if (nextHeader instanceof From
703 || nextHeader instanceof To
704 || nextHeader instanceof ViaList
705 || nextHeader instanceof CallID
706 || (nextHeader instanceof RecordRouteList && mustCopyRR(statusCode))
707 || nextHeader instanceof CSeq
709 || nextHeader instanceof TimeStamp) {
713 newResponse.attachHeader((SIPHeader) nextHeader.clone(), false);
817 SIPHeader nextHeader;
824 nextHeader = (SIPHeader) headerIterator.next();
825 if (nextHeader instanceof RouteList) {
830 } else if (nextHeader instanceof ProxyAuthorization) {
834 } else if (nextHeader instanceof ContentLength) {
836 nextHeader = (SIPHeader) nextHeader.clone();
838 ((ContentLength) nextHeader).setContentLength(0);
841 } else if (nextHeader instanceof ContentType) {
845 } else if (nextHeader instanceof CSeq) {
851 CSeq cseq = (CSeq) nextHeader.clone();
856 nextHeader = cseq;
857 } else if (nextHeader instanceof To) {
859 nextHeader = responseToHeader;
861 nextHeader = (SIPHeader) nextHeader.clone();
863 } else if (nextHeader instanceof ContactList || nextHeader instanceof Expires) {
866 } else if (nextHeader instanceof ViaList) {
873 nextHeader = (SIPHeader) ((ViaList) nextHeader).getFirst().clone();
875 nextHeader = (SIPHeader) nextHeader.clone();
879 newRequest.attachHeader(nextHeader, false);
981 SIPHeader nextHeader = (SIPHeader) headerIterator.next();
984 if (nextHeader instanceof CSeq) {
985 CSeq newCseq = (CSeq) nextHeader.clone();
986 nextHeader = newCseq;
991 } else if (nextHeader instanceof ViaList) {
992 Via via = (Via) (((ViaList) nextHeader).getFirst().clone());
994 nextHeader = via;
996 } else if (nextHeader instanceof To) {
997 To to = (To) nextHeader;
999 nextHeader = new From(to);
1000 ((From) nextHeader).removeTag();
1002 nextHeader = (SIPHeader) to.clone();
1003 ((To) nextHeader).removeTag();
1005 } else if (nextHeader instanceof From) {
1006 From from = (From) nextHeader;
1008 nextHeader = new To(from);
1009 ((To) nextHeader).removeTag();
1011 nextHeader = (SIPHeader) from.clone();
1012 ((From) nextHeader).removeTag();
1014 } else if (nextHeader instanceof ContentLength) {
1015 ContentLength cl = (ContentLength) nextHeader.clone();
1020 nextHeader = cl;
1021 } else if (!(nextHeader instanceof CallID) && !(nextHeader instanceof MaxForwards)) {
1030 newRequest.attachHeader(nextHeader, false);