Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] ztdummy


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
geisj at pagestation.com
Guest





PostPosted: Thu Apr 03, 2008 6:56 am    Post subject: [asterisk-users] ztdummy Reply with quote

What does it take to get ztdummy to work correctly?

I have a new laptop HP HDX9200. I am running asterisk 1.4.19 and zaptel
1.4.9.2
Zaptel compiles fine. asterisk compiles fine. ztdummy loads asterisk runs.
Problem is playback() does not work. So then I stop zaptel, asterisk
runs and playback() now
works. However, meetme()'s dont work. I need ztdummy I'm pretty sure for
that.

I am running Centos 5.1 with the latest kernel and fully updated.

How can I get ztdummy to work? There are no cards in the laptop.
I typically dont run asterisk on a laptop - but thats what the situation
needed...

Thanks,

Jerry
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 8:45 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <47F4C604.1060301 at pagestation.com>,
Jerry Geis <geisj at pagestation.com> wrote:
Quote:
What does it take to get ztdummy to work correctly?

I have a new laptop HP HDX9200. I am running asterisk 1.4.19 and zaptel
1.4.9.2
Zaptel compiles fine. asterisk compiles fine. ztdummy loads asterisk runs.
Problem is playback() does not work. So then I stop zaptel, asterisk
runs and playback() now
works. However, meetme()'s dont work. I need ztdummy I'm pretty sure for
that.

I am running Centos 5.1 with the latest kernel and fully updated.

How can I get ztdummy to work? There are no cards in the laptop.
I typically dont run asterisk on a laptop - but thats what the situation
needed...

Jerry, the first thing to check is "cat /proc/interrupts" and see if there
is an entry for rtc on IRQ 8. There should be, and the interrupt counts
on there should be going up at approximately 1024 per second.

What kernel version are you using? (uname -a)

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Thu Apr 03, 2008 9:10 am    Post subject: [asterisk-users] ztdummy Reply with quote

On Thu, Apr 03, 2008 at 01:45:09PM +0000, Tony Mountifield wrote:

Quote:
Jerry, the first thing to check is "cat /proc/interrupts" and see if there
is an entry for rtc on IRQ 8. There should be, and the interrupt counts
on there should be going up at approximately 1024 per second.

To see it better:

watch -n1 -d cat /proc/interrupts

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
geisj at pagestation.com
Guest





PostPosted: Thu Apr 03, 2008 9:30 am    Post subject: [asterisk-users] ztdummy Reply with quote

Quote:

On Thu, Apr 03, 2008 at 01:45:09PM +0000, Tony Mountifield wrote:

Quote:
/ Jerry, the first thing to check is "cat /proc/interrupts" and see if there
/>/ is an entry for rtc on IRQ 8. There should be, and the interrupt counts
/>/ on there should be going up at approximately 1024 per second.
/
To see it better:

watch -n1 -d cat /proc/interrupts


watch -n1 -d cat /proc/interrupts
Every 1.0s: cat
/proc/interrupts
Thu Apr 3 10:29:19 2008

CPU0 CPU1
0: 129 0 XT-PIC-XT timer
1: 337248 0 XT-PIC-XT i8042
2: 0 0 XT-PIC-XT cascade
3: 4 0 XT-PIC-XT
4: 69 0 XT-PIC-XT
5: 737837152 0 XT-PIC-XT HDA Intel
7: 385 0 XT-PIC-XT parport0
8: 1 0 XT-PIC-XT rtc
It still remains as 1...

Jerry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080403/3f54a04a/attachment-0001.htm
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 10:33 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <47F4EA05.9050705 at pagestation.com>,
Jerry Geis <geisj at pagestation.com> wrote:
Quote:
Quote:
On Thu, Apr 03, 2008 at 01:45:09PM +0000, Tony Mountifield wrote:

Quote:
/ Jerry, the first thing to check is "cat /proc/interrupts" and see if there
/>/ is an entry for rtc on IRQ 8. There should be, and the interrupt counts
/>/ on there should be going up at approximately 1024 per second.
/
To see it better:

watch -n1 -d cat /proc/interrupts


watch -n1 -d cat /proc/interrupts
Every 1.0s: cat
/proc/interrupts

Thu Apr 3 10:29:19 2008

CPU0 CPU1
0: 129 0 XT-PIC-XT timer
1: 337248 0 XT-PIC-XT i8042
2: 0 0 XT-PIC-XT cascade
3: 4 0 XT-PIC-XT
4: 69 0 XT-PIC-XT
5: 737837152 0 XT-PIC-XT HDA Intel
7: 385 0 XT-PIC-XT parport0
8: 1 0 XT-PIC-XT rtc


It still remains as 1...

Hi Jerry,

Is that with ztdummy loaded or not? By default, Linux doesn't have anything
that uses the RTC interrupt, so without ztdummy it will usually stay at 1.

Once ztdummy and zaptel are loaded, then you should see it incrementing.
If not, that suggests a problem.

I have just installed ztdummy on a new system running 2.6.18-53.1.6.el5,
and it is incrementing fine. I didn't realise there was a newer kernel out;
I'll have to update and try again.

I didn't know the "watch" command - that's cool!

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 10:40 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <EB04AEA0-2362-4FCD-889B-2E15C400A79A at myasd.com>,
Norman Franke <norman at myasd.com> wrote:
Quote:
On Apr 3, 2008, at 10:32 AM, asterisk-users-request at lists.digium.com
wrote:

Quote:
uname -a shows x86_64 and Centos 5.1, 2.6.18-53.1.14.el5

You can try zttest, although I'd bet it will hang. See what's going
to the console (or use dmesg.) If it's a lot of rtc errors, then
you'll likely need to upgrade your kernel to at least 2.6.23.11. That
worked for me.

I'd be surprised if that is the solution - I have been using ztdummy with
the RTC hook since 2.6.9 with no problems, and again on 2.6.18-53.1.6.el5

Unless it's a 64-bit issue - I've only ever used 32-bit.

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 10:44 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <47F4F97E.6070106 at pagestation.com>,
Jerry Geis <geisj at pagestation.com> wrote:
Quote:
Quote:
Quote:
/ uname -a shows x86_64 and Centos 5.1, 2.6.18-53.1.14.el5
/
You can try zttest, although I'd bet it will hang. See what's going
to the console (or use dmesg.) If it's a lot of rtc errors, then
you'll likely need to upgrade your kernel to at least 2.6.23.11. That
worked for me.


You are correct zttest hangs.
dmesg doesnt show anything, ztdummy loads fine. lsmod shows it.
I see no rtc errors in dmesg either.

I have tried 2.6.24.4 and same situation. rtc just has 1 in
/proc/interrupts.

What now?

Is this system used for other things, or could you try installing a
32-bit (i386) version of CentOS and trying again? 64-bit vs 32-bit
is the only think I can think of at the moment.

Also, what do you get from: fgrep RTC /var/log/messages

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 11:01 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <ft2tcn$r01$1 at softins.clara.co.uk>,
Tony Mountifield <tony at softins.clara.co.uk> wrote:
Quote:

I have just installed ztdummy on a new system running 2.6.18-53.1.6.el5,
and it is incrementing fine. I didn't realise there was a newer kernel out;
I'll have to update and try again.

Just updated to 2.6.18-53.1.14.el5 (i386), re-installed zaptel and ztdummy,
and the RTC interrupt counter is incrementing just fine.

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
geisj at pagestation.com
Guest





PostPosted: Thu Apr 03, 2008 11:30 am    Post subject: [asterisk-users] ztdummy Reply with quote

Quote:

Hi Jerry,

Is that with ztdummy loaded or not? By default, Linux doesn't have
anything
that uses the RTC interrupt, so without ztdummy it will usually stay
at 1.

Once ztdummy and zaptel are loaded, then you should see it incrementing.
If not, that suggests a problem.

I have just installed ztdummy on a new system running 2.6.18-53.1.6.el5,
and it is incrementing fine. I didn't realise there was a newer kernel
out;
I'll have to update and try again.

I didn't know the "watch" command - that's cool!


Tony,

OK If I modprobe ztdummy then the RTC does start incrementing... to like
9250. then stops...

What now?

Jerry
Back to top
tony at softins.clara....
Guest





PostPosted: Thu Apr 03, 2008 11:45 am    Post subject: [asterisk-users] ztdummy Reply with quote

In article <47F50643.6000000 at pagestation.com>,
Jerry Geis <geisj at pagestation.com> wrote:
Quote:

OK If I modprobe ztdummy then the RTC does start incrementing... to like
9250. then stops...

What now?

Sounds like the module got auto-unloaded due to not being in use.

I have found the most reliable way to invoke zaptel/ztdummy is using the
proper init script:

1. In your zaptel source directory, do "make config". That will create
/etc/rc.d/init.d/zaptel and the rcX.d links to it.
2. Likeewise, in your asterisk source directory, also do "make config"
if you haven't already. That will create /etc/rc.d/init.d/asterisk and
the rcX.d links.
3. Do "chkconfig zaptel on" and "chkconfig asterisk on" just to be sure.
4. Do "service zaptel start". That will load the modules and do any
configuration necessary. Try that and then watch /proc/interrupts.
5. Also do "service asterisk start".
6. When the system is booted up in future, zaptel and asterisk should
automatically start.

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org
Back to top
geisj at pagestation.com
Guest





PostPosted: Thu Apr 03, 2008 11:51 am    Post subject: [asterisk-users] ztdummy Reply with quote

Quote:

ounds like the module got auto-unloaded due to not being in use.

I have found the most reliable way to invoke zaptel/ztdummy is using the
proper init script:

1. In your zaptel source directory, do "make config". That will create
/etc/rc.d/init.d/zaptel and the rcX.d links to it.
2. Likeewise, in your asterisk source directory, also do "make config"
if you haven't already. That will create /etc/rc.d/init.d/asterisk and
the rcX.d links.
3. Do "chkconfig zaptel on" and "chkconfig asterisk on" just to be sure.
4. Do "service zaptel start". That will load the modules and do any
configuration necessary. Try that and then watch /proc/interrupts.
5. Also do "service asterisk start".
6. When the system is booted up in future, zaptel and asterisk should
automatically start.


Tony,

This is what I do. In this case I also editied /etc/sysconfig/zaptel
and removed (commented) all modules except ztdummy.

Jerry
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Thu Apr 03, 2008 11:58 am    Post subject: [asterisk-users] ztdummy Reply with quote

On Thu, Apr 03, 2008 at 04:45:27PM +0000, Tony Mountifield wrote:
Quote:
In article <47F50643.6000000 at pagestation.com>,
Jerry Geis <geisj at pagestation.com> wrote:
Quote:

OK If I modprobe ztdummy then the RTC does start incrementing... to like
9250. then stops...

What now?

Sounds like the module got auto-unloaded due to not being in use.

I have found the most reliable way to invoke zaptel/ztdummy is using the
proper init script:

1. In your zaptel source directory, do "make config". That will create
/etc/rc.d/init.d/zaptel and the rcX.d links to it.
2. Likeewise, in your asterisk source directory, also do "make config"
if you haven't already. That will create /etc/rc.d/init.d/asterisk and
the rcX.d links.

All this machineray is not really required. All you need is to modprobe
ztdummy somewhere in the boot pcess . IIRC it can be even after asterisk
starts.

No real need to load any otyher modules. No need to run ztcfg. No need
to run anything else from the zaptel init.d script.

Quote:
3. Do "chkconfig zaptel on" and "chkconfig asterisk on" just to be sure.
4. Do "service zaptel start". That will load the modules and do any
configuration necessary. Try that and then watch /proc/interrupts.
5. Also do "service asterisk start".
6. When the system is booted up in future, zaptel and asterisk should
automatically start.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
Back to top
norman at myasd.com
Guest





PostPosted: Thu Apr 03, 2008 12:57 pm    Post subject: [asterisk-users] ztdummy Reply with quote

On Apr 3, 2008, at 12:45 PM, asterisk-users-request at lists.digium.com
wrote:

Quote:
Quote:
You can try zttest, although I'd bet it will hang. See what's going
to the console (or use dmesg.) If it's a lot of rtc errors, then
you'll likely need to upgrade your kernel to at least 2.6.23.11. That
worked for me.

I'd be surprised if that is the solution - I have been using
ztdummy with
the RTC hook since 2.6.9 with no problems, and again on
2.6.18-53.1.6.el5

Unless it's a 64-bit issue - I've only ever used 32-bit.
I'm using 32-bit as well, but it may depend on the hardware. I'm
using HP DL-380s and Debian (both etch and sarge had the same problems.)

I did nothing other than upgrade my kernel (and recompile zaptel, of
course) and it just started to work. I used to get a lot of those
missing interrupt errors to the console before, not now.

If zttest hangs, I'd suspect the drivers are loaded. Otherwise,
you'll get an error that it can't find a zap device (and playback
then works.)

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080403/d71da079/attachment.htm
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services