FreePBX | Register | Issues | Wiki | Portal | Support

Long Pause from AGI-BIN .py Script - Linear Dialplan Commands


#1

Asterisk/FreePBX 14

I have a Python script that takes about 1-4 seconds to complete. It is setting up variables for the dialplan to use.

My question:
Is there a way to play a message WHILE the script runs? Just writing it in dialplan has it execute linearly (Python script, then the announcement), which causes the pause.


#2

Settled on using PlayTones for now. Not exactly what we were hoping for, but achieves the objective of letting the far end know that the line is still connected.

As mentioned in other postings, I believe the way forward is to build the treatment using the rest interface. That should allow us to play messages while still processing.


(Itzik) #3

I believe this question can be crossposted to the Asterisk forum.


(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.