software timing, poor voice, con bridge, all SIP

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#1
I have three boxes, all on SIP, and all of them have poor voice quality when on a conference bridge and too many people are on. Various scenarios -- sometimes it's all VOIP phones calling in, sometimes it's cell phones and local callers to the box calling into a box on the west coast. Sometimes I get jittery voice/missed packets, last week the cell callers reported a fading in and out. My hardware vendor says to add their analog carrier card. That it will provide a timing source, which is done all in software when the card is not present. Other voice does not seem to be affected.
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#2
Yes you need a rocksolid timeing source, if you don't have a hardware source then dahdi-dummy will be used, if you run a well sized machine that will not normally be a problem (don't forget they are trying to sell you stuff, caveat emptor, it's always always B.S.)

paste the output of

dahdi_test -vv -c 20

expect 99.98% plus regularly or you will have timing problems, that applies to hardware or software timing sources in Asterisk < 1.8. if you don't get close make sure your interrupts are not being shared if you have dahdi hardware, but most off that you are not running extra crap, start off with

watch --interval=1 "cat /proc/interrupts "
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#3
These look good? But there is absolutely nothing going on in any of the boxes right now.

1st box
[root@elastix ~]# dahdi_test -vv -c 20
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8190.312 system clock sample intervals (99.979%)
8192 samples in 8189.000 system clock sample intervals (99.963%)
8192 samples in 8189.792 system clock sample intervals (99.973%)
8192 samples in 8189.744 system clock sample intervals (99.972%)
8192 samples in 8189.800 system clock sample intervals (99.973%)
8192 samples in 8189.752 system clock sample intervals (99.973%)
8192 samples in 8189.768 system clock sample intervals (99.973%)
8192 samples in 8189.808 system clock sample intervals (99.973%)
8192 samples in 8189.800 system clock sample intervals (99.973%)
8192 samples in 8189.783 system clock sample intervals (99.973%)
8192 samples in 8189.744 system clock sample intervals (99.972%)
--- Results after 11 passes ---
Best: 99.979 -- Worst: 99.963 -- Average: 99.972593, Difference: 99.972594

Second box:
[root@customer ~]# [root@elastix ~]# dahdi_test -vv -c 20
-bash: [root@elastix: command not found
[root@customer ~]# Opened pseudo dahdi interface, measuring accuracy...
-bash: Opened: command not found
[root@customer ~]#
[root@customer ~]# 8192 samples in 8190.312 system clock sample intervals (99.97 9%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.000 system clock sample intervals (99.96 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.792 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.744 system clock sample intervals (99.97 2%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.800 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.752 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.768 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.808 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.800 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.783 system clock sample intervals (99.97 3%)
-bash: syntax error near unexpected token `('
[root@customer ~]# 8192 samples in 8189.744 system clock sample intervals (99.97 2%)
-bash: syntax error near unexpected token `('
[root@customer ~]# --- Results after 11 passes ---
-bash: ---: command not found
[root@customer ~]# Best: 99.979 -- Worst: 99.963 -- Average: 99.972593, Differen ce: 99.972594
-bash: Best:: command not found
[root@customer ~]#

third box:
[root@elastix ~]# dahdi_test -vv -c 20
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8190.408 system clock sample intervals (99.981%)
8192 samples in 8189.184 system clock sample intervals (99.966%)
8192 samples in 8189.937 system clock sample intervals (99.975%)
8192 samples in 8189.489 system clock sample intervals (99.969%)
8192 samples in 8189.984 system clock sample intervals (99.975%)
8192 samples in 8189.336 system clock sample intervals (99.967%)
8192 samples in 8221.729 system clock sample intervals (100.363%)
8192 samples in 8189.760 system clock sample intervals (99.973%)
8192 samples in 8189.769 system clock sample intervals (99.973%)
8192 samples in 8189.960 system clock sample intervals (99.975%)
8192 samples in 8189.496 system clock sample intervals (99.969%)
8192 samples in 8189.808 system clock sample intervals (99.973%)
8192 samples in 8189.736 system clock sample intervals (99.972%)
8192 samples in 8191.632 system clock sample intervals (99.996%)
--- Results after 14 passes ---
Best: 99.996 -- Worst: 99.637 -- Average: 99.950099, Difference: 100.001941
[root@elastix ~]#
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#4
What are these boxes? they seem less than perfect
Your second box does not have a timing source at all, it will be a problem,

lsmod|grep dahdi

to confirm,
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#5
There is no dahdi hardware in my machines right now. They are Rhino Ceros Desktop units with only an RJ45 Ethernet connection. They sell the R8FXX-EC Octal Analog PCI Card - base board w/EC, and suggest that it will cure the trouble I am having...

Every 1.0s: cat /proc/interrupts Sun Feb 6 21:48:52 2011

CPU0 CPU1
0: 494690218 0 IO-APIC-edge timer
1: 3 0 IO-APIC-edge i8042
8: 1 0 IO-APIC-edge rtc
9: 1 0 IO-APIC-level acpi
12: 4 0 IO-APIC-edge i8042
50: 2 0 IO-APIC-level ehci_hcd:usb1, uhci_hcd:usb2
58: 38901561 0 PCI-MSI eth0
169: 0 0 IO-APIC-level uhci_hcd:usb5
185: 0 0 IO-APIC-level uhci_hcd:usb4
193: 314430863 0 IO-APIC-level uhci_hcd:usb3, ata_piix
NMI: 0 0
LOC: 494690026 494690024
ERR: 170
MIS: 0
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#6
I personally won't be buying them then, decent hardware should not need that assist, ( you are not running a xen kernel by any chance are you?) , as said your second box has no source, you need to fix that.
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#7
1st box:
dahdi_dynamic_ethmf 15940 0
dahdi_dynamic_eth 10772 0
dahdi_dynamic 14280 2 dahdi_dynamic_ethmf,dahdi_dynamic_eth
dahdi_transcode 12164 1 wctc4xxp
dahdi_voicebus 45248 2 wctdm24xxp,wcte12xp
dahdi 197192 25 rcbfx,r1t1,rxt1,wcopenpci,zaphfc,ax1600p,dahdi_dynamic,ap400,ystdm16xx,ystdm8xx,opvxa1200,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,opvxd115,wct4xxp
crc_ccitt 6337 2 wctdm24xxp,dahdi


2nd box:
bash: dahdi_dynamic_ethmf: command not found
[root@customer ~]# dahdi_dynamic_eth 10772 0
-bash: dahdi_dynamic_eth: command not found
[root@customer ~]# dahdi_dynamic 14280 2 dahdi_dynamic_ethmf,dahdi_dynamic_eth
-bash: dahdi_dynamic: command not found
[root@customer ~]# dahdi_transcode 12164 1 wctc4xxp
-bash: dahdi_transcode: command not found
[root@customer ~]# dahdi_voicebus 45248 2 wctdm24xxp,wcte12xp
-bash: dahdi_voicebus: command not found
[root@customer ~]# dahdi 197192 25 rcbfx,r1t1,rxt1,wcopenpci,zaphfc,ax1600p,dahdi_dynamic,ap400,ystdm16xx,ystdm8xx,opvxa1200,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,opvxd115,wct4xxp
-bash: dahdi: command not found
[root@customer ~]# crc_ccitt 6337 2 wctdm24xxp,dahdi
-bash: crc_ccitt: command not found


3rd box:
[root@elastix ~]# -bash: crc_ccitt: command not found
-bash: -bash:: command not found
[root@elastix ~]# lsmod|grep dahdi
dahdi_dynamic_ethmf 15940 0
dahdi_dynamic_eth 10772 0
dahdi_dynamic 14280 2 dahdi_dynamic_ethmf,dahdi_dynamic_eth
dahdi_transcode 12164 1 wctc4xxp
dahdi_voicebus 45248 2 wctdm24xxp,wcte12xp
dahdi 197320 23 opvxd115,rcbfx,r1t1,rxt1,ax1600p,dahdi_dynamic,ap400,ystdm16xx,ystdm8xx,opvxa1200,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt 6337 2 wctdm24xxp,dahdi
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#8
Please check your work , you are not applying the right command to 2 and 3

lsmod|grep dahdi
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#9
I don't think I'm running a xen kernel. The desktop boxes are very inexpensive, compared to the 1U. $250 +/- for the analog card puts the desktop at the cost of the 1U. I'll find out if the 1U comes with a timing source.
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#10
box 2:
[root@customer ~]# lsmod|grep dahdi
dahdi_dynamic_ethmf 15940 0
dahdi_dynamic_eth 10772 0
dahdi_dynamic 14280 2 dahdi_dynamic_ethmf,dahdi_dynamic_eth
dahdi_transcode 12164 1 wctc4xxp
dahdi_voicebus 45248 2 wctdm24xxp,wcte12xp
dahdi 197320 23 opvxd115,rcbfx,r1t1,rxt1,ax1600p,dahdi_dynamic,ap400,ystdm16xx,ystdm8xx,opvxa1200,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt 6337 2 wctdm24xxp,dahdi
[root@customer ~]#

box 3:
[root@elastix ~]# lsmod|grep dahdi
dahdi_dynamic_ethmf 15940 0
dahdi_dynamic_eth 10772 0
dahdi_dynamic 14280 2 dahdi_dynamic_ethmf,dahdi_dynamic_eth
dahdi_transcode 12164 1 wctc4xxp
dahdi_voicebus 45248 2 wctdm24xxp,wcte12xp
dahdi 197320 23 opvxd115,rcbfx,r1t1,rxt1,ax1600p,dahdi_dynamic,ap400,ystdm16xx,ystdm8xx,opvxa1200,xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt 6337 2 wctdm24xxp,dahdi
[root@elastix ~]#
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#11
I personally would comment out every driver in

/etc/dahdi/modules

that you don't have, i.e. all of them, (and reboot or the ethmf stuff might not go away)

dahdi_dummy should then load, all the other loaded modules will confuse, and none will provide an adequate timing source.
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#12
So what you're saying is dahdi_dummy is not running on any of the boxes?
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#13
This is what I have: Can you clarify what to comment out and what that is going to do?

# NOTE: Please add/edit /etc/modprobe.d/dahdi or /etc/modprobe.conf if you
# would like to add any module parameters.
#
# Format of this file: list of modules, each in its own line.
# Anything after a '#' is ignore, likewise trailing and leading
# whitespaces and empty lines.

# Digium TE205P/TE207P/TE210P/TE212P: PCI dual-port T1/E1/J1
# Digium TE405P/TE407P/TE410P/TE412P: PCI quad-port T1/E1/J1
# Digium TE220: PCI-Express dual-port T1/E1/J1
# Digium TE420: PCI-Express quad-port T1/E1/J1
wct4xxp

# Digium TE120P: PCI single-port T1/E1/J1
# Digium TE121: PCI-Express single-port T1/E1/J1
# Digium TE122: PCI single-port T1/E1/J1
wcte12xp

# Digium T100P: PCI single-port T1
# Digium E100P: PCI single-port E1
wct1xxp

# Digium TE110P: PCI single-port T1/E1/J1
wcte11xp

# Digium TDM2400P/AEX2400: up to 24 analog ports
# Digium TDM800P/AEX800: up to 8 analog ports
# Digium TDM410P/AEX410: up to 4 analog ports
wctdm24xxp

# X100P - Single port FXO interface
# X101P - Single port FXO interface
wcfxo

# Digium TDM400P: up to 4 analog ports
wctdm

# Digium B410P: 4 NT/TE BRI ports
wcb4xxp

# Digium TC400B: G729 / G723 Transcoding Engine
wctc4xxp

# Xorcom Astribank Devices
xpp_usb

# The following modules are added by patches in the Elastix
# RPM for dahdi:
opvxa1200
ystdm8xx
ystdm16xx
ap400
dahdi_dynamic_eth
dahdi_dynamic_ethmf
ax1600p

# Rhino Dual and Quad-span T1/E1/J1 PCI Interface Card
rxt1

# Rhino Single-span T1/E1/J1 PCI Interface Card
r1t1

# Rhino 4/8/12/24 Channel Analog PCI Interface Card
rcbfx
opvxd115
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#14
yep. it's probably using the ethmf driver (WTF Elastix ?) , unless you plug in a redfone there will be no proper timing source

comment out by adding a leading # to every line that doesn't start with a # already add three # to the openvox lines just in case :)

By doing that dahdi will NOT try and load all the modules for hardware you just don't have (go figure why they are there in the first place)
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#15
When everything's hunkydory, then

service asterisk stop
service dahdi restart
service asterisk start

should give you something like

[root@you ~]# service asterisk stop
Stopping safe_asterisk: [ OK ]
Shutting down asterisk: [ OK ]
[root@you ~]# service dahdi restart
Unloading DAHDI hardware modules: done
Loading DAHDI hardware modules:

No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: [ OK ]
[root@you ~]# service asterisk start
SETTING FILE PERMISSIONS Asterisk
Permissions Asterisk OK
Starting asterisk: [ OK ]
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#16
okay, to be clear, I should comment out like this:

# The following modules are added by patches in the Elastix
# RPM for dahdi:
;opvxa1200
;ystdm8xx
;ystdm16xx
;ap400
;dahdi_dynamic_eth
;dahdi_dynamic_ethmf
;ax1600p
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#17
and all the lines for the Digium, Xorcom, Rhino, etc cards?
 

dicko

Joined
Oct 24, 2008
Messages
4,099
Likes
0
Points
0
#18
Please attend, I stated:-

. . . comment out by adding a leading # to every line that doesn't start with a # already . . .

nothing there about a leading ; , agreed ?

unless you have . . .Digium, Xorcom, Rhino, etc cards? . . .

why would you want to load the drivers ?

as to the kernel, don't think, know, to do that issue from bash:

uname -a


:)
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#19
He hum. I commented out everything in modules on one box Now I get this:

[root@elastix ~]# lsmod|grep dahdi
dahdi 197320 2
crc_ccitt 6337 1 dahdi
[root@elastix ~]#
[root@elastix ~]# uname -a
Linux elastix.<company>.com 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 i686 i386 GNU/Linux
[root@elastix ~]# dahdi_test -vv -c 20
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8190.184 system clock sample intervals (99.978%)
8192 samples in 8189.112 system clock sample intervals (99.965%)
8192 samples in 8190.112 system clock sample intervals (99.977%)
8192 samples in 8189.976 system clock sample intervals (99.975%)
8192 samples in 8189.840 system clock sample intervals (99.974%)
--- Results after 5 passes ---
Best: 99.978 -- Worst: 99.965 -- Average: 99.973695, Difference: 99.973693
[root@elastix ~]#
 

franklin

Joined
Oct 22, 2010
Messages
254
Likes
0
Points
0
#20
This is from the box with no timing source after the change:
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: [ OK ]
[root@company ~]# service asterisk start
SETTING FILE PERMISSIONS Asterisk
Permissions Asterisk OK
Starting asterisk: [ OK ]
[root@company ~]# lsmod|grep dahdi
dahdi 197320 2
crc_ccitt 6337 1 dahdi
[root@company ~]# dahdi_test -vv -c 20
Opened pseudo dahdi interface, measuring accuracy...

8192 samples in 8190.392 system clock sample intervals (99.980%)
8192 samples in 8189.064 system clock sample intervals (99.964%)
8192 samples in 8190.112 system clock sample intervals (99.977%)
8192 samples in 8221.752 system clock sample intervals (100.363%)
8192 samples in 8189.912 system clock sample intervals (99.975%)
8192 samples in 8189.864 system clock sample intervals (99.974%)
8192 samples in 8189.944 system clock sample intervals (99.975%)
8192 samples in 8189.944 system clock sample intervals (99.975%)
--- Results after 8 passes ---
Best: 99.980 -- Worst: 99.637 -- Average: 99.932069, Difference: 100.022865
[root@company ~]#
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top