Skip to content

Conversation

@josephfrazier
Copy link
Contributor

Test with

cd /tmp
rm -rf node_modules
npm install onsip/SIP.js#prerelease-0.6.0
cd node_modules/sip.js
npm install
grunt

You can also use bower:

cd /tmp
rm -rf bower_components
bower install onsip/SIP.js#prerelease-0.6.0

image

joseph-onsip and others added 30 commits April 29, 2014 18:00
Fixed a small problem where the search/replace regex to alter the sdp
from sendrecv to sendonly or inactive was missing the newlines.
Fixed sendrecv regex issue
Also fix related Session.js logic, testing

Conflicts:
	src/Session.js
Move browser prefixing into SIP.Utils
Will Mitchell and others added 27 commits June 23, 2014 12:17
WebRTC.MediaHandler: peerConnection.onaddstream emits 'addStream' event
InviteServerContext fires Accepted when accepting

fixes #15
fixes #48

To migrate applications, replace:

  session.on('referred', referFollowed);

with:

  session.on('refer', session.followRefer(referFollowed));
This argument:

* was removed from the current draft WebRTC spec: https://goo.gl/yqgml3 (no. 16)
* was optional before it was removed: https://goo.gl/6n5v0I
* doesn't seem useful to applications

Also, this facilitates compatibility with WebRTC plugins (such as Temasys's)
that cause an error if the argument is passed.
Session: on re-INVITE, send 488 instead of calling this.receiveReinvite

fixes #19
WebRTC.MediaHandler: don't pass constraints to peerConnection.addStream
src/Session.js: Replace 'referred' event with 'refer' handler helper
This provides basic compatibility with the Temasys WebRTC plugin.
When sending SIP messages with "special characters" e.g. "äöü",
the "Content-Length" of the body needs to be correct. (Content-length
mis-match). Before this change, the byte count was wrong e.g.

"ä" => 1 instead of 2

I wrote a couple of examples in "SpecSIPMessage" and double checked them
with MRI (Ruby 2.0.0).

Thanks to [Tgr](http://stackoverflow.com/a/2848483/980524)
Fixes the way utf8 string length is counted.
I noticed some specs in SpecSIPMessage were not yet implemented.
They assert what was written in the corresponding 'it' blocks, with one
exception:

if a header is neither in headers nor extraHeaders,

    .getHeaders()

returns an empty array, but the spec said it should return 'undefined'.
I think an emtpy array makes more sense though. Let me know if you
disagree and I'll change it.
also, Dialog.sendRequest returns the sent request
git add -f dist/sip.js dist/sip.min.js
josephfrazier pushed a commit that referenced this pull request Jul 8, 2014
@josephfrazier josephfrazier merged commit f9ee9a9 into release Jul 8, 2014
@wakamoleguy wakamoleguy deleted the prerelease-0.6.0 branch July 22, 2014 13:22
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

Successfully merging this pull request may close these issues.

7 participants