I'm currently working on a project which is based on RPi and Asterisk.
What I Want
In my project, I need to get incoming call details like caller ID into python and perform some functions connected to database.
What I Have Tried
I've installed Python and Asterisk and configured both in my RPi. But I don't know how to read incoming caller ID from python since there is no gateway of communication between asterisk and python.
Can someone tell me a way of accomplish my task? I know there is a gateway call AGI to do that. But I cannot find how can I get that configured with Raspberry Pi. Please help.