|
@@ -48,47 +48,47 @@ struct cfg_group_registrar default_registrar_cfg = {
|
|
|
|
|
|
void *registrar_cfg = &default_registrar_cfg;
|
|
|
|
|
|
-cfg_def_t registrar_cfg_def[] =
|
|
|
- {{"default_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0,
|
|
|
- default_expires_stats_update,
|
|
|
- "Contains number of second to expire if no expire hf or "
|
|
|
- "contact expire present"},
|
|
|
- {"default_expires_range", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0,
|
|
|
- 100, 0, default_expires_range_update,
|
|
|
- "Percent from default_expires that will be used in "
|
|
|
- "generating the range for the expire interval"},
|
|
|
- {"min_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
- "The minimum expires value of a Contact. Value 0 "
|
|
|
- "disables the checking. "},
|
|
|
- {"max_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0,
|
|
|
- max_expires_stats_update,
|
|
|
- "The maximum expires value of a Contact. Value 0 "
|
|
|
- "disables the checking. "},
|
|
|
- {"em_default_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0,
|
|
|
- 0, "The default emergency expires value of a Contact."},
|
|
|
- {"em_max_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
- "The maximum emergency expires value of a Contact. "
|
|
|
- "Value 0 disables the checking. "},
|
|
|
- {"em_min_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
- "The maximum emergency expires value of a Contact. "
|
|
|
- "Value 0 disables the checking. "},
|
|
|
- {"max_contacts", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
- "The maximum number of Contacts for an AOR. Value 0 "
|
|
|
- "disables the checking. "},
|
|
|
- {"retry_after", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
- "If you want to add the Retry-After header field in "
|
|
|
- "5xx replies, set this parameter to a value grater "
|
|
|
- "than zero"},
|
|
|
- {"case_sensitive", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
- "If set to 1 then AOR comparison will be case "
|
|
|
- "sensitive. Recommended and default is 0, case "
|
|
|
- "insensitive"},
|
|
|
- {"default_q", CFG_VAR_INT | CFG_ATOMIC, -1, 1000, 0, 0,
|
|
|
- "The parameter represents default q value for new "
|
|
|
- "contacts."}, /* Q_UNSPECIFIED is -1 */
|
|
|
- {"append_branches", CFG_VAR_INT, 0, 0, 0, 0,
|
|
|
- "If set to 1(default), lookup will put all contacts "
|
|
|
- "found in msg structure"},
|
|
|
- {"realm_pref", CFG_VAR_STRING, 0, 0, 0, 0,
|
|
|
- "Realm prefix to be removed. Default is \"\""},
|
|
|
- {0, 0, 0, 0, 0, 0}};
|
|
|
+cfg_def_t registrar_cfg_def[] = {
|
|
|
+ {"default_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0,
|
|
|
+ default_expires_stats_update,
|
|
|
+ "Contains number of second to expire if no expire hf or "
|
|
|
+ "contact expire present"},
|
|
|
+ {"default_expires_range", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 100, 0,
|
|
|
+ default_expires_range_update,
|
|
|
+ "Percent from default_expires that will be used in "
|
|
|
+ "generating the range for the expire interval"},
|
|
|
+ {"min_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
+ "The minimum expires value of a Contact. Value 0 "
|
|
|
+ "disables the checking. "},
|
|
|
+ {"max_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0,
|
|
|
+ max_expires_stats_update,
|
|
|
+ "The maximum expires value of a Contact. Value 0 "
|
|
|
+ "disables the checking. "},
|
|
|
+ {"em_default_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
+ "The default emergency expires value of a Contact."},
|
|
|
+ {"em_max_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
+ "The maximum emergency expires value of a Contact. "
|
|
|
+ "Value 0 disables the checking. "},
|
|
|
+ {"em_min_expires", CFG_VAR_INT | CFG_CB_ONLY_ONCE, 0, 0, 0, 0,
|
|
|
+ "The maximum emergency expires value of a Contact. "
|
|
|
+ "Value 0 disables the checking. "},
|
|
|
+ {"max_contacts", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
+ "The maximum number of Contacts for an AOR. Value 0 "
|
|
|
+ "disables the checking. "},
|
|
|
+ {"retry_after", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
+ "If you want to add the Retry-After header field in "
|
|
|
+ "5xx replies, set this parameter to a value grater "
|
|
|
+ "than zero"},
|
|
|
+ {"case_sensitive", CFG_VAR_INT | CFG_ATOMIC, 0, 0, 0, 0,
|
|
|
+ "If set to 1 then AOR comparison will be case "
|
|
|
+ "sensitive. Recommended and default is 0, case "
|
|
|
+ "insensitive"},
|
|
|
+ {"default_q", CFG_VAR_INT | CFG_ATOMIC, -1, 1000, 0, 0,
|
|
|
+ "The parameter represents default q value for new "
|
|
|
+ "contacts."}, /* Q_UNSPECIFIED is -1 */
|
|
|
+ {"append_branches", CFG_VAR_INT, 0, 0, 0, 0,
|
|
|
+ "If set to 1(default), lookup will put all contacts "
|
|
|
+ "found in msg structure"},
|
|
|
+ {"realm_pref", CFG_VAR_STRING, 0, 0, 0, 0,
|
|
|
+ "Realm prefix to be removed. Default is \"\""},
|
|
|
+ {0, 0, 0, 0, 0, 0}};
|