mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
add generic keepalive system and implement it in sofia to send MESSAGE or INFO packets in-dialog at specified interval.
Adds app: enable_keepalive 0|<seconds> This app can be run in the dialplan or with execute_on_* type variables for B-legs. Adds sofia param: keepalive-method : defaults to MESSAGE can also be "INFO" This param sets which SIP method to use.
This commit is contained in:
@@ -4025,6 +4025,14 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
profile->debug = atoi(val);
|
||||
} else if (!strcasecmp(var, "parse-invite-tel-params")) {
|
||||
profile->parse_invite_tel_params = switch_true(val);
|
||||
} else if (!strcasecmp(var, "keepalive-method")) {
|
||||
if (!zstr(val)) {
|
||||
if (!strcasecmp(val, "info")) {
|
||||
profile->keepalive = KA_INFO;
|
||||
} else {
|
||||
profile->keepalive = KA_MESSAGE;
|
||||
}
|
||||
}
|
||||
} else if (!strcasecmp(var, "shutdown-on-fail")) {
|
||||
profile->shutdown_type = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "sip-trace") && switch_true(val)) {
|
||||
|
||||
Reference in New Issue
Block a user