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

连接断开的时候没有重新监听事件 #32

Open
wenfer opened this issue Jul 26, 2023 · 5 comments
Open

连接断开的时候没有重新监听事件 #32

wenfer opened this issue Jul 26, 2023 · 5 comments

Comments

@wenfer
Copy link

wenfer commented Jul 26, 2023

freeswitch不知道为啥,大概一天会断开一次连接,重新连上的时候之前监听的事件就收不到了。
我试过用ServerConnectionListener在连接连上的时候去监听,但好像这个事件发生的时候,client还没有初始化,调用监听事件会报没有权限,所以我现在是加了异步延时去弄,这个问题有其他好的办法解决吗

@zhouhailin
Copy link
Owner

这个需要看下日志,按照当前设计会自动重新连接上并订阅相应的事件

@wenfer
Copy link
Author

wenfer commented Aug 3, 2023

这个需要看下日志,按照当前设计会自动重新连接上并订阅相应的事件

我的版本是1.6.7.RELEASE,目前看下来没有自动重新订阅

@VIHATTeam
Copy link

i have same situation, any suggest @zhouhailin

@wenfer
Copy link
Author

wenfer commented Oct 31, 2023

<!--StartFragment-->

2023-10-31 09:15:16 |  
-- | --
  |   | 2023-10-31 09:15:16 | at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_212]
  |   | 2023-10-31 09:15:16 | at ServerConnectionListenerImpl.lambda$onOpened$0(ServerConnectionListenerImpl.java:34) ~[call-manager-1.0-SNAPSHOT.jar!/:1.0-SNAPSHOT]
  |   | 2023-10-31 09:15:16 | at com.sun.proxy.$Proxy183.setEventSubscriptions(Unknown Source) ~[na:na]
  |   | 2023-10-31 09:15:16 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205) ~[spring-aop-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
  |   | 2023-10-31 09:15:16 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.2.5.RELEASE.jar!/:5.2.5.RELEASE]
  |   | 2023-10-31 09:15:16 | at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_212]
  |   | 2023-10-31 09:15:16 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_212]
  |   | 2023-10-31 09:15:16 | at sun.reflect.GeneratedMethodAccessor715.invoke(Unknown Source) ~[na:na]
  |   | 2023-10-31 09:15:16 | at link.thingscloud.freeswitch.esl.inbound.NettyInboundClient.setEventSubscriptions(NettyInboundClient.java:135) ~[freeswitch-esl-1.6.7.RELEASE.jar!/:na]
  |   | 2023-10-31 09:15:16 | at link.thingscloud.freeswitch.esl.inbound.NettyInboundClient.getAuthedHandler(NettyInboundClient.java:41) ~[freeswitch-esl-1.6.7.RELEASE.jar!/:na]
  |   | 2023-10-31 09:15:16 | at link.thingscloud.freeswitch.esl.inbound.AbstractInboundClient.getAuthedHandler(AbstractInboundClient.java:261) ~[freeswitch-esl-1.6.7.RELEASE.jar!/:na]
  |   | 2023-10-31 09:15:16 | link.thingscloud.freeswitch.esl.exception.InboundClientException: inbound handler is not authed for addr : 192.168.3.3:8021

<!--EndFragment-->

@wenfer
Copy link
Author

wenfer commented Oct 31, 2023

@zhouhailin 好像每隔一段时间就会出这个错,我在代码中重新订阅也订阅不上,就会报这个错

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

3 participants