JSLEE Discussions
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Error cast with SIP RA 2.5.0
Forum Index » JAIN SLEE Discussions
Author Message
pmf


Joined: 07/03/2018 01:44:58
Messages: 3
Offline

Hello

I use Rhino with SIP RA 2.5.0 but i have error with this code.
code:
ExtensionHeader referredBy = (ExtensionHeader) request.getHeader("Referred-By");

error:
java.lang.ClassCastException: com.opencloud.slee.resources.sip.header.ReferredByHeaderImpl cannot be cast to javax.sip.header.ExtensionHeader

Someone can help me?

This message was edited 2 times. Last update was at 08/08/2018 05:56:18

ben


Joined: 27/02/2008 13:51:28
Messages: 144
Location: NZ
Offline

The Referred-By header now has its own type, the interface com.opencloud.javax.sip.header.ReferredByHeader. That type was not present in older versions of the SIP RA.

Cheers
Ben

Ben Evans, Software Engineer, OpenCloud
[WWW]
pmf


Joined: 07/03/2018 01:44:58
Messages: 3
Offline

Thank you, It's OK
 
Forum Index » JAIN SLEE Discussions
Go to:   
Powered by JForum 2.1.8 © JForum Team