mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
wtf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4837 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5daac67023
commit
c4a882f078
@ -617,7 +617,11 @@ 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=%ld", time(NULL) - expire_sec);
|
expire_sec -= time(NULL);
|
||||||
|
if (expire_sec < 0) {
|
||||||
|
expire_sec = 3600;
|
||||||
|
}
|
||||||
|
exp = switch_mprintf("active;expires=%ld", expire_sec);
|
||||||
|
|
||||||
tmp = contact;
|
tmp = contact;
|
||||||
contact = sofia_glue_get_url_from_contact(tmp, 0);
|
contact = sofia_glue_get_url_from_contact(tmp, 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user