(see trace) The codec name that that is transmitted in the LCO of the first CRCX is expected to re-appear in the SDP of the following 200 OK message. When inspecting the SDP of the following/second message, one can see that the last character of the codec name is missing. Since such a behavior can not observed when the codec was transmitted via SDP, the problem presumably is in the LCO parser.
#1 Updated by dexter almost 2 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 90
I managed to pinpoint the problem. The LCO parser used a very tight buffer. 8 chars may seem to be enough for most codec names, GSM-HR-08 is 9 chars long. I think doubling the buffer will offer enough space for all codec names.
https://gerrit.osmocom.org/#/c/osmo-mgw/+/11466 mgcp_protocol: increase buffer space for codec name in LCO