Archives Jan. 19, 2006
Curiouser and curiouser with Asterisk manager interface (pyst doesn't seem to realise that there are event-generating queries)
Written by
on
in
Snaking.
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 ...
Retrieving information from the Asterisk manager interface (Again, using pyst)
Written by
on
in
Snaking.
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 ...