[asterisk-commits] tzafrir: branch tzafrir/monitor-rtp r214093 - /team/tzafrir/monitor-rtp/chann...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Aug 25 15:20:25 CDT 2009
Author: tzafrir
Date: Tue Aug 25 15:20:21 2009
New Revision: 214093
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=214093
Log:
set RTP_PORT_OFFSET in chan_dahdi
RTP_PORT_OFFSET is used to "manually" allocate RTP port numbers by the
recording channels. This code sets a sane value for that variable
automatically in chan_dahdi.c .
Modified:
team/tzafrir/monitor-rtp/channels/chan_dahdi.c
Modified: team/tzafrir/monitor-rtp/channels/chan_dahdi.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/tzafrir/monitor-rtp/channels/chan_dahdi.c?view=diff&rev=214093&r1=214092&r2=214093
==============================================================================
--- team/tzafrir/monitor-rtp/channels/chan_dahdi.c (original)
+++ team/tzafrir/monitor-rtp/channels/chan_dahdi.c Tue Aug 25 15:20:21 2009
@@ -8259,6 +8259,12 @@
for (v = i->vars ; v ; v = v->next)
pbx_builtin_setvar_helper(tmp, v->name, v->value);
+ {
+ char port_offset[BUFSIZ];
+
+ snprintf(port_offset, sizeof(port_offset), "%d", GET_CHANNEL(i));
+ pbx_builtin_setvar_helper(tmp, "RTP_PORT_OFFSET", port_offset);
+ }
if (startpbx) {
#ifdef HAVE_OPENR2
if (i->mfcr2call) {
More information about the asterisk-commits
mailing list