Complete basic implementation to intersect SDPs

Issue: #107
Change-Id: Icb31f293ce35e832b4094892b0b29e63c39bee7a
Reviewed-on: https://repository.kurento.com:9999/2332
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Make directions constants public

Issue: #107
Change-Id: I45cdf852f341e082e7ca629ec5fa00c1823a9c05
Reviewed-on: https://repository.kurento.com:9999/2333
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Copy timing information of the original request

Issue: #107
Change-Id: I10dbb2bd1b4e83b150a6e7bfd185f365ad38ce7c
Reviewed-on: https://repository.kurento.com:9999/2348
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Add inactive to sdp directions

Issue: #107
Change-Id: I2bdc4e3fbe8953af6aad0d712da2af2a825b6e17
Reviewed-on: https://repository.kurento.com:9999/2349
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
If no intersection is found, add an inactive media to keep offer order

Issue: #107
Change-Id: I674988310b117c4522d107c1321cb9bf501a2c82
Reviewed-on: https://repository.kurento.com:9999/2350
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
As specified by rfc3264 sdp time line should be "t=0 0"

Issue: #107
Change-Id: I91bc958a7c2b34717a14c5a9adc0bac3c500d94b
Reviewed-on: https://repository.kurento.com:9999/2351
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Simplify intersection code

 - Using generic function for adding a format
 - Using g_ascii_strcasecmp insteadof g_ascii_strncasecmp
 - Not allocating new memory when looking for a rtpmap
 - Declaring variables in smallest context as possible

Issue: #107
Change-Id: I35e1a4a795f525f050b257013b144d7bc46d8e0a
Reviewed-on: https://repository.kurento.com:9999/2352
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Add at least one media format to inactive medias

According to rfc4566 each media type has to be at least one format

Issue: #107
Change-Id: I657743b9967899e68ab28ab69a80351b60959477
Reviewed-on: https://repository.kurento.com:9999/2353
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Improve intersection of static formats

Issue: #107
Change-Id: I0c8b547cc31ed86066e5a265905d16d6cfdd4674
Reviewed-on: https://repository.kurento.com:9999/2356
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Minor issues on agnosticbin

Change-Id: Id087fdd77d238c2dcfc52304c72afed0d7e5de38
Reviewed-on: https://repository.kurento.com:9999/2359
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Move caps declaration to header file

Issue: #130
Change-Id: Iadad9cdb55746736d250c4860b8dbfa5df3a0be9
Reviewed-on: https://repository.kurento.com:9999/2358
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Add basic implementation of Joinable object

Issue: #130
Change-Id: I715a6e57e17e8d6cd3bd6e42882268402b55761a
Reviewed-on: https://repository.kurento.com:9999/2360
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Create base stream class

Issue: #131
Change-Id: I073fb311cceab2e8197a0c9bc90f2238b9b02a87
Reviewed-on: https://repository.kurento.com:9999/2361
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Add basic BaseRtpStream object implementation

Issue: #132
Change-Id: Iec0b638c06a49b94f1eb32af252a9fd9a7e13905
Reviewed-on: https://repository.kurento.com:9999/2362
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Add basic implementation of udpstream

Issue: #129
Change-Id: I81ff3011a36fc50598f6d5deb9b563ec28fa2a07
Reviewed-on: https://repository.kurento.com/gerrit/2363
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
joinable: Create valves to be connected to sink pads

Issue: #130
Change-Id: I4f7b773ddd78a4bed597d7852c5976467871f4ce
Reviewed-on: https://repository.kurento.com/gerrit/2364
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
basertpstream: Add rtpbin to basertpstream

Issue: #132
Change-Id: I2151cbf85b652cf8006c3413c0135ae6872ac1bd
Reviewed-on: https://repository.kurento.com/gerrit/2367
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
agnosticbin: pad does not store queue on its extra data

Instead the target pad is used to get it.

Change-Id: I82d78e40116da9ae217589f9f3ce5b162df9ccf9
Reviewed-on: https://repository.kurento.com/gerrit/2370
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
joinable: Keep reference of agnosticbin elements on object structure

Issue: #130
Change-Id: If832c5e0fa6297f060e2609beb67956c7404ec39
Reviewed-on: https://repository.kurento.com/gerrit/2369
Reviewed-by: Miguel París Díaz <mparisdiaz@gmail.com>
Tested-by: Miguel París Díaz <mparisdiaz@gmail.com>
Reviewed-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tested-by: Jose Antonio Santos Cadenas <santoscadenas@gmail.com>
udpstream: Configure sockets to create udp sources and sinks

Issue: #129
Change-Id: I5ae67f3a631c9a7ddd644f9f169f27d7b33aa07f