[asterisk-bugs] [JIRA] (ASTERISK-6863) [patch] allow Asterisk to set high ToS bits as non-root on Linux

Friendly Automation (JIRA) noreply at issues.asterisk.org
Thu Apr 16 10:33:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-6863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=250366#comment-250366 ] 

Friendly Automation commented on ASTERISK-6863:
-----------------------------------------------

Change 14245 merged by Friendly Automation:
install_prereq: Add libcap for high bits in DiffServ/ToS.

[https://gerrit.asterisk.org/c/asterisk/+/14245|https://gerrit.asterisk.org/c/asterisk/+/14245]

> [patch] allow Asterisk to set high ToS bits as non-root on Linux
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-6863
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-6863
>             Project: Asterisk
>          Issue Type: New Feature
>          Components: Core/General
>            Reporter: Matt Addison
>         Attachments: 20060612__bug7047.diff.txt, 20060905__bug7047__2.diff.txt, 20060905__bug7047.diff.txt, asterisk.linux.posix1e200604271654.patch
>
>
> By default, Linux restricts the ability of non-root users to set the high ToS bits for IP precedence/DSCP. Not being able to set these bits prevents users from classifying and prioritizing VoIP traffic on some routing equipment (any Cisco GSR line card that doesn't run Engine3 for example.). With some quick changes to asterisk.c and an extra library (libcap) we can have asterisk keep the cap_net_admin capability which permits it to set the high ToS bits. Tested on Linux (debian). Should compile cleanly on other platforms, including linux without libcap (in which case the feature should auto-omit itself through #ifndefs).



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list