This code as it is is useless, unless we print the content or do something before making the copy but can provide a way to to duplicate/reorder stacks.
Maybe looping over if (defined $xavp(x[$var(i)])) Is sufficient, no need to pv_unset
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users