提交 db22cc41 authored 作者: Anthony Minessale's avatar Anthony Minessale

update

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4833 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e47596fc
...@@ -606,7 +606,8 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char * ...@@ -606,7 +606,8 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char *
sofia_profile_t *profile; sofia_profile_t *profile;
char *tmp, *id = NULL; char *tmp, *id = NULL;
nua_handle_t *nh; nua_handle_t *nh;
int expire_sec = atoi(expires);
if (!(profile = sofia_glue_find_profile(sub_to_host))) { if (!(profile = sofia_glue_find_profile(sub_to_host))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find profile for host %s\n", host); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot find profile for host %s\n", host);
return 0; return 0;
...@@ -616,7 +617,7 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char * ...@@ -616,7 +617,7 @@ static int sofia_presence_mwi_callback(void *pArg, int argc, char **argv, char *
assert(nh != NULL); assert(nh != NULL);
id = switch_mprintf("sip:%s@%s", sub_to_user, sub_to_host); id = switch_mprintf("sip:%s@%s", sub_to_user, sub_to_host);
exp = switch_mprintf("active;expires=%s", expires ? expires : "3600"); exp = switch_mprintf("active;expires=%ld", time(NULL) - expire_sec);
tmp = contact; tmp = contact;
contact = sofia_glue_get_url_from_contact(tmp, 0); contact = sofia_glue_get_url_from_contact(tmp, 0);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论