FS-5717 --resolve

This commit is contained in:
Anthony Minessale 2013-09-19 10:15:02 -05:00
parent 4c5b8751ff
commit 6521de294c
1 changed files with 10 additions and 2 deletions

View File

@ -1621,8 +1621,16 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
break; break;
case SWITCH_MESSAGE_INDICATE_DISPLAY: case SWITCH_MESSAGE_INDICATE_DISPLAY:
{ {
const char *name = msg->string_array_arg[0], *number = msg->string_array_arg[1]; const char *name = NULL, *number = NULL;
const char *call_info = switch_channel_get_variable(channel, "presence_call_info_full"); const char *call_info = NULL;
if (!sofia_test_pflag(tech_pvt->profile, PFLAG_SEND_DISPLAY_UPDATE)) {
goto end_lock;
}
name = msg->string_array_arg[0];
number = msg->string_array_arg[1];
call_info = switch_channel_get_variable(channel, "presence_call_info_full");
if (!zstr(name)) { if (!zstr(name)) {
char message[256] = ""; char message[256] = "";