Thank you very much, it's perfect ;)

but, if I have many Diversion header in the same INVITE ? This command works ?



Le 02/05/2013 15:06, Saúl Ibarra Corretgé a écrit :
On May 2, 2013, at 1:51 PM, Mickael HUBERT wrote:

Hi list,
I would like parse Diversion header and to have in variable counter parameter.
I have alredy $dip to privacy parameter, etc ... , but I don't have counter 
para.

how can I do have the parameter please ?

You can use the following transformation:

var counter = $(hdr(Diversion){param.value,counter}{s.int});

That will give you the integer value of the counter.


Regards,

--
Saúl Ibarra Corretgé
AG Projects




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to