res_pjsip: Allow configuration of endpoint identifier query order
[asterisk/asterisk.git] / res / res_pjsip_endpoint_identifier_user.c
index dba3541..a60057e 100644 (file)
@@ -114,7 +114,9 @@ static struct ast_sip_endpoint_identifier username_identifier = {
 
 static int load_module(void)
 {
-       ast_sip_register_endpoint_identifier(&username_identifier);
+       CHECK_PJSIP_MODULE_LOADED();
+
+       ast_sip_register_endpoint_identifier_by_name(&username_identifier, "username");
        return AST_MODULE_LOAD_SUCCESS;
 }