summaryrefslogtreecommitdiff
path: root/channels/chan_pjsip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-11-16 21:12:27 +0000
committerJoshua Colp <jcolp@digium.com>2014-11-16 21:12:27 +0000
commitb902694840e29685ac0c306b640e19207db4eca3 (patch)
tree6e84274af4492924ffd6c42574521a7a13c510ee /channels/chan_pjsip.c
parent62d33a6696071391793daf09da3aba91aa1ac6cd (diff)
chan_pjsip: Remove AOR check when dialing and one is specified.
The AOR value may contain the name of an AOR or a full SIP URI. Checking if the AOR exists can't be done as a result of this. ........ Merged revisions 428051 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@428052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_pjsip.c')
-rw-r--r--channels/chan_pjsip.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index b357887b2..4a3afa986 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -1743,7 +1743,6 @@ static int request(void *obj)
struct ast_sip_session *session = NULL;
char *tmp = ast_strdupa(req_data->dest), *endpoint_name = NULL, *request_user = NULL;
RAII_VAR(struct ast_sip_endpoint *, endpoint, NULL, ao2_cleanup);
- struct ast_sip_aor *aor = NULL;
AST_DECLARE_APP_ARGS(args,
AST_APP_ARG(endpoint);
@@ -1773,14 +1772,8 @@ static int request(void *obj)
ast_log(LOG_ERROR, "Unable to create PJSIP channel - endpoint '%s' was not found\n", endpoint_name);
req_data->cause = AST_CAUSE_NO_ROUTE_DESTINATION;
return -1;
- } else if (!ast_strlen_zero(args.aor) && (!(aor = ast_sorcery_retrieve_by_id(ast_sip_get_sorcery(), "aor", args.aor)))) {
- ast_log(LOG_ERROR, "Unable to create PJSIP channel - AOR '%s' was not found\n", args.aor);
- req_data->cause = AST_CAUSE_NO_ROUTE_DESTINATION;
- return -1;
}
- ao2_cleanup(aor);
-
if (!(session = ast_sip_session_create_outgoing(endpoint, NULL, args.aor, request_user, req_data->caps))) {
ast_log(LOG_ERROR, "Failed to create outgoing session to endpoint '%s'\n", endpoint_name);
req_data->cause = AST_CAUSE_NO_ROUTE_DESTINATION;