Filename prefix for all call record files

Discussion in 'General' started by MST, Mar 8, 2010.

  1. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    I have noticed that the call files created in /var/spool/asterisk/monitor has a very general format. It looks like this: 20090623-120145-1245729632.264.wav

    I belive that file "recordingcheck" is in charge of creating that format. I have found
    this code:

    Code:
    if($recin == "Always")  {
    			$agi->verbose("Inbound recording enabled.");
    			$agi->verbose("CALLFILENAME={$timestamp}-{$uniqueid}");
    			$agi->set_variable("CALLFILENAME","{$timestamp}-{$uniqueid}");
    			$agi->set_priority('record');
    			exit(0);	
    
    Since I am not good at this programming language can someone advice the right code for better recording format like IN or OUT extension time and inbound or outbound phone number dialed. Such format would be much more readable than 20090623-120145-1245729632.264.wav especially that you have thousands of recorded calls.

    Could you please advice?

    Thank You and have a good one.
     
  2. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    The same problem when call ring group I have gnumber......
     
  3. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    There is a bit on the General settings page

    Run after record: An optional script to be run after the call is hungup. You can include channel and MixMon variables like ${CALLFILENAME}, ${MIXMON_FORMAT} and ${MIXMON_DIR}. To ensure that you variables are properly escaped, use the following notation: ^{MY_VAR}

    The uniqueid variable can be used to extract any information you care to from the mysql asteriskcdr data base and the various tables in asterisk if you want even more information so embedded in the file name. and group/arrange rename them to anything you find useful, If you follow this path I suggest you leave the original file untouched and create hardlinks to your new and improved structure or you will break some functionalities of the ARI and Elastix call reporting interfaces.

    If you have huge numbers of recording be careful if you approach the 32k limit of i-nodes in ext3 file systems.
     
  4. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    I have a script running every 5 minutes and moving everything from var/spool/asterisk/monitor to /recordings
    and file is transfer to mp3 so it take less space. In addition, all files are deleted from last 2 weeks.

    I will try a shoot and made same changes. First I will do backup of recrdingcheck in I believe 2 places that include that file.

    I have chacked

    ext3 /dev/md1 11% (1%) 82.52 MB 11.04 MB 98.65 MB

    so it is not so bad if every call is recorded.

    Thank You for advice.

    Regards, MST
     
  5. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Code:
    case "OUT":
    		$exten = $agi->get_variable("ARG1");
    		
    		$options = $agi->database_get("AMPUSER","{$exten['data']}/recording");
    		
    		if ($options["result"] == "0") {
    			$agi->verbose("No AMPUSER db entry for ".$exten["data"].". Not recording");
    			exit(1);		
    		}
    
    		//explode recording vars
    		$recording = explode("|",$options["data"]);
    		$recout = substr($recording[0],4);
    		$recin = substr($recording[1],3);
    	
    		if($recout == "Always") {
    			$agi->verbose("Outbound recording enabled.");
    			$agi->verbose("CALLFILENAME=OUT{$exten['data']}-{$timestamp}-{$uniqueid}");
    			$agi->set_variable("CALLFILENAME","OUT{$exten['data']}-{$timestamp}-{$uniqueid}");
    			$agi->set_priority('record');
    			exit(0);
    		} else {
    			$agi->verbose("Outbound recording not enabled");
    			exit(1);		
    		}
    	break;
    
    dicko, you wrote "run after record: .... You can include channel and MixMon variables like ${CALLFILENAME}, ${MIXMON_FORMAT} and ${MIXMON_DIR} " so I don't have to create new script for that - right? I can include MixMon variables in current script but modifying them to get desired output format. Please let me know if I am wrong.

    Thank You
     
  6. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
  7. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    I have read the post. Thank you dicko for your effort for people like me, I see I am not the only one at that stage :) I am more interesting in script

    Summaring before I will do something stupid and crash Elastix:

    1. I am going to create example.sh executable file with
    Code:
    #!/bin/bash
    /usr/bin/mysql -u root -peLaStIx.2oo7 -N -B  -D asteriskcdrdb -e "SELECT calldate,'From:',src,'To:',dst,'.wav' FROM cdr WHERE uniqueid = ${UNIQUEID}"|sed -s s'/s/_/g'`.
    
    Just interesting "-peLaStIx.2oo7" it should not be a space between -p and eLaStIx.2oo7?

    2. In "RUN after Record" /script location/example.sh ^{UNIQUEID} ^{MIXMON_DIR} ^{CALLFILENAME} ^{MIXMON_FORMAT}

    Probably you will think "what .... another idiot" Please let me know if I am right about steps 1 and 2.

    Thank You
     
  8. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    MST

    Please reread the posts as to what are replaceable parameters (arguments) in calling a bash script $1 $2 etc, you call your script with many but none are used..

    e.g.

    myscript I am home "mr -fr /"

    where myscript is

    #!/bin/sh

    echo "I think I'll be $0 today !!"
    echo -n $1
    echo $2
    `ls -lasrt $3`
    echo "never run $4"

    to experiment (I ran sed -s 's/rm/mr/' on the script just so you didn't experiment too drastically, but also to demonstrate how powerful these things can be in incautious hands)

    I suggest you devolve the line into understandable "bits " and try them one by one until you see what each bit does.

    /usr/bin/mysql -u root -peLaStIx.2oo7 -N -B -D asteriskcdrdb -e "SELECT calldate,'From:',src,'To:',dst,'.wav' FROM cdr WHERE uniqueid = ${UNIQUEID}"

    is a mysql query each of the -x thingies modify the behavior, (hence the necessity for "man mysql" )

    The "pipe" "|" between them will feed the output of the first bit into the second bit

    sed is a "stream editor" so your script that will replace all of the occurrences of s with an underscore (not very useful)

    man sed

    will help here and you will see that what was posted was in actual fact a "backslash" then an s which means "whitespace" (stupid board software), it is a good idea not to use spaces in file names in linux (for many reasons but bespecially for newbies (they bite you in the ass, spaces not newbies :) ) ) the underscore is just to make it more human readable

    There are very few idiots here, don't sweat learning "out loud" occasionally but a good bash tutorial will be an eye opener I think.



    dicko
     
  9. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Can recording of 10 phones make server to hiccups? When I turn off recording everything is fine. When I turn on, QOS of calls goes down (words are interrupted) or recording should not affect that process?

    Elastix uses 2XSATA in Software Raid 2x500GB.

    Thank You
     
  10. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Unless you have a very underpowered machine it shouldn't, you might want to install sysstat and use iostat and sar to identify the bottlenecks
     
  11. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Some servers need a specific SATA BIOS configuration in order to get their hard drives working fine. Also make sure 32bit access and DMA is enabled. Check hd performance with hdparm or similars.
     
  12. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    Thank You Gentlemen, the server is HP with dual core 2.66 and 3GB RAM, both disks are 7200RPM so for 10 phones it should not matter; however, it does. Does Recording take internet bandwidth? If yes , this is my problem.

    Thank You again
     
  13. MST

    MST

    Joined:
    Sep 25, 2009
    Messages:
    317
    Likes Received:
    0
    ramoncio, I have this:

    # df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/md0 577G 4.2G 543G 1% /
    /dev/md1 99M 12M 83M 12% /boot
    tmpfs 1.7G 0 1.7G 0% /dev/shm
    # hdparm -Tt /dev/md0

    /dev/md0:
    Timing cached reads: 4604 MB in 2.00 seconds = 2301.36 MB/sec
    Timing buffered disk reads: 206 MB in 3.01 seconds = 68.37 MB/sec

    # hdparm -Tt /dev/md1

    /dev/md1:
    Timing cached reads: 4484 MB in 2.00 seconds = 2241.24 MB/sec
    Timing buffered disk reads: 100 MB in 2.35 seconds = 42.64 MB/sec

    Should I be worry about HDD speed?

    Code:
     #1 SMP Thu May 7 10:39:21 EDT 2009
    BIOS-provided physical RAM map:
     BIOS-e820: 0000000000000000 - 000000000009ec00 (usable)
     BIOS-e820: 000000000009ec00 - 00000000000a0000 (reserved)
     BIOS-e820: 00000000000e4000 - 0000000000100000 (reserved)
     BIOS-e820: 0000000000100000 - 00000000cf6a0000 (usable)
     BIOS-e820: 00000000cf6a0000 - 00000000cf6ae000 (ACPI data)
     BIOS-e820: 00000000cf6ae000 - 00000000cf6e0000 (ACPI NVS)
     BIOS-e820: 00000000cf6e0000 - 00000000cf700000 (reserved)
     BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
     BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
     BIOS-e820: 0000000100000000 - 00000001b0000000 (usable)
    Warning only 4GB will be used.
    Use a PAE enabled kernel.
    3200MB HIGHMEM available.
    896MB LOWMEM available.
    found SMP MP-table at 000ff780
    Memory for crash kernel (0x0 to 0x0) notwithin permissible range
    disabling kdump
    Using x86 segment limits to approximate NX protection
    On node 0 totalpages: 1048576
      DMA zone: 4096 pages, LIFO batch:0
      Normal zone: 225280 pages, LIFO batch:31
      HighMem zone: 819200 pages, LIFO batch:31
    DMI present.
    Using APIC driver default
    ACPI: RSDP (v000 HPQOEM                                ) @ 0x000fc440
    ACPI: RSDT (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6a0000
    ACPI: FADT (v002 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6a0200
    ACPI: MADT (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6a0390
    ACPI: MCFG (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6a0400
    ACPI: OEMB (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6ae040
    ACPI: HPET (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6a52e0
    ACPI: GSCI (v001 HPQOEM SLIC-CPC 0x20090910 MSFT 0x00000097) @ 0xcf6ae0c0
    ACPI: SLIC (v001 HPQOEM SLIC-CPC 0x00000001 MSFT 0x00000001) @ 0xcf6b00f0
    ACPI: SSDT (v001 HPQOEM SLIC-CPC 0x00000012 INTL 0x20051117) @ 0xcf6b0bf0
    ACPI: DSDT (v001 HPQOEM SLIC-CPC 0x00000000 INTL 0x20051117) @ 0x00000000
    ACPI: PM-Timer IO Port: 0x808
    ACPI: Local APIC address 0xfee00000
    ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
    Processor #0 7:7 APIC version 20
    ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
    Processor #1 7:7 APIC version 20
    ACPI: LAPIC (acpi_id[0x03] lapic_id[0x82] disabled)
    ACPI: LAPIC (acpi_id[0x04] lapic_id[0x83] disabled)
    ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
    IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
    ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
    ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
    ACPI: IRQ0 used by override.
    ACPI: IRQ2 used by override.
    ACPI: IRQ9 used by override.
    Enabling APIC mode:  Flat.  Using 1 I/O APICs
    ACPI: HPET id: 0x8086a301 base: 0xfed00000
    Using ACPI (MADT) for SMP configuration information
    Allocating PCI resources starting at d0000000 (gap: cf700000:2f700000)
    Detected 2600.115 MHz processor.
    Built 1 zonelists.  Total pages: 1048576
    Kernel command line: ro root=/dev/md0
    mapped APIC to ffffd000 (fee00000)
    mapped IOAPIC to ffffc000 (fec00000)
    Enabling fast FPU save and restore... done.
    Enabling unmasked SIMD FPU exception support... done.
    Initializing CPU#0
    CPU 0 irqstacks, hard=c0754000 soft=c0734000
    PID hash table entries: 4096 (order: 12, 16384 bytes)
    Console: colour VGA+ 80x25
    Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Memory: 3356852k/4194304k available (2122k kernel code, 40268k reserved, 883k data, 228k init, 2480768k highmem)
    Checking if this processor honours the WP bit even in supervisor mode... Ok.
    hpet0: at MMIO 0xfed00000 (virtual 0xf8800000), IRQs 2, 8, 0, 0
    hpet0: 4 64-bit timers, 14318180 Hz
    Using HPET for base-timer
    Calibrating delay using timer specific routine.. 5203.29 BogoMIPS (lpj=2601648)
    Security Framework v1.0.0 initialized
    SELinux:  Initializing.
    SELinux:  Starting in permissive mode
    selinux_register_security:  Registering secondary module capability
    Capability LSM initialized as secondary
    Mount-cache hash table entries: 512
    CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0400e3bd 00000000 00000001
    CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 0400e3bd 00000000 00000001
    monitor/mwait feature present.
    using mwait in idle threads.
    CPU: L1 I cache: 32K, L1 D cache: 32K
    CPU: L2 cache: 2048K
    CPU: Physical Processor ID: 0
    CPU: Processor Core ID: 0
    CPU: After all inits, caps: bfebf3ff 20100000 00000000 00000940 0400e3bd 00000000 00000001
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#0.
    Checking 'hlt' instruction... OK.
    SMP alternatives: switching to UP code
    ACPI: Core revision 20060707
    CPU0: Intel Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz stepping 0a
    SMP alternatives: switching to SMP code
    Booting processor 1/1 eip 3000
    CPU 1 irqstacks, hard=c0755000 soft=c0735000
    Initializing CPU#1
    Calibrating delay using timer specific routine.. 5199.70 BogoMIPS (lpj=2599852)
    CPU: After generic identify, caps: bfebfbff 20100000 00000000 00000000 0400e3bd 00000000 00000001
    CPU: After vendor identify, caps: bfebfbff 20100000 00000000 00000000 0400e3bd 00000000 00000001
    monitor/mwait feature present.
    CPU: L1 I cache: 32K, L1 D cache: 32K
    CPU: L2 cache: 2048K
    CPU: Physical Processor ID: 0
    CPU: Processor Core ID: 1
    CPU: After all inits, caps: bfebf3ff 20100000 00000000 00000940 0400e3bd 00000000 00000001
    Intel machine check architecture supported.
    Intel machine check reporting enabled on CPU#1.
    CPU1: Intel Pentium(R) Dual-Core  CPU      E5300  @ 2.60GHz stepping 0a
    Total of 2 processors activated (10403.00 BogoMIPS).
    ENABLING IO-APIC IRQs
    ..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
    checking TSC synchronization across 2 CPUs: passed.
    Brought up 2 CPUs
    sizeof(vma)=84 bytes
    sizeof(page)=32 bytes
    sizeof(inode)=340 bytes
    sizeof(dentry)=136 bytes
    sizeof(ext3inode)=492 bytes
    sizeof(buffer_head)=52 bytes
    sizeof(skbuff)=172 bytes
    migration_cost=18
    checking if image is initramfs... it is
    Freeing initrd memory: 2479k freed
    NET: Registered protocol family 16
    No dock devices found.
    ACPI: bus type pci registered
    PCI: BIOS Bug: MCFG area at e0000000 is not E820-reserved
    PCI: Not using MMCONFIG.
    PCI: PCI BIOS revision 3.00 entry at 0xf0031, last bus=3
    PCI: Using configuration type 1
    Setting up standard PCI resources
    ACPI: Interpreter enabled
    ACPI: Using IOAPIC for interrupt routing
    ACPI: PCI Root Bridge [PCI0] (0000:00)
    Boot video device is 0000:00:02.0
    PCI: Transparent bridge - 0000:00:1e.0
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P1._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P4._PRT]
    ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.P0P6._PRT]
    ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 10 11 12 14 15)
    ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11 12 14 15)
    ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *10 11 12 14 15)
    ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11 12 14 *15)
    ACPI: PCI Interrupt Link [LNKE] (IRQs 3 *4 5 6 7 10 11 12 14 15)
    ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 *7 10 11 12 14 15)
    ACPI: PCI Interrupt Link [LNKG] (IRQs *3 4 5 6 7 10 11 12 14 15)
    ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 10 11 12 *14 15)
    Linux Plug and Play Support v0.97 (c) Adam Belay
    pnp: PnP ACPI init
    pnp: PnP ACPI: found 15 devices
    usbcore: registered new driver usbfs
    usbcore: registered new driver hub
    PCI: Using ACPI for IRQ routing
    PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
    NetLabel: Initializing
    NetLabel:  domain hash size = 128
    NetLabel:  protocols = UNLABELED CIPSOv4
    NetLabel:  unlabeled traffic allowed by default
    pnp: 00:0a: ioport range 0xa00-0xadf has been reserved
    PCI: Ignore bogus resource 6 [0] of 0000:00:02.0
    PCI: Bridge: 0000:00:1c.0
      IO window: disabled.
      MEM window: disabled.
      PREFETCH window: disabled.
    PCI: Bridge: 0000:00:1c.2
      IO window: e000-efff
      MEM window: feb00000-febfffff
      PREFETCH window: fdf00000-fdffffff
    PCI: Bridge: 0000:00:1e.0
      IO window: disabled.
      MEM window: fea00000-feafffff
      PREFETCH window: disabled.
    ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 17 (level, low) -> IRQ 169
    PCI: Setting latency timer of device 0000:00:1c.0 to 64
    ACPI: PCI Interrupt 0000:00:1c.2[C] -> GSI 18 (level, low) -> IRQ 177
    PCI: Setting latency timer of device 0000:00:1c.2 to 64
    PCI: Setting latency timer of device 0000:00:1e.0 to 64
    NET: Registered protocol family 2
    IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
    TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
    TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
    TCP: Hash tables configured (established 131072 bind 65536)
    TCP reno registered
    apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
    apm: disabled - APM is not SMP safe.
    audit: initializing netlink socket (disabled)
    type=2000 audit(1266521650.680:1): initialized
    highmem bounce pool size: 64 pages
    Total HugeTLB memory allocated, 0
    VFS: Disk quotas dquot_6.5.1
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    SELinux:  Registering netfilter hooks
    Initializing Cryptographic API
    alg: No test for crc32c (crc32c-generic)
    ksign: Installing public key data
    Loading keyring
    - Added public key AA1487A03717BEE2
    - User ID: CentOS (Kernel Module GPG key)
    io scheduler noop registered
    io scheduler anticipatory registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    PCI: Setting latency timer of device 0000:00:1c.0 to 64
    assign_interrupt_mode Found MSI capability
    Allocate Port Service[0000:00:1c.0:pcie00]
    Allocate Port Service[0000:00:1c.0:pcie02]
    PCI: Setting latency timer of device 0000:00:1c.2 to 64
    assign_interrupt_mode Found MSI capability
    Allocate Port Service[0000:00:1c.2:pcie00]
    Allocate Port Service[0000:00:1c.2:pcie02]
    pci_hotplug: PCI Hot Plug PCI Core version: 0.5
    ACPI (exconfig-0456): Dynamic SSDT Load - OemId [HPQOEM] OemTableId [SLIC-CPC] [20060707]
    ACPI (exconfig-0456): Dynamic SSDT Load - OemId [HPQOEM] OemTableId [SLIC-CPC] [20060707]
    Real Time Clock Driver v1.12ac
    hpet_resources: 0xfed00000 is busy
    Non-volatile memory driver v1.2
    Linux agpgart interface v0.101 (c) 
    agpgart: Detected an Intel G33 Chipset.
    agpgart: Detected 7164K stolen memory.
    agpgart: AGP aperture is 256M @ 0xd0000000
    Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
    RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
    Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
    ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
    Probing IDE interface ide0...
    Probing IDE interface ide1...
    ide-floppy driver 0.99.newide
    usbcore: registered new driver hiddev
    usbcore: registered new driver usbhid
    drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    PNP: PS/2 Controller [PNP0f03] at 0x60,0x64 irq 12
    PNP: PS/2 controller doesn't have KBD irq; using default 1
    serio: i8042 KBD port at 0x60,0x64 irq 1
    serio: i8042 AUX port at 0x60,0x64 irq 12
    mice: PS/2 mouse device common for all mice
    md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
    md: bitmap version 4.39
    TCP bic registered
    Initializing IPsec netlink socket
    NET: Registered protocol family 1
    NET: Registered protocol family 17
    Using IPI No-Shortcut mode
    ACPI: (supports S0 S1 S3 S4 S5)
    Freeing unused kernel memory: 228k freed
    Write protecting the kernel read-only data: 397k
    Time: tsc clocksource has been installed.
    ACPI: PCI Interrupt 0000:00:1a.7[C] -> GSI 18 (level, low) -> IRQ 177
    PCI: Setting latency timer of device 0000:00:1a.7 to 64
    ehci_hcd 0000:00:1a.7: EHCI Host Controller
    ehci_hcd 0000:00:1a.7: new USB bus registered, assigned bus number 1
    ehci_hcd 0000:00:1a.7: debug port 1
    PCI: cache line size of 32 is not supported by device 0000:00:1a.7
    ehci_hcd 0000:00:1a.7: irq 177, io mem 0xfe9fec00
    ehci_hcd 0000:00:1a.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
    usb usb1: configuration #1 chosen from 1 choice
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 4 ports detected
    ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 23 (level, low) -> IRQ 209
    PCI: Setting latency timer of device 0000:00:1d.7 to 64
    ehci_hcd 0000:00:1d.7: EHCI Host Controller
    ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 2
    ehci_hcd 0000:00:1d.7: debug port 1
    PCI: cache line size of 32 is not supported by device 0000:00:1d.7
    ehci_hcd 0000:00:1d.7: irq 209, io mem 0xfe9ff800
    ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
    usb usb2: configuration #1 chosen from 1 choice
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 8 ports detected
    ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
    USB Universal Host Controller Interface driver v3.0
    ACPI: PCI Interrupt 0000:00:1a.0[A] -> GSI 16 (level, low) -> IRQ 217
    PCI: Setting latency timer of device 0000:00:1a.0 to 64
    uhci_hcd 0000:00:1a.0: UHCI Host Controller
    uhci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 3
    uhci_hcd 0000:00:1a.0: irq 217, io base 0x0000c400
    usb usb3: configuration #1 chosen from 1 choice
    hub 3-0:1.0: USB hub found
    hub 3-0:1.0: 2 ports detected
    ACPI: PCI Interrupt 0000:00:1a.1[B] -> GSI 21 (level, low) -> IRQ 225
    PCI: Setting latency timer of device 0000:00:1a.1 to 64
    uhci_hcd 0000:00:1a.1: UHCI Host Controller
    uhci_hcd 0000:00:1a.1: new USB bus registered, assigned bus number 4
    uhci_hcd 0000:00:1a.1: irq 225, io base 0x0000c480
    usb usb4: configuration #1 chosen from 1 choice
    hub 4-0:1.0: USB hub found
    hub 4-0:1.0: 2 ports detected
    ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 209
    PCI: Setting latency timer of device 0000:00:1d.0 to 64
    uhci_hcd 0000:00:1d.0: UHCI Host Controller
    uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 5
    uhci_hcd 0000:00:1d.0: irq 209, io base 0x0000c800
    usb usb5: configuration #1 chosen from 1 choice
    hub 5-0:1.0: USB hub found
    hub 5-0:1.0: 2 ports detected
    ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 233
    PCI: Setting latency timer of device 0000:00:1d.1 to 64
    uhci_hcd 0000:00:1d.1: UHCI Host Controller
    uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 6
    uhci_hcd 0000:00:1d.1: irq 233, io base 0x0000c880
    usb usb6: configuration #1 chosen from 1 choice
    hub 6-0:1.0: USB hub found
    hub 6-0:1.0: 2 ports detected
    ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 177
    PCI: Setting latency timer of device 0000:00:1d.2 to 64
    uhci_hcd 0000:00:1d.2: UHCI Host Controller
    uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 7
    uhci_hcd 0000:00:1d.2: irq 177, io base 0x0000cc00
    usb usb7: configuration #1 chosen from 1 choice
    hub 7-0:1.0: USB hub found
    hub 7-0:1.0: 2 ports detected
    ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 16 (level, low) -> IRQ 217
    PCI: Setting latency timer of device 0000:00:1d.3 to 64
    uhci_hcd 0000:00:1d.3: UHCI Host Controller
    uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 8
    uhci_hcd 0000:00:1d.3: irq 217, io base 0x0000d000
    usb usb8: configuration #1 chosen from 1 choice
    hub 8-0:1.0: USB hub found
    hub 8-0:1.0: 2 ports detected
    md: raid1 personality registered for level 1
    SCSI subsystem initialized
    libata version 3.00 loaded.
    ahci 0000:00:1f.2: version 3.0
    ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 233
    ahci 0000:00:1f.2: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode
    ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pio slum part ems 
    PCI: Setting latency timer of device 0000:00:1f.2 to 64
    scsi0 : ahci
    scsi1 : ahci
    scsi2 : ahci
    scsi3 : ahci
    scsi4 : ahci
    scsi5 : ahci
    ata1: SATA max UDMA/133 abar m2048@0xfe9ff000 port 0xfe9ff100 irq 50
    ata2: SATA max UDMA/133 abar m2048@0xfe9ff000 port 0xfe9ff180 irq 50
    ata3: SATA max UDMA/133 abar m2048@0xfe9ff000 port 0xfe9ff200 irq 50
    ata4: SATA max UDMA/133 abar m2048@0xfe9ff000 port 0xfe9ff280 irq 50
    ata5: SATA max UDMA/133 abar m2048@0xfe9ff000 port 0xfe9ff300 irq 50
    ata6: SATA max UDMA/133 irq_stat 0x00000040, conne50
    ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata1.00: ATA-8: WDC WD6400AAKS-65A7B2, 01.03B01, max UDMA/133
    ata1.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata1.00: configured for UDMA/133
    ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    ata2.00: ATA-8: ST3640323AS, SD13, max UDMA/133
    ata2.00: 1250263728 sectors, multi 0: LBA48 NCQ (depth 31/32)
    ata2.00: configured for UDMA/133
    ata3: SATA link down (SStatus 0 SControl 300)
    ata4: SATA link down (SStatus 0 SControl 300)
    ata5: SATA link down (SStatus 0 SControl 300)
    ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    ata6.00: ATAPI: hp        DDVDW TS-H653R, 0E00, max UDMA/100, ATAPI AN
    ata6.00: configured for UDMA/100
      Vendor: ATA       Model: WDC WD6400AAKS-6  Rev: 01.0
      Type:   Direct-Access                      ANSI SCSI revision: 05
    SCSI device sda: 1250263728 512-byte hdwr sectors (640135 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 3a 00 00
    SCSI device sda: drive cache: write back
    SCSI device sda: 1250263728 512-byte hdwr sectors (640135 MB)
    sda: Write Protect is off
    sda: Mode Sense: 00 3a 00 00
    SCSI device sda: drive cache: write back
     sda: sda1 sda2 sda3
    sd 0:0:0:0: Attached scsi disk sda
      Vendor: ATA       Model: ST3640323AS       Rev: SD13
      Type:   Direct-Access                      ANSI SCSI revision: 05
    SCSI device sdb: 1250263728 512-byte hdwr sectors (640135 MB)
    sdb: Write Protect is off
    sdb: Mode Sense: 00 3a 00 00
    SCSI device sdb: drive cache: write back
    SCSI device sdb: 1250263728 512-byte hdwr sectors (640135 MB)
    sdb: Write Protect is off
    sdb: Mode Sense: 00 3a 00 00
    SCSI device sdb: drive cache: write back
     sdb: sdb1 sdb2 sdb3
    sd 1:0:0:0: Attached scsi disk sdb
      Vendor: hp        Model: CDDVDW TS-H653R   Rev: 0E00
      Type:   CD-ROM                             ANSI SCSI revision: 05
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.11.5-ioctl 
    device-mapper: dm-raid45: initialized v0.2429
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: considering sdb3 ...
    md:  adding sdb3 ...
    md: sdb2 has different UUID to sdb3
    md: sdb1 has different UUID to sdb3
    md:  adding sda3 ...
    md: sda2 has different UUID to sdb3
    md: sda1 has different UUID to sdb3
    md: created md0
    md: bind<sda3>
    md: bind<sdb3>
    md: running: <sdb3><sda3>
    raid1: raid set md0 active with 2 out of 2 mirrors
    md: considering sdb2 ...
    md:  adding sdb2 ...
    md: sdb1 has different UUID to sdb2
    md:  adding sda2 ...
    md: sda1 has different UUID to sdb2
    md: created md2
    md: bind<sda2>
    md: bind<sdb2>
    md: running: <sdb2><sda2>
    raid1: raid set md2 active with 2 out of 2 mirrors
    md: considering sdb1 ...
    md:  adding sdb1 ...
    md:  adding sda1 ...
    md: created md1
    md: bind<sda1>
    md: bind<sdb1>
    md: running: <sdb1><sda1>
    raid1: raid set md1 active with 2 out of 2 mirrors
    md: ... autorun DONE.
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.
    kjournald starting.  Commit interval 5 seconds
    EXT3-fs: mounted filesystem with ordered data mode.
    SELinux:  Disabled at runtime.
    SELinux:  Unregistering netfilter hooks
    type=1404 audit(1266521677.066:2): selinux=0 auid=4294967295 ses=4294967295
    input: PC Speaker as /class/input/input0
    ACPI: PCI Interrupt 0000:00:1f.3[C] -> GSI 18 (level, low) -> IRQ 177
    r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
    ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 18 (level, low) -> IRQ 177
    PCI: Setting latency timer of device 0000:02:00.0 to 64
    eth0: RTL8168c/8111c at 0xf8830000, 90:e6:ba:4a:2a:3b, XID 3c4000c0 IRQ 58
    sd 0:0:0:0: Attached scsi generic sg0 type 0
    sd 1:0:0:0: Attached scsi generic sg1 type 0
    scsi 5:0:0:0: Attached scsi generic sg2 type 5
    sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
    Uniform CD-ROM driver Revision: 3.20
    sr 5:0:0:0: Attached scsi CD-ROM sr0
    ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 22 (level, low) -> IRQ 66
    PCI: Setting latency timer of device 0000:00:1b.0 to 64
    hda_codec: Unknown model for ALC883, trying auto-probe from BIOS...
    floppy0: no floppy controllers found
    lp: driver loaded but no devices found
    ACPI: Power Button (FF) [PWRF]
    ACPI: Power Button (CM) [PWRB]
    md: Autodetecting RAID arrays.
    md: autorun ...
    md: ... autorun DONE.
    device-mapper: multipath: version 1.0.5 loaded
    EXT3 FS on md0, internal journal
    kjournald starting.  Commit interval 5 seconds
    EXT3 FS on md1, internal journal
    EXT3-fs: mounted filesystem with ordered data mode.
    Adding 1052152k swap on /dev/md2.  Priority:-1 extents:1 across:1052152k
    Open Source Line Echo Canceller Installed
    zaptel: no version for "oslec_echo_can_traintap" found: kernel tainted.
    Zapata Telephony Interface Registered on major 196
    Zaptel Version: 1.4.12.9.svn.r4590-Xorcom-trunk-r7049
    Registered Tormenta2 PCI
    usbcore: registered new driver wcusb
    Wildcard USB FXS Interface driver registered
    INFO-xpp: revision trunk-r7049 MAX_XPDS=64 (8*8)
    INFO-xpp: FEATURE: with BRISTUFF support
    INFO-xpp: FEATURE: with PROTOCOL_DEBUG
    INFO-xpp: FEATURE: with sync_tick() from ZAPTEL
    INFO-xpp_usb: revision trunk-r7049
    usbcore: registered new driver xpp_usb
    ztdummy: RTC rate is 1024
    Registered tone zone 0 (United States / North America)
    r8169: eth0: link up
    r8169: eth0: link up
    Netfilter messages via NETLINK v0.30.
    ip_tables: (C) 2000-2006 Netfilter Core Team
    ip_conntrack version 2.4 (8192 buckets, 65536 max) - 228 bytes per conntrack
    NET: Registered protocol family 10
    lo: Disabled Privacy Extensions
    IPv6 over IPv4 tunneling driver
    eth0: no IPv6 routers present
    
    MST
     
  14. javapaul

    Joined:
    Jul 1, 2009
    Messages:
    99
    Likes Received:
    0
    Hi, i used to have the same problem cause of the extra line under general settings, and it was loading the CPU up to 90 % and the calls would start cutting off, cause we have 100+ concurrent calls and that's 100+ files being create (100+ queries also). But the line helped a great deal on understanding asterisk and shell scripting (THANKS AGAIN DICKO!! :) ). I paid some support to Elastix to get the name of the file with the format i needed but mostly to save it on a folder named after the extension that made the call.
    An alternate solution its to add (need some php editing) the unique id number under accounts code at the cdr report, and this is the number which is the file of the call is named after. So if you have to find an specific call just look it up under the cdr report find the phone number and look the file up with that the unique id from that call.
     
  15. tumbleweed

    Joined:
    Jun 18, 2010
    Messages:
    79
    Likes Received:
    0
    Yup, had the same problem a couple of days ago when I added the line too and CPU went up to 90%+ and stays at artound that on the Elastix screen. We checked the system processe and it showed nothing using it up! So somebody's not telling the truth. Having said that, we are starting to get some call quality issues. Currently 8 actual extensions on the system with another 20 to come, this is worrying as we need call recording.
     

Share This Page