Page 1 of 1

Unable to write frame to channel

PostPosted: Tue Feb 20, 2007 2:44 pm
by hotdog0627
Hi,
Im a total newbie w/ Linux, but somehow managed to install Asterisk and Vicidial (all specs from the scratch install document). When clicking "Dial next number" on /agc/vicidial.php, nothing happens. All I see is that error message on the asterisk screen.

I am using ztdummy (will buy timing card, but I want to make it run using ztdummy first). I dont know if I compiled it correctly... I dont know where to start troubleshooting where I went wrong... Hope somebody could help...

Thanks

ps --info

PostPosted: Tue Feb 20, 2007 9:57 pm
by hotdog0627
Also, is the hertz=100 incorrect for ztdummy to function properly? I followed all specs from the "install from scratch" docu including the kernel upgrade to 2.6.17.11.

If its wrong, how do I change it to 1000Hz?
help pls.


ps --info
BSD j OL_j
BSD l OL_l
BSD s OL_s
BSD u OL_u
BSD v OL_v
SysV -f (none)
SysV -fl (none)
SysV -j (none)
SysV -l (none)

procps version 3.2.7
Linux version 2.6.17
Compiled with: glibc 2.3, gcc 3.4

header_gap=-1 lines_to_next_header=1
screen_cols=102 screen_rows=30

personality=0x00000000 (from "unknown")
EUID=0 TTY=136,1 Hertz=100 page_size=4096
sizeof(proc_t)=536 sizeof(long)=4 sizeof(KLONG)=4
archdefs: i386
namelist_file="<no System.map file>"

PostPosted: Tue Feb 20, 2007 10:42 pm
by mflorell
You set the timer to 100 "Hertz=100 " it needs to be 1000, that is definable in the realtime clock section.

What codec are you using for your trunks?

take these steps for ztdummy to work properly

PostPosted: Wed Feb 21, 2007 5:51 am
by asterisk_at_my_risk
when you compile zaptel take these special steps your ztdummy will run fine
touch ztdummy.c
edit of Makefile.c and remove '#' from ztdummy in that file
make linux 26
make install

and clock speed shall be according to scratch compile your kernel as per scratch

PostPosted: Wed Feb 21, 2007 10:41 am
by hotdog0627
Hi,

on the real time section I made sure its set to 1000Hz when I recompiled the kernel as per scratch instructions.. I am using SIP trunks uLaw.

How can I change it to 1000, do I recompile the kernel again?

Is there something in the options that I could have possible selected that made the hertz go down to 100?

I did remove the # infront of ztdummy on Makefile... and did make linux26 and make install...

really appreciate all your help... :)

PostPosted: Wed Feb 21, 2007 11:24 am
by asterisk_at_my_risk
i belive for clock settings there is no other option and if you read scracth carefuly there are some other settings which are essential for timing i will still say compile your kernal according to scratch will help you a lot

PostPosted: Wed Feb 21, 2007 12:46 pm
by hotdog0627
asterisk_at_my_risk wrote:i belive for clock settings there is no other option and if you read scracth carefuly there are some other settings which are essential for timing i will still say compile your kernal according to scratch will help you a lot


Is there a way to recompile so that the only option to change is the Real Time Clock?

PostPosted: Wed Feb 21, 2007 1:12 pm
by mflorell
Not that I know of, you have to rebuild the whole kernel.

PostPosted: Wed Feb 21, 2007 1:43 pm
by hotdog0627
mflorell wrote:Not that I know of, you have to rebuild the whole kernel.


Ok... so when I've rebuilt the whole kernel and I do a ps --info... my Hertz should say 1000, correct?

PostPosted: Thu Feb 22, 2007 4:45 am
by mflorell
ps --info does not actually tell you the kernel frequency for some reason, you can only tell by looking at the .config file you used to build your custom kernel as to what you set:

cat /usr/src/linux/.config | grep CONFIG_HZ

# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
CONFIG_HZ_1000=y
CONFIG_HZ=1000

PostPosted: Thu Feb 22, 2007 2:06 pm
by hotdog0627
Thanks... my ztdummy is working fine now...
Thanks for all your help.
I got another problem though... Ive started a new topic on it.

Cheers!
Steve