Hi, We are still looking at the audio problems in the latest release of sipxtapi.
It seems that the code in MprEncode::doPrimaryCodec doesnt work properly. Our guess is that variable "int payloadBytesUsed" which is declared private to this member should actually be part of the project and initialized in the constructor rather than the member. Currently what we see is as follows: 1. numSamplesIn = 80 2. mpPrimaryCodec->encode routine sets the bytesAdded to 80 and payloadBytesUsed gets set to 80 as well. Note that mPacket1PayloadBytes is set to 160. sendNow is set to false. 3. mPacket1PayloadBytes == payloadBytesUsed check fails and the routine exits without sending out the rtp packet. On next iteration, the variable payloadBytesUsed gets re-initialized to 0 again repeating the whole cycle. Our fix was to pull th payloadBytesUsed variable into the class and initialize it in the constructor which seems to fix the problem. Let us know if that is wrong or something else seems amiss. The second problem with STUN mapped addresses not going out in SDP still exists and I want to poll folks on the list who have STUN working in some release of sipXtapi. We couldn't locate the piece of code which actually sets the STUN mapped addess in the SDP and that's the next thing we would be looking at in the last code update we got. Thanks, Medhavi.
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
