[sr-dev] [kamailio] avpops: avp_copy add xavp (#7)

Victor Seva notifications at github.com
Tue Dec 9 23:39:55 CET 2014


We have avp_copy on avpops module but we don’t have anything to copy xavps.
```
// copy all the content of an avp to a xavp
$xavp(a[0]=>b) = $(avp(x)[*]);
// deleting left content
$xavp(a[0]=>b[*]) = $(avp(x)[*]);
// copy xavp to a xavp with index
$xavp(a[0]) = $xavp(b[1]);
// all
$xavp(a[*]) = $xavp(b[*]);
// copy all content of a xavp to a avp
$avp(x) = $xavp(a[0]=>b[*]);
```

---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20141209/0208ca93/attachment.html>


More information about the sr-dev mailing list