]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pjsip_configuration.c: Ignore repeated identify by methods. 04/3804/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 29 Aug 2016 23:06:48 +0000 (18:06 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 2 Sep 2016 18:18:27 +0000 (13:18 -0500)
Change-Id: Ied0c06043d1dfef8fdc9c9a808cf89b118119838

res/res_pjsip/pjsip_configuration.c

index e495054f6ee4609de5d3d17209c743a7d0c5b49c..478e5c7d74e62285326bf612bdbe9204b10e148c 100644 (file)
@@ -606,6 +606,10 @@ static int ident_handler(const struct aco_option *opt, struct ast_variable *var,
                        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);