I’m a newbie to asterisk, and I spent some time reading documentation but I haven’t found anything suitable for what I need to do.
Basically, what I want to do is to pass control of the call to an external program, written in a real programming language (preferably python, but that’s not strictly necessary). This is because the call needs to be treated differently according to data that is not handled by Asterisk. The program would need to query a db and then, after a bit of manipulation, execute some asterisk applications before giving back management to the “standard” dialplan.
In other words, I need control flow in the dialplan, among with data manipulation and db query functions. Since asterisk doesn’t provide any (that I’m aware of), I came up with the idea above.
After spending some time searching the web, I realized that what I’m looking for is probably an interface to the asterisk manager API. I also found one: py-asterisk. The problem is that it’s very poorly documented, and I have no clue about how to use it.
Can somebody please point me out something that’s better documented, or give advice me on how to use py-asterisk, or maybe let me know if there are better solutions to my problem?