From ulus_egemen@hotmail.com Thu Jun 18 15:03:25 2020 From: egemen ulus To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Remove a Line from SDP Date: Thu, 18 Jun 2020 13:02:58 +0000 Message-ID: In-Reply-To: <305a63a2-6372-5158-0a82-39d3ae339956@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1500444874==" --===============1500444874== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thanks Daniel, that works great! E.U Get Outlook for Android ________________________________ From: Daniel-Constantin Mierla Sent: Thursday, June 18, 2020 2:14:23 PM To: Kamailio (SER) - Users Mailing List ; egem= en ulus Subject: Re: [SR-Users] Remove a Line from SDP Hello, if you need it before t_relay(), then you have to use msg_apply_changes() fro= m textopsx module (check the docs for its constraints). Otherwise look at the network traffic to see what is sent out and probably th= e line is removed. Cheers, Daniel On 18.06.20 10:43, egemen ulus wrote: Hi all, I am trying to remove a line from the SDP body of INVITE on kamailio 4.4 via = SDPOPS module but it does not work even though there is no any error message. This is how I configure kamailio.cfg, it matches with if condition and execut= es "sdp_remove_line_by_prefix" function, but when I check sended INVITE, I st= ill see the line that beginning with "a=3Drtpmap". I thought, in the RELAY fu= nction, the sdp body might not prepared yet? Is there any suggestion to remov= e a line from the SDP body? route[RELAY] { ... ... if(is_method("INVITE")) { if( $ct =3D~ "0553847aaaa"){ xlog("L_WARN", "$ct check_this \n"); sdp_remove_line_by_prefix("a=3Drtpmap"); } } } /path/kamailio[10332]: exec: *** cfgtrace:request_route=3D[RELAY] c=3D[/path/= kamailio.cfg] l=3D614 a=3D16 n=3Dif /path/kamailio[10332]: exec: *** cfgtrace:request_route=3D[RELAY] c=3D[/path/= kamailio.cfg] l=3D611 a=3D26 n=3Dxlog /path/kamailio[10332]: WARNING: