Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Curiouser and curiouser with Asterisk manager interface (pyst doesn't seem to realise that there are event-generating queries)


Can't sleep, so spending more time with the manager interface. Interestingly, it seems that pyst has a fairly low-level assumption that just doesn't match the manager interface: namely that all events should be dispatched asynchronously to registered handlers. The problem is that certain actions produce a response, then a sequence of events in order that ...

Continue reading

Retrieving information from the Asterisk manager interface (Again, using pyst)


A somewhat shorter task here. Imagine for a moment that you want to be able to list the currently available SIP peers (in a web-site front-end, for instance). The manager interface can run any Asterisk command-line-interface command, but how do you get the results of that command? It's not exactly obvious, but this little recipe ...

Continue reading

Using Asterisk's manager interface to generate calls (From Python using pyst)


This is not a deep and profound project, it's a quick "hello world" example script that allows you to generate a call via Asterisk that connects a SIP URI to a particular extension in your call plan. You could use this as-is to create a phone survey or similar system that connects a user to ...

Continue reading

Nurbs working in OpenGL-ctypes (Should have been writing...)


Wasn't really in the mood to write this afternoon, so I spent a few hours on OpenGL-ctypes. The nurbs support is pretty much finished, all of the tests I have work fine, including the callback test that didn't work under PyOpenGL. There's still problems where the slowdown on NURBS rendering winds up completely k-o-ing the ...

Continue reading

Round trip completed (finally) (CAD Views to topological views to CAD views...)


Finished off the CAD-system integration code for Cinemon today. Lots of little details mostly. Upside is that as of now we can import the files, store them properly, populate them for demos, and produce files to have the viewer pull up the CAD map with annotations for an area on user request.

Off to UU ...

Continue reading

More integration (Different product...)


Spent the whole day on Cinemon today; mostly making the code handle imports from a partner's CAD system more elegantly. Tweaked the graphics code to be able to handle deeper hierarchies as part of that.

The graphs are produced by a fairly elegant (IMO) algorithm, but there's a limit to how dense the graph it ...

Continue reading

Slow getting started today (So much for early-to-bed early-to-rise)


Don't much feel like playing with VoIP today. Still, have to get it done. Building mostly external-systems integration stuff now, import and export scripts, that kind of thing.

A note to people who want other people to integrate with their business systems; publish technical specs on your web-site in the public areas. Don't put the ...

Continue reading