[Home]

Summary:ASTERISK-16968: Terrible jitter on SIP->"Fax for Asterisk", SIP->"Playtones", SIP->"MOH"
Reporter:Revich Yuri (icanit)Labels:
Date Opened:2010-11-17 00:54:25.000-0600Date Closed:2011-06-07 14:05:09
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/RTP
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Greetings!

I have terrible jitter on calling from SIP(tried from LAN hardware sipphone, from LAN software sipphone and from outside my SIP provider) on listening
MOH( via queue), Playtones and trying listen Fax for Asterisk(on handshake sound)

in logs always i see this:
[Nov 17 09:25:22] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 3520, ms is 460
[Nov 17 09:25:23] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1032, ms is 149
[Nov 17 09:25:23] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1520, ms is 210
[Nov 17 09:25:23] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1200, ms is 170
[Nov 17 09:25:23] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 952, ms is 139
[Nov 17 09:25:23] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1032, ms is 149
[Nov 17 09:25:24] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 872, ms is 129
[Nov 17 09:25:24] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1048, ms is 151
[Nov 17 09:25:24] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1192, ms is 169
[Nov 17 09:25:24] DEBUG[9054]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1840, ms is 250

But if i set Background(/var/lib/asterisk/moh/macroform-robot_dity) it plays perfect where queue moh have jitter:
[Nov 17 09:45:14] DEBUG[18073]: res_musiconhold.c:338 ast_moh_files_next: SIP/7100-0000000c Opened file 0 '/var/lib/asterisk/moh/macroform-robot_dity'
[Nov 17 09:45:14] DEBUG[18073]: res_rtp_asterisk.c:1061 ast_rtp_raw_write: Difference is 1352, ms is 189
....
..
.

I using Asterisk Mysql realtime. My sip.conf:

allowoverlap = no
udpbindaddr = 0.0.0.0
tcpenable = yes
tcpbindaddr = 0.0.0.0
rtcachefriends = yes
srvlookup = yes
#usejb = yes
#jbsize = 600
#forcejb = yes
#jblog = yes


Also i can say, what Fax handshake over iaxmodem works without jitter.

Same problem var on 1.6.2.14 before update to 1.8.0(also on 1.6.2.*)
But on virtual mashine on my notebook everything is alright on same config's.

In additional information i  write server configuration.

A searching a lot of forums and this issue tracker, but all the same issues was on old asterisk versions and already fixed.

****** ADDITIONAL INFORMATION ******

System configuration:
uname -a
Linux safe 2.6.32-gentoo-r7 #1 SMP Wed May 19 10:05:02 MSD 2010 i686 Intel(R) Xeon(TM) CPU 2.80GHz GenuineIntel GNU/Linux

lshw
 product: ProLiant DL380 G3
   vendor: HP
   serial: 802ELDG22K
   width: 32 bits
   capabilities: smbios-2.3 dmi-2.3 smp-1.4 smp
   configuration: boot=hardware-failure-fw chassis=rackmount cpus=2 uuid=38303245-4C44-4732-324B-202020202020
 *-core
      description: Motherboard
      physical id: 0
    *-firmware
         description: BIOS
         vendor: HP
         physical id: 0
         version: P29 (10/31/2003)
         size: 64KiB
         capacity: 1984KiB
         capabilities: pci pnp upgrade shadowing escd cdboot bootselect int13floppy360 int13floppy1200 int13floppy
720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification
*-cpu:0
         description: CPU
         product: Intel(R) Xeon(TM) CPU 2.80GHz
         vendor: Intel Corp.
         physical id: 406
         bus info: cpu@0
         version: 15.2.9
         slot: Proc 1
         size: 2800MHz
         capacity: 3600MHz
         width: 32 bits
         clock: 400MHz
         capabilities: boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse
36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe pebs bts cid xtpr

    *-memory
         description: System Memory
         physical id: 1000
         slot: System board or motherboard
         size: 1536MiB
6x
            description: DIMM DDR Synchronous 266 MHz (3.8 ns)
            physical id: 0
            slot: DIMM 01
            size: 256MiB
            width: 64 bits
            clock: 266MHz (3.8ns)
Comments:By: Leif Madsen (lmadsen) 2010-12-06 13:31:34.000-0600

I think you're going to have to provide additional information, such as the Asterisk console output with debug level logging and a SIP trace. A pcap trace including the RTP stream will probably also be useful.

Please attach log files as text.

Also, which fax driver are you using?

By: Leif Madsen (lmadsen) 2011-01-18 09:56:43.000-0600

No response.