summaryrefslogtreecommitdiff
path: root/res/res_pjsip/location.c
diff options
context:
space:
mode:
Diffstat (limited to 'res/res_pjsip/location.c')
-rw-r--r--res/res_pjsip/location.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/res_pjsip/location.c b/res/res_pjsip/location.c
index 557aeb6b9..2273273e3 100644
--- a/res/res_pjsip/location.c
+++ b/res/res_pjsip/location.c
@@ -460,7 +460,10 @@ static int prune_boot_contacts_cb(void *obj, void *arg, int flags)
{
struct ast_sip_contact *contact = obj;
- if (contact->prune_on_boot) {
+ if (contact->prune_on_boot
+ && !strcmp(contact->reg_server, ast_config_AST_SYSTEM_NAME ?: "")) {
+ ast_verb(3, "Removed contact '%s' from AOR '%s' due to system boot\n",
+ contact->uri, contact->aor);
ast_sip_location_delete_contact(contact);
}