[SR-Users] add a=fmtp: if it does not exist in sdp

Henning Westerholt hw at gilawa.com
Thu Mar 10 17:05:56 CET 2022


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 <sr-users-bounces at lists.kamailio.org> On Behalf Of Krzysztof Drewicz
Sent: Tuesday, March 8, 2022 5:48 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
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
 kdrewicz at cludo.pl | www.cludo.pl

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users at lists.kamailio.org
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



More information about the sr-users mailing list