[Users] Faster to do avp_printf();avp_check OR search()?

Daniel-Constantin Mierla daniel at voice-system.ro
Thu Aug 25 15:10:14 CEST 2005

If you want just to check if there is a Refer-To header, you can use the 
function is_present_hf() from textops module. This is the fastest way to 
check if a header exists.


On 08/24/05 16:12, Kanakatti M. Subramanya wrote:

> e.g., if I want to do something if there is a Refer-To header in the 
> message,
> am I better off doing
> avp_printf("$someAvp", "$rt");
> avp_check("$rt", "re/.../i");
> or
> search("/.../");
> Just want ot know whether to get started rewriting all the "search()" 
> strings i have in my ser.cfg....
> cheers
>Users mailing list
>Users at openser.org

More information about the sr-users mailing list