deal with complex codec mapping bs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8823 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-06-23 18:26:08 +00:00
parent 88ad2bfa1a
commit ff1f376650
2 changed files with 6 additions and 3 deletions

View File

@@ -1914,6 +1914,9 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
send_msg = frame->packet;
len = frame->packetlen;
ts = 0;
if (frame->codec && frame->codec->agreed_pt == frame->payload) {
send_msg->header.pt = payload;
}
} else {
data = frame->data;
len = frame->datalen;