Module: kamailio
Branch: master
Commit: 79cf8d5829c23757c500d50b83d351d358cd8de7
URL: https://github.com/kamailio/kamailio/commit/79cf8d5829c23757c500d50b83d351d…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2016-07-12T18:01:18+02:00
modules: readme files regenerated - avpops ...
---
Modified: modules/avpops/README
---
Diff: https://github.com/kamailio/kamailio/commit/79cf8d5829c23757c500d50b83d351d…
Patch: https://github.com/kamailio/kamailio/commit/79cf8d5829c23757c500d50b83d351d…
---
diff --git a/modules/avpops/README b/modules/avpops/README
index acbc983..27ea1cb 100644
--- a/modules/avpops/README
+++ b/modules/avpops/README
@@ -579,8 +579,11 @@ avp_check("$xavp(op=>foo[*])","fm/$xavp(op=>fm[$var(id)])/g");
+ name = ( avp_name | avp_alias ) ['/'flags]
+ flags = 'g' | 'G' | 'd' | 'D' | 'n' | 'N' | 's' | 'S'
- 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.
+
+ This function can be used from ANY_ROUTE.
Example 1.19. avp_copy usage
...
The avp_copy function from the avpops seems to revert the avplist, but it is not documented. Would be great to have that behavior documented.
---
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/issues/706
Module: kamailio
Branch: master
Commit: 5f2c2bb5883a43cb01140b730aa126fc5d2f58d6
URL: https://github.com/kamailio/kamailio/commit/5f2c2bb5883a43cb01140b730aa126f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/5f2c2bb5883a43cb01140b730aa126f…
Patch: https://github.com/kamailio/kamailio/commit/5f2c2bb5883a43cb01140b730aa126f…
---
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>