[Asterisk-code-review] pjproject: Add patch to fix trailing whitespace issue in rtpmap (asterisk[16])

George Joseph asteriskteam at digium.com
Tue Sep 14 12:11:30 CDT 2021


George Joseph has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/16485 )

Change subject: pjproject: Add patch to fix trailing whitespace issue in rtpmap
......................................................................

pjproject: Add patch to fix trailing whitespace issue in rtpmap

An issue was found where a particular manufacturer's phones add a
trailing space to the end of the rtpmap attribute when specifying
a payload type that has a "param" after the format name and clock
rate. For example:

a=rtpmap:120 opus/48000/2 \r\n

Because pjmedia_sdp_attr_get_rtpmap currently takes everything after
the second '/' up to the line end as the param, the space is
included in future comparisons, which then fail if the param being
compared to doesn't also have the space.

We now use pj_scan_get() to parse the param part of rtpmap so
trailing whitespace is automatically stripped.

ASTERISK-29654

Change-Id: Ibd0a4e243a69cde7ba9312275b13ab62ab86bc1b
---
A third-party/pjproject/patches/0120-pjmedia_sdp_attr_get_rtpmap-Strip-param-trailing-whi.patch
1 file changed, 32 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/85/16485/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/16485
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ibd0a4e243a69cde7ba9312275b13ab62ab86bc1b
Gerrit-Change-Number: 16485
Gerrit-PatchSet: 2
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20210914/213ae474/attachment.html>


More information about the asterisk-code-review mailing list