Hello,
On 02.03.18 12:28, Aymeric Moizard wrote:
I haven't looked for the options offered by the textopsx module, being added by ser devs in the past, but if your case of not doing www/proxy_authenticate() or auth_check() is to avoid a database query, then do pv_auth_check(...) with a random password and the proper relam. Ignore the result, the header is parsed, even if authentication fails, and you should be able to use consume_credentials().Hi list!
I'm trying to remove Proxy-Authorization dedicatedto local subscriber without -and not the other onesdedicated to other server-
I realized that "consume_credentials" doesn't workbecause it requires that a call to "www_authorize,proxy_authorize, www_authenticate or proxy_authenticate"has been made before. I have a use-case where this isn'tcalled.
I don't want to use such code:
if (is_present_hf("Proxy-Because this may remove a "Proxy-Authorization"Authorization")) { remove_hf("Proxy- Authorization"); } for another service.
I have seen this: has_credentials but it doesn't helpto know which header is the one containing the header...
Any good way to find the header and index?And then remove it with remove _hf_value2?
Cheers,
Daniel
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - March 5-7, 2018, Berlin - www.asipto.com Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com