Aug
04
2014
0

How to Provision Global Settings using Polycom 4.0 Firmware

vvx_310

Recently I’ve been tasked with figuring out how to provision Polycom phones on the 4.0 firmware.  I’ve resisted for some time because of our existing GUI and templates.  However, the time has come to make the transition.  This tutorial will cover how to create a custom settings file that used to make up sip.cfg.  We will define our own ‘global options’ config referenced from  00000000000-phone.cfg.

 

Goals of this Post:

  • Create custom global options for Polycom 4.0 firmware

 

(more…)

Written by mattb in: Asterisk,Asterisk Post,Linux | Tags: , ,
Jun
12
2014
0

Civilization V on Fedora 20

It’s a dream come true.  Civ V on Linux!!!!!!!!!!   Let me just say this: OMG, OMG, OMG, OMG….!  Okay, deep breath.

I love Civ, but my current situation only allows one computer, so I have to swap drives and boot Windows to play my most favorite of games.  It’s huge bummer, because it disrupts my work flow, but that’s all changed.  Steam is and Firaxis are incredibly wise to offer an “A” game to the small(but growing Desktop Linux community).  I’m playing a single player game and will report back soon!

Written by mattb in: Linux |
May
22
2014
0

Asterisk 1.8 T1 w/ PRI + analog fax

It’s been a while since I posted, so I want to come out swinging.  I recently put together a phone system for a medium office.  They have a standard T1 and a 4 port FXS Digium card.  The analog card is for a PA system and two fax machines.  This post is a quick tutorial with examples for installation.

Goals of this post:

  • Configure Digium T1 w/ PRI
  • Configure Analog card channels
  • Asterisk Dahdi setup

This tutorial assumes you have a somewhat recent working build of libpri, dahdi, and Asterisk.

(more…)

Jun
23
2013
0

Fedora 15, 16, 17, 18 missing system-config-network GUI – SOLVED

Recently Fedora has been a nightmare for me. Anyone that’s seen(the fairly new) GNOME 3 knows what I’m talking about.  Their design team must have dreamed up the next iteration of GNOME with only a tablet in mind.  The giant icons and dependency on keyboard shortcuts make it a must for a 7″ inch screen and a few swipes.

For daily use on desktop computers at work GNOME 3 is garbage though – everyone hates it. It’s barely better than the Windows 8 interface.  I’m sorry; yeah I went there, and I only say that because Microsoft jammed all those tiles and the desktop into the same freaking UI.  Even GNOME 3 designers missed that pit of snakes!

But happy days are here again! I have found(with some tweaking) the MATE Desktop offers a very similar but updated version of the GNOME 2 desktop I loved in Fedora 14.  One nagging problem is that I hate NetworkManager for server use.  It’s okay for laptops, but when I need to custom edit some interfaces for a Asterisk PBX or Virtual Server I want the good ol’ ‘system-config-network’ over a SSH -X session.  After a quick ‘yum install system-config-network’ I thought I was in business… only to discover that only the command line version was installed.  After a little googling I discovered a utility that could download the source package.  I rebuilt the package with ‘–with gui’ switch as suggested on a forum.  The result produced the ‘system-config-network-tui-1.6.10-1.fc18.noarch.rpm’.  I installed the packaged and the GUI works! This tutorial uses Fedora 18, but could be adapted for 15,16,17, and 19.

(more…)

Jun
28
2012
0

Agent Auto log-off script for Asterisk

Many times an Agent will forget to logoff. This can cause call routing, payroll, and queue statistic problems with Asterisk. With a handy BASH script it is easy to log all the agents out the queues automatically. Below is the shell script and an example of the crontab entry for execution at 6:00 PM every day.

(more…)

Written by mattb in: Asterisk,Scripts | Tags: , , ,
Jun
25
2012
0

Ping Test script

The script below records a ping results every 3 seconds to /var/log/ping.log.  I created this script to detemine if my NIC is losing conectivity with switch at the same time as Asterisk SIP peers are lagging out.  Enjoy!

(more…)

Written by mattb in: Asterisk,Asterisk Post,Linux | Tags: , , ,
Mar
22
2012
2

How to Start Cinnamon desktop from Run Level Three on Fedora 16

Fedora 16

The default UI on Gnome 3 is Bad.  Everyone knows it.  I’ve been running Fedora 14 for what seems like years, hoping that one day the Gnome development team pulls their heads out of their collective asses and restores a simple, low impact interface.  Instead, as of Fedora 16,  I still see these gigantic window title bars, huge ugly icons, lack of minimize and maximize buttons.  What’s next?  Tiles?  Honestly it looks like Gnome 3 was designed for a cell phone.  Or maybe on a cell phone.

Luckily the folks at Mint Linux have been working on a Gnome 3 variant with a sane UI.  One that look like a traditional, but stylish desktop.  I installed Fedora 16 and tried Cinnamon.  While Gnome 2 on Fedora 14 is still more refined, I really like the direction this project is headed.  One problem that vexed me is how to start Cinnamon from run level 3(terminal).

Purpose of this post:

  1. Install cinnamon
  2. create .xinitrc for startx to work

(more…)

Written by mattb in: Linux | Tags: , , , , , , ,
Feb
04
2012
0

Fedora 14 PHP daemon error

I’m using PHP to create a daemon(system process) that listens for request to dial outbound calls from a Asterisk based dialer.  Before I even got started I got the following error:

[stextbox id="grey"][root@AsteriskPBX Desktop]# php daemon.php
PHP Fatal error: Uncaught System_Daemon_Exception: PHP is compiled without –enable-posix directive in /root/Desktop/daemon.php on line 6[/stextbox]

Many websites suggest recompiling PHP or installing ‘php-posix’, which isn’t in the Fedora repo. After some searching I found that ‘php-posix’ is part of the ‘php-process’ package in Fedora.  It now works!

 

Written by mattb in: Uncategorized |
Dec
09
2011
1

Asterisk: Holiday Macro

Below is an example of a macro that checks to see if the ‘holiday’ menu is enabled.  I also added extension 2970, a ‘one touch’ utility to enable/disable the holiday macro.  Remember to create a ‘holiday_disabled.wav’ that literally says, “Holiday menu disabled”.  To rercord a message simply disable and enable the utility again.  Enjoy!

 

 

[stextbox id="grey"][macro-holiday]

;Check if holiday message set

;Check if it is a holiday
exten => s,1,NoOp(Check for Holidays)
exten => s,n,Answer()
exten => s,n,set(HOLIDAY=${DB(closed/1)})
exten => s,n,NoOp(${HOLIDAY})
exten => s,n,gotoIf($["${HOLIDAY}" = "1"]?main-holiday,s,1)   ; Custom Holiday

;Otherwise
exten => s,n,gotoiftime(08:00-19:00,mon-fri,*,*?${ARG1},s,1) ; Main Operating Hours
exten => s,n,goto(${ARG2},s,3)

;===============================================================

[from-pstn]

;
;
; usage: macro(holiday,ARG1,ARG2)
;
; argument one and two are that day and night menu
;
; Some DID

exten => 12134974061,1,macro(holiday,main-day,main-night)

[utilities]

;————————————————–
; One touch Record/Set Holiday Closed Message
;
exten => 2970,1,NoOp(============ Set Holiday Message ==============)
;exten => 2970,1,authenticate(5678)
exten => 2970,n,Wait(1)

; check to see if holiday message is set
exten => 2970,n,set(HOLIDAY=${DB(closed/1)})
exten => 2970,n,NoOp(${HOLIDAY})
exten => 2970,n,NoOp(${HOLIDAY})
exten => 2970,n,NoOp(${DB(closed/1)})
exten => 2970,n,gotoIf($["${HOLIDAY}"="1"]?utilities,2970(disable),1:utilities,2970(enable),1)

; if disabled record a new greeting
exten => 2970(enable),1,Record(en/custom/holiday_message:gsm)
exten => 2970(enable),n,Wait(1)
exten => 2970(enable),n,set(DB(closed/1)=1)
exten => 2970(enable),n,Playback(en/custom/holiday_message)
exten => 2970(enable),n,wait(1)
exten => 2970(enable),n,Hangup

; disable the holiday message and alert the caller

exten => 2970(disable),1,set(DB(closed/1)=0)
exten => 2970(disable),n,Playback(en/custom/holiday_disabled)
exten => 2970(disable),n,Hangup

[/stextbox]

Nov
09
2011
0

Fox News commentator contends Anonymous is, “major organizers of the Occupy Wall Street protests”

I know Fox News says and writes some nutty stuff, but this article I read  today takes the cake.  Contributer Dan Gainor writes about the poor defensless police of America being cyber bullied by ‘liberal protesters’.

http://www.foxnews.com/opinion/2011/11/04/wheres-outrage-over-occupy-protesters-high-tech-intimidation-police/?intcmp=obnetwork

He blames Anonmous(the online hacktivist group) for largely being responsible for the ‘Occupy Wallstreet’ movement.

What?  Are you f$^%&! kidding me? LOL… wow.  I think the movement was far more likely caused by 99% of Americas wealth in the hands of 1% of the population.  Is that liberal nonsense or basic math?

What I think Occupy Wallstreet is pissed about:

  1. massive wealth inequity
  2. bail outs for banks and large corporations
  3. jobs being shipped over seas by thoughtless trade agreements
  4. lack of health care
  5. lack of education
  6. lack of jobs
  7. high wages & benifits of public servants
  8. American debt
  9. endless war
  10. never ending taxes & fee’s
  11. cost of living increases
  12. etc…

But Dan writes further that Anonymous is the main culprit of publishing public data about individual officers that have arrested or pepper sprayed protesters.  Yet he offers no proof that any genuine member of Anonymous had anything to do with releasing any data about any officers at all.  In fact he doesn’t cite any supposed documents or examples personal information being released.

(more…)