[SR-Users] Increase diversion counter

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 15:47:46 CEST 2016


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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160704/c38744ad/attachment.html>


More information about the sr-users mailing list