[asterisk-commits] branch oej/t38passthrough r12502 -
/team/oej/t38passthrough/channels/chan_sip.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Mar 11 08:48:35 MST 2006
Author: oej
Date: Sat Mar 11 09:48:33 2006
New Revision: 12502
URL: http://svn.digium.com/view/asterisk?rev=12502&view=rev
Log:
Patch from PCAdach. Thanks!
Modified:
team/oej/t38passthrough/channels/chan_sip.c
Modified: team/oej/t38passthrough/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/oej/t38passthrough/channels/chan_sip.c?rev=12502&r1=12501&r2=12502&view=diff
==============================================================================
--- team/oej/t38passthrough/channels/chan_sip.c (original)
+++ team/oej/t38passthrough/channels/chan_sip.c Sat Mar 11 09:48:33 2006
@@ -5110,13 +5110,8 @@
}
#if defined(T38_SUPPORT)
if ((ast_test_flag(&p->t38.t38support, SIP_PAGE2_T38SUPPORT_RTP))) {
- /* TODO: Improve this */
- len = snprintf(a_audio_next, a_audio_left, " %d", 191);
- a_audio_next += len;
- a_audio_left -= len;
- len = snprintf(a_audio_next, a_audio_left, "a=rtpmap:%d %s/8000\r\n", 191, "t38");
- a_audio_next += len;
- a_audio_left -= len;
+ ast_build_string(&m_audio_next, &m_audio_left, " %d", 191);
+ ast_build_string(&a_audio_next, &a_audio_left, "a=rtpmap:%d %s/%d\r\n", 191, "t38", 8000);
}
#endif
More information about the asterisk-commits
mailing list