Answer the question
In order to leave comments, you need to log in
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
[ext-local-custom]
exten => _XXXX,1,NoOp(-------IVR-CALL----------)
...
[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
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question