Skip to content

Commit

Permalink
tel URI serialization: change key 't' -> 'u'
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Dec 14, 2024
1 parent d6b768c commit 8793b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/UsedHeaderField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void UsedHeaderField::serialize_nameaddr(const sip_nameaddr &na, AmArg &ret) con
break;
case sip_uri::TEL:
ret["s"] = "tel";
ret["t"] = na.uri.user.len ? c2stlstr(na.uri.user) : AmArg();
ret["u"] = na.uri.user.len ? c2stlstr(na.uri.user) : AmArg();
break;
case sip_uri::UNKNOWN:
ret["s"] = "unknown";
Expand Down
2 changes: 1 addition & 1 deletion unit_tests/UsedHeaderFieldTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static AmArg uri_json_array_expected{
},
AmArg{
{ "s", "tel" },
{ "t", "1234567890" }
{ "u", "1234567890" }
}
};

Expand Down

0 comments on commit 8793b43

Please sign in to comment.