add optional var/param for seperately setting the rtp timeout when on hold

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7309 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-01-21 00:35:33 +00:00
parent e7d29df822
commit c731ed53a7
3 changed files with 24 additions and 1 deletions
+5
View File
@@ -1011,6 +1011,11 @@ switch_status_t config_sofia(int reload, char *profile_name)
if (v >= 0) {
profile->rtp_timeout_sec = v;
}
} else if (!strcasecmp(var, "rtp-hold-timeout-sec")) {
int v = atoi(val);
if (v >= 0) {
profile->rtp_hold_timeout_sec = v;
}
} else if (!strcasecmp(var, "manage-presence")) {
if (switch_true(val)) {
profile->pflags |= PFLAG_PRESENCE;