May
23
2017
0

Python Home Work – Online Coffee Shop

My friend is taking a Python course.  I’ve been doing the assignments for practice/fun while helping each other study.  The course has restrictions as to the data/code structures, but please post alternatives!  Thank you  and enjoy! Assignment:   Click here to see my assignment.

Written by mattb in: Scripts | Tags: ,
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 […]

Written by mattb in: Asterisk,Scripts | Tags: , , ,
Nov
03
2011
0

Asterisk: How to setup Agent Status on Polycom Idle Display

  This tutorial describes how to configure the idle display screens on Polycom phones to subscribe to a XHTML file that reads their Agent status from Asterisk.  When the phone is not in active use it displays the web page. My tutorial has three components.  A specific Polycom option(found in sip.cfg) added to the configuration […]

Written by mattb in: Asterisk,Scripts | Tags: , , , ,
Sep
06
2010
0

How to use PHP to reboot a Poycom SIP Phone

I’m knee deep into writing Voice Provision .04(VP4) for VoiceIP Solutions.  Why write another Asterisk GUI?  Because the Trixbox and Elastix software is way to convoluted and makes customization difficult.  They are not well documented and don’t attribute credit back to Asterisk or Digium. Standard Asterisk scripting and basic macro’s are easier to setup, maintain, […]

Sep
21
2009
0

PHP array example

Hello all. It’s been a few weeks since I posted… I’ve been teaching myself PHP to create a web interface for a Asterisk based project I’m working on. My goal is to create a LAMP(Linux, Apache, MySQL, PHP) web managment tool for creating calling cards for use with Asterisk. The project is called ACCWA(pronounced aqua), […]

Aug
04
2009
0

BASH script to remove files by time

This script removes every *.wav file older then one minute in the directory it is executed.  This script is very useful and can be used with the cron daemon for regular file removal. #!/bin/bash # find ./*.wav -type f -mmin +1 -exec rm {} \; Also we can adjust this for days rather than minutes […]

Written by mattb in: Linux,Scripts | Tags: , , , , , ,
Jul
20
2009
3

ATI HD 4870 (catalyst 9.6) fails to load World of Warcraft

I just upgraded to a ATI HD 4870(w/ 1 Gig DDR 5!).  I read some rave reviews about the 4800 series cards and heard via the grapevine that ATI had much improved Linux support.  However, I was disappointed to find out that the catalyst 9.6 driver will not build with Fedora 11’s stock 2.6.29 kernel.  […]

Jul
18
2009
1

How to use the ODBC driver to Connect to MySQL database in Fedora 10

A few weeks back I covered connecting ODBC to MS-SQL, but today we are going to do the same thing with MySQL.  The process is very similar.  One might ask, why use ODBC driver in the first place?  The reason is simple, there are many flavors of SQL and the ODBC driver allows one standard […]

Jul
10
2009
15

BASH: A simple script to check if a process is running

Scripting is very, very useful.  Don’t make the same mistake I did and wait 5 years into you career to start learning!  In the example below, I’m using the ‘ps -aux’ command piped into grep to determine if a process is still running.  for my example I’m using Firefox, but intend to use this with […]

Written by mattb in: Linux,Scripts | Tags: , , , , ,
Jun
07
2009
--

How to Configure Linux ODBC Connections for MS SQL

Last week at work(VoiceIP Solutions) I did some research for Asterisk PBX integration with Microsoft CRM.  The customer likes open source Asterisk because of the cost savings, but they requires screen pop-ups, and click to dial from their Customer Relationship Management software.  So while my manager worked on the TAPI middleware, I was charged with […]