[asterisk-commits] pjsip configuration.c: Ignore repeated identify by methods. (asterisk[13])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 6 19:45:08 CDT 2016


Anonymous Coward #1000019 has submitted this change and it was merged.

Change subject: pjsip_configuration.c: Ignore repeated identify by methods.
......................................................................


pjsip_configuration.c: Ignore repeated identify by methods.

Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
---
M res/res_pjsip/pjsip_configuration.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  George Joseph: Looks good to me, approved
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, but someone else must approve



diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c
index e495054..478e5c7 100644
--- a/res/res_pjsip/pjsip_configuration.c
+++ b/res/res_pjsip/pjsip_configuration.c
@@ -606,6 +606,10 @@
 			endpoint->ident_method = 0;
 			return -1;
 		}
+		if (endpoint->ident_method & method) {
+			/* We are already indentifying by this method.  No need to do it again. */
+			continue;
+		}
 
 		endpoint->ident_method |= method;
 		AST_VECTOR_APPEND(&endpoint->ident_method_order, method);

-- 
To view, visit https://gerrit.asterisk.org/3804
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-commits mailing list