Re: Adding param to header

SiM <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
Hi Jagadeesh,
                         Use the setParameter API , on your From or To
Header, you will get what you want, if you use it on the SIP URI, you
will get the name = value; parameter as a part of the SIP URI itself ,
i believe u need it on the From or To header, so use the setParameter
API wherever you want.

All the best, and one more thing , there is documentation for all the
API's , if you look up that, you can learn a lot of things you do not
know :-) .

Cheers.
Simith




On 7/7/06, Jagadeesh Kannan Jayapal <[email protected]> wrote:
> HI all,
>
>
>
> I need to create a header that looks like this;
>
>
>
> From: sip:[email protected];user=node;alg=rsa-shal1;overlay=chat
>
>
>
>
>
> I used the following code to create the header; but not sure how to add
> parameters to the created header??
>
> Does Jain-Sip support doing so?
>
>
>
> SipURI fromAddress = addressFactory.createSipURI("7", "10.0.0.7");
>
> Address fromNameAddress = addressFactory.createAddress(fromAddress);
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.