]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 282894 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Thu, 19 Aug 2010 21:07:20 +0000 (21:07 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 19 Aug 2010 21:07:20 +0000 (21:07 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
  r282894 | dvossel | 2010-08-19 16:05:54 -0500 (Thu, 19 Aug 2010) | 18 lines

  Merged revisions 282893 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.4

  ........
    r282893 | dvossel | 2010-08-19 16:03:24 -0500 (Thu, 19 Aug 2010) | 11 lines

    tos_sip option was not being set correctly

    When tos_sip is used, the tos of the sip socket is only set
    correctly if the socket binding changes on a reload.  If the binding
    stays the same but the TOS changes, the new tos value would not take
    into effect.  This patch fixes that.

    (closes issue #17712)
    Reported by: nickb
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282895 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index dbde00cf28415f833b4c654dda2e2d45f7448830..40e679209a8171e3b8b0107eb4c7cecb14f77118 100644 (file)
@@ -26946,6 +26946,8 @@ static int reload_config(enum channelreloadreason reason)
                                ast_set_qos(sipsock, global_tos_sip, global_cos_sip, "SIP");
                        }
                }
+       } else {
+               ast_set_qos(sipsock, global_tos_sip, global_cos_sip, "SIP");
        }
        ast_mutex_unlock(&netlock);