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

"CaRoLiNa BeNaViDeS CaBReRa" <[email protected]>
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
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
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.