Thanks Sergiu,

I ended up just removing the header and then adding it again. Worked like a
charm.


Thanks

On Thu, 8 Oct 2020 at 23:46, Sergiu Pojoga <[email protected]> wrote:

> You could probably use subst_hf regex to replace what's needed, something
> like:
>
> subst_hf("Proxy-Authenticate", "/:test@/:best@/", "a");
>
> On Thu, Oct 8, 2020 at 6:28 PM David Villasmil <
> [email protected]> wrote:
>
>> Hello guys,
>>
>> I'm receiving a Proxy-Authenticate header with a special parameter, call
>> if "myparam", something like:
>>
>> Proxy-Authenticate: Digest realm="sip.mydomain.com", nonce="...",
>> algorithm=MD5, qop="auth", opaque="XXXX/YYYY"
>>
>> I can get the parameter like so:
>>
>> $var(myparam) = @proxy_authorization["sip.mydomain.com"].myparam;
>>
>> And this is great!
>>
>> But i need to replace part of the parameter "myparam"m and I can't figure
>> out how to do it...
>>
>> Can anyone help me with this?
>>
>> Thanks!,
>>
>> David Villasmil
>> email: [email protected]
>> phone: +34669448337
>>
>
>>
>> _______________________________________________
>>
>>
>> Kamailio (SER) - Users Mailing List
>>
>>
>> [email protected]
>>
>>
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>>
>
> _______________________________________________
>
> Kamailio (SER) - Users Mailing List
>
> [email protected]
>
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
Regards,

David Villasmil
email: [email protected]
phone: +34669448337
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to