; This file contains the contexts the agents login for the module call center.
; and contains the context conferences for module conferences of elastix 1.0.
[temp-dest]
exten => s,1,Dial(SIP/8086&SIP/8085&SIP/8080&SIP/8007&SIP/8083&SIP/8088,20,tr)
same => 2,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,30,tr)
same => 3,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,20,tr)
same => 4,Goto(temp-dest,s,1)
;exten => s,1,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,20,tr)
;same => 2,Dial(SIP/8086&SIP/8088,20,tr)
;same => 3,Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,20,tr)
;same => 4,Goto(temp-dest,s,2)
;[temp-dest]
;exten => s,1,Dial(DAHDI/g1/89xxxxxxxxx,5,tr)
;same => 2,Dial(SIP/8086,5,tr)
;same => 3,Dial(DAHDI/g1/89xxxxxxxxx,5,tr)
;same => 4,Goto(temp-dest,s,2)
[from-internal-custom]
exten => 1234,1,Playback(demo-congrats) ; extensions can dial 1234
exten => 1234,2,Hangup()
exten => h,1,Hangup()
include => agentlogin
include => conferences
include => calendar-event
include => weather-wakeup
[agentlogin]
exten => _*8888.,1,Set(AGENTNUMBER=${EXTEN:5})
exten => _*8888.,n,NoOp(AgentNumber is ${AGENTNUMBER})
exten => _*8888.,n,AgentLogin(${AGENTNUMBER})
exten => _*8888.,n,Hangup()
[mm-announce]
exten => 9999,1,Set(CALLERID(name)="MMGETOUT")
exten => 9999,n,Answer
exten => 9999,n,Playback(conf-will-end-in)
exten => 9999,n,Playback(digits/5)
exten => 9999,n,Playback(minutes)
exten => 9999,n,Hangup
[conferences]
;Used by cbEnd script to play end of conference warning
exten => 5555,1,Answer
exten => 5555,n,Wait(3)
exten => 5555,n,CBMysql()
exten => 5555,n,Hangup
[calendar-event]
exten => _*7899,1,Answer
exten => _*7899,2,Playback(${FILE_CALL})
exten => _*7899,3,Wait(2)
exten => _*7899,4,Hangup()
[weather-wakeup]
exten => *61,1,Answer
exten => *61,2,AGI(nv-weather.php)
exten => *61,3,Hangup
exten => *62,1,Answer
exten => *62,2,AGI(wakeup.php)
exten => *62,3,Hangup
[from-ttk]
exten => _X.,1,Dial(dahdi/g0/${EXTEN})
exten => 221xxxx,1,Goto(from-trunk,${EXTEN},1)
exten => 221xxxx,1,Goto(from-trunk,${EXTEN},1)
exten => 221xxxx,1,Goto(from-trunk,${EXTEN},1)
exten => 221xxxx,1,Goto(from-trunk,${EXTEN},1)
[ivr-6] ; Osnova_3
exten => s,1,Set(_IVR_CONTEXT_${CONTEXT}=${IVR_CONTEXT})
exten => s,n,Set(_IVR_CONTEXT=${CONTEXT})
exten => s,n,Set(__IVR_RETVM=)
exten => s,n,GotoIf($["${CDR(disposition)}" = "ANSWERED"]?skip)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(skip),Set(IVR_MSG=custom/2_3)
exten => s,n(start),Set(TIMEOUT(digit)=3)
exten => s,n,ExecIf($["${IVR_MSG}" != ""]?Background(${IVR_MSG}))
exten => s,n,WaitExten(5,)
;Если вы хотите забронировать номер в гостинице
;n нажмите - 1, n - вн. 8003
;n – нажмите 2, вн.8007
;n – 3, вн. 8110
;n - 4. вн. 8212
;Или оставайтесь на линии для связи с оператором.
; →перевод
; n.-8084
; При не ответе 10 секунд перевод на
; n - 8083
; и т.д. по кольцу.
exten => 1,1,Goto(from-internal,8003,1)
exten => 2,1,Goto(from-internal,8080,1)
exten => 3,1,Goto(from-internal,8110,1)
exten => 4,1,Goto(from-internal,8212,1)
exten => t,1,Dial(SIP/8084,10,tr)
exten => t,n,Dial(SIP/8083,5,tr)
exten => t,n,Goto(ivr-6,1,1)
;--== end of [ivr-6] ==--;
localhost*CLI> dialplan show temp-dest
[ Context 'temp-dest' created by 'pbx_config' ]
's' => 1. Dial(SIP/8086&SIP/8085&SIP/8080&SIP/8007&SIP/8083&SIP/8088,20,tr) [pbx_config]
2. Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,30,tr) [pbx_config]
3. Dial(DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx&DAHDI/g1/89xxxxxxxxx,20,tr) [pbx_config]
4. Goto(temp-dest,s,1) [pbx_config]
-= 1 extension (4 priorities) in 1 context. =-
[2020-10-28 09:40:48] ERROR[20064][C-0000058f]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
[2020-10-28 09:55:19] ERROR[20138][C-00000590]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
[2020-10-28 09:55:58] WARNING[20148][C-00000591]: channel.c:4860 ast_prod: Prodding channel 'SIP/8003-00001333' failed
[2020-10-28 09:55:58] ERROR[20148][C-00000591]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
[2020-10-28 10:03:37] WARNING[20193][C-00000592]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[2020-10-28 10:05:15] ERROR[20193][C-00000592]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
[2020-10-28 10:06:29] ERROR[20205][C-00000593]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
[2020-10-28 10:06:38] WARNING[20208][C-00000594]: app_dial.c:2437 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[2020-10-28 10:07:15] ERROR[20209][C-00000595]: cdr_mysql.c:203 mysql_log: Cannot connect to database server localhost: (1045) Access denied for user 'asteriskuser'@'localhost' (using password: YES)
ip ro add 192.168.29.0/24 via 192.168.29.1 dev eth1
route add 192.168.29.0 mask 255.255.255.0 192.168.29.1 if 0x[index]
route print
ну т.е. есть пачка файлов, которая отправляется клиенту для подлючения состоит из:
серверного сертификата ca.crt, ключа TLS ta.key, ключа Деффи-Хэллмана dh.pem, и далее набор уникальных файлов, клиентские серт/ключ, и конифг в формате ovpn.
Вот по логам только не совсем понимаю ChangeMe откуда берется, и чтото подсказывает из-за этого косяк. Т.е. на сервере клиенты не распознаются. :| Либо же я пока не совсем понимаю что-то из-за замыленного мозга.