[SR-Users] update PAI Header User part

Karsten Horsmann khorsmann at gmail.com
Fri Jun 24 17:33:04 CEST 2022


Hi,

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


Patrick Karton <patrickarton at hotmail.com> 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
>   * sr-users at lists.kamailio.org
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220624/299fbdab/attachment.htm>


More information about the sr-users mailing list