Re: How do i duplicate SIP Headers in the request and response
"Parasuraman Kumarasami" <[email protected]> Tue, 9 Dec 2008 09:34:51 +0530
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
--===============1032359463698190205== Content-Type: multipart/alternative; boundary="----=_Part_58676_2499864.1228795491208" ------=_Part_58676_2499864.1228795491208 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Ranganathan!. As we are developing the UAS for the SIP Application, we need to check the duplication of all the header to test the UAC behaviour. so that we are duplicating the SIP Headers!! Regards Parasuraman On Tue, Dec 9, 2008 at 1:50 AM, M. Ranganathan <[email protected]> wrote: > Why on earth would you want to add duplicates of the CSeq header? > There is only one of those allowed. You cannot add multiple cseq > headers. > > > On Mon, Dec 8, 2008 at 7:03 AM, Parasuraman Kumarasami > <[email protected]> wrote: > > Hi All, > > > > I want to duplicate SIP headers using Jain SIP Stack. > > Am not able to do so while creating a response using the > > below mentioned code. > > > > CSeqHeader c = (CSeqHeader) res.getHeader(CSeqHeader.NAME); > > res.addHeader(c); > > res.addHeader(c); > > res.addHeader(c); > > res.addHeader(c); > > res.addHeader(c); > > > > My expected output is as follows: > > > > SIP/2.0 401 Unauthorized > > Call-ID: [email protected] > > Cseq: 4 REGISTER > > Cseq: 4 REGISTER > > Cseq: 4 REGISTER > > Cseq: 4 REGISTER > > Cseq: 4 REGISTER > > From: <sip:[email protected] <sip%[email protected]>>;tag=3c001267 > > To: <sip:[email protected] <sip%[email protected]>>;tag=39a87697 > > Via: SIP/2.0/UDP > > 127.0.0.1:5060;branch=z9hG4bKb1cb0d9875ef7b7b38000a0e7ac13055 > > Contact: "UserA" <sip:[email protected]:5070;transport=udp> > > Content-Length: 0 > > > > Pls tell me where I go wrong. > > > > Thanks in Advance..!! > > > > Regard's > > Parasuraman > > _______________________________________________ > > nist-sip mailing list > > [email protected] > > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > > > > > -- > M. Ranganathan > ------=_Part_58676_2499864.1228795491208 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Ranganathan!.<br><br>As we are developing the UAS for the SIP Application, we need to check the duplication of all the header to test the UAC behaviour.<br>so that we are duplicating the SIP Headers!!<br><br>Regards<br> Parasuraman<br><br><div class="gmail_quote">On Tue, Dec 9, 2008 at 1:50 AM, M. Ranganathan <span dir="ltr"><<a href="mailto:[email protected]">[email protected]</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Why on earth would you want to add duplicates of the CSeq header?<br> There is only one of those allowed. You cannot add multiple cseq<br> headers.<br> <div><div></div><div class="Wj3C7c"><br> <br> On Mon, Dec 8, 2008 at 7:03 AM, Parasuraman Kumarasami<br> <<a href="mailto:[email protected]">[email protected]</a>> wrote:<br> > Hi All,<br> ><br> > I want to duplicate SIP headers using Jain SIP Stack.<br> > Am not able to do so while creating a response using the<br> > below mentioned code.<br> ><br> > CSeqHeader c = (CSeqHeader) res.getHeader(CSeqHeader.NAME);<br> > res.addHeader(c);<br> > res.addHeader(c);<br> > res.addHeader(c);<br> > res.addHeader(c);<br> > res.addHeader(c);<br> ><br> > My expected output is as follows:<br> ><br> > SIP/2.0 401 Unauthorized<br> > Call-ID: <a href="mailto:[email protected]">[email protected]</a><br> > Cseq: 4 REGISTER<br> > Cseq: 4 REGISTER<br> > Cseq: 4 REGISTER<br> > Cseq: 4 REGISTER<br> > Cseq: 4 REGISTER<br> > From: <<a href="mailto:sip%[email protected]">sip:[email protected]</a>>;tag=3c001267<br> > To: <<a href="mailto:sip%[email protected]">sip:[email protected]</a>>;tag=39a87697<br> > Via: SIP/2.0/UDP<br> > 127.0.0.1:5060;branch=z9hG4bKb1cb0d9875ef7b7b38000a0e7ac13055<br> > Contact: "UserA" <sip:[email protected]:5070;transport=udp><br> > Content-Length: 0<br> ><br> > Pls tell me where I go wrong.<br> ><br> > Thanks in Advance..!!<br> ><br> > Regard's<br> > Parasuraman<br> </div></div>> _______________________________________________<br> > nist-sip mailing list<br> > <a href="mailto:[email protected]">[email protected]</a><br> > <a href="http://www-x.antd.nist.gov/mailman/listinfo/nist-sip" target="_blank">http://www-x.antd.nist.gov/mailman/listinfo/nist-sip</a><br> ><br> <br> <br> <br> --<br> <font color="#888888">M. Ranganathan<br> </font></blockquote></div><br> ------=_Part_58676_2499864.1228795491208-- --===============1032359463698190205== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ nist-sip mailing list [email protected] http://www-x.antd.nist.gov/mailman/listinfo/nist-sip --===============1032359463698190205==--