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

choose UPDATE/RE-INVITE on sending session refresh request #384

Closed
wants to merge 9 commits into from

Conversation

michelepra
Copy link

as RFC 4028 refresher can send re-INVITE or UPDATE.
Introduce JsSIP SIP
User Agent parameters (session_timers_use_update) to enable/disable
UPDATE in session refresh request

as RFC 4028 refresher can send re-INVITE or UPDATE, introduce JsSIP SIP
User Agent parameters (session_timers_use_update) to enable/disable
UPDATE in session refresh request
@ibc
Copy link
Member

ibc commented Jun 24, 2016

There is a good reason for usunge UPDATE for session timers rather then reINVITE:

The purpose of session timers is to keep the signaling open and be able to check it. Using UPDATE for that is perfect. In the other side, using reINVITE means renegotiating the SDP session (because the INVITE/200/ACK must handle a SDP Offer/Answer) which is 100% unnecessary if the only we need is to check the session status.

Also, your pull request makes reINVITE the default session timers mechanism, which changes the current default settings.

I'm sorry but I strongly consider that using UPDATE for session timers is the proper way to go and, given that we are in 2016, I hope SIP servers, proxies and endpoints MUST implement the UPDATE method (defined in RFC 3311 in 2002, 14 years ago).

@ibc ibc closed this Jun 24, 2016
@michelepra
Copy link
Author

michelepra commented Jul 8, 2016

I agree with you @ibc that is better of use UPDATE rather reINVITE but the purpose of RFC is to define an Internet Standard, and in software engineering follow standard was the goal for every developer.

If you write that jsSIP support RFC 4028 this mean that i dont trouble to check that all thing of this RFC was developed (or you must specify what is or not is present).
If, for some reason, i need reINVITE i hope to use this by valorizing some parameter.

Also, your pull request makes reINVITE the default session timers mechanism, which changes the current default settings.

Absolutely no, check again the code, new parameter name was

session_timers_use_update

and default value is true. This mean that default session timers mechanism remaining UPDATE

@ibc
Copy link
Member

ibc commented Jul 10, 2016

OK, let us recheck it during this week.

@ibc ibc reopened this Jul 10, 2016
@ibc
Copy link
Member

ibc commented Nov 15, 2016

@jmillan any thoughts on this?

@jmillan
Copy link
Member

jmillan commented Nov 15, 2016

I'm ok with this PR. 👍

Copy link
Member

@ibc ibc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michelepra please fix the issues detected in the review, and run gulp lint to check that the code style is correct.

var expires = this.sessionTimers.currentExpires;
var self = this,
expires = this.sessionTimers.currentExpires,
eventHandlers;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, put each variable declaration in a single line var xxx = xxx;.

succeeded: function (response) {
handleSessionTimersInIncomingResponse.call(self, response);
}
};

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here there is a mix of tabs and spaces. Please, use two spaces for indentation.

sendReinvite.call(self, {
eventHandlers: eventHandlers
});
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, mix of tabs and spaces. Use two spaces, please.

@michelepra
Copy link
Author

Many time passed from last review, now i correct file as requested

@michelepra
Copy link
Author

+1

michelepra and others added 5 commits October 20, 2017 12:13
Decouple signaling and WebRTC stuff versatica#427
rpid parser
add async modifier for local and remote description
add option to use reinvite instead update for session timer
@jmillan
Copy link
Member

jmillan commented Oct 31, 2017

Hi @michelepra,

Would you create a new clean PR out of current master? I could do it otherwise.

@michelepra
Copy link
Author

i will create new PR next week. Before i must generate new clone of master because my branch now include fix of #427 and other minor change (it would not be bad idea if is integrated into jssip master)

@jmillan
Copy link
Member

jmillan commented Oct 31, 2017

Thanks, no hurries.

We would honestly like to do the decoupling ourselves. We have now more experience than we had before and more clear ideas on how to do it.

@jmillan
Copy link
Member

jmillan commented Nov 9, 2017

@michelepra, for me it would be easy to do the port: just in case you don't want to mess up with it.

@michelepra
Copy link
Author

ok, sorry @jmillan this week i'm extremly full, no time to work on this. If you want close this pr and do the port, for me nothing change. Very interesting thing in my branch is decoupling, that work very well in production with nodejs enviroment, but i'd like someday to use official code to do same thing. Any plan when release?

@jmillan
Copy link
Member

jmillan commented Nov 10, 2017

Landed in 3.1.0.

Thanks!

@jmillan jmillan closed this Nov 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants