Skip to content
Snippets Groups Projects
Commit 61927f7c authored by Joshua Colp's avatar Joshua Colp
Browse files

Fix a bug where the DTMF mode was not set on newly created RTP instances in...

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
parent 7f43acc4
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,12 @@ static int create_rtp(struct ast_sip_session *session, struct ast_sip_session_me ...@@ -121,6 +121,12 @@ static int create_rtp(struct ast_sip_session *session, struct ast_sip_session_me
ice->stop(session_media->rtp); 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; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment