[asterisk-dev] [Code Review] 3317: pjsip: TOS/DSCP phase 2: Introduce DSCP equivalents to tos/tos_audio/tos_video and deprecate the existing tos options.
Jonathan Rose
reviewboard at asterisk.org
Mon Mar 10 13:02:41 CDT 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3317/
-----------------------------------------------------------
(Updated March 10, 2014, 1:02 p.m.)
Status
------
This change has been discarded.
Review request for Asterisk Developers, George Joseph, Joshua Colp, and Matt Jordan.
Bugs: ASTERISK-23235
https://issues.asterisk.org/jira/browse/ASTERISK-23235
Repository: Asterisk
Description
-------
Introduces new options for transports and endpoints
transport/dscp - DSCP equivalent to tos option. If input numerically, this is treated as a DSCP value and not as a TOS value.
endpoint/dscp_audio - Same for tos_audio endpoint option
endpoint/dscp_video - Same for tos_video endpoint option
Deprecates all the above TOS options. They still work and the input for them still functions the same.
If a string representation is used for either TOS or DSCP settings (e.g. AF21, CS1, etc) then it doesn't matter which option is used. Both should be interpreted correctly.
Output of these fields in sorcery object representations will only show DSCP values now. If type has a name, the name is used. If it would be 'unknown' instead, then the numerical value will be used.
Alembic scripts are updated to include the dscp fields. The equivalent tos fields are left alone.
This patch also fixes an issue where two alembic revisions were upgrades from the same revision. This was a result of merging the patch that changed the TOS field types in phase 1.
Diffs
-----
/trunk/res/res_pjsip/pjsip_configuration.c 410043
/trunk/res/res_pjsip/config_transport.c 410202
/trunk/res/res_pjsip.c 410202
/trunk/main/acl.c 410202
/trunk/include/asterisk/res_pjsip.h 410202
/trunk/include/asterisk/acl.h 410202
/trunk/contrib/ast-db-manage/config/versions/4c573e7135bd_fix_tos_field_types.py 410202
Diff: https://reviewboard.asterisk.org/r/3317/diff/
Testing
-------
Checked numerous TOS and DSCP values for equivalence and their output.
Ran upgrade and downgrade against alembic scripts from a fresh database
Created testsuite modifications for tests that are currently checking TOS values. Right now those tests will fail if this patch is applied.
Thanks,
Jonathan Rose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140310/fa689159/attachment.html>
More information about the asterisk-dev
mailing list