diff -dur asterisk-13.5.0.orig/res/res_pjsip/pjsip_configuration.c asterisk-13.5.0/res/res_pjsip/pjsip_configuration.c --- asterisk-13.5.0.orig/res/res_pjsip/pjsip_configuration.c 2015-09-22 13:40:58.514099218 +0200 +++ asterisk-13.5.0/res/res_pjsip/pjsip_configuration.c 2015-09-22 13:46:48.650282205 +0200 @@ -467,6 +467,8 @@ while ((val = strsep(&idents, ","))) { if (!strcasecmp(val, "username")) { endpoint->ident_method |= AST_SIP_ENDPOINT_IDENTIFY_BY_USERNAME; + } else if (!strcasecmp(val, "no-username")) { + endpoint->ident_method &= ~AST_SIP_ENDPOINT_IDENTIFY_BY_USERNAME; } else { ast_log(LOG_ERROR, "Unrecognized identification method %s specified for endpoint %s\n", val, ast_sorcery_object_get_id(endpoint)); @@ -482,6 +484,8 @@ switch (endpoint->ident_method) { case AST_SIP_ENDPOINT_IDENTIFY_BY_USERNAME : *buf = "username"; break; + case 0 : + *buf = "no-username"; break; default: return 0; }