Asterisk и приём факсов
через Free Fax for Asterisk
Сообщений: 40
|
Asterisk и приём факсов
Народ, нид хелп с входящими факсами.
Используется Триксбокс с FXO платой и Аree Fax for Asterisk. Исходящие факсы настроил, всё бегает... Проблема с входящими, прописал в
[from-zaptel]
exten => s,1,NoOp(**** FAX RECEIVED from ${CALLERID(num)} ${STRFTIME(${EPOCH},,%c)} ****)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FILENAME=fax-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
exten => s,n,Set(FAXFILE=${FILENAME}.tif)
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FAXOPT(headerinfo)=Received by MYCOMPANY ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M)})
exten => s,n,Set(FAXOPT(localstationid)=2442963)
exten => s,n,Set(FAXOPT(maxrate)=14400)
exten => s,n,Set(FAXOPT(minrate)=2400)
exten => s,n,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => s,n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
exten => s,n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
exten => s,n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
exten => s,n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
exten => s,n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})
exten => s,n,Hangup()
Лог:
[Apr 9 07:28:33] NOTICE[2811] chan_zap.c: Got event 18 (Ring Begin)...
[Apr 9 07:28:34] NOTICE[2811] chan_zap.c: Got event 2 (Ring/Answered)...
[Apr 9 07:28:34] VERBOSE[2811] logger.c: == Starting Zap/8-1 at from-zaptel,s,1 failed so falling back to exten 's'
[Apr 9 07:28:34] VERBOSE[2811] logger.c: == Starting Zap/8-1 at from-zaptel,s,1 still failed so falling back to context 'default'
[Apr 9 07:28:34] VERBOSE[2811] logger.c: -- Executing [s@default:1] Playback("Zap/8-1", "vm-goodbye") in new stack
[Apr 9 07:28:34] DEBUG[2811] chan_zap.c: Took Zap/8-1 off hook
[Apr 9 07:28:34] DEBUG[2811] chan_zap.c: No echo training requested
[Apr 9 07:28:34] VERBOSE[2811] logger.c: -- <Zap/8-1> Playing 'vm-goodbye' (language 'en')
Что посоветуете?
|
Откуда: SPb
Сообщений: 1307
|
Re: Asterisk и приём факсов
Советую прочитать
[Apr 9 07:28:34] VERBOSE[2811] logger.c: == Starting Zap/8-1 at from-zaptel,s,1 failed so falling back to exten 's'
[Apr 9 07:28:34] VERBOSE[2811] logger.c: == Starting Zap/8-1 at from-zaptel,s,1 still failed so falling back to context 'default'
|
Сообщений: 40
|
Re: Asterisk и приём факсов
Это я уловил, по этому и спрашиваю, где я ошибся?
|
Откуда: SPb
Сообщений: 1307
|
Re: Asterisk и приём факсов
http://www.voip-info.org/wiki/view/Asterisk+s+extension
нарисуйте вместо 's' '_X.'
|
Сообщений: 40
|
Re: Asterisk и приём факсов
Нарисовал, всё та же ошибка.
|
Откуда: SPb
Сообщений: 1307
|
Re: Asterisk и приём факсов
dialplan show from-zaptel
|
Сообщений: 40
|
Re: Asterisk и приём факсов
[ Context 'from-zaptel' created by 'pbx_config' ]
'_X.' => 1. NoOp(**** FAX RECEIVED from ${CALLERID(num)} ${STRFTIME(${EPOCH}||%c)} ****) [pbx_config]
2. Set(FAXOPT(ecm)=yes) [pbx_config]
3. Set(FILENAME=fax-${STRFTIME(${EPOCH}||%Y%m%d-%H%M%S)}) [pbx_config]
4. Set(FAXFILE=${FILENAME}.tif) [pbx_config]
5. Set(FAXOPT(ecm)=yes) [pbx_config]
6. Set(FAXOPT(headerinfo)=Received by MYCOMPANY ${STRFTIME(${EPOCH}||%Y-%m-%d %H:%M)}) [pbx_config]
7. Set(FAXOPT(localstationid)=2442963) [pbx_config]
8. Set(FAXOPT(maxrate)=14400) [pbx_config]
9. Set(FAXOPT(minrate)=2400) [pbx_config]
10. NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)}) [pbx_config]
11. NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) [pbx_config]
12. NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) [pbx_config]
13. NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) [pbx_config]
14. NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) [pbx_config]
15. NoOp(**** RECEIVING FAX : ${FAXFILE} ****) [pbx_config]
16. ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE}) [pbx_config]
17. Hangup()
|
Сообщений: 1573
|
Re: Asterisk и приём факсов
Покажите вывод CLI> при вызове ...
P.S. Вы полный контекст привели выше? Или что то удалили на свое усмотрение?
|
Сообщений: 40
|
Re: Asterisk и приём факсов
Verbosity is at least 3
-- Starting simple switch on 'Zap/8-1'
== Starting Zap/8-1 at from-zaptel,s,1 failed so falling back to exten 's'
== Starting Zap/8-1 at from-zaptel,s,1 still failed so falling back to context 'default'
-- Executing [s@default:1] Playback("Zap/8-1", "vm-goodbye") in new stack
-- <Zap/8-1> Playing 'vm-goodbye' (language 'en')
-- Executing [s@default:2] Macro("Zap/8-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/8-1", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/8-1", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/8-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/8-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/8-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("Zap/8-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/8-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/8-1'
-- Hungup 'Zap/8-1'
Полный контекст, ничего не вырезал.
|
Откуда: SPb
Сообщений: 1307
|
Re: Asterisk и приём факсов
Приведите еще раз запись контекста после того , как заменили 's,n,' на '_X.,n,'
|
|