[asterisk-users] Empty Wildcard TDM400P as a MeetMe timer.
Steve Totaro
stevetotaro at hotmail.com
Sun Mar 11 09:23:56 MST 2007
Tzafrir Cohen wrote:
> On Thu, Mar 08, 2007 at 03:19:00PM -0500, Steve Totaro wrote:
>
>> The trick is modifying the source in zaptel file: wctdm.c and changing
>> to the following then doing a make clean, make && make install.
>>
>> static int timingonly = 1;
>> The original value was a zero.
>>
>
> No need to change the source. That is already a parameter settable at
> module load time, if not at run-time.
>
> At module load time, manually:
>
> modprobe wctdm timingonly=1
>
> permanently: add to /etc/modprobe.conf or /etc/modprobe.d/something
>
> options modprobe wctdm timingonly=1
>
> At run-time:
>
> echo 1 >/sys/modules/wctdm/parameters/timingonly
>
> Though for some older 2.6 kernels it will be:
>
> echo 1 >/sys/modules/wctdm/timingonly
>
> That "parameter" file is also readable, and shows the curent value of
> the variable.
>
Actually, it would make alot more sense to do both, modify the source
and load the module with the timingonly=1 option.
That way you set the correct behavior by default so a simple modprobe
wctdm would work if you forgot the option, and also have a backup if you
upgrade your zaptel source down the road and forget that you need to set
timingonly=1 before compiling.
Thanks,
Steve
More information about the asterisk-users
mailing list