Monthly Archives: July 2011

Setup Presence on Asterisk 1.4 & Later. Ploycom 301,501,601 and higer

Posted by sysadmin on July 12, 2011
Asterisk / Comments Off

Well if you are like me you search all over the Internet. And found the same information but it not working. Here what I did and it work for me.

I am running 1.6 and have polycom 301 through 601

First thing we need to do is enable presence in sip.cfg. So I ssh in my asterisk box and my config are under /home/PlcmSpIp/ using vim, nano or what ever open it up and search for this string ‘presence’ and we will did to turn the feature on so change

feature.1.enabled=”"

to

feature.1.enabled=”1″

Save the file.

—————————————————————-

Next we add some options to sip.conf in /ect/asterisk/

So lets go back to our editor and open that file.

under the ‘ [general] ‘ we need to add

limitonpeer=yes
notifyringing=yes
notifyhold=yes
allowsubscribe=yes

This tells Asterisk to allow sip subscriptions and to tell presence to change on ring and hold.

Next we need to tell the phone where to look to see what the device is doing so back in the editor open file

/etc/asterisk/extensions.conf

So we can add this context.

[device-hints]

In this context you will need to add the ext hints and they look this.

exten={ext},hint,SIP/{EXT}

If Bob is ext- 100 and Mary is ext – 101

It would look like this

[device-hints]

exten=100,hint,SIP/100

exten=101,hint,SIP/101

Save the file reload asterisk and the phones. Once everything is booted up.

Look in asterisk CLI and type ‘sip show subscriptions’

You should see something like this:

5xdata*CLI> sip show subscriptions
Peer User Call ID Extension Last state Type Mailbox Expiry
192.168.X.X 100 940ea202-d73bab 101@device-hint Idle xpidf+xml <none> 003600
192.168.X.X 101 b71ec17e-7c9baf 100@device-hint Idle xpidf+xml <none> 003600

Asterisk CLI and type ‘core show hints’

5xdata*CLI> core show hints
-= Registered Asterisk Dial Plan Hints =-
100@device-hints : SIP/100 State:Idle Watchers 1
101@device-hints : SIP/101 State:Idle Watchers 1

If you do not see this make sure you have buddy watch turn on the contact in the phone.

See this link http://lists.digium.com/pipermail/asterisk-users/2006-October/168135.html

Install Unreal Tournament 2004 Midway on Ubuntu 10.X

Posted by sysadmin on July 12, 2011
Linux / Comments Off

I want to write this article in hopes that it will save somebody the time and trouble to track down all the information I did. So let us begin.

First we need to download the installer.

http://www.liflg.org/?catid=6&gameid=17 download the dvd-3.run file.

BTY:

This is a great site! they have created installers for many older game base on the work by now dead Lokigames http://www.lokigames.com/.

Because of changes and updates in ubuntu we need to get some older lib files.

First file you will need is

https://launchpad.net/ubuntu/lucid/i386/libxml2/2.7.6.dfsg-1ubuntu1 (libxml2_2.7.6.dfsg-1ubuntu1_i386.deb). This is needed to work around this bug http://liflg.org/forum/viewtopic.php?f=2&t=1015 in the installer you can check liflg.org if there is a update to this bug.

Next file you will need is libstcd++5. This is used by UT2004 itself. You can find the deb file here:

http://fr.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-21ubuntu1_i386.deb

Lets go ahead and install the packages you downloaded and a few other file we need. Open the terminal. ALT+F2 type in gnome-terminal and hit enter. The terminal will open in your home folder, you can type ‘dir’ to see what in there and get your bearings. Now we need to move to the folder the files downloaded to. They likely download to the ‘Downloads’ folder so in the terminal you would type ‘cd Downloads’.

Here are the commands you can past in :

Just to make sure we are working with and update system.


sudo apt-get update (It will ask for your password)
sudo apt-get upgrade
sudo dpkg-i libxml2_2.7.6.dfsg-1ubuntu1_i386.deb
sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_i386.deb
sudo apt-get install alsa-oss oss-compat

OK, that is it for the package we need installed. Now make sure your UT DVD is in and show up Nautilus. back in the terminal type:

sh ./ut2004_3369-english.midway.dvd-3.run

If everything OK it should launch the installer. Now I had a problem where I would go through put in my cd-key and it would not let me continue, but if I choose cancel it would drop to a less pretty installer and after I clink accept the install when great.

Now that we have the game installed, lets go add the menu icon. right click on the menu and choose edit. In the box that come up. Choose where you want the Icon to be, then click ‘New Item’. Type in a name in the name field. In the command field choose ‘Browse’. The UT launcher should in ‘/home/your username/ut2004/’. Now in the icon section upper left corner click the button and browse back to that folder you will find ut2004.xpm choose that for your icon. That will give you a nice UT2004 icon.

One more thing before you save that and start playing, go back to the command section at the beganing we need to add ‘padsp’ so it should look like this ‘padsp /home/username/ut2004/ut2004′. We need to add that because as pulseaudio become more baked it replace some of the function of the old OSS (Open Sound System) that UT uses. padsp command creates a false ‘/dev/dsp’ and feeds the audio into pulseaudio.

Now after all the work you deserve a game!!!

So now go enjoy the game.

Jeff