summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-11-27 10:52:02 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-11-27 10:52:02 -0600
commit710267013dac9c77b484a0006552663fbfbf3009 (patch)
tree15ad7500c447ea41f4a2ba7103af5156e5d3fa64
parent55b0072d09b7f1d91715a8884e927b19c45a02a8 (diff)
parentdb21f7f2e1d25c46bf7c2949f0c5d4d52eca2fb1 (diff)
Merge "pjsip: 183 without To tag does not negotiate media"
-rw-r--r--third-party/pjproject/patches/0040-183_without_to_tag.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/third-party/pjproject/patches/0040-183_without_to_tag.patch b/third-party/pjproject/patches/0040-183_without_to_tag.patch
new file mode 100644
index 000000000..e8692fe1b
--- /dev/null
+++ b/third-party/pjproject/patches/0040-183_without_to_tag.patch
@@ -0,0 +1,17 @@
+diff --git a/pjsip/src/pjsip-ua/sip_inv.c b/pjsip/src/pjsip-ua/sip_inv.c
+index c9686a0..fc52a63 100644
+--- a/pjsip/src/pjsip-ua/sip_inv.c
++++ b/pjsip/src/pjsip-ua/sip_inv.c
+@@ -4156,9 +4156,10 @@ static void inv_on_state_calling( pjsip_inv_session *inv, pjsip_event *e)
+ status = pjsip_inv_send_msg(inv, cancel);
+ }
+
+- if (dlg->remote.info->tag.slen) {
++ if (tsx->status_code != 100) {
+
+- inv_set_state(inv, PJSIP_INV_STATE_EARLY, e);
++ if (dlg->remote.info->tag.slen)
++ inv_set_state(inv, PJSIP_INV_STATE_EARLY, e);
+
+ inv_check_sdp_in_incoming_msg(inv, tsx,
+ e->body.tsx_state.src.rdata);