Re: To: Miguel Feitas (Package gov.nist.javax.sip.header.ims )
Lebing Xie <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Organization | Fraunhofer FOKUS Berlin |
| Message-ID | <1158065413.15525.2.camel@localhost> |
Hallo, I have same problem, seemed by all IMS P-Headers. getHeader(String) return a ExtensionHeaderImpl (implements ExtensionHeader interface) instance, got the classcast error, for the P-Headers implements ExtensionHeader interface also. urs Lebing On Sun, 2006-09-10 at 18:27 -0400, M. (Neo-Ranga) Ranganathan wrote: > I fixed something. Give it a try now and let us know if it works. > Please enter a java.net issue if you still have trouble with it. > > Ranga > > On 9/9/06, CaRoLiNa BeNaViDeS CaBReRa <[email protected]> wrote: > > > > Hi. > > > > I have a problem with the interfaces of package > > gov.nist.javax.sip.header.ims, I can't get the headers of this package. > > My code is: > > public void processRegister(Request request, ServerTransaction > > serverTransaction, SipProvider sipProvider){ > > try{ > > ToHeader to = (ToHeader)request.getHeader("To"); > > String publicIdentity = to.getAddress().toString(); > > VisitedNetworkIDHeader visited = (VisitedNetworkIDHeader) > > request.getHeader("P-Visited-Network-ID"); > > String visitedNetworkIdentifier = visited.getVisitedNetworkID(); > > ... and more > > } > > > > > > And launch this exception: > > > > java.lang.ClassCastException: > > gov.nist.javax.sip.header.ExtensionHeaderImpl > > at control.I_CSCF.processRegister(I_CSCF.java:94) > > at control.I_CSCF.processRequest(I_CSCF.java:83) > > at control.CSCF.processRequest(CSCF.java:396) > > at gov.nist.javax.sip.EventScanner.deliverEvent > > (EventScanner.java:185) > > at > > gov.nist.javax.sip.EventScanner.run(EventScanner.java:426) > > at java.lang.Thread.run(Unknown Source) > > > > Can you help me? > > Thanks > > > > _______________________________________________ > > nist-sip mailing list > > [email protected] > > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > > > > > > >