[asterisk-commits] file: branch 13 r428052 - in /branches/13: ./ channels/chan_pjsip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Nov 16 15:12:29 CST 2014
Author: file
Date: Sun Nov 16 15:12:27 2014
New Revision: 428052
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428052
Log:
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
Modified:
branches/13/ (props changed)
branches/13/channels/chan_pjsip.c
Propchange: branches/13/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: branches/13/channels/chan_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_pjsip.c?view=diff&rev=428052&r1=428051&r2=428052
==============================================================================
--- branches/13/channels/chan_pjsip.c (original)
+++ branches/13/channels/chan_pjsip.c Sun Nov 16 15:12:27 2014
@@ -1743,7 +1743,6 @@
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,13 +1772,7 @@
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);
More information about the asterisk-commits
mailing list