From 49b999c1673d4dd8e1fbcdc54a9659106c7b8f61 Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 25 Apr 2013 13:48:02 -0500 Subject: [PATCH] FS-5316 --resolve --- src/mod/endpoints/mod_sofia/mod_sofia.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index b75ce46df2..29146a26ae 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2395,7 +2395,11 @@ 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(!zstr(tech_pvt->user_via), SIPTAG_VIA_STR(tech_pvt->user_via)), SIPTAG_PAYLOAD_STR(message), TAG_END()); } else if ((ua && (switch_stristr("polycom", ua)))) { - snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" <%s>", name, number); + if ( switch_stristr("UA/4", ua) ) { + snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" ", name, number, tech_pvt->profile->sipip); + } else { + snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" <%s>", name, number); + } sofia_set_flag_locked(tech_pvt, TFLAG_UPDATING_DISPLAY); nua_update(tech_pvt->nh, NUTAG_SESSION_TIMER(tech_pvt->session_timeout),