[SR-Users] Increase diversion counter

Igor Potjevlesch igor.potjevlesch at gmail.com
Mon Jul 4 19:09:12 CEST 2016


Hello Juha,

Yes, I seen this parameter.

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 to modify the header.

Is there something smarter to do?

Regards,

Igor.


-----Message d'origine-----
De : sr-users [mailto:sr-users-bounces at lists.sip-router.org] De la part de Juha Heinanen
Envoyé : lundi 4 juillet 2016 16:08
À : miconda at gmail.com; Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
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/pseudovariables#dic_-_diversion_counter_parameter

-- juha

_______________________________________________
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




More information about the sr-users mailing list