.
.
.git/config2021-05-04 00:49:16
Asterisk
.git/config, 2021-05-04 00:49:16

FreepPBX. When calling from IVR to extension, give the correct signal?

An example of a working solution when calling from one local extension to another local extension.

cat /etc/asterisk/extensions_override_freepbx.conf 
[from-internal-custom]
exten => _XXXX,1,NoOp(-------INTERNAL-CALL----------)
same => n,Set(DEVSTATE=${DEVICE_STATE(PJSIP/${EXTEN})})
same => n,GotoIf($[ "${DEVSTATE}" = "UNAVAILABLE" ]?go-unvailable)
same => n,Dial(Local/${EXTEN}@default,60,tT)
same => n,HangUp
same => n(go-unvailable),Noop(----unvailable----)
same => n,PlayBack(silence/1&ss-noservice)
same => n,HangUp


If the phone is offline, it will say so when you call. Without this dialplan, a busy signal was issued.

Tried to similarly redefine for IVR
[ext-local-custom]
exten => _XXXX,1,NoOp(-------IVR-CALL----------)
...


But it doesn't work, because in the config that creates freepbx, it says
[ext-local]
include => ext-local-custom

exten => 0101,1,Set(__RINGTIMER=${IF($["${DB(AMPUSER/0101/ringtimer)}" > "0"]?${DB(AMPUSER/0101/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 0101,n,Macro(exten-vm,novm,0101,0,0,0)
exten => 0101,n(dest),Set(__PICKUPMARK=)
exten => 0101,n,GotoIf($["${IVR_CONTEXT}" != ""]?${IVR_CONTEXT},return,1)
exten => 0101,hint,PJSIP/0101&Custom:DND0101,CustomPresence:0101

...


And number matching in include is performed after matching in ext-local. As a result, the execution does not go there.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question