summaryrefslogtreecommitdiff
path: root/res/res_sip_sdp_rtp.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-05-23 18:39:05 +0000
committerJoshua Colp <jcolp@digium.com>2013-05-23 18:39:05 +0000
commit61927f7c8242b78eed0c9509db73ba13e11b6da4 (patch)
tree9b484fd18b63abc0cfb6c75791aaba30ccba43b3 /res/res_sip_sdp_rtp.c
parent7f43acc49c7f10b266f75b76de2b1204b110b996 (diff)
Fix a bug where the DTMF mode was not set on newly created RTP instances in the res_sip_sdp_rtp module.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_sip_sdp_rtp.c')
-rw-r--r--res/res_sip_sdp_rtp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/res_sip_sdp_rtp.c b/res/res_sip_sdp_rtp.c
index a35752ad2..bd5be0831 100644
--- a/res/res_sip_sdp_rtp.c
+++ b/res/res_sip_sdp_rtp.c
@@ -121,6 +121,12 @@ static int create_rtp(struct ast_sip_session *session, struct ast_sip_session_me
ice->stop(session_media->rtp);
}
+ if (session->endpoint->dtmf == AST_SIP_DTMF_RFC_4733) {
+ ast_rtp_instance_dtmf_mode_set(session_media->rtp, AST_RTP_DTMF_MODE_RFC2833);
+ } else if (session->endpoint->dtmf == AST_SIP_DTMF_INBAND) {
+ ast_rtp_instance_dtmf_mode_set(session_media->rtp, AST_RTP_DTMF_MODE_INBAND);
+ }
+
return 0;
}