summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-02 11:30:09 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-02 11:30:09 -0600
commitfdf0a2afb0d9f45512e1ff1e22ad24a84dd4d491 (patch)
tree2e8dddc143446ade6910eefb8e724e87ab5e2b8c /channels
parent8d56016ae475f90b3a5745cfcaa604089e1db659 (diff)
parent09c36a65356093e2a40cd2b23ff9f945e1028589 (diff)
Merge "res_pjsip/chan_sip: Advertise 'ws' in the SIP URI transport parameter" into 13
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 845146972..c34ad31c0 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14143,6 +14143,7 @@ static void build_contact(struct sip_pvt *p, struct sip_request *req, int incomi
char tmp[SIPBUFSIZE];
char *user = ast_uri_encode(p->exten, tmp, sizeof(tmp), ast_uri_sip_user);
int use_sips;
+ char *transport = ast_strdupa(sip_get_transport(p->socket.type));
if (incoming) {
use_sips = uas_sips_contact(req);
@@ -14157,7 +14158,7 @@ static void build_contact(struct sip_pvt *p, struct sip_request *req, int incomi
} else {
ast_string_field_build(p, our_contact, "<%s:%s%s%s;transport=%s>",
use_sips ? "sips" : "sip", user, ast_strlen_zero(user) ? "" : "@",
- ast_sockaddr_stringify_remote(&p->ourip), sip_get_transport(p->socket.type));
+ ast_sockaddr_stringify_remote(&p->ourip), ast_str_to_lower(transport));
}
}