[SR-Users] subst query

mahesh b mahesh.b.2487 at gmail.com
Mon Jul 2 14:52:10 CEST 2018


Hi ,
     Can someone explain me what is \1 and \3 doing in the subst expression
?

Input        :                    From: <sip:anonymous at 10.211.160.168
>;tag=41008079_nab_FFFF_isp_FFFF_cco_FFFF_igo_FFFF_mgt_78DD
subst('/^From:(.*)10.211.160.168(.*)>(.*)/From:\110.211.160.174>\3/ig');
Output     :                  From: <sip:anonymous at 10.211.160.174
>;tag=41008079_nab_FFFF_isp_FFFF_cco_FFFF_igo_FFFF_mgt_78DD

Regards,
Mahesh.b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180702/322bd646/attachment.html>


More information about the sr-users mailing list