mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
chan_sip: Don't verify table if rtupdate=no
If rtupdate=no do not verify sipregs/peers table has updatable fields. ASTERISK-25934 #close Change-Id: Iaa2c53037b93daccc7e7333c40d61861847b856d
This commit is contained in:
@@ -35267,6 +35267,7 @@ static int load_module(void)
|
|||||||
/* And start the monitor for the first time */
|
/* And start the monitor for the first time */
|
||||||
restart_monitor();
|
restart_monitor();
|
||||||
|
|
||||||
|
if (sip_cfg.peer_rtupdate) {
|
||||||
ast_realtime_require_field(ast_check_realtime("sipregs") ? "sipregs" : "sippeers",
|
ast_realtime_require_field(ast_check_realtime("sipregs") ? "sipregs" : "sippeers",
|
||||||
"name", RQ_CHAR, 10,
|
"name", RQ_CHAR, 10,
|
||||||
"ipaddr", RQ_CHAR, INET6_ADDRSTRLEN - 1,
|
"ipaddr", RQ_CHAR, INET6_ADDRSTRLEN - 1,
|
||||||
@@ -35278,6 +35279,7 @@ static int load_module(void)
|
|||||||
"useragent", RQ_CHAR, 20,
|
"useragent", RQ_CHAR, 20,
|
||||||
"lastms", RQ_INTEGER4, 11,
|
"lastms", RQ_INTEGER4, 11,
|
||||||
SENTINEL);
|
SENTINEL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
sip_register_tests();
|
sip_register_tests();
|
||||||
|
|||||||
Reference in New Issue
Block a user