<div dir="ltr">Hello,<br><br>I have encountered several problems while configuring and testing FreeSWITCH. This is on a current master branch, but the same issues are present in older versions. The tests are done on a minimal config with these additions:<br><br>vars:<br>- remove auth<br>- global_codec_prefs=OPUS,PCMU,PCMA,VP8<br>- rtp_pass_codecs_on_stream_change=true # To be able to toggle video stream<br><br>profiles:<br>- inbound-late-negotiation (with and w/o inherit codec)<br><br>dialplan:<br>- Simple dial plan. External to Internal flow. Condition for ext, then bridge call to the other side.<br><br>Unfortunately, this Sofia options are removed from FS :( Are there alternatives for them (while using rtp_pass_codecs_on_stream_change)?<br>renegotiate-codec-on-hold|true,false<br>renegotiate-codec-on-reinvite|true,false<br><br>(a) -- (FS) -- (b)<br><br><b>1st: Hold</b> - Break transcoding.<br><br>-- INVITE (Opus, PCMA) --> |<br>                              | -- INVITE (PCMA) --><br>                              | <---- OK (PCMA) ----<br><------ OK (Opus) -------- |<br>                              .<br>                              .<br>                              | <--- ReINVITE (Hold or video on/off)<br><---- ReINVITE (PCMA) ---- |<br>                              x<br><br>I tried with absolute codec string, inbound/outbound codec prefs... it seems that FS does not keep/honor previous channel state and does not differentiate stream change from stream parameters change (like media flow).<br><br><br><b>2nd: Dynamic Payload </b>- It will offer Opus to the other side, because both have it. But FS will renegotiate with new PT number on reinvite. This break stream for some endpoints.<br><br>-- INVITE (Opus, 111) --> |<br>                             | -- INVITE (Opus, 102) --><br>                             | <---- OK (Opus, 102) ----<br><---- OK (Opus, 111) ---- |<br>                             .<br>                             .<br>                             | <-- ReINVITE (Hold or new m=line)<br><- ReINVITE (Opus, 102) - |<br>                             x<br><br>Is there a way to originate call with a codec that has a dynamic payload number, but to choose PT number? Something like setting rfc2833-pt variable for outbound channel before originating call?<br><br><br><b>3rd Media direction</b> - FS does not propagate media direction parameter to inbound channel/leg. Inbound side expect media and some endpoints will drop call after awhile. I know that answering with recvonly does not have sense for audio, but for a video it has.<br><br>-- INVITE (sendrecv) --> |<br>                            | -- INVITE (sendrecv) --><br>                            | <---- OK (recvonly) ----<br><---- OK (sendrecv) ---- |<br><br>For late negotiation this is wrong. Even for early it should be possible to pass reinvite to the other side on media direction change.<br></div>