aboutsummaryrefslogtreecommitdiffstats
path: root/rtp.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-18 14:39:26 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-18 14:39:26 +0000
commitb943edac6835a7075748bb7ff1775dae4cb8100a (patch)
tree7d82958c7f5d7132513ba595d1b26e885db7f96a /rtp.c
parent3ac4e25080c245123ec1fdf330b16823938d46fb (diff)
ast_rtp_pt_lookups must be done against static set
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@866 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtp.c b/rtp.c
index a5d6ca220..a1188ce1b 100755
--- a/rtp.c
+++ b/rtp.c
@@ -487,7 +487,8 @@ struct rtpPayloadType ast_rtp_lookup_pt(struct ast_rtp* rtp, int pt) {
result.isAstFormat = result.code = 0;
return result; // bogus payload type
}
- return rtp->current_RTP_PT[pt];
+ /* Gotta use our static one, since that's what we sent against */
+ return static_RTP_PT[pt];
}
int ast_rtp_lookup_code(struct ast_rtp* rtp, int isAstFormat, int code) {