[SR-Users] Count number of headers of type

Joel Serrano | VOZELIA joel at vozelia.com
Sat Jun 25 01:51:07 CEST 2016


Hi, 

It there an easy way to count the number of existing headers of certain type?

For example:

- How many 'via' headers: $hdrcount(Via) ?
- How many 'diversion' headers: $hdrcount(Diversion) ?

The $hdrcount is an example, just wondering if there is an easy way to get the number.

Thanks.

Best regards, 
Joel.



More information about the sr-users mailing list