Обнаружил что запись DISA в FreePBX не работает , решение конечно простое , но узнал для себя много интересного.
Создаем в админке DISA задаем параметры сохраняем и применяем конфиг.
Далее находим секцию [disa] в /etc/asterisk/extensions_additional.conf и копируем ее в
/etc/asterisk/extensions_override_freepbx.conf у две DISA
[root@localhost ~]# cat /etc/asterisk/extensions_override_freepbx.conf
[disa]
include => disa-custom
exten => 1,1,Authenticate(4585,)
exten => 1,n,Set(_DISA=disa^1^newcall)
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 1,n,Set(TIMEOUT(digit)=5)
exten => 1,n,Set(TIMEOUT(response)=30)
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
exten => 3,1,Answer
exten => 3,n,Set(_DISA=disa^3^newcall)
exten => 3,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 3,n,Set(_KEEPCID=TRUE)
exten => 3,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 3,n,Set(TIMEOUT(digit)=5)
exten => 3,n,Set(TIMEOUT(response)=30)
exten => 3,n,DISA(no-password,disa-dial)
exten => 3,n(end),Hangup
;--== end of [disa] ==--;
Добавляем строку
exten => 1,n,Gosub(sub-record-check,s,14(record))
Получается
[disa]
include => disa-custom
exten => 1,1,Authenticate(4585,)
exten => 1,n,Set(_DISA=disa^1^newcall)
exten => 1,n,Gosub(sub-record-check,s,14(record))
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 1,n,Set(TIMEOUT(digit)=5)
exten => 1,n,Set(TIMEOUT(response)=30)
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
exten => 3,1,Answer
exten => 3,n,Set(_DISA=disa^3^newcall)
exten => 3,n,Gosub(sub-record-check,s,14(record))
exten => 3,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 3,n,Set(_KEEPCID=TRUE)
exten => 3,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 3,n,Set(TIMEOUT(digit)=5)
exten => 3,n,Set(TIMEOUT(response)=30)
exten => 3,n,DISA(no-password,disa-dial)
exten => 3,n(end),Hangup
;--== end of [disa] ==--;
Далее
service asterisk reload
Слушаем записи в CDR отчетах
Создаем в админке DISA задаем параметры сохраняем и применяем конфиг.
Далее находим секцию [disa] в /etc/asterisk/extensions_additional.conf и копируем ее в
/etc/asterisk/extensions_override_freepbx.conf у две DISA
[root@localhost ~]# cat /etc/asterisk/extensions_override_freepbx.conf
[disa]
include => disa-custom
exten => 1,1,Authenticate(4585,)
exten => 1,n,Set(_DISA=disa^1^newcall)
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 1,n,Set(TIMEOUT(digit)=5)
exten => 1,n,Set(TIMEOUT(response)=30)
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
exten => 3,1,Answer
exten => 3,n,Set(_DISA=disa^3^newcall)
exten => 3,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 3,n,Set(_KEEPCID=TRUE)
exten => 3,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 3,n,Set(TIMEOUT(digit)=5)
exten => 3,n,Set(TIMEOUT(response)=30)
exten => 3,n,DISA(no-password,disa-dial)
exten => 3,n(end),Hangup
;--== end of [disa] ==--;
Добавляем строку
exten => 1,n,Gosub(sub-record-check,s,14(record))
Получается
[disa]
include => disa-custom
exten => 1,1,Authenticate(4585,)
exten => 1,n,Set(_DISA=disa^1^newcall)
exten => 1,n,Gosub(sub-record-check,s,14(record))
exten => 1,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 1,n,Set(_KEEPCID=TRUE)
exten => 1,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 1,n,Set(TIMEOUT(digit)=5)
exten => 1,n,Set(TIMEOUT(response)=30)
exten => 1,n,DISA(no-password,disa-dial)
exten => 1,n(end),Hangup
exten => 3,1,Answer
exten => 3,n,Set(_DISA=disa^3^newcall)
exten => 3,n,Gosub(sub-record-check,s,14(record))
exten => 3,n(newcall),Set(_DISACONTEXT=from-internal)
exten => 3,n,Set(_KEEPCID=TRUE)
exten => 3,n,Set(_HANGUP=${TRUNK_OPTIONS})
exten => 3,n,Set(TIMEOUT(digit)=5)
exten => 3,n,Set(TIMEOUT(response)=30)
exten => 3,n,DISA(no-password,disa-dial)
exten => 3,n(end),Hangup
;--== end of [disa] ==--;
Далее
service asterisk reload
Слушаем записи в CDR отчетах
Комментарии
Отправить комментарий