Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

New StarPy release with channel-tracking example code (About 61 lines of code...)


There's a new StarPy release up. This fixes the reported data-file installation problem, adds a bit more documentation for a few functions, and fixes a shallow error in one of the sample applications. More interestingly, it also includes sample code for tracking total PRI usage, see the priexhaustion.py script in the examples directory and the ...

Continue reading

StarPy to the rescue (Or, my day in auditing...)


I've spent much of the last two days working on an auditing and reporting mechanisms to let people know when we're getting close to PRI exhaustion. Following the advice of the back-end wizards, who don't see the necessity of having the tools, (the security/financial problems being lost on them) I've been cobbling together a CDR-analysis ...

Continue reading

Blocking on system setups (Wasting time trying to work around missing libraries...)


Have spent way too much of today on non-billable work that's basically just trying to work around not-yet-installed system libraries. Could probably have finished the task if I'd had a working environment. Of course, most of that wasted time is my own fault, should have just accepted that the libraries weren't there yet and moved ...

Continue reading

Newest StarPy Twisted protocols for Asterisk released (Getting ready to use them for a real world project...)


After a couple or three hours of paying work, sat down to polish the StarPy code to the point where I can use it for writing a real server (also to be paying work). First server should be fairly trivial, it's just a FastAGI instance that attaches to the MySQL CDR database and the provisioning ...

Continue reading

Very long day with 0 billables (And way too much caffeine)


Management meeting, then a quick trip to the library, then a crash due to the unreasonably early hour I had to get up at for the meeting, then the UU meeting, then coffee/drinks after the meeting with Bryan and co. I'm now tense and jittery from the caffeine, but my eyes aren't able to focus ...

Continue reading

Oh, while I'm thinking of it (IRC client for phones...)


Was thinking earlier that one of those "cool, but useless" projects might be to use StarPy and Festival to read live IRC feeds to a user. Twisted has all sorts of fun little protocols it can access, but IRC is just so magnificently geeky that it would obviously gather thousands of users in minutes.

Oh, ...

Continue reading

StarPy grows rudimentary hierarchic IVR menus (UI toolkit for voice?)


Okay, there's a new release of StarPy up. This adds menu support with the commonly desirable operations (e.g. options to go up a level, repeating the prompt a limited number of times if the user doesn't respond, that kind of thing). The same API also provides a basic enter-digits handler, though I'll need to produce ...

Continue reading

How did I forget that (Sunday night's not great for thinking, apparently...)


Didn't even touch the VoIP stuff (yet) today (though did have a short phone call or two about it). I had forgotten on Sunday that I was going to phone a distributor Monday morning. Basically spent the whole day on the phone call, research to answer some questions (yes, Cinemon should be 100% Euro-DOCSIS compatible ...

Continue reading

Working around Firefox 1.5's SVG target problems (Sure it's simple, but it takes hours to try all the other hacks...)


Cinemon, as some of you may know, uses SVG graphics as one of its core navigational mechanisms. Until today we've basically had to have users use either the Adobe SVG viewer or be annoyed by the Mozilla browsers loading the whole site into the iframe where the navigation graphic is displayed. This is because Mozilla ...

Continue reading

Bit of maintenance among the learning tasks... (Or, what I did for the last few days...)


I'm continuing to work on making StarPy a decent platform for writing Asterisk applications. In between I'm working on Cinemon administration (and a bit of code) and little bits of the VoIP project that need handling.

Wound up installing FreeBSD, the HotSpot software and Cinemon on a box for one of our partners. Ran into ...

Continue reading