Skip to content

Commit

Permalink
Fix the 'from' and 'to' parameter assignment for incoming messages. T…
Browse files Browse the repository at this point in the history
…hanks @ibc
  • Loading branch information
jmillan committed Nov 22, 2012
1 parent dff62e1 commit f7e66da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ JsSIP.Parser = (function() {
message.setHeader('from', header_value);
parsed = message.parseHeader('from');
if(parsed) {
message.from = header_value;
message.from = parsed;
message.from_tag = parsed.tag;
}
break;
Expand All @@ -76,7 +76,7 @@ JsSIP.Parser = (function() {
message.setHeader('to', header_value);
parsed = message.parseHeader('to');
if(parsed) {
message.to = header_value;
message.to = parsed;
message.to_tag = parsed.tag;
}
break;
Expand Down

0 comments on commit f7e66da

Please sign in to comment.