Hello,
look at the textopsx module -- there are some functions to get/set parameters from/to sip headers.
Another option is to play with transformations to extract the value, increase it, then use subst_hf() to replace it (or remove old header and add a new one built based on the old one).
Cheers, Daniel
On 04/07/16 15:32, Igor Potjevlesch wrote:
Hello,
I'm looking for the best way to increase the Diversion counter. If my Kamailio is the first to generate a call forward I can manage this with static value into suffix params.
But, if the Diversion counter is already set, I don't see how to handle this properly.
Someone has already work on this?
Regards,
Igor.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users