Re: creating a address by AddressFactory
"M. Rangnathan" <[email protected]> Mon, 22 Jan 2007 11:00:23 -0500
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Park, There are no parameters associated with Address. The parameters are associated with an AddressParametersHeader. So if you create an Address using that String like you have done, the parameters are being ignored. Actually , it *should* throw an exception but instead it is silently ignoring the parameters. Ranga Young-Geun Park wrote: >There is no exception. >I looked over codes; >In AddressParser.address() method, I guess that codes related to uri exist, >but codes related to parameter do not exist. > >But, is there any my fault? > >May I trouble you to check this? > >Regards, >Park > >-----Original Message----- >From: M. Ranganathan [mailto:[email protected]] >Sent: Friday, January 19, 2007 12:47 AM >To: Young-Geun Park >Cc: [email protected] >Subject: Re: [nist-sip] creating a address by AddressFactory > > >Park, > >You should have got an exception (but did not -- which is the real bug >:-) ). > >Anyway > >"Alice Kim <sip:[email protected];dept=sales;gender=female>" > >Should work. > >Ranga > >Young-Geun Park wrote: > > > >>Hi, all >> >>I tried to create a address as follows: >> >>String addrString = "Alice Kim <sip:[email protected]>;dept=sales;female"; >> >>javax.sip.address.Address addr = >>AddrAddressFactory.createAddress(addrString); >> >>Bug, addr object has not parameters: dept=sales, female. >> >>What is the problem? >> >>Regards, >> >>Park >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>nist-sip mailing list >>[email protected] >>http://www-x.antd.nist.gov/mailman/listinfo/nist-sip >> >> >> >> > > > > -- M. Ranganathan Advanced Networking Technologies Division, National Institute of Standards and Technology (NIST), 100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. tel:301 975 3664 , fax:301 590 0932 http://w3.antd.nist.gov/ Advanced Networking Technologies For the People!