Module: kamailio
Branch: master
Commit: 3a8896ce9e5a841087e43f6f384858799f590475
URL:
https://github.com/kamailio/kamailio/commit/3a8896ce9e5a841087e43f6f3848587…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-06-15T15:31:10+02:00
modules: readme files regenerated - siputils ... [skip ci]
---
Modified: src/modules/siputils/README
---
Diff:
https://github.com/kamailio/kamailio/commit/3a8896ce9e5a841087e43f6f3848587…
Patch:
https://github.com/kamailio/kamailio/commit/3a8896ce9e5a841087e43f6f3848587…
---
diff --git a/src/modules/siputils/README b/src/modules/siputils/README
index 1e8ee06460..96891336b5 100644
--- a/src/modules/siputils/README
+++ b/src/modules/siputils/README
@@ -99,6 +99,7 @@ Gabriel Vasile
4.33. contact_param_encode(pname, saddr)
4.34. contact_param_decode(pname)
4.35. contact_param_decode_uri(pname)
+ 4.36. contact_param_rm(pname)
5. Exported pseudo-variables
@@ -154,6 +155,7 @@ Gabriel Vasile
1.42. contact_param_encode usage
1.43. contact_param_decode usage
1.44. contact_param_decode_ruri usage
+ 1.45. contact_param_rm usage
Chapter 1. Admin Guide
@@ -214,6 +216,7 @@ Chapter 1. Admin Guide
4.33. contact_param_encode(pname, saddr)
4.34. contact_param_decode(pname)
4.35. contact_param_decode_uri(pname)
+ 4.36. contact_param_rm(pname)
5. Exported pseudo-variables
@@ -432,6 +435,7 @@ modparam("auth", "rpid_avp",
"$avp(myrpid)")
4.33. contact_param_encode(pname, saddr)
4.34. contact_param_decode(pname)
4.35. contact_param_decode_uri(pname)
+ 4.36. contact_param_rm(pname)
4.1. ring_insert_callid()
@@ -1037,6 +1041,23 @@ if (is_method("INVITE") and src_ip == 1.2.3.4) {
}
...
+4.36. contact_param_rm(pname)
+
+ This function removes the parameter from the URIs inside the Contact
+ headers.
+
+ Meaning of the parameters is as follows:
+ * pname - name of the URI parameter.
+
+ This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
+
+ Example 1.45. contact_param_rm usage
+...
+if (is_method("REGISTER") and src_ip == 1.2.3.4) {
+ contact_param_rm("myparam");
+}
+...
+
5. Exported pseudo-variables
5.1. $pcv(all)