Dear Friends,
I am trying to replace the "From" header field with "anonymous" and then test
the "From" header field to see if it contains "anonymous". When the "search"
is executed, it can not find the "anonymous" in the From header field although
it seems to have been replaced successfully.
Does anyone know what the problem is?
Thanks
Ramin
------------------------------------------------------------------------ ------------------------------------------------------------------------ ---------
"replace" and "search"
replace("^From:(.*)>" , "From: "Anonymous" sip:anonymous@anonymous.com");
if (search("^(f|F)rom:.*(a|A)nonymous"))
{
log(3, "From field tested WAS Anonymous\n");
}
else
{
log(3, "From field tested NOT Anonymous\n");
}
------------------------------------------------------------------------ ------------------------------------------------------------------------ ---------