[commit] r7615 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: anthm Date: Thu Feb 14 14:45:15 2008 New Revision: 7615 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Log: update Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Thu Feb 14 14:45:15 2008 @@ -792,15 +792,19 @@ 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"); }
participants (1)
-
Freeswitch SVN