Fix a bug uncovered by the test suite where the RTP payload number was not getting set.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Joshua Colp 2012-08-07 17:47:52 +00:00
parent 15e41c7542
commit da808a0b66
1 changed files with 2 additions and 0 deletions

View File

@ -590,10 +590,12 @@ int ast_rtp_codecs_payloads_set_rtpmap_type_rate(struct ast_rtp_codecs *codecs,
if (!(type = ao2_alloc(sizeof(*type), NULL))) {
continue;
}
type->rtp_code = pt;
ao2_link_flags(codecs->payloads, type, OBJ_NOLOCK);
}
*type = t->payload_type;
type->rtp_code = pt;
if ((t->payload_type.format.id == AST_FORMAT_G726) && t->payload_type.asterisk_format && (options & AST_RTP_OPT_G726_NONSTANDARD)) {
ast_format_set(&type->format, AST_FORMAT_G726_AAL2, 0);