Module: kamailio
Branch: master
Commit: 3d6bf976944580a06a9019966e4af5850bc9b7d8
URL: https://github.com/kamailio/kamailio/commit/3d6bf976944580a06a9019966e4af58…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2017-07-16T09:01:26+02:00
modules: readme files regenerated - sdpops ... [skip ci]
---
Modified: src/modules/sdpops/README
---
Diff: https://github.com/kamailio/kamailio/commit/3d6bf976944580a06a9019966e4af58…
Patch: https://github.com/kamailio/kamailio/commit/3d6bf976944580a06a9019966e4af58…
---
diff --git a/src/modules/sdpops/README b/src/modules/sdpops/README
index 573e1fc68a..6e6fa7ff08 100644
--- a/src/modules/sdpops/README
+++ b/src/modules/sdpops/README
@@ -35,7 +35,7 @@ Daniel-Constantin Mierla
4.7. sdp_with_active_media(type)
4.8. sdp_remove_media(type)
4.9. sdp_with_transport(type)
- 4.10. sdp_with_transport_like(string)
+ 4.10. sdp_with_transport_like(type)
4.11. sdp_transport(pv)
4.12. sdp_remove_transport(type)
4.13. sdp_with_codecs_by_id(list)
@@ -90,7 +90,7 @@ Chapter 1. Admin Guide
4.7. sdp_with_active_media(type)
4.8. sdp_remove_media(type)
4.9. sdp_with_transport(type)
- 4.10. sdp_with_transport_like(string)
+ 4.10. sdp_with_transport_like(type)
4.11. sdp_transport(pv)
4.12. sdp_remove_transport(type)
4.13. sdp_with_codecs_by_id(list)
@@ -142,7 +142,7 @@ Chapter 1. Admin Guide
4.7. sdp_with_active_media(type)
4.8. sdp_remove_media(type)
4.9. sdp_with_transport(type)
- 4.10. sdp_with_transport_like(string)
+ 4.10. sdp_with_transport_like(type)
4.11. sdp_transport(pv)
4.12. sdp_remove_transport(type)
4.13. sdp_with_codecs_by_id(list)
@@ -329,26 +329,27 @@ sdp_remove_media("video");
4.9. sdp_with_transport(type)
Return true of the SDP has 'media=media port type ...' line. Useful to
- check the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP'
- or 'RTP/SAVPF'. The parameter can be static string or variable holding
- the transport type.
+ check the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP',
+ 'RTP/SAVPF' or 'UDP/TLS/RTP/SAVPF'. The parameter can be static string
+ or variable holding the transport type. The function does an exact
+ match of the strings.
This function can be used from ANY_ROUTE.
Example 1.9. sdp_with_transport usage
...
# check for RTP/SAVP stream
-if(sdp_with_transport("RTP/SAVP"))
+if(sdp_with_transport("UDP/TLS/RTP/SAVPF"))
{
- # the session has a SRTP/SAVP stream
+ # the session has a UDP/TLS/RTP/SAVPF stream
}
...
-4.10. sdp_with_transport_like(string)
+4.10. sdp_with_transport_like(type)
Returns true if the SDP has 'media=media port type ...' line, where
- type contains string. The parameter can be static string or variable
- holding a string.
+ type contains the string in the parameter. The parameter can be static
+ string or variable holding a string.
This function can be used from ANY_ROUTE.
Module: kamailio
Branch: master
Commit: cad4b8f456d3508a2ec3196c89a4a8e3ce9d9d32
URL: https://github.com/kamailio/kamailio/commit/cad4b8f456d3508a2ec3196c89a4a8e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-16T08:55:30+02:00
sdpops: more details for sdp_with_transport() docs
---
Modified: src/modules/sdpops/doc/sdpops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/cad4b8f456d3508a2ec3196c89a4a8e…
Patch: https://github.com/kamailio/kamailio/commit/cad4b8f456d3508a2ec3196c89a4a8e…
---
diff --git a/src/modules/sdpops/doc/sdpops_admin.xml b/src/modules/sdpops/doc/sdpops_admin.xml
index 53a255209c..7065f688b1 100644
--- a/src/modules/sdpops/doc/sdpops_admin.xml
+++ b/src/modules/sdpops/doc/sdpops_admin.xml
@@ -10,13 +10,13 @@
<!-- Module User's Guide -->
<chapter>
-
+
<title>&adminguide;</title>
-
+
<section>
<title>Overview</title>
<para>
- This module provides functions for checking and managing the
+ This module provides functions for checking and managing the
<acronym>SDP</acronym> payloads of SIP messages.
</para>
<para>
@@ -321,9 +321,11 @@ sdp_remove_media("video");
<function moreinfo="none">sdp_with_transport(type)</function>
</title>
<para>
- Return true of the SDP has 'media=media port type ...' line. Useful to check
- the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP' or 'RTP/SAVPF'. The
- parameter can be static string or variable holding the transport type.
+ Return true of the SDP has 'media=media port type ...' line. Useful to
+ check the transport of the RTP sessions, such as 'RTP/AVP', 'RTP/SAVP',
+ 'RTP/SAVPF' or 'UDP/TLS/RTP/SAVPF'. The parameter can be static string
+ or variable holding the transport type. The function does an exact
+ match of the strings.
</para>
<para>
This function can be used from ANY_ROUTE.
@@ -333,9 +335,9 @@ sdp_remove_media("video");
<programlisting format="linespecific">
...
# check for RTP/SAVP stream
-if(sdp_with_transport("RTP/SAVP"))
+if(sdp_with_transport("UDP/TLS/RTP/SAVPF"))
{
- # the session has a SRTP/SAVP stream
+ # the session has a UDP/TLS/RTP/SAVPF stream
}
...
</programlisting>
@@ -343,11 +345,11 @@ if(sdp_with_transport("RTP/SAVP"))
</section>
<section id="sdpops.f.sdp_with_transport_like">
<title>
- <function moreinfo="none">sdp_with_transport_like(string)</function>
+ <function moreinfo="none">sdp_with_transport_like(type)</function>
</title>
<para>
Returns true if the SDP has 'media=media port type ...' line,
- where type contains string. The
+ where type contains the string in the parameter. The
parameter can be static string or variable holding a string.
</para>
<para>
I realized with more tests that my previous commit for core.sockets_list 38f514064a326f759e0e88adeffd03b32b35d6c0 is not working. The result is returned yes as an array but inside there is still the sockets list as an object (so with multiple "socket" keys). Digging more in kamailio json lib I understood that to be considered an array the rpc result must be enclosed in "[]".
I was misled by a wrong test result, sorry for the noise.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1187
-- Commit Summary --
* core: build reply of core.sockets_list as an array
-- File Changes --
M src/core/core_cmd.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1187.patchhttps://github.com/kamailio/kamailio/pull/1187.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1187