mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7615 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
20ab270879
commit
a17473345b
@ -792,15 +792,19 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
|
||||
|
||||
if (!strcmp(astate, "early")) {
|
||||
switch_snprintf(status_line, sizeof(status_line), "R %s", switch_str_nil(from_id));
|
||||
rpid = "busy";
|
||||
rpid = "on-the-phone";
|
||||
} else if (!strcmp(astate, "confirmed")) {
|
||||
char *dest = switch_event_get_header(helper->event, "Caller-Destination-Number");
|
||||
if (switch_strlen_zero(from_id) && !switch_strlen_zero(dest)) {
|
||||
from_id = dest;
|
||||
}
|
||||
|
||||
switch_snprintf(status_line, sizeof(status_line), "T %s", switch_str_nil(from_id));
|
||||
rpid = "busy";
|
||||
|
||||
if (switch_strlen_zero(from_id)) {
|
||||
switch_snprintf(status_line, sizeof(status_line), "Available");
|
||||
} else {
|
||||
switch_snprintf(status_line, sizeof(status_line), "T %s", switch_str_nil(from_id));
|
||||
rpid = "on-the-phone";
|
||||
}
|
||||
} else if (!strcmp(astate, "terminated")) {
|
||||
switch_snprintf(status_line, sizeof(status_line), "Available");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user