True. and agreed.
I was actually trying to be more general, i.e., if I wanted to do some
processing on the contents of a specific header, would it be more
efficient to extract that header using avp_printf(), and then search
within it, as compared to just searching on the whole message
The answer, as it turns out, is that yes it is probably faster (limited
to walking through and extracting just the header), and safer (less
chance of matching against something else altogether)
thanx
Daniel-Constantin Mierla wrote:
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.
Daniel
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
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users
begin:vcard
fn:Kanakatti Mahesh Subramanya
n:Subramanya;Kanakatti
org:Aptela, Inc.
adr:;;1616 Anderson Road;McLean;VA;22102;USA
email;internet:[EMAIL PROTECTED]
title:CTO
tel;work:800.979.4638x9100
tel;fax:800.979/4638
tel;home:312.491.1909
tel;cell:773.220.6484
x-mozilla-html:TRUE
url:http://www.aptela.com
version:2.1
end:vcard
_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users