-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserAgent.hangup() throws ClassCastException: NameAddress cannot be cast to String #32
Comments
I think I identified the problem: A header was constructed with a list of addresses instead of a list of string due to an unsafe cast. See 3270920 Could you re-test this situation? |
@haumacher thank you so much for you effort again, I applied the fix from 3270920, but I’m still encountering an issue when calling It looks like the transport layer is unable to establish a connection when attempting to send the BYE request. The error occurs in Let me know if you have any suggestions, or if you need more details from my side. Thanks!
|
I would suggest to verify that the correct address is contacted in TcpTransport.createTransportConnection(TcpTransport.java:138) |
When attempting to call the
hangup
method inorg.mjsip.ua.UserAgent
, aClassCastException
is thrown. This seems to occur when the code attempts to cast aNameAddress
object to aString
. This error happens when callinghangup
directly or when it is triggered by the auto hangup timer. However, hanging up a call that has not yet been accepted inside thepublic void onUaIncomingCall(UserAgent ua, NameAddress callee, NameAddress caller, MediaDesc[] media_descs)
method is declined with no issue.Exception Stack Trace:
Note: Hanging up a call that has not been accepted yet inside
onUaIncomingCall
works without issue.Please let me know if you need more details. Thank you!
The text was updated successfully, but these errors were encountered: