diff options
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0aa13505a..c81ec6f86 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -27089,7 +27089,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str sip_cfg.allowsubscribe = TRUE; /* No global ban any more */ } /* If read-only RT backend, then refresh from local DB cache */ - if (peer->host_dynamic && !sip_cfg.peer_rtupdate) { + if (peer->host_dynamic && (!peer->is_realtime || !sip_cfg.peer_rtupdate)) { reg_source_db(peer); } |