asterisktelephonyfreepbxelastix

Playback file in Call Waiting on Asterisk


Please help in the problem that I encountered recently.

When implementing the function of informing the caller "User talking on the first line Please wait or call back later." With the function "Call Waiting" in the Asterisk I use this macro:

extensions_custom.conf

[from-internal-custom]
exten => _XXX,1,Macro(check-number,${EXTEN})
include => macro-check-number

[macro-check-number]
exten => s,1,NoOp(Enter in macro-check-number)
exten => s,n,Set(devst=${DEVICE_STATE(SIP/${ARG1})})
exten => s,n,ExecIf($["${devst}" = "INUSE"]?Playback(ml))
exten => s,n,NoOp(Exit from macro-check-number)

ml - filename for playback

And this feature works!

But the macro works for the entire Asterisk, this queue calls, group calls - and that is the problem.

I have an idea - a group of calls and queue calls to assign numbers four-digit extensions, for example: 2222 - but are not you should not be, it is a false solution to the problem, because of which in the future could be a problem!

Maybe somebody faced a similar problem?


Solution

  • The problem was solved in the circuit. Since we serve telephony server with no more than 250 members - it was decided to create a four-digit number for the groups and queues.