[sr-dev] git:master:5f2c2bb5: avpops: note that avp_copy() is reversing the order of the values

Daniel-Constantin Mierla miconda at gmail.com
Tue Jul 12 17:52:36 CEST 2016


Module: kamailio
Branch: master
Commit: 5f2c2bb5883a43cb01140b730aa126fc5d2f58d6
URL: https://github.com/kamailio/kamailio/commit/5f2c2bb5883a43cb01140b730aa126fc5d2f58d6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-12T17:51:53+02:00

avpops: note that avp_copy() is reversing the order of the values

- reported by GH #706

---

Modified: modules/avpops/doc/avpops_admin.xml

---

Diff:  https://github.com/kamailio/kamailio/commit/5f2c2bb5883a43cb01140b730aa126fc5d2f58d6.diff
Patch: https://github.com/kamailio/kamailio/commit/5f2c2bb5883a43cb01140b730aa126fc5d2f58d6.patch

---

diff --git a/modules/avpops/doc/avpops_admin.xml b/modules/avpops/doc/avpops_admin.xml
index 81cdc37..f000480 100644
--- a/modules/avpops/doc/avpops_admin.xml
+++ b/modules/avpops/doc/avpops_admin.xml
@@ -826,8 +826,12 @@ avp_check("$xavp(op=>foo[*])","fm/$xavp(op=>fm[$var(id)])/g");
 			</listitem>
 			</itemizedlist>
 			<para>
-			This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
-			BRANCH_ROUTE, LOCAL_ROUTE and ONREPLY_ROUTE.
+				NOTE: if a list of AVPs is copied/moved (flag g|G), then the order
+				of the values is reversed. Copy/move twice in order to get the same
+				order as in original list.
+			</para>
+			<para>
+			This function can be used from ANY_ROUTE.
 			</para>
 			<example>
 				<title><function>avp_copy</function> usage</title>




More information about the sr-dev mailing list