|
|
@ -6034,6 +6034,7 @@ static void reg_source_db(struct sip_peer *peer)
|
|
|
|
ast_sched_del(sched, peer->expire);
|
|
|
|
ast_sched_del(sched, peer->expire);
|
|
|
|
peer->expire = ast_sched_add(sched, (expiry + 10) * 1000, expire_register, peer);
|
|
|
|
peer->expire = ast_sched_add(sched, (expiry + 10) * 1000, expire_register, peer);
|
|
|
|
register_peer_exten(peer, 1);
|
|
|
|
register_peer_exten(peer, 1);
|
|
|
|
|
|
|
|
ast_device_state_changed("SIP/%s", peer->name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*! \brief parse_ok_contact: Parse contact header for 200 OK on INVITE ---*/
|
|
|
|
/*! \brief parse_ok_contact: Parse contact header for 200 OK on INVITE ---*/
|
|
|
@ -13086,6 +13087,7 @@ static int reload_config(void)
|
|
|
|
if (!strcasecmp(utype, "peer") || !strcasecmp(utype, "friend")) {
|
|
|
|
if (!strcasecmp(utype, "peer") || !strcasecmp(utype, "friend")) {
|
|
|
|
peer = build_peer(cat, ast_variable_browse(cfg, cat), 0);
|
|
|
|
peer = build_peer(cat, ast_variable_browse(cfg, cat), 0);
|
|
|
|
if (peer) {
|
|
|
|
if (peer) {
|
|
|
|
|
|
|
|
ast_device_state_changed("SIP/%s", peer->name);
|
|
|
|
ASTOBJ_CONTAINER_LINK(&peerl,peer);
|
|
|
|
ASTOBJ_CONTAINER_LINK(&peerl,peer);
|
|
|
|
ASTOBJ_UNREF(peer, sip_destroy_peer);
|
|
|
|
ASTOBJ_UNREF(peer, sip_destroy_peer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|