Re: To: Miguel Feitas (Package gov.nist.javax.sip.header.ims )

"M. (Neo-Ranga) Ranganathan" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
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
>
>
>


-- 
M. Ranganathan
"There are two ways to write error-free programs; only the third one
works." --  Alan Perlis
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.