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

Presence Events not Received from FreeSWITCH #184

Closed
lylepratt opened this issue Jun 9, 2015 · 16 comments
Closed

Presence Events not Received from FreeSWITCH #184

lylepratt opened this issue Jun 9, 2015 · 16 comments

Comments

@lylepratt
Copy link

Hi guys,

We had this working nicely, but suddenly it has stopped working, I believe since we updated to the latest SIP.js release. We're subscribing to presence events via SIP.js. I can see the subscriptions being received by FreeSWITCH with a 202 Accepted, but I never receive any events via the notify event.

Just wondering if others have had this issue, or if there is something known that is preventing this from working now.

@lylepratt
Copy link
Author

Extra bit of info: This could also be because we are now using TLS (wss://).

@lylepratt
Copy link
Author

We've confirmed that FreeSWITCH is sending out the NOTIFY events, but they are timing out and are never received by SIP.js.

@lylepratt
Copy link
Author

OK. We've narrowed this down to a TLS issue. Basically when using wss:// with SIP.js + FS, FS is unable to reach SIP.js with the Notify events. Instead they just timeout.

@lylepratt
Copy link
Author

This seemed related:
http://lists.sip-router.org/pipermail/sr-users/2014-July/084157.html

So, we tried to enable NDLB-force-rport on the FS profile, but it did not help.

Surely you guys have encountered this before? Any tips?

@thomasquintana
Copy link

+1

@wakamoleguy
Copy link
Contributor

Hi Lyle,

Sorry for the delay in response. It seemed like you were making some progress in tracking it down, and we unfortunately don't have experience with this setup. Internally, we only use FreeSWITCH for media functionality, and keep presence events in our SIP proxy layer.

I have seen FreeSWITCH do some weird things with TLS before, though, and so I'm not terribly surprised. Can you tell if it is a network issue, or if FreeSWITCH is refusing to put data onto the WebSocket? It definitely seems weird.

-Will

@lylepratt
Copy link
Author

Does not appear to be a network issue. Works fine when not using wss:// protocol. NOTIFY events from FS just eventually time out.

According to the link I posted above, Kamailio has the same problem with sending NOTIFY events to SIP.js. On Kamailio, this is required: fix_nated_contact() must be run for both REGISTER and SUBSCRIBE.

However, I'm not really sure WHY that is required at all, and why is it only required when using SIP.js?

@lylepratt
Copy link
Author

Hi guys. We still have not resolved this issue, so we opened a ticket with FreeSWITCH. You can find it here: https://freeswitch.org/jira/browse/FS-7680

We've also included detailed logs of requests via ws and wss in the ticket.

@lylepratt
Copy link
Author

I would appreciate it if anyone would upvote the issue we've filed on Jira. Basically presence is completely broken with SIP.js and FreeSWICH over WSS. Its a very important issue we need to get resolved, and some support via Jira would help!

@Destreyf
Copy link
Contributor

lylepratt can you confirm something for me, are you using NDLB-connectile-dysfunction ANYWHERE, in your extensions/users, your sofia profiles, trunks, gateways anything... this has been a pain for me, but presence works fine over ws, but with wss its broken if using NDLB-connectile-dysfunction in any part of the system. #90

@lylepratt
Copy link
Author

Howdy. We do use NDLB-connectile-dysfunction in other profiles, but not the registration profiles we are using for WebRTC connections. Does that still make a difference in your tests?

@wakamoleguy
Copy link
Contributor

Hey Lyle. I noticed that the FreeSwitch ticket didn't get much traction. Any chance you worked this one out?

@lylepratt
Copy link
Author

No we ended up writing our own method to catch evens via the event socket. :(

@wakamoleguy
Copy link
Contributor

That's a shame, although I'm glad you have a workaround. I'll keep this open, but label accordingly (from our perspective).

@egreenmachine
Copy link
Collaborator

Since this was tracked down to be a FreeSWITCH issue I am going to close the ticket. Feel free to continue the thread if there are any more questions.

@zek
Copy link

zek commented Feb 13, 2020

So do we have any solutions either on FS or SIP.js?

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

No branches or pull requests

6 participants