Thanks for the info, It's working with: replace_body_atonce("a=fmtp:8.vad=no.(\x0A)", "");
BR Laurent -----Message d'origine----- De : sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] De la part de Daniel-Constantin Mierla Envoyé : mardi 19 novembre 2013 12:57 À : Kamailio (SER) - Users Mailing List Objet : Re: [SR-Users] remove a line from SDP Hello, can you try with replace_body_atonce(): http://www.kamailio.org/docs/modules/stable/modules/textops.html#idp126936 Otherwise, you should try matching the \n as well which is not included by wildcard matching '.*'. Cheers, Daniel On 11/19/13 11:14 AM, Laurent Schweizer wrote: > Dear all, > > I try to remove a line from an SDP with: > > subst_body('/^a=fmtp:8 vad=no(.*)$//g'); > > unfortunately the "0a" of the end of line ( 0d0a ) is not removed, > so the "$" remove only the 0d > > any idea how to remove the last "0a" > > Best regards > > Laurent > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > list sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Trainings - Berlin, Nov 25-28 - more details about Kamailio trainings at http://www.asipto.com - _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users