mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-15 05:08:26 +00:00
FS-4998 --resolve
This commit is contained in:
parent
2bb859e2b4
commit
0177d7b23d
@ -526,7 +526,11 @@ int sofia_reg_find_reg_with_positive_expires_callback(void *pArg, int argc, char
|
|||||||
long int expires;
|
long int expires;
|
||||||
char *contact = NULL;
|
char *contact = NULL;
|
||||||
|
|
||||||
if (argv[0] && cbt->contact_str && !strcasecmp(argv[0], cbt->contact_str)) {
|
if (zstr(argv[0])) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cbt->contact_str && !strcasecmp(argv[0], cbt->contact_str)) {
|
||||||
expires = cbt->exptime;
|
expires = cbt->exptime;
|
||||||
} else {
|
} else {
|
||||||
expires = atol(argv[1]) - 60 - (long) cbt->time;
|
expires = atol(argv[1]) - 60 - (long) cbt->time;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user