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">&lt;<a href="mailto:[email protected]">[email protected]</a>&gt;</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. &nbsp;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>
&lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; Hi All,<br>
&gt;<br>
&gt; I want to duplicate SIP headers using Jain SIP Stack.<br>
&gt; Am not able to do so while creating a response using the<br>
&gt; below mentioned code.<br>
&gt;<br>
&gt; CSeqHeader c = (CSeqHeader) res.getHeader(CSeqHeader.NAME);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res.addHeader(c);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res.addHeader(c);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res.addHeader(c);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res.addHeader(c);<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; res.addHeader(c);<br>
&gt;<br>
&gt; My expected output is as follows:<br>
&gt;<br>
&gt; SIP/2.0 401 Unauthorized<br>
&gt; Call-ID: <a href="mailto:[email protected]">[email protected]</a><br>
&gt; Cseq: 4 REGISTER<br>
&gt; Cseq: 4 REGISTER<br>
&gt; Cseq: 4 REGISTER<br>
&gt; Cseq: 4 REGISTER<br>
&gt; Cseq: 4 REGISTER<br>
&gt; From: &lt;<a href="mailto:sip%[email protected]">sip:[email protected]</a>&gt;;tag=3c001267<br>
&gt; To: &lt;<a href="mailto:sip%[email protected]">sip:[email protected]</a>&gt;;tag=39a87697<br>
&gt; Via: SIP/2.0/UDP<br>
&gt; 127.0.0.1:5060;branch=z9hG4bKb1cb0d9875ef7b7b38000a0e7ac13055<br>
&gt; Contact: &quot;UserA&quot; &lt;sip:[email protected]:5070;transport=udp&gt;<br>
&gt; Content-Length: 0<br>
&gt;<br>
&gt; Pls tell me where I go wrong.<br>
&gt;<br>
&gt; Thanks in Advance..!!<br>
&gt;<br>
&gt; Regard&#39;s<br>
&gt; Parasuraman<br>
</div></div>&gt; _______________________________________________<br>
&gt; nist-sip mailing list<br>
&gt; <a href="mailto:[email protected]">[email protected]</a><br>
&gt; <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>
&gt;<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==--