Jul 12
Linux

I inspected all the devices i wanted to add to udev using "udevadm info" for each path i knew was the device i needed.


udevadm info -a -p $(udevadm info -q path -n /dev/video1)
udevadm info -a -p $(udevadm info -q path -n /dev/video0)
udevadm info -a -p $(udevadm info -q path -n /dev/input/mouse1)
udevadm info -a -p $(udevadm info -q path -n /dev/input/event1)
udevadm info -a -p $(udevadm info -q path -n /dev/input/event2)
udevadm info -a -p $(udevadm info -q path -n /dev/input/mouse2)


Then just created the udev file /etc/udev/rules.d/95-my.rules


KERNEL=="video*", SUBSYSTEM=="video4linux", ATTR{name}=="saa7133*", SYMLINK+="tvcard"
SUBSYSTEM=="video4linux", ATTR{name}=="gspca main driver", SYMLINK+="geniuscam"
KERNEL=="mouse*", ATTRS{name}=="Microsoft Basic Optical Mouse", SYMLINK+="input/cecimouse"
KERNEL=="event*", ATTRS{name}=="AT Translated Set 2 keyboard", SYMLINK+="input/cecikb"
KERNEL=="event*", ATTRS{name}=="Logitech Logitech USB Keyboard", SYMLINK+="input/betokb"
KERNEL=="mouse*", ATTRS{name}=="USB Optical Mouse", SYMLINK+="input/betomouse"


reboot, and i get pretty aliases for all my devs :)

Posted by rdircio

| Top Exits (0)
Vote for articles fresher than 7 days!
Current karma: 2 of 5, 1 vote(s) 69 hits
Jul 12
Linux

My asterisk version is 1.6.2.6


My freepbx version is 2.7.0.1


To get music-on-hold from a live source, i made a script (/scripts/streamx.ksh):


#!/bin/ksh
/usr/bin/ogg123 -q -b 128 -p 32 -d wav -f - http://kraftek.com:8000/stream.ogg| sox -t wav - -r 8000 -c 1 -t raw - vol 0.10


and configured /etc/asterisk/musiconhold_additional.ksh with:


[default]
mode=custom
application=/scripts/streamx.ksh


And that is it!, just dial a conference room and you'll get live music on hold while waiting for your friends to join :)

Posted by rdircio

| Top Exits (0)
Vote for articles fresher than 7 days!
Current karma: 5 of 5, 1 vote(s) 73 hits
Jul 6
Linux watch 'mysql -e "show processlist;"'

Posted by rdircio

| Top Exits (0)
Vote for articles fresher than 7 days!
Current karma: none, 0 vote(s) 63 hits

(Page 2 of 108, totaling 322 entries)