mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
working on 2 boxes at once ignore me
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15150 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1295,8 +1295,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
||||
nua_info(tech_pvt->nh, SIPTAG_CONTENT_TYPE_STR("message/sipfrag"),
|
||||
TAG_IF(!switch_strlen_zero(tech_pvt->user_via), SIPTAG_VIA_STR(tech_pvt->user_via)),
|
||||
SIPTAG_PAYLOAD_STR(message), TAG_END());
|
||||
} else if ((ua && (switch_stristr("polycom", ua) || switch_stristr("FreeSWITCH", ua))) ||
|
||||
switch_stristr("UPDATE", tech_pvt->x_actually_support_remote)) {
|
||||
} else if ((ua && (switch_stristr("polycom", ua) ||
|
||||
switch_stristr("UPDATE", tech_pvt->x_actually_support_remote)))) {
|
||||
snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" <%s>", name, number);
|
||||
nua_update(tech_pvt->nh,
|
||||
TAG_IF(!switch_strlen_zero_buf(message), SIPTAG_HEADER_STR(message)),
|
||||
|
||||
@@ -404,6 +404,7 @@ void sofia_send_callee_id(switch_core_session_t *session, const char *name, cons
|
||||
switch_core_session_message_t *msg;
|
||||
|
||||
msg = switch_core_session_alloc(session_b, sizeof(*msg));
|
||||
MESSAGE_STAMP_FFL(msg);
|
||||
msg->message_id = SWITCH_MESSAGE_INDICATE_DISPLAY;
|
||||
msg->string_array_arg[0] = switch_core_session_strdup(session_b, name);
|
||||
msg->string_array_arg[1] = switch_core_session_strdup(session_b, number);
|
||||
@@ -443,7 +444,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = switch_channel_get_variable(channel, "sip_callee_id_name"))) {
|
||||
name = (char *)tmp;
|
||||
}
|
||||
@@ -467,7 +468,7 @@ void sofia_update_callee_id(switch_core_session_t *session, sofia_profile_t *pro
|
||||
caller_profile = switch_channel_get_caller_profile(channel);
|
||||
caller_profile->callee_id_name = switch_core_strdup(caller_profile->pool, name);
|
||||
caller_profile->callee_id_number = switch_core_strdup(caller_profile->pool, number);
|
||||
|
||||
|
||||
if (send) {
|
||||
sofia_send_callee_id(session, NULL, NULL);
|
||||
}
|
||||
@@ -483,8 +484,8 @@ static void sofia_handle_sip_i_update(nua_t *nua, sofia_profile_t *profile, nua_
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
sofia_update_callee_id(session, profile, sip, SWITCH_TRUE);
|
||||
nua_respond(nh, SIP_200_OK, NUTAG_WITH_THIS(nua), TAG_END());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user