PRES_TYPE_PASSIVE = 2
} sofia_presence_type_t;
+typedef enum {
+ PRES_HELD_EARLY = 0,
+ PRES_HELD_CONFIRMED = 1,
+ PRES_HELD_TERMINATED = 2
+} sofia_presence_held_calls_type_t;
+
typedef enum {
MEDIA_OPT_NONE = 0,
MEDIA_OPT_MEDIA_ON_HOLD = (1 << 0),
int server_rport_level;
int client_rport_level;
sofia_presence_type_t pres_type;
+ sofia_presence_held_calls_type_t pres_held_type;
sofia_media_options_t media_options;
uint32_t force_subscription_expires;
uint32_t force_publish_expires;
} else if (switch_true(val)) {
profile->pres_type = PRES_TYPE_FULL;
}
+ } else if (!strcasecmp(var, "presence-hold-state")) {
+ if (!strcasecmp(val, "confirmed")) {
+ profile->pres_held_type = PRES_HELD_CONFIRMED;
+ } else if (!strcasecmp(val, "terminated")) {
+ profile->pres_held_type = PRES_HELD_TERMINATED;
+ }
} else if (!strcasecmp(var, "presence-privacy")) {
if (switch_true(val)) {
sofia_set_pflag(profile, PFLAG_PRESENCE_PRIVACY);