]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] Ignore user agent for display update when channel variable update_ignore_... 1506/head
authordemonspork <demonspork@gmail.com>
Fri, 10 Feb 2023 18:16:57 +0000 (12:16 -0600)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 18:16:57 +0000 (21:16 +0300)
src/mod/endpoints/mod_sofia/mod_sofia.c

index f4fc4e639bb2281e8730effad3966ecac21308e5..0b74b89c9da5ff6887f7043848946f3dc31892b5 100644 (file)
@@ -2065,7 +2065,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(!zstr(tech_pvt->user_via), SIPTAG_VIA_STR(tech_pvt->user_via)), SIPTAG_PAYLOAD_STR(message), TAG_END());
-                                               } else if (update_allowed && ua && (switch_stristr("polycom", ua) ||
+                                               } else if (update_allowed && ua && (switch_channel_var_true(tech_pvt->channel, "update_ignore_ua") ||
+                                                                         switch_stristr("polycom", ua) ||
                                                                          (switch_stristr("aastra", ua) && !switch_stristr("Intelligate", ua)) ||
                                                                          (switch_stristr("cisco/spa50", ua) ||
                                                                          switch_stristr("cisco/spa525", ua)) ||