Hi,

remove the header(s) and write the new header with your needs.


Patrick Karton <[email protected]> schrieb am Di., 21. Juni 2022,
10:27:

> hello is there a cleaner/fastest way to update PAI header user part other
> than using subst
>
> i come up with
>
> subst('/^P-Asserted-Identity:(.*)(sip|sips|tel|tels):([^@]*)@([a-zA-Z0-9.]+)(.*)$/P-Asserted-Identity:\1\2:$var(newPAIUser)@\4\5/ig');
>
> Thanks.
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * [email protected]
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to