Billing systems and Daily Grind

Share on Twitter Digg this story Click to view a printable version Fri, 08 Jan 2010 00:48:13 -0400

thumnail

Most of the articles I write on the Daily Asterisk News are about releases of software etc, but I thought I would give you an update on what I am working on day to day.

So, today I got up, checked my email, checked the munin graphs and noticed a problem with one of my web servers.

Looked like it was using so much CPU that I couldn't SSH in.

So, that's the first task of the day, see what's up there. Easiest was to get the machine restarted first up. So, I called Stewart from wic and asked him to reboot the server.

When it came back up I went over the logs and noticed a coupe of crashes in scripts I'm no longer using. So, crontab -e and disabled them.

Next up, I had an email from a customer in Spain who is using our telephone exchanges. He'd had Asterisk stop responding and had to restart it.

I logged in, no core dumps or anything, so I updated Asterisk to the latest version before delving too much deeper. If the problem happens again, I'll have to strip back the machine (remove Asterisk patches for post dial delay and userfield2-5) and recompile.

It's strange because we're running the same version of Asterisk here without any issues on all of our exchanges.

Next, a couple of queries about SmoothTorque and then back to clearing out emails. Nearly done on those now - the weekend should provide enough silence to get through a bunch :)

Anyway, so before I went to sleep (about 1am) last night I was working on some other stuff for our telephone exchanges. The customer in Spain is wanting to have groups for their customers so that they can do certain processes to a bunch of customers at a time.

So, I added an extra field to the bill_detail table to specify the group, and created a group table. I then created pages for adding/editing/deleting groups.

Next step was to create a page which would allow them to specify dates for invoices and have the group's invoices sent to an email address - not too hard as I already had grouping by postpaid/prepaid.

Compiled the code for Zend and shipped it.

The other day I had a call from a SmoothTorque customer in the UK saying that they upgraded their machines to Windows 7 and could no longer upload phone number lists - tested with Firefox, IE, Chrome - all the same. Weird. Ok, whatever, I'll try it out for myself. So, I get hold of a copy of Windows 7 Ultimate, load it up into VirtualBox on my Mac, and try the upload with one of my servers.

Hmmm, works. Ok, so I try an upload to one of their servers. Works too. Hmmm, stranger. So, I get hold of the exact file they're trying to upload and it works for me.

Ok, so something very strange is going on here - I go through a million tests of different things and still can't get mine to fail or theirs to work.

So, I figure let's drop the existing upload code and replace it with something else. I've been using the uploadify code for some other projects so I decide to integrate this into SmoothTorque and make it an option.

I finish the code, test it (working) and give them the details of how to pull the update.

They then try to upload a file and get a new error.

Ok, strange, so I log in to their machine and do a 'watch "ls -alh /tmp"' command (watch is cool - it runs a command every two seconds and updates the results). This is interesting. They are uploading a 5MB file, and it starts ok, but once it passes 2MB the file disappears - even though the flash upload control says it's still being uploaded.

Well, what would do that? Maybe php.ini max file upload size? I check it and sure enough it's set to 2megs. Ok, so I change it to 20 megs and get them to try again. Hooray it works!

Ok, so step back from it for a second, maybe that was what was causing the other upload code to fail. So, I get them to revert the change of upload control and test it again. It still fails! Oh well, the new code will fix their problem but I never did get to the bottom of why their upload was failing!

Anyway, post a comment or vote this high and I'll post more regular updates of what I'm up to - or don't and I'll just keep doing what I've been doing :D


You haven't voted yet! Vote:
Current Rating: 9.46/10 (13 votes)

Comments (Click to post)

Comments
Name:
Subject:
Website:
Message: 

Similar Articles (Based on Title)

Hotel billing in IPSwitchBoard - April 25, 2005
Thorben Jensen has posted some thought on Hotel Billing for IPSwitchBoard.

Grobill 0.1 - Asterisk Prepaid Billing - July 17, 2005
Jean-Michel Hiver has posted details of a prepaid framework for Asterisk he has developed.

AstBill - New Release of Billing, Routing and Management for Asterisk - October 5, 2005
Are Casilla has posted details of the latest version of AstBill.

Magrathea Telecommunications Ltd. becomes first carrier to join Bicom Systems Service Providers Listings - October 30, 2004
Bicom Systems have sent us a press release detailing their new service provider.

Server Hardware for your Production Asterisk/AMP System(s) - August 10, 2005
Jason Becker (of AMP fame) has posted details of a poll theyre running over at the Coalescent site.

Coalescent Systems Unveils Gabcast Service - December 14, 2005
Jason Becker has posted details of a new service for recording podcasts based on Asterisk.

VoIPPhreak: The Benefits Of Asterisk Phone Systems - August 11, 2009
VoIP Phreak has an article on the benefits of Asterisk Phone Systems - while I don't agree one hundred percent with all the points, I thought I'd post the article anyway and let you read for yourselves.

Daily Asterisk News Hits 100,000 hits in 32 Days - October 13, 2004
The Daily Asterisk News has been up for nearly two months, but has just hit 100,000 hits for the last 32 days. Click through for traffic details etc.

Daily NANPA updates - December 23, 2004
Matt Gibson has posted details of a site with daily NANPA updates.

Flash Operator Panel: New naming for daily snapshots releases - March 17, 2005
Nicolas Gudino has posted details of a new naming method for Flash Operator Panel releases.

Daily Asterisk News passes 1000 entries - September 24, 2005
Thanks to Qwell from IRC for pointing out that the news has reached 1000 entries.

Daily Asterisk News Still Alive - July 12, 2006
Just a quick post to let people know the reasons for the lack of news.

Mobile Phone Lite Version of Daily Asterisk News - July 23, 2006
If you want to get your Daily Asterisk News on your cellphone, come check out the new version.


Original Content (C) 2004-2010 Matt Riddell
Back 5  Feed Add
to
Google Subscribe with Bloglines
Go to today

Icons by: FastIcon.com


rana-dtmf-rtp-duration - adventures in DTMF/RTP
August 22, 2011 Average Vote: 10
Olle has posted details of some work he is doing on DTMF.

Asterisk Version 1.0 released at Astricon
September 24, 2004 Average Vote: 10
Mark Spencer Releases Asterisk Version 1.0 during his keynote speech

Asterisk 10.0.0-rc1 Now Available
November 11, 2011 Average Vote: 10
The Asterisk Development Team is pleased to announce the first release candidate of Asterisk 10.0.0.

David Vossell: Asterisk Architecture
October 26, 2011 Average Vote: 10
The next discussion was from David on the structure of Asterisk internals

Asterisk 1.10 branch created
July 14, 2011 Average Vote: 10
At 8:34am New Zealand time this morning a branch named 1.10 was created.

oFono 1.0 has been released
November 10, 2011 Average Vote: 10
Steve Totaro has forwarded details of the latest release of a project called oFono.

Asterisk Trunk moves from Berkley DB to SQLite 3.
July 7, 2011 Average Vote: 10
While reading through the commit logs this morning I noticed that the planned change to SQLite 3 as the backend database has taken place.

Chapter on Asterisk Architecture
May 27, 2011 Average Vote: 10
Russell Bryant has posted a note about a chapter on Asterisk Architecture.

espeak module for Asterisk
August 22, 2011 Average Vote: 10
Lefteris Zafiris has posted details of a new version of the app_espeak application for Asterisk - another speech synthesizer.

First Look at Asterisk SCF Developer APIs
March 11, 2011 Average Vote: 10
Kevin Fleming has posted a link to a look at the new Asterisk SCF APIs.

Developer Information Update
August 16, 2011 Average Vote: 10
Kevin has posted a note asking developers with commit privileges to create a personal space on the Asterisk wiki.

First HD Conference In Asterisk
February 21, 2011 Average Vote: 10
Leif Madsen has posted details of a successful public HD conference using Asterisk.

Skype Issues Official Statement About The End Of Skype For Asterisk
May 26, 2011 Average Vote: 10
Disruptive Telephony has posted an official note from Skype about the end of Skype for Asterisk. Thanks to Olle for pointing it out on Twitter.

Flite module for asterisk
August 22, 2011 Average Vote: 10
Lefteris Zafiris has posted details of the latest release of app_flite - an application to make use of the text to speech capabilities of FestivalLite.

Astricon: Shaun Ruffell: DAHDI
October 26, 2011 Average Vote: 10
The next discussion is by Shaun Ruffell on the DAHDI drivers.


Asterisk 1.8.9.1 Now Available
February 8, 2012
The Asterisk Development Team has announced the release of Asterisk 1.8.9.1.

Asterisk 10.1.1 Now Available
February 8, 2012
The Asterisk Development Team has announced the release of Asterisk 10.1.1.

Digium Creates Phones for Asterisk
February 2, 2012
Steven Sokol has posted details of the release of Digium phones for Asterisk

Converting multiple exten lines to using same in Asterisk dialplan
January 24, 2012
Leif Madsen has written a post on his blog about converting Asterisk 1.4 dial plans to using the same feature in 1.8 dial plans.

Asterisk 1.8.8.2 and 10.0.1 Now Available (Security Release)
January 24, 2012
The Asterisk Development Team has announced security releases for Asterisk 1.8 and 10.

AstLinux 1.01 Released
January 16, 2012
The AstLinux Team would like to announce the release of 1.0.1. This version is available with either Asterisk 1.4.43 or Asterisk 1.8.8.3.

Asterisk 1.6.2.22 Now Available
December 20, 2011
The Asterisk Development Team has announced the release of Asterisk 1.6.2.22.

Asterisk 1.8.8.0 Now Available
December 19, 2011
The Asterisk Development Team is pleased to announce the release of Asterisk 1.8.8.0.

Asterisk 10.0.0 Released
December 19, 2011
The Asterisk Development Team is proud to announce the release of Asterisk 10.0.0.

AstLinux 1.0.0 release
December 19, 2011
The AstLinux Team is happy to announce the release of AstLinux 1.0.0.