[OpenSER-Users] Question about append-hf and remove_hf

Helmut Kuper helmut.kuper at ewetel.de
Tue Jan 8 11:52:00 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I add some private headerfields (append-hf) during main route resp.
sub-routes like "route(3)" and in certain cases I want to remove
(remove_hf) some of them in main route befor sending request out.
Unfortunately that doesn't work.

Even when I add a header field and test for it directly afterwards or
try to remove it, openser doesn't find anything. Test-Code is like this:

append_hf("P-SI: sad\r\n");
if(is_present_hf("P-SI")) xlog("L_INFO", "######## Found\n");
if(remove_hf("P-SI")) xlog("L_INFO", "######## Removed\n");


textops doc has a hint at append_hf:

"
...
Note: Headers which are added in main route cannot be removed in further
routes (e.g. failure routes). So, the idea is not to add there any
headers that you might want to remove later. To add headers temporarely
use the branch route because the changes you do there are per-branch.
"

Not sure if this is the reason for my problem. Is this a bug? Is there a
way to add header fields temporarely?

regards
Helmut
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHg1XQ4tZeNddg3dwRArKlAJ9vTWjg93/MeR8w+7R3XtP90p2eDwCgq/90
OfBsmaeapmBrGez4+Rt8NXQ=
=3cte
-----END PGP SIGNATURE-----




More information about the sr-users mailing list