diff --git a/CHANGELOG.md b/CHANGELOG.md index 154345f..fdf1074 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,12 @@ JSJaCJingle.js Changelog Here's the log of what has changed over the JSJaCJingle.js releases. -v0.8.0 (Development) --------------------- +v0.7.6 (Oct 13, 2014) +--------------------- - * (...) + * **In a nutshell** + * **[XEP-0353](http://xmpp.org/extensions/xep-0353.html)** (full support) @valeriansaliou + * **WebRTC SDP messages parsing fixed** for Chrome 38+ @valeriansaliou v0.7.5 (Oct 3, 2014) @@ -134,4 +136,4 @@ v0.1.0 (Jun 27, 2013) * **[XEP-0320](http://xmpp.org/extensions/xep-0320.html)** (full support) @valeriansaliou -**For more information about what changed through time, check the changes made to our source code on GitHub: https://github.com/valeriansaliou/jsjac-jingle/commits/master** \ No newline at end of file +**For more information about what changed through time, check the changes made to our source code on GitHub: https://github.com/valeriansaliou/jsjac-jingle/commits/master** diff --git a/package.json b/package.json index b508516..2818d8d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jsjac-jingle", "description": "JSJaC Jingle library, implementation of XEP-0166.", - "version": "0.7.5", + "version": "0.7.6", "homepage": "https://github.com/valeriansaliou/jsjac-jingle", "license": "MPL 2.0", diff --git a/src/jsjac.jingle.base.js b/src/jsjac.jingle.base.js index a52d8e1..da7df75 100644 --- a/src/jsjac.jingle.base.js +++ b/src/jsjac.jingle.base.js @@ -755,7 +755,10 @@ var __JSJaCJingleBase = ring.create( }, function(e) { - if(_this.get_sdp_trace()) _this.get_debug().log('[JSJaCJingle:base] _peer_got_description > SDP (local:error)' + '\n\n' + (e.message || e.name || 'Unknown error'), 4); + var error_str = (typeof e == 'string') ? e : null; + error_str = (error_str || e.message || e.name || 'Unknown error'); + + if(_this.get_sdp_trace()) _this.get_debug().log('[JSJaCJingle:base] _peer_got_description > SDP (local:error)' + '\n\n' + error_str, 1); // Error (descriptions are incompatible) } @@ -1035,8 +1038,8 @@ var __JSJaCJingleBase = ring.create( * @returns {Array} Stanza handler */ get_registered_handlers: function(node, type, id) { - if(id && node in this._registered_handlers && - type in this._registered_handlers[node] && + if(id && node in this._registered_handlers && + type in this._registered_handlers[node] && typeof this._registered_handlers[node][type][id] == 'object') return this._registered_handlers[node][type][id]; @@ -1754,4 +1757,4 @@ var __JSJaCJingleBase = ring.create( this._debug = debug; }, } -); \ No newline at end of file +);