Skip to content
Permalink
Browse files

Fix #54. Allow configuration.uri username start with 'sip'

  • Loading branch information
jmillan committed Feb 1, 2013
1 parent 6f4b067 commit 37fe9f4edca34ffaaa1a421d5c7dcb7d1f4a7446
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/UA.js
@@ -708,7 +708,8 @@ JsSIP.UA.prototype.loadConfig = function(configuration) {
//for this instance.
settings.jssip_id = Math.random().toString(36).substr(2, 5);

uri = JsSIP.grammar.parse(settings.uri, 'lazy_uri');
uri = JsSIP.Utils.createURI(settings.uri);
settings.from_uri = uri.toAor();

settings.user = uri.user;
settings.domain = uri.host;
@@ -718,9 +719,6 @@ JsSIP.UA.prototype.loadConfig = function(configuration) {
settings.authorization_user = settings.user;
}

// Create the From uri
settings.from_uri = (uri.scheme ? '':'sip:') + settings.uri;

// User no_answer_timeout
settings.no_answer_timeout = settings.no_answer_timeout * 1000;

0 comments on commit 37fe9f4

Please sign in to comment.
You can’t perform that action at this time.