From 504212fbc7b5ed01912c17e0fdfbec5f0f6ca3ed Mon Sep 17 00:00:00 2001 From: Joseph <71848841+junction1153@users.noreply.github.com> Date: Sat, 14 Dec 2024 18:41:30 -0500 Subject: [PATCH] Get up to date with user agents for update_allowed method We observed that the new Poly phones (formerly known as Polycom) were not getting sent a SIP UPDATE in certain circumstances (example: retrieving a parked call, and therefore, Caller ID would not show the parked caller). I renamed Polycom to Poly which will catch all Poly AND Polycom UA's. I also added Bria, Acrobits, and Ringotel to extend such functionality to those UA's. --- src/mod/endpoints/mod_sofia/mod_sofia.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index c41ed9b2e3..b214e08a0e 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2075,12 +2075,15 @@ 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 (update_allowed && ua && (switch_channel_var_true(tech_pvt->channel, "update_ignore_ua") || - switch_stristr("polycom", ua) || + switch_stristr("poly", ua) || (switch_stristr("aastra", ua) && !switch_stristr("Intelligate", ua)) || (switch_stristr("cisco/spa50", ua) || switch_stristr("cisco/spa525", ua)) || switch_stristr("cisco/spa30", ua) || switch_stristr("Fanvil", ua) || + switch_stristr("Acrobits", ua) || + switch_stristr("Bria", ua) || + switch_stristr("Ringotel", ua) || switch_stristr("Grandstream", ua) || switch_stristr("Yealink", ua) || switch_stristr("Mitel", ua) ||