Open kristina258 opened 1 year ago
This has been asked before and is a scenario not currently supported. Updating the media parameters in a session (e.g. the codecs) requires a full offer/answer exchange. Simply repeating an answer but with different parameters doesn't work.
The codec negotiation takes place during an answer and the list of codecs is flushed, leaving only accepted codecs. Another answer with different codecs is not able to restore codecs that have already been rejected previously.
This has been asked before and is a scenario not currently supported. Updating the media parameters in a session (e.g. the codecs) requires a full offer/answer exchange. Simply repeating an answer but with different parameters doesn't work.
ok so for any answer there should one associated offer ?
can i send the same offer to rtpengine even if it does not change so that the answer correctly updates ?
This has been asked before and is a scenario not currently supported. Updating the media parameters in a session (e.g. the codecs) requires a full offer/answer exchange. Simply repeating an answer but with different parameters doesn't work.
ok so for any answer there should one associated offer ? can i send the same offer to rtpengine even if it does not change so that the answer correctly updates ?
Yes, that would be the current workaround. Store the last offer SDP somewhere, then replay the last offer and then process the new answer.
This has been asked before and is a scenario not currently supported. Updating the media parameters in a session (e.g. the codecs) requires a full offer/answer exchange. Simply repeating an answer but with different parameters doesn't work.
ok so for any answer there should one associated offer ? can i send the same offer to rtpengine even if it does not change so that the answer correctly updates ?
Yes, that would be the current workaround. Store the last offer SDP somewhere, then replay the last offer and then process the new answer.
ok thanks will try it. another question by doing this (store last offer and replay it before answer) and if receive multiple to-tags for answer 180(tag1 & ip1 & port1) and after 200(tag2 & ip2 & port2) will rtpengine switch correctly to ip2:port2 ?
i already store the tag1 and reuse it for all sdp processing for that specific call. but in that rtpengine did not switch to switch to ip2:port2.
so is it related only to always make (and replay) 1 offer for every answer ? or maybe to the fact i'm using strict-source ? (no-rtcp-attribute asymmetric port-latching strict-source replace-origin replace-sdp-version replace-zero-address replace-session-connection ICE=remove)
are sdp args (like strict-source) sent to rtpengine all reset when offer-answer is complete ?
Thanks.
This has been asked before and is a scenario not currently supported. Updating the media parameters in a session (e.g. the codecs) requires a full offer/answer exchange. Simply repeating an answer but with different parameters doesn't work.
ok so for any answer there should one associated offer ? can i send the same offer to rtpengine even if it does not change so that the answer correctly updates ?
Yes, that would be the current workaround. Store the last offer SDP somewhere, then replay the last offer and then process the new answer.
ok thanks will try it. another question by doing this (store last offer and replay it before answer) and if receive multiple to-tags for answer 180(tag1 & ip1 & port1) and after 200(tag2 & ip2 & port2) will rtpengine switch correctly to ip2:port2 ?
This is a different scenario and not related to this issue. Use the mailing list for other/generic questions like this.
Hi,
during a call, when RTPengine is invoked multiple times, the final 200 OK response, which contains the SDP does not include any codecs. This results in audio issues, as no audio codecs are available for negotiation and use. In the RTPengine log, when the last RTPengine call is made, there is a log entry stating "Not adding stray answer codec PCMA/8000 (8)." I think this log message indicates that the PCMA codec is not being included in the SDP of the final 200 OK response.
RTPEngine version:
Version: 11.2.1.4+0~mr11.2.1.4 git-mr11.2.1-1d93d9b4
Our call trace:
CarrierA -> Kamailio+RTPENGINE -> ..... -> Kamailio+RTPENGINE -> CarrierB
INVITEs
INVITE: CarrierA -> Kamailio+RTPENGINE
RTPENGINE is invoked with following parameters:
INVITE: Kamailio+RTPENGINE -> ...... -> Kamailio+RTPENGINE (SDP is correctly modified)
RTPENGINE is invoked with following parameters:
INVITE: Kamailio+RTPENGINE -> CarrierB (SDP is correctly modified)
200 OKs
200 OK CarrierB -> Kamailio+RTPENGINE
RTPENGINE is invoked with following parameters:
200 OK Kamailio+RTPENGINE -> ..... -> Kamailio+RTPENGINE (SDP is correctly modified)
RTPENGINE is invoked 4th time with following parameters:
200 OK Kamailio+RTPENGINE -> CarrierA (SDP is incorrect and missing PCMA and OPUS codec.)
Log from rtpengine:
I think the issue is the line with "[codec] Not adding stray answer codec PCMA/8000 (8)". Why is the message Not adding stray codec generated? And what does it do?
Could you please help me to find out what can cause the issue and how to fix it?
Thank you in advance.