I recently started a asterisk project and I wanted to play a sound file when I receives a call to my PSTN line. Actually using Obi110 I convert it to VoIP and transfer to raspberry pi which runs FreePBX and asterisk. However I registered Obi110 device on FreePBX and when I opened sip_addictional.conf , it shows Obi110 context is from-trunk. So I added;
Still have no luck. This is what I’m working on. I want to transfer incoming PSTN call to my Mobile kinda project but with more features. So I’ve configured FreePBX to transfer incoming call to softphone. So to verify it’s working correctly I configured it using FreePBX GUI. It works perfectly now. But now I want to run AGI python script when a call comes. So I have to use exten => s,1,AGI(sample.py) to do that. But I had no luck on running that extension. So thought to test diaplan using simple command like playing a sound file. But still I cannot run a simple dialplan like this.
My incoming call from Obi110 comes in context=from-trunk. So changed and put,
code under extensions.conf , extensions_custom.conf and extensions_override_freepbx.conf in different tries. But still call clearly goes to my softphone rather than automatically answer and play the sound file. So any help?