[OpenSIPS-Users] variable "counter" parameter to diversion Header

Mickael HUBERT mickael at winlux.fr
Thu May 2 16:20:23 CEST 2013


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




More information about the Users mailing list