diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2002-09-25 02:47:46 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2002-09-25 02:47:46 +0000 |
commit | d5bfe835fa4aa0af3e3d9cab7690f4a6ca34483f (patch) | |
tree | 6c693b91a15cb37fc226723a36017368e7870ff1 /zaptel.c | |
parent | 992cd7bbd4e06be143921ce0293e0ac12acd431a (diff) |
Version 0.3.1 from FTP
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@109 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'zaptel.c')
-rwxr-xr-x | zaptel.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -45,6 +45,7 @@ #endif /* CONFIG_ZAPATA_NET */ #include <linux/ppp_defs.h> #ifdef CONFIG_ZAPATA_PPP +#include <linux/netdevice.h> #include <linux/if.h> #include <linux/if_ppp.h> #endif @@ -722,7 +723,7 @@ static void close_channel(struct zt_chan *chan) chan->eventinidx = chan->eventoutidx = 0; chan->flags &= ~(ZT_FLAG_LINEAR | ZT_FLAG_PPP); - zt_set_law(chan,chan->deflaw); + zt_set_law(chan,0); memset(chan->conflast, 0, sizeof(chan->conflast)); memset(chan->conflast1, 0, sizeof(chan->conflast1)); @@ -1621,7 +1622,7 @@ static int initialize_channel(struct zt_chan *chan) chan->txgain = defgain; chan->gainalloc = 0; chan->eventinidx = chan->eventoutidx = 0; - zt_set_law(chan,chan->deflaw); + zt_set_law(chan,0); zt_hangup(chan); /* Make sure that the audio flag is cleared on a clear channel */ |