Module: kamailio
Branch: master
Commit: 09232b92f960ac257ae69b87ac5205a563ebeb48
URL: https://github.com/kamailio/kamailio/commit/09232b92f960ac257ae69b87ac5205a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-08-26T11:46:20+02:00
modules: readme files regenerated - sdpops ...
---
Modified: modules/sdpops/README
---
Diff: https://github.com/kamailio/kamailio/commit/09232b92f960ac257ae69b87ac5205a…
Patch: https://github.com/kamailio/kamailio/commit/09232b92f960ac257ae69b87ac5205a…
---
diff --git a/modules/sdpops/README b/modules/sdpops/README
index 1c24eb7..fdbafd2 100644
--- a/modules/sdpops/README
+++ b/modules/sdpops/README
@@ -26,8 +26,8 @@ Daniel-Constantin Mierla
3. Parameters
4. Functions
- 4.1. sdp_remove_codecs_by_id(list)
- 4.2. sdp_remove_codecs_by_name(list)
+ 4.1. sdp_remove_codecs_by_id(list [, mtype])
+ 4.2. sdp_remove_codecs_by_name(list [, mtype])
4.3. sdp_remove_line_by_prefix(string)
4.4. sdp_keep_codecs_by_id(list [, mtype])
4.5. sdp_keep_codecs_by_name(list [, mtype])
@@ -81,8 +81,8 @@ Chapter 1. Admin Guide
3. Parameters
4. Functions
- 4.1. sdp_remove_codecs_by_id(list)
- 4.2. sdp_remove_codecs_by_name(list)
+ 4.1. sdp_remove_codecs_by_id(list [, mtype])
+ 4.2. sdp_remove_codecs_by_name(list [, mtype])
4.3. sdp_remove_line_by_prefix(string)
4.4. sdp_keep_codecs_by_id(list [, mtype])
4.5. sdp_keep_codecs_by_name(list [, mtype])
@@ -133,8 +133,8 @@ Chapter 1. Admin Guide
4. Functions
- 4.1. sdp_remove_codecs_by_id(list)
- 4.2. sdp_remove_codecs_by_name(list)
+ 4.1. sdp_remove_codecs_by_id(list [, mtype])
+ 4.2. sdp_remove_codecs_by_name(list [, mtype])
4.3. sdp_remove_line_by_prefix(string)
4.4. sdp_keep_codecs_by_id(list [, mtype])
4.5. sdp_keep_codecs_by_name(list [, mtype])
@@ -153,7 +153,7 @@ Chapter 1. Admin Guide
4.18. sdp_with_ice()
4.19. sdp_get_line_startswith(avpvar, string)
-4.1. sdp_remove_codecs_by_id(list)
+4.1. sdp_remove_codecs_by_id(list [, mtype])
Remove the codecs provided in the parameter 'list' from all media
streams found in SDP payload. The parameter 'list' must be one item or
@@ -168,15 +168,20 @@ Chapter 1. Admin Guide
sdp_remove_codecs_by_id("0");
# remove PCMU, PCMA and GSM
sdp_remove_codecs_by_id("0,8,3");
+sdp_remove_codecs_by_id("17", "audio");
+sdp_remove_codecs_by_id("23", "video");
...
-4.2. sdp_remove_codecs_by_name(list)
+4.2. sdp_remove_codecs_by_name(list [, mtype])
Remove the codecs provided in the parameter 'list' from all media
streams found in SDP payload. The parameter 'list' must be one item or
a comma separated list of codec names. The parameter can be a static
string or a variable holding the list of codec names.
+ Optional parameter mtype can be provided to apply the operations only
+ to the streams matching m=mtype.
+
This function can be used from ANY_ROUTE.
Example 1.2. sdp_remove_codecs_by_name usage
@@ -192,6 +197,9 @@ sdp_remove_codecs_by_name("PCMU,PCMA,GSM");
Remove all SDP attribute lines beginning with 'string' in all media
streams.
+ Optional parameter mtype can be provided to apply the operations only
+ to the streams matching m=mtype.
+
This function can be used from ANY_ROUTE.
Example 1.3. sdp_remove_line_by_prefix usage
Is there any reason why the Pike RPC is not returning an array and instead
using integer suffixes? ip_addr0, ip_addr1, etc
If it will not break anything I would like to change this behavior.
here is a sample:
{
"max_hits":16,
"ip_addr0":"XX0.5X.X3.1XX",
"leaf_hits_prev0":51,
"leaf_hits_curr0":9,
"expires0":4,
"status0":"HOT",
"ip_addr1":"XX8.1X9.8.X7",
"leaf_hits_prev1":17,
"leaf_hits_curr1":0,
"expires1":2,
"status1":"HOT",
"number_of_rows":2
}
here is what i propose:
{
"max_hits":16,
"number_of_rows":2,
"list" :
[
{
"ip_addr":"XX0.5X.X3.1XX",
"leaf_hits_prev":51,
"leaf_hits_curr":9,
"expires":4,
"status":"HOT"
},
{
"ip_addr":"XX8.1X9.8.X7",
"leaf_hits_prev":17,
"leaf_hits_curr":0,
"expires":2,
"status":"HOT"
}
]
}
Kelvin Chua
Hi,
When translating strings with the dialplan module, you sometimes end up
with very complex patterns for sanitizing the target string and
performing some replacements, since for a given dialplan id, processing
stops on the first match within the dialplan entries for a given dpid.
The idea is to introduce a "continue" flag (default 0) in the dialplan
table indicating to proceed with processing further dialplan entries
within the given dpid after a match. The use case is to have a sanitize
rule with highest priority which e.g. removes any spaces, dashes and
parentheses from the target string, then with a lower priority do
further processing with the cleaned up string, e.g. stripping leading
double-zeroes or a plus when normalizing to E164 numbers, or replacing a
single leading zero with the country code and so on.
This is particularly useful when a user dials a number from an address
book of some sort (e.g. on a mobile app) where number formats are stored
with country-specific formating characters like "+1-(234)-567 890", and
catching all of that in one rule results in really messy match/replace
patterns.
Any objections or feedback on that?
Cheers,
Andreas