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)

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

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

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 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.

AstLinux Custom Build Engine Now Available
March 13, 2012 Average Vote: 10
Kristian Kielhofner has posted details of some work that has been completed in the AstLinux project to provide a custom build engine.

Speech recognition and Text to Speech using Google
April 11, 2012 Average Vote: 10
I was reading through the Asterisk Users mailing list and came across a couple of really cool AGI scripts for doing speech recognition and converting speech to text.

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.

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.

AstchannelsLive 3.0 wallboard software for Windows
June 24, 2011 Average Vote: 10
Version 3.0 of the AstchannelsLive software has been released.

The Evolution of Asterisk (or: How We Arrived at Asterisk 10)
July 22, 2011 Average Vote: 10
Kevin Fleming has posted an email explaining the change from Asterisk 1.10 to Asterisk 10 and explaining why there will be no Asterisk 2.x.

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.


New Community Support Manager at Digium - Rusty Newton
May 26, 2012
Kevin has posted a note about a new community support manager at Digium.

Asterisk 11 Development: WebRTC/RTCWeb support
May 24, 2012
Kevin Fleming has posted details of a pretty major addition being worked on for Asterisk 11.

Planned service outage for community services
May 24, 2012
On May 31, 2012 from approximately 9:00AM to 12:00PM (Central Daylight Time, GMT-5), the servers that Digium uses to provide many services to the Asterisk community will be relocated. This will mean that these services will be unavailable during most, if not all, of this time window.

Asterisk 10.4.0 Now Available
May 4, 2012
The Asterisk Development Team has announced the release of Asterisk 10.4.0.

Asterisk 1.8.12.0 Now Available
May 4, 2012
The Asterisk Development Team has announced the release of Asterisk 1.8.12.0.

Certified Asterisk (SLA Supported GPL Code)
April 30, 2012
Malcolm Davenport has written a post about a new branching system for an SLA supported Open Source branching system for people who want super stable LTS releases of Asterisk.

Asterisk 1.6.2.24, 1.8.11.1, 10.3.1 Now Available (Security Release)
April 24, 2012
The Asterisk Development Team has announced security releases for Asterisk 1.6.2, 1.8, and 10.

DAHDI-Linux 2.6.1, 2.5.1 and DAHDI-Tools 2.6.1, 2.5.1 Now Available
April 22, 2012
Shaun Ruffell has posted details of the latest release of DAHDI-Linux and DAHDI-Tools.

Release Announcement: Adhearsion 2.0 for Asterisk 1.8+
April 17, 2012
Ben Klang has posted details of the latest version of the Adhearsion framework.

New Community Developer: Michael Young
April 17, 2012
Matthew Jordan has posted details of a new community developer.