summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2014-01-16 19:33:28 +0000
committerKinsey Moore <kmoore@digium.com>2014-01-16 19:33:28 +0000
commitfc241d6f52f82f65a9ba99c1fae00be89834fa02 (patch)
treea55e7c8d8632312d2761c61e217fb183424a7902 /res/res_pjsip.c
parenta48798ce95cdc0f47c4d05c4fd55fd58cf12b678 (diff)
PJSIP: Fix outbound OPTIONS support
When path support was added and contacts were made available during request creation and transmission, the code path used by outbound qualify support was not modified correctly and was causing request creation to fail. This ensures that outbound request creation with only a contact and no dialog, endpoint, or uri can succeed which restores qualify support. Reported by: gtjoseph Reported by: kharwell ........ Merged revisions 405743 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index bd8418152..a74f23268 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -1629,7 +1629,7 @@ static int create_out_of_dialog_request(const pjsip_method *method, struct ast_s
pjsip_tpselector selector = { .type = PJSIP_TPSELECTOR_NONE, };
if (ast_strlen_zero(uri)) {
- if (!endpoint) {
+ if (!endpoint && !contact) {
ast_log(LOG_ERROR, "An endpoint and/or uri must be specified\n");
return -1;
}