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 to modify the header.
> 
> Is there something smarter to do?

You just re-create the header with increased counter value. Something
like this (not tested):

$var(counter) = (str)((int)$dic + 1);
append_hf("Diversion: <$di>;reason=$dir;counter=$var(counter)\r\n");

-- Juha

_______________________________________________
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

Reply via email to