mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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, };
|
pjsip_tpselector selector = { .type = PJSIP_TPSELECTOR_NONE, };
|
||||||
|
|
||||||
if (ast_strlen_zero(uri)) {
|
if (ast_strlen_zero(uri)) {
|
||||||
if (!endpoint) {
|
if (!endpoint && !contact) {
|
||||||
ast_log(LOG_ERROR, "An endpoint and/or uri must be specified\n");
|
ast_log(LOG_ERROR, "An endpoint and/or uri must be specified\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user