Good idea. Tested and it works. Thank you!
Regards,
Igor.
-Message d'origine-
De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de Juha
Heinanen
Envoyé : lundi 4 juillet 2016 20:38
À : Kamailio (SER) - Users Mailing List
Objet : Re: [SR-Users] Increase dive
Igor Potjevlesch writes:
> I was thinking to increase it and put the value in the parameter of the
> module like:
> modparam("diversion", "suffix", ";privacy=off;$dic")
>
> But it doesn't work like this.
>
> So, I guess I can put this value in a variable, increase the variable
> and use textop
ailio (SER) - Users Mailing List
Objet : Re: [SR-Users] Increase diversion counter
Daniel-Constantin Mierla writes:
> look at the textopsx module -- there are some functions to get/set
> parameters from/to sip headers.
see
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariab
Daniel-Constantin Mierla writes:
> look at the textopsx module -- there are some functions to get/set
> parameters from/to sip headers.
see
http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#dic_-_diversion_counter_parameter
-- juha
___
SIP
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).
Cheer
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 w