Unable to write frame to channel

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Unable to write frame to channel

Postby hotdog0627 » Tue Feb 20, 2007 2:44 pm

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
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm

ps --info

Postby hotdog0627 » Tue Feb 20, 2007 9:57 pm

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>"
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm

Postby mflorell » Tue Feb 20, 2007 10:42 pm

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?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

take these steps for ztdummy to work properly

Postby asterisk_at_my_risk » Wed Feb 21, 2007 5:51 am

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
asterisk_at_my_risk
 
Posts: 102
Joined: Mon Sep 04, 2006 10:50 am
Location: New Delhi

Postby hotdog0627 » Wed Feb 21, 2007 10:41 am

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... :)
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm

Postby asterisk_at_my_risk » Wed Feb 21, 2007 11:24 am

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
asterisk_at_my_risk
 
Posts: 102
Joined: Mon Sep 04, 2006 10:50 am
Location: New Delhi

Postby hotdog0627 » Wed Feb 21, 2007 12:46 pm

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?
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm

Postby mflorell » Wed Feb 21, 2007 1:12 pm

Not that I know of, you have to rebuild the whole kernel.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby hotdog0627 » Wed Feb 21, 2007 1:43 pm

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?
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm

Postby mflorell » Thu Feb 22, 2007 4:45 am

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
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby hotdog0627 » Thu Feb 22, 2007 2:06 pm

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
hotdog0627
 
Posts: 58
Joined: Tue Feb 20, 2007 2:10 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 90 guests