Re: sdp_remove_media() always uses the original message, right?
Benoit Panizzon via sr-users <[email protected]>
| Newsgroups | gmane.comp.voip.ser |
|---|---|
| Organization | ImproWare AG |
| Message-ID | <[email protected]> |
Hi Ihor
> In theory for every media type you have a separate m= line. So, knowing how
> lumps system in Kamailio is working, it's ok not to
> call msg_apply_changes() in between, as you are not modifying the SAME
> lines,
Ok, so this probably explains the seemingly inconsistend behaviour I
observed.
sdp_remove_media("video");
sdp_remove_media("image");
without calling msg_apply_change() works!
But:
SDP contains: PCMA,PCMU,G729,OPUS,AMR-WB
Determine we want to remove low quality and US codec form A leg:
sdp_remove_codecs_by_name(PCMU,G729);
performing routing, finding out B needs some codecs removed:
sdp_remove_codecs_by_name(AMR-WB,opus,t38);
Will revert removal of PCMU and G729 if no msg_apply_changes() is
called in between, right?
Mit freundlichen Grüssen
-Benoît Panizzon-
--
I m p r o W a r e A G - Leiter Commerce Kunden
______________________________________________________
Zurlindenstrasse 29 Tel +41 61 826 93 00
CH-4133 Pratteln Fax +41 61 826 93 01
Schweiz Web http://www.imp.ch
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!