Hello,

already tried this one?

https://kamailio.org/docs/modules/5.5.x/modules/sdpops.html#sdpops.f.remove_line_by_prefix

Cheers,

Henning

-- 
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com

-----Original Message-----
From: sr-users <[email protected]> On Behalf Of Krzysztof 
Drewicz
Sent: Tuesday, March 8, 2022 5:48 PM
To: Kamailio (SER) - Users Mailing List <[email protected]>
Subject: [SR-Users] add a=fmtp: if it does not exist in sdp

Hello

i try to fix one endpoint, it does neet do have a

a=rtpmap:116 telephone-event/8000
a=fmtp:116 0-15

sometimes i got:
a=rtpmap:115 telephone-event/8000

and sometimes:
a=rtpmap:114 telephone-event/8000
a=fmtp:114 0-15

so - should i use txtops and search for fmtp, and use

search_append_body ?
ifsearch_body(re) does not find 'a=fmtp:95' (95..127 - dynamic payload here), 
or am I reinventing the wheel again ? Any hints?

--
Krzysztof Drewicz
Senior Infrastructure Administrator
CLUDO | ul. Grochowska 306/308, 03-840 Warszawa
t+48221223977
 [email protected] | www.cludo.pl

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
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

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
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

Reply via email to