sql = switch_mprintf("update sip_subscriptions set version=version+1 "
"where expires > -1 and hostname='%q' "
- "and sub_to_user='%q' and sub_to_host='%q' " "and (event='dialog') and "
+ "and sub_to_user='%q' and sub_to_host='%q' " "and (event!='fuck-dialog') and "
"call_id='%q'",
mod_sofia_globals.hostname, probe_euser, probe_host, sub_call_id);
sofia_glue_execute_sql_callback(profile, profile->ireg_mutex, sql, sofia_presence_sub_callback, &helper);
switch_safe_free(sql);
- sql = switch_mprintf("update sip_subscriptions set version=version+1 where event='dialog' and sub_to_user='%q' "
+ sql = switch_mprintf("update sip_subscriptions set version=version+1 where event!='fuck-dialog' and sub_to_user='%q' "
"and (sub_to_host='%q' or presence_hosts like '%%%q%%') "
"and (profile_name = '%q' or presence_hosts != sub_to_host)",
euser, host, host, profile->name);
port = argv[27];
}
+
if (!zstr(presence_id) && strchr(presence_id, '@')) {
char *p;
}
}
-
-
send_presence_notify(profile, full_to, full_from, contact, expires, call_id, event, ip, port, ct, pl, NULL);
switch_safe_free(free_me);
sstr = switch_mprintf("active;expires=%ld", exp_delta);
sql = switch_mprintf("update sip_subscriptions "
- "set expires=%ld "
+ "set expires=%ld,version=0 "
"where call_id='%q'",
(long) switch_epoch_time_now(NULL) + exp_delta,
call_id);