Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2017-06-06 20:57:16 +0400

fedorov.f Gravatar fedorov.f

Asterisk + Fax + SendFax

привет. Сбился с рук. на астериксе факс приходит и все нормально. А вот при отправке трендец

вот блок отправки

[fax-tx] exten => send,1,NoOp(------------------- FAX from ${CALLERID(number)} ------------------) same => n,Wait(1) same => n,Set(DT=${TIMESTAMP}-${CALLERIDNUM}-${UNIQUEID}) same => n,Set(FAXOPT(headerinfo)=Received by ${CALLERID(number)} ${STRFTIME(${EPOCH},,%Y-%m-%d %H-%M)}) same => n,Set(FAXOPT(localstationid)=Name) same => n,Set(FAXOPT(maxrate)=9600) same => n,Set(FAXOPT(minrate)=2400) same => n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)}) same => n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)}) same => n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)}) same => n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)}) same => n,NoOp(* RECEIVING FAX : ${DT} *) same => n,System(/usr/bin/gs -dSAFER -dBATCH -dQUIET -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204x196 -dNOPAUSE -sOutputFile=/mnt/files/fax/fax.tiff /mnt/files/fax/fax.pdf) same => n,SendFAX(/mnt/files/fax/fax.tiff) ;d,dfzs same => n,NoOp(${FAXSTATUS}) same => n,NoOp(number is ${CALLERID(number)}) same => n,HangUp()

В логах

[Jun 6 20:40:44] VERBOSE[14992][C-0000000b] pbx.c: Executing [send@fax-tx:14] SendFAX("SIP/694443-00000010", "/mnt/files/fax/fax.tiff") in new stack [Jun 6 20:40:44] VERBOSE[14992][C-0000000b] resfax.c: Channel 'SIP/694443-00000010' sending FAX: [Jun 6 20:40:44] VERBOSE[14992][C-0000000b] resfax.c: /mnt/files/fax/fax.tiff [Jun 6 20:40:52] VERBOSE[12347][C-0000000b] netsock2.c: Using UDPTL CoS mark 5 [Jun 6 20:40:52] VERBOSE[14992][C-0000000b] pbx.c: Spawn extension (fax-tx, send, 14) exited non-zero on 'SIP/694443-00000010'

И все... я не понимаю в чем дело?

В sip.conf

t38pt_udptl=yes

Asterisk + Fax + SendFax

привет. Сбился с рук. на астериксе факс приходит и все нормально. А вот при отправке трендец

вот блок отправки

[fax-tx]
exten => send,1,NoOp(------------------- FAX from ${CALLERID(number)} ------------------)
same => n,Wait(1)
same => n,Set(DT=${TIMESTAMP}-${CALLERIDNUM}-${UNIQUEID})
same => n,Set(FAXOPT(headerinfo)=Received by ${CALLERID(number)} ${STRFTIME(${EPOCH},,%Y-%m-%d %H-%M)})
same => n,Set(FAXOPT(localstationid)=Name)
same => n,Set(FAXOPT(maxrate)=9600)
same => n,Set(FAXOPT(minrate)=2400)
same => n,NoOp(FAXOPT(headerinfo) : ${FAXOPT(headerinfo)})
same => n,NoOp(FAXOPT(localstationid) : ${FAXOPT(localstationid)})
same => n,NoOp(FAXOPT(maxrate) : ${FAXOPT(maxrate)})
same => n,NoOp(FAXOPT(minrate) : ${FAXOPT(minrate)})
same => n,NoOp(* n,NoOp(**** RECEIVING FAX : ${DT} *)
****)
same => n,System(/usr/bin/gs -dSAFER -dBATCH -dQUIET -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204x196 -dNOPAUSE -sOutputFile=/mnt/files/fax/fax.tiff /mnt/files/fax/fax.pdf)
same => n,SendFAX(/mnt/files/fax/fax.tiff) ;d,dfzs 
same => n,NoOp(${FAXSTATUS})
same => n,NoOp(number is ${CALLERID(number)})
same => n,HangUp()

n,HangUp()

В логах

[Jun  6 20:40:44] VERBOSE[14992][C-0000000b] pbx.c: Executing [send@fax-tx:14] SendFAX("SIP/694443-00000010", "/mnt/files/fax/fax.tiff") in new stack
[Jun  6 20:40:44] VERBOSE[14992][C-0000000b] resfax.c: res_fax.c: Channel 'SIP/694443-00000010' sending FAX:
[Jun  6 20:40:44] VERBOSE[14992][C-0000000b] resfax.c: res_fax.c:    /mnt/files/fax/fax.tiff
[Jun  6 20:40:52] VERBOSE[12347][C-0000000b] netsock2.c: Using UDPTL CoS mark 5
[Jun  6 20:40:52] VERBOSE[14992][C-0000000b] pbx.c: Spawn extension (fax-tx, send, 14) exited non-zero on 'SIP/694443-00000010'

'SIP/694443-00000010'

И все... я не понимаю в чем дело?

В sip.conf

t38pt_udptl=yes

t38pt_udptl=yes

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.