Hi John

 

I quick follow up from last night

 

Patch was applied, you see the changes in file
'astlinux/tags/0.4.8/build_i586/zaptel/wctdm.c' and console outputs the
result below. This should work (I haven't got any dial pulse phones to
try) 

 

toolchain/patch-kernel.sh
/home/guyn/astlinux/tags/0.4.8/build_i586/zaptel-1.2.19 package/zaptel/
zaptel\*.patch

 

Applying zaptel-makefile0.patch using plaintext: 

patching file Makefile

Hunk #2 succeeded at 177 (offset 31 lines).

Hunk #4 succeeded at 386 (offset 34 lines).

 

Applying zaptel-pulse.patch using plaintext: 

patching file wctdm.c

 

regards Guy

 

________________________________

From: Guy Neale 
Sent: Tuesday, 27 November 2007 12:24 AM
To: '[EMAIL PROTECTED]'; 'AstLinux Users Mailing List'
Subject: RE: [Astlinux-users] Short hook flash package option for
Australia

 

Hi John 

 

This should be relatively easy to do as the script which prepares the
zaptel package processes all patches in the package/zaptel directory.
(Patches that begin with zaptel, this is how I currently add my short
flash support). We should be able to create our own patch with a prefix
of zaptel eg zaptel-pulse.patch 

 

Here is a step by step that should work (Its 11.42 pm and I've only just
started the make process, so will let you know how I get on, you might
want to give it a blast yourself in the meantime, no guarantees   

 

 

# 1. Make sure your in your Home directory (A good starting point)#

cd $HOME 

 

# 2. Download Astlinux 0.4.8#

svn co https://astlinux.svn.sourceforge.net/svnroot/astlinux/tags/0.4.8
astlinux/tags/0.4.8

 

# 3. Download zaptel-1.2.19.tar.gz to the astlinux/tags/0.4.8/dl
directory, should automatically create the dl directory for you (I hope,
did for me)#

wget -P astlinux/tags/0.4.8/dl
http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.19.tar.gz
<http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.19.tar.gz> 

 

# 4. Unzip the /zaptel-1.2.19/wctdm.c file#

tar -xzf astlinux/tags/0.4.8/dl/zaptel-1.2.19.tar.gz
zaptel-1.2.19/wctdm.c 

 

# 5. Copy the directory zaptel-1.2.19 and its contents to directory
zaptel-1.2.19.orig(automatically creates the new directory)#  

cp -r zaptel-1.2.19 zaptel-1.2.19.orig 

 

# 6. Use nano (or another editor) to make the changes to one of the
files#

nano zaptel-1.2.19/wctdm.c

 

Press 'Ctrl W' for where is (nano search)

type '8 * (4 * 8)'

replace the '8' with a '4'

Press 'Ctrl X' to exit

Press 'Y' to modify changes 

Press 'Enter' to except the file name 

 

# 7. Make a patch file with diff which has the changes between the
original and the edited# 

diff -u zaptel-1.2.19.orig/wctdm.c zaptel-1.2.19/wctdm.c >
astlinux/tags/0.4.8/package/zaptel/zaptel-pulse.patch 

 

# 8. Delete the 2 temporary directories and wctdm.c files. WARNING this
will delete all directories and files that start with zaptel-1.2.19 in
your current directory (which should be your home directory)# 

rm -r zaptel-1.2.19* 

 

# 9. Change directory to build your system with the new patch#

cd astlinux/tags/0.4.8 

 

 

# 10. The rest is history, follow the instructions at
http://www.voip-info.org/wiki/view/AstLinux+Development+Environment#

cp astlinux.config .config 

 

make oldconfig

make menuconfig

make

 

 

etc

If you give it a go let me know how you get on 

Good luck Guy

 

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Novack
Sent: Sunday, 25 November 2007 1:37 PM
To: AstLinux Users Mailing List
Subject: Re: [Astlinux-users] Short hook flash package option for
Australia

 

There is another fix or patch that should be made to wctdm for those who
want or need to use pulse dial on the FXS ports of a TDM 400
This was described some time ago and is on the voip-info wiki, but the
powers that be somehow never saw fit to make it standard. 

http://www.voip-info.org/wiki/index.php?page=Asterisk+zaptel+pulse+diali
ng
<http://www.voip-info.org/wiki/index.php?page=Asterisk+zaptel+pulse+dial
ing> 

I have made the change many times successfully, but I haven't  a clue as
to how to take the source and wrap it all up and turn it into AstLinux.

Anyone have a cheat sheet for us who are not well versed in Linux?

John Novack



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to