Skip to content
Permalink
Browse files

Fix #89. Do not send a To tag in '100 Trying' responses.

  • Loading branch information
jmillan committed May 15, 2013
1 parent b251a2e commit 9ca4bc9f55a98218ed1661e8bd911c9927da7041
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/SIPMessage.js
@@ -357,7 +357,7 @@ IncomingRequest.prototype.reply = function(code, reason, extraHeaders, body, onS
response += 'Via: ' + this.getHeader('via', v) + '\r\n';
}

if(!this.to_tag) {
if(!this.to_tag && code > 100) {
to += ';tag=' + JsSIP.Utils.newTag();
} else if(this.to_tag && !this.s('to').hasParam('tag')) {
to += ';tag=' + this.to_tag;
@@ -414,7 +414,7 @@ IncomingRequest.prototype.reply_sl = function(code, reason) {

to = this.getHeader('To');

if(!this.to_tag) {
if(!this.to_tag && code > 100) {
to += ';tag=' + JsSIP.Utils.newTag();
} else if(this.to_tag && !this.s('to').hasParam('tag')) {
to += ';tag=' + this.to_tag;

0 comments on commit 9ca4bc9

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