git add plugin.xml

This will allow SIP.js to be used as a Cordova plugin as follows:

Shell:

  cordova plugin add com.sipjs # once it's published to the registry
  # The following lines are needed for media support:
  cordova plugin add https://github.com/alongubkin/phonertc
  cordova plugin add com.sipjs.phonertc # This is already published to the registry

JS:

  var SIP = cordova.require('com.sipjs.sipjs');
  # The following line is needed for media support:
  var PhoneRTCMediaHandler = cordova.require('com.sipjs.phonertc.mediahandler')(SIP);
  var ua = new SIP.UA({
    # The following line is needed for media support:
    mediaHandlerFactory: PhoneRTCMediaHandler
  });
plugin.xml: fix path to dist/sip.js
Bump version to 0.6.2
Merge pull request #81 from joseph-onsip/prerelease062

Bump version to 0.6.2
plugin.xml: change id to "com.onsip.sipjs"

See #83
src/SIP.js: remove '.js' from require paths
Let modules require() their own dependencies:

- LoggerFactory requires Logger
- Session requires Session/DTMF
- WebRTC requires WebRTC/MediaHandler and WebRTC/MediaStreamManager
- Dialogs requires Dialog/RequestSender

see https://github.com/joseph-onsip/SIP.js/commit/67f7128382bda905d646f617733b50ca5d88b8ea
More dependency cleanup:

- Transport module depends on WebSocket, not window
- LoggerFactory module depends on window.console, not window
- Hacks module does not depend on window
- SIP.js: pass window only to modules that depend on it

see https://github.com/joseph-onsip/SIP.js/commit/b6bb050745f07437703829675627d36fa20f236c
src/Dialogs.js: remove '.js' from require path

see 46d3a1ca218a54b91c6e8e44c7ca2d22873b01eb
Pass logger from MediaHandler to MediaStreamManager

This makes {log: {builtInEnabled: false}} work for userMedia-related logs.

See https://groups.google.com/forum/#!msg/sip_js/85bNIhix_2A
Cordova plugin uses src/SIP.js as its module

This addresses #83 as described in item 1 of https://github.com/onsip/SIP.js/issues/83#issue-39390817
Updated Jasmine to 2.0.1 for more stability (note: do not use xdescribe)
Grammar: parse entire event-type into a string

fixes #84
src/EventEmitter.js: remove unused Event constructor
Subscriptions now emit accepted (thanks avillaci)
Allow outgoing Subscriptions that expire in under 3600 seconds

This addresses:

  https://groups.google.com/forum/#!msg/sip_js/TshLqnjmjKY/uMXb6aihu3oJ

Note that RFC 6665 does not require subscriptions to last an hour, it merely
allows notifiers to reject subscriptions that are shorter:

  http://tools.ietf.org/html/rfc6665#page-18
removed old subscriptions on resubscribe
Add reminders to clean up Cordova metadata when possible
Update MediaHandler.js - Fix Chrome HOLD.

Fix the chrome hold by allowing it to fire the readySuccess() when connection state is completed, not connected (guessing this is a Chrome assignment issue?)
Merge pull request #88 from Destreyf/master

Update src/WebRTC/MediaHandler.js - Fix Chrome HOLD.