Donat Zenichev
f343df5587
MT#60480 Limitation of origin id/ver to 64bits (unsigned long long)
...
SDP session origin id and version are limited by it's size
to 64 bits (8 bytes), that is because we are using `unsigned long long`
type for both id and version. Hence the maximum value it can hold
is two sixty-forth power, so equals: 18,446,744,073,709,551,615
In case one intentionally sets it to something like:
"o=- 18446744073709551615 18446744073709551615 IN IP4 192.168.0.1"
SEMS gets overwhelmed with that conversion inside the code make
it just to a string literal 'F'.
To overcome it, just use __uint128 (which is of 128bits size)
for the session origin id and version.
Change-Id: I2ad9659aa81dad79969749053dc3fd0d69e2cbd2
2 years ago
Donat Zenichev
ced4a52c5d
MT#56772 AmSdp: covert sessId / sessV to llu
...
Use `unsigned long long` for SDP session id and version
instead of unsigned int.
Refactor all usage of them accordingly.
Additionally intrdouce new utils functions for conversion:
- `ulonglong2str()` - converts `unsigned long long` to `string`
- `str2ull()` - converts `string` to `unsigned long long`
Change-Id: I4210349a5442d4173b14227497f4a01d68cad7a4
2 years ago
Donat Zenichev
a18d614504
MT#57407 warning: this 'if' clause does not guard... (AmSdp.cpp)
...
This commit fixes that:
AmSdp.cpp: In function 'void parse_sdp_media(AmSdp*, char*)':
AmSdp.cpp:858:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
858 | if (next > media_line)
| ^~
AmSdp.cpp:860:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
860 | m.type = media_type(media);
| ^
Change-Id: Ie5b7760d3e11ec825ea68138d06eaeb150da202c
3 years ago
Donat Zenichev
e6dfce5041
MT#56321 Refactoring of AmSdp.cpp
...
Refactored:
- parse_sdp_attr()
- parse_sdp_line_ex()
Original ticket's number: 56278
Change-Id: Ib06cffd5746e9d55033806ab17f187d9dbd0e983
3 years ago
Victor Seva
2bf464e5cb
Imported Upstream version 1.6.0~20150612~a2d214df36
11 years ago
Victor Seva
6a96ffdbbc
Imported Upstream version 1.6.0~20150519~ae8a42
11 years ago
Victor Seva
be6b7d527c
Imported Upstream version 1.6.0~20140819~0b6d12
12 years ago
Victor Seva
df9992620d
Imported Upstream version 1.6.0~20140516~eaa616
12 years ago
Victor Seva
d8b3cbf475
Imported Upstream version 1.4.3
13 years ago
Stefan Sayer
b35e23f33a
b/f: multiple extra c-lines in generated SDP after SDP filter ( fixes #132 )
...
corresponds to fix in master 12f56bd35
14 years ago
Stefan Sayer
ddb20bd278
b/f: support values at end of SDP without CR (master 8ec8a910a2)
14 years ago
Stefan Sayer
8c10653865
b/f: T38 streams in SBC/B2B (udptl transport); proper media direction passthrough
...
Conflicts:
core/AmSdp.cpp
14 years ago
Stefan Sayer
32461b9a6e
b/f: fixing b6d5f726 (fix SBC SDP filter)
14 years ago
Stefan Sayer
8dac2df1b8
b/f: fix SBC SDP filter with connection per media only
14 years ago
Stefan Sayer
e61bca3452
b/f: some more caution handling broken SDP messages
15 years ago
Stefan Sayer
d0562c2f04
b/f: correct parsing of media as last line
15 years ago
Stefan Sayer
c88fa67cb2
b/f: process properly on short SDP
15 years ago
Raphael Coeffic
46f6d0f631
allow unsupported transport types.
15 years ago
Stefan Sayer
5e8e6212ab
fix deref (unused)
15 years ago
Stefan Sayer
6b7ebda3c9
b/f: small mem leak (AmSdp telev pl)
...
...which keeps popping up all the time again...
15 years ago
Stefan Sayer
81ad850759
make the compiler happy on 64 bits
15 years ago
Stefan Sayer
53665996a2
b/f: no rtpmap line if no encoding name given
15 years ago
Stefan Sayer
10ba13bf80
add unknown attributes (a=) parsing
...
both session and media level
15 years ago
Stefan Sayer
5e74930489
AmSdp::print function
...
(part of 177a7a8fba)
15 years ago
Raphael Coeffic
342cbe7add
- fixed bug causing invalid payloads to be added to SdpMedia::payloads.
16 years ago
Stefan Sayer
a93a1766bf
add fmtp 0-16 for telephone-event
16 years ago
Stefan Sayer
9ee91e2b27
adds parsing of u= line (URI in SDP)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1289 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
ce990dba01
fixed codec specific parameters parsing (fmtp), fixes SEMS-37
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1232 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
6dcd9e5c29
fix: reject streams in SDP answer that we don't support/want
...
reject streams offered with port 0 aswell
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1226 8eb893ce-cfd4-0310-b710-fb5ebe64c474
17 years ago
Stefan Sayer
dda9d337aa
fixed some typos
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1022 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
7cc000c545
fixes searching after end of SDP in contains function (protos c7 4220)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@931 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
9647c0fec4
removed excessive SDP body logging
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@928 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Juha Heinanen
804c52a46d
* get_next_line does not anymore advance beyond sdp body.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@881 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Juha Heinanen
c7e2aec4c4
* Fixed parsing of 'direction' media attribute.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@880 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Raphael Coeffic
f9e5c3e0cf
- fixes address (was containing \r) bug at the end of c= and o= lines.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@872 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Mikkel Liisberg
e46e35a466
another try at the direction handling bug
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@830 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Mikkel Liisberg
6ed9130a9c
corrected bug in direction handling, should work now.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@829 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
9e30482326
o moved payload selection to AmPlugIn
...
o possiblity to use other than the system (AmPlugIn) payloads for negotiation
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@817 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
8ce0158a11
setting correct origin
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@811 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
000050e926
interpreting encoding param (channels) correctly
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@796 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
23652c7be6
moved SDP helper functions to AmSdp
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@795 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
c229fc22d4
fixed scanning over eof
...
removed some ecessive debug messages
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@793 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Mikkel Liisberg
ff075f58de
NEW SDP parser, have fun :D (and test...)
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@791 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
10f1270085
fixes SDP parsing in presence of session level a line. Thanks to Keyur Parikh for the patch. Closes SEMS-27.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@781 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
9411ad3ac8
fixes for SEMS on Solaris
...
contributed by Richard Newman rnewman at twinql dot com
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@633 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
bd766323c4
ignoring case in codec name
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@594 8eb893ce-cfd4-0310-b710-fb5ebe64c474
18 years ago
Stefan Sayer
b5c6354ae8
support for setting the URI of a session in SDP
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@512 8eb893ce-cfd4-0310-b710-fb5ebe64c474
19 years ago
Stefan Sayer
019791dd09
fixes
...
o SEMS-7: RTP extension headers may be ignored if ignore_rtpxheaders=yes set in config file
o if changing payload type fails, packet will not be processed
o minor code beautification and comments added/corrected
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@418 8eb893ce-cfd4-0310-b710-fb5ebe64c474
19 years ago
Stefan Sayer
2015e9ddfd
fixes ipv6 compilation problems
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@329 8eb893ce-cfd4-0310-b710-fb5ebe64c474
19 years ago
Stefan Sayer
a1d2158b6f
codec order priority patch ba juha.
...
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@315 8eb893ce-cfd4-0310-b710-fb5ebe64c474
19 years ago