-
Notifications
You must be signed in to change notification settings - Fork 748
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
Possible extension: SIP SUBSCRIBE/NOTIFY dialog #708
Comments
Hi, Which RFC does it implement and to which extent? What is it missing from the spec, if any? NOTE: In order for this to be considered for a PR it should respect the current JsSIP syntax and format. |
Hi José, It's RFC 6665 SIP-Specific Event Notification I think I mostly implemented the RFC, but it should be checked.... Missed in current implementation:
Not everyone needs SUBSCRIBE dialog, so to keep JsSIP small, the class that implements the ClientSubscribeDialog dialog located in the user's code, not in JsSIP. Other reason not include ClientSubscribeDialog to JsSIP code: |
<edited, now subscribe dialog implementation moved from test to JsSIP code> JsSIP extension that enable using the SUBSCRIBE/NOTIFY : https://github.com/ikq/JsSIP/tree/subscribe_support
Browser test:
Note: To run provided test please use your SIP server and two user accounts. The server must be configured to forward SUBSCRIBE and NOTIFY from one registered user to other. In the test SIP server address set in format: |
@ikq, Due to the generic nature of the specification, I think this could become part of JsSIP. At the same level as RTCSession. There are two clear implementation parts: If you are willing to do this effort, honor the current code style, variable naming, spacing, new lines, logging, etc. Comment the code as needed. Also, use @ibc, what's your opinion on this one? |
I added the Subscriber.js and Notifier.js to JsSIP clone and updated the test Тhe main part of the code is ready, I'm thinking about small improvements:
By the way: the SUBSCRIBE refreshing interval is different from that you use to REGISTER - to continue work even if timer resolution is 60 seconds. |
beta is ready. Remaining debugging & bug fixes and improvements (if you suggest them) |
Thanks @ikq! Let us some days to check it. I'll review it after the weekend. |
When will it be released? Will JsSIP have subscriber/publish available soon? |
@jmillan Do you have an update for us? Any chance this will be implemented soon? :) |
I need to come back and review it again. I'll try to get some time for this. |
Hi |
SIP SUBSCRIBE/NOTIFY dialog implemented in user (not JsSIP) code.
For this to JsSIP added arbitrary client transaction:
JsSIP modifications:
UA.js: added method:
To allow different from REGISTER authentication realm to RequestSender added argument credential.
The modification is optional.
The text was updated successfully, but these errors were encountered: