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