P
P
proteus862015-08-24 16:59:56
Asterisk
proteus86, 2015-08-24 16:59:56

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

2 answer(s)
V
Vladimir, 2015-08-24
@proteus86

try in the AGI script itself

SET MUSIC on default
...
прочие действия
...
SET MUSIC off

R
Rsa97, 2015-08-24
@Rsa97

Park() / ParkedCall()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question