Answer the question
In order to leave comments, you need to log in
Asterisk. Music playing in the background while an AGI request is being executed?
there is a small dialplan.
exten=> 6,1,answer()
;exten=> 6,n,Background(file)
;exten=> 6,n,MusicOnHold()
exten=> 6,n,AGI(test.py)
exten=> 6 ,n,Dial(sip/111,,m)
exten=> 6,n,hangup()
The script itself runs for about 5 seconds. How to make something play during script execution?
MON and Background did not transfer control to the next command of the dialplan. And it turns out that the music starts playing only when the Dial is triggered.
Answer the question
In order to leave comments, you need to log in
try in the AGI script itself
SET MUSIC on default
...
прочие действия
...
SET MUSIC off
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question