Skip to content
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

REGISTER请求解析异常 #34

Open
neverdawang opened this issue Aug 24, 2023 · 2 comments
Open

REGISTER请求解析异常 #34

neverdawang opened this issue Aug 24, 2023 · 2 comments

Comments

@neverdawang
Copy link

接收到SIP REGISTER请求后,这行代码赋值抛异常:
1692876926966
1692876951616

@neverdawang
Copy link
Author

异常信息:System.InvalidCastException:“Unable to cast object of type 'SIPSorcery.SIP.SIPMessageBuffer' to type 'GB28181.SIPMessage'.”

消息解析过程感觉挺正常的,解析完返回值是:
1692877733977

@neverdawang
Copy link
Author

neverdawang commented Aug 25, 2023

上面的问题是试图把基类对象强转成子类导致的。
修改了一下,可以拿到数据了。

但紧接着后面的parse函数直接无限递归了:

1692934280174

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant