S
S
Sergey Ryzhkin2017-11-24 11:46:39
Asterisk
Sergey Ryzhkin, 2017-11-24 11:46:39

IVR menu when the line is busy. Notification. What to add?

Greetings comrades!
Tell me how to add the correct phrase in Asterisk when the line is busy? Now in the extension in the IVR menu item is the following:

[ivr-main]
exten => s,1,Answer()
exten => s,2,Background(/etc/asterisk/ivr/ivr-welcome-02)
exten => s,3,WaitExten(5)
exten => _XXX,1,Dial(SIP/${EXTEN})
exten => _XXX,2,Playback(privacy-incorrect)
exten => _XXX,3,Goto(ivr-main,s,1)
exten => t,1,Dial(SIP/101)

And even when the line is busy, the robot says "Wrong number dialed", as I believe because of "privacy-incorrect", what needs to be added so that the accompanying phrase is played when the line is busy?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2017-11-24
@Franciz

Option 1: Parse the DIALSTATUS variable after the call ends.
Option 2: Parse SIPPEER(${EXTEN}, curcalls) before calling.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question