[Mon Mar 16 15:14:47.075721 2020] [:error] [pid 2585] [client 192.168.4.98:56914] PHP Warning: require_once(log4php/LoggerManager.php): failed to open stream: No such file or directory in /var/www/html/crm/custom/modules/Asterisk/include/callCreate.php on line 52, referer: https://192.168.4.135/crm/?action=ajaxui
[Mon Mar 16 15:14:47.075771 2020] [:error] [pid 2585] [client 192.168.4.98:56914] PHP Fatal error: require_once(): Failed opening required 'log4php/LoggerManager.php' (include_path='/var/www/html/crm:/var/www/html/crm/include/..:.:/usr/share/pear:/usr/share/php') in /var/www/html/crm/custom/modules/Asterisk/include/callCreate.php on line 52, referer: https://192.168.4.135/crm/?action=ajaxui
ls -l /var/lib/asterisk/agi-bin
итого 340
-rwxr-xr-- 1 root root 1485 Янв 25 22:27 checksound.agi
-rwxr-xr-- 1 root root 31868 Янв 25 22:27 dialparties.agi
-rwxr-xr-- 1 root root 12694 Янв 25 22:27 directory
-rwxr-xr-- 1 root root 4792 Янв 25 22:27 enumlookup.agi
-rwxr-xr-x. 1 asterisk asterisk 703 Сен 7 21:58 festival-script.pl
-rwxr-xr-x. 1 asterisk asterisk 784 Сен 7 21:58 festival-weather-script.pl
-rwxr-xr-- 1 root root 778 Янв 25 22:27 fixlocalprefix
-rwxr-xr-x. 1 asterisk asterisk 6366 Сен 7 21:58 hangup.agi
-rwxr-xr-x. 1 asterisk asterisk 28770 Сен 7 21:58 imap.agi
-rwxr-xr-x. 1 asterisk asterisk 7438 Сен 7 21:58 intervenir.agi
-rwxr-xr-- 1 root root 1263 Янв 25 22:27 list-item-remove.php
-rwxr-xr-x. 1 asterisk asterisk 3659 Сен 7 21:58 nv-weather.php
-rwxr-xr-- 1 root root 6438 Янв 25 22:27 page.agi
-rwxr-xr-- 1 root root 1927 Янв 25 22:27 parkfetch.agi
-rwxr-xr-- 1 root root 2049 Янв 25 22:27 parkuser.php
-rwxr-xr-- 1 root root 9835 Янв 25 22:27 pbdirectory
-rwxr-xr-x. 1 asterisk asterisk 31158 Сен 20 18:03 phpagi-asmanager.php
-rwxr-xr-x. 1 asterisk asterisk 65353 Сен 20 18:03 phpagi.php
-rwxr-xr-- 1 root root 7255 Янв 25 22:27 queue_devstate.agi
-rwxr-xr-- 1 root root 20498 Янв 25 22:27 sql.php
-rwxr-xr-- 1 root root 22959 Янв 25 22:27 user_login_out.agi
-rwxr-xr-x. 1 asterisk asterisk 3991 Сен 7 21:58 wakeconfirm.agi
-rwxr-xr-x. 1 asterisk asterisk 21372 Сен 7 21:58 wakeup.php
-rwxr-xr-x. 1 asterisk asterisk 1248 Сен 7 21:58 weather.agi
issabel*CLI> dialplan show 134628@from-trunk
[ Included context 'ext-did-0002' created by 'pbx_config' ]
'134628' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Gosub(app-blacklist-check,s,1()) [pbx_config]
3. Set(CDR(did)=${FROM_DID}) [pbx_config]
4. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
5. Set(CHANNEL(musicclass)=default) [pbx_config]
6. Set(__MOHCLASS=default) [pbx_config]
7. Set(__CALLINGPRES_SV=${CALLERPRES()}) [pbx_config]
8. Set(CALLERPRES()=allowed_not_screened) [pbx_config]
[dest-ext] 9. Goto(from-did-direct,102,1) [pbx_config]
[ Included context 'ext-did-catchall' created by 'pbx_config' ]
'_.' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Noop(Received an unknown call with DID set to ${EXTEN}) [pbx_config]
3. Goto(s,a2) [pbx_config]
-= 2 extensions (12 priorities) in 2 contexts. =-
issabel*CLI> dialplan show 134628@from-pstn
[ Included context 'ext-did-0002' created by 'pbx_config' ]
'134628' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Gosub(app-blacklist-check,s,1()) [pbx_config]
3. Set(CDR(did)=${FROM_DID}) [pbx_config]
4. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
5. Set(CHANNEL(musicclass)=default) [pbx_config]
6. Set(__MOHCLASS=default) [pbx_config]
7. Set(__CALLINGPRES_SV=${CALLERPRES()}) [pbx_config]
8. Set(CALLERPRES()=allowed_not_screened) [pbx_config]
[dest-ext] 9. Goto(from-did-direct,102,1) [pbx_config]
[ Included context 'ext-did-catchall' created by 'pbx_config' ]
'_.' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Noop(Received an unknown call with DID set to ${EXTEN}) [pbx_config]
3. Goto(s,a2) [pbx_config]
-= 2 extensions (12 priorities) in 2 contexts. =-
issabel*CLI> dialplan show ext-did-catchall
[ Context 'ext-did-catchall' created by 'pbx_config' ]
'h' => 1. Hangup() [pbx_config]
's' => 1. Noop(No DID or CID Match) [pbx_config]
[a2] 2. Answer() [pbx_config]
3. Wait(2) [pbx_config]
4. Playback(ss-noservice) [pbx_config]
5. SayAlpha(${FROM_DID}) [pbx_config]
6. Hangup() [pbx_config]
'_.' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Noop(Received an unknown call with DID set to ${EXTEN}) [pbx_config]
3. Goto(s,a2) [pbx_config]
Include => 'ext-did-catchall-custom' [pbx_config]
-= 3 extensions (10 priorities) in 1 context. =-
issabel*CLI> dialplan show 134628@from-pstn
[ Included context 'ext-did-0002' created by 'pbx_config' ]
'134628' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Gosub(app-blacklist-check,s,1()) [pbx_config]
3. Set(CDR(did)=${FROM_DID}) [pbx_config]
4. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
5. Set(CHANNEL(musicclass)=default) [pbx_config]
6. Set(__MOHCLASS=default) [pbx_config]
7. Set(__CALLINGPRES_SV=${CALLERPRES()}) [pbx_config]
8. Set(CALLERPRES()=allowed_not_screened) [pbx_config]
[dest-ext] 9. Goto(from-did-direct,102,1) [pbx_config]
[ Included context 'ext-did-catchall' created by 'pbx_config' ]
'_.' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Noop(Received an unknown call with DID set to ${EXTEN}) [pbx_config]
3. Goto(s,a2) [pbx_config]
-= 2 extensions (12 priorities) in 2 contexts. =-
issabel*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
100/100 192.168.3.10 D No No A 33732 OK (429 ms)
101/101 192.168.3.27 D No No A 1028 OK (104 ms)
102/102 192.168.3.27 D No No A 4420 OK (3 ms)
задарма/134628 185.45.152.174 Yes Yes 5060 OK (75 ms)
4 sip peers [Monitored: 4 online, 0 offline Unmonitored: 0 online, 0 offline]
issabel*CLI> dialplan show ext-group
[ Context 'ext-group' created by 'pbx_config' ]
'600' => 1. Macro(user-callerid,) [pbx_config]
2. Macro(blkvm-setifempty,) [pbx_config]
3. GotoIf($["${GOSUB_RETVAL}" = "TRUE"]?skipov) [pbx_config]
4. Macro(blkvm-set,reset) [pbx_config]
5. Set(__NODEST=) [pbx_config]
[skipov] 6. Set(RRNODEST=${NODEST}) [pbx_config]
[skipvmblk] 7. Set(__NODEST=${EXTEN}) [pbx_config]
8. GosubIf($[${DB_EXISTS(RINGGROUP/600/changecid)} = 1 & "${DB(RINGGROUP/600/changecid)}" != "default" & "${DB(RINGGROUP/600/changecid)}" != ""]?sub-rgsetcid,s,1()) [pbx_config]
9. Gosub(sub-record-check,s,1(rg,600,dontcare)) [pbx_config]
10. Set(RingGroupMethod=ringall) [pbx_config]
[DIALGRP] 11. Macro(dial,80,${DIAL_OPTIONS},101-102-100) [pbx_config]
12. Gosub(sub-record-cancel,s,1()) [pbx_config]
13. Set(RingGroupMethod=) [pbx_config]
14. GotoIf($["foo${RRNODEST}" != "foo"]?nodest) [pbx_config]
15. Set(__NODEST=) [pbx_config]
16. Macro(blkvm-clr,) [pbx_config]
17. Goto(app-blackhole,hangup,1) [pbx_config]
[nodest] 18. Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}) [pbx_config]
'601' => 1. Macro(user-callerid,) [pbx_config]
2. Macro(blkvm-setifempty,) [pbx_config]
3. GotoIf($["${GOSUB_RETVAL}" = "TRUE"]?skipov) [pbx_config]
4. Macro(blkvm-set,reset) [pbx_config]
5. Set(__NODEST=) [pbx_config]
[skipov] 6. Set(RRNODEST=${NODEST}) [pbx_config]
[skipvmblk] 7. Set(__NODEST=${EXTEN}) [pbx_config]
8. GosubIf($[${DB_EXISTS(RINGGROUP/601/changecid)} = 1 & "${DB(RINGGROUP/601/changecid)}" != "default" & "${DB(RINGGROUP/601/changecid)}" != ""]?sub-rgsetcid,s,1()) [pbx_config]
9. Macro(prepend-cid,test-group2) [pbx_config]
10. Gosub(sub-record-check,s,1(rg,601,always)) [pbx_config]
11. Set(RingGroupMethod=ringall) [pbx_config]
[DIALGRP] 12. Macro(dial,80,m(default)${REPLACE(DIAL_OPTIONS,r)},101-102) [pbx_config]
13. Gosub(sub-record-cancel,s,1()) [pbx_config]
14. Set(RingGroupMethod=) [pbx_config]
15. GotoIf($["foo${RRNODEST}" != "foo"]?nodest) [pbx_config]
16. Set(__NODEST=) [pbx_config]
17. Macro(blkvm-clr,) [pbx_config]
18. Goto(ext-group,601,1) [pbx_config]
[nodest] 19. Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST}) [pbx_config]
'h' => 1. Macro(hangupcall,) [pbx_config]
Include => 'ext-group-custom' [pbx_config]
-= 3 extensions (38 priorities) in 1 context. =-
Еще раз. Во входящем маршруте для задарма установите направление на группу.Может я не верно понимаю смысл этих слов?
покажите вывод команд:
issabel*CLI> dialplan show from-pstn
[ Context 'from-pstn' created by 'pbx_config' ]
'sms' => 1. Verbose(Incoming SMS from ${CALLERID(num)} ${BASE64_DECODE(${SMS_BASE64})}) [pbx_config]
2. System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}' >> /var/log/asterisk/sms.txt) [pbx_config]
3. System(echo '${SMS} === ${CALLERID(num)} - ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}' | mail -s IncomingSMS 1984nazariy@gmail.com) [pbx_config]
4. Hangup() [pbx_config]
'ussd' => 1. Verbose(Incoming USSD: ${BASE64_DECODE(${USSD_BASE64})}) [pbx_config]
2. System(echo "${DONGLENAME} - ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} - ${BASE64_DECODE(${USSD_BASE64})}" > /var/log/asterisk/ussd_${DONGLENAME}.txt) [pbx_config]
3. Hangup() [pbx_config]
Include => 'from-pstn-custom' [pbx_config]
Include => 'ext-did' [pbx_config]
Include => 'ext-did-post-custom' [pbx_config]
Include => 'from-did-direct' [pbx_config]
Include => 'ext-did-catchall' [pbx_config]
-= 2 extensions (7 priorities) in 1 context. =-
issabel*CLI> dialplan show ext-did
[ Context 'ext-did' created by 'pbx_config' ]
'foo' => 1. Noop(bar) [pbx_config]
Include => 'ext-did-custom' [pbx_config]
Include => 'ext-did-0001' [pbx_config]
Include => 'ext-did-0002' [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
issabel*CLI> dialplan show ext-did-0001
[ Context 'ext-did-0001' created by 'pbx_config' ]
'fax' => 1. Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)}) [pbx_config]
Include => 'ext-did-0001-custom' [pbx_config]
-= 1 extension (1 priority) in 1 context. =-
issabel*CLI> dialplan show ext-did-0002
[ Context 'ext-did-0002' created by 'pbx_config' ]
'134628' => 1. Set(__FROM_DID=${EXTEN}) [pbx_config]
2. Gosub(app-blacklist-check,s,1()) [pbx_config]
3. Set(CDR(did)=${FROM_DID}) [pbx_config]
4. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
5. Set(CHANNEL(musicclass)=default) [pbx_config]
6. Set(__MOHCLASS=default) [pbx_config]
7. Set(__CALLINGPRES_SV=${CALLERPRES()}) [pbx_config]
8. Set(CALLERPRES()=allowed_not_screened) [pbx_config]
[dest-ext] 9. Goto(ext-group,600,1) [pbx_config]
'fax' => 1. Goto(${CUT(FAX_DEST,^,1)},${CUT(FAX_DEST,^,2)},${CUT(FAX_DEST,^,3)}) [pbx_config]
Include => 'ext-did-0002-custom' [pbx_config]
-= 2 extensions (10 priorities) in 1 context. =-
Не надо постить логи в ответы темы.
issabel*CLI> dialplan show 134628@from-trunk
[ Included context 'ext-did-catchall' created by 'pbx_config' ]
'_.' => 1. Noop(Catch-All DID Match - Found ${EXTEN} - You probably want a DID for this.) [pbx_config]
2. Set(__FROM_DID=${EXTEN}) [pbx_config]
3. Goto(ext-did,s,1) [pbx_config]
-= 1 extension (3 priorities) in 1 context. =-
telnet_log