[SR-Users] update PAI Header User part

Patrick Karton patrickarton at hotmail.com
Tue Jun 21 10:25:29 CEST 2022


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220621/9a01e063/attachment.htm>


More information about the sr-users mailing list