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

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

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

спросил 2012-02-01 17:49:28 +0400

Prochor Gravatar Prochor

Опять факс от Digitum

Часть лога

-- Executing [s@fax-so:4] ReceiveFAX("SIP/my_sip.zadarma.com-00000116", "/var/spool/asterisk/fax/1328104402.378.tif,f") in new stack
    -- Channel 'SIP/my_sip.zadarma.com-00000116' receiving FAX '/var/spool/asterisk/fax/1328104402.378.tif'
    -- Channel 'SIP/my_sip.zadarma.com-00000116' FAX session '29' started
    -- FAX handle 0: [ 000.000372 ], STAT_EVT_STRT_RX       st: IDLE         rt: IDLENSRX
    -- FAX handle 0: [ 000.000563 ], STAT_EVT_RX_HW_RDY     st: WT_RX_HW_RDY rt: RRDYNHRY
    -- FAX handle 0: [ 000.000724 ], P30EVN_RECEIVE_STARTED
    -- FAX handle 0: [ 000.000834 ], STAT_INFO_CSI
    -- FAX handle 0: [ 000.000967 ], STAT_INFO_DIS
    -- FAX handle 0: [ 002.167761 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 005.502490 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 005.502607 ], STAT_INFO_CSI
    -- FAX handle 0: [ 005.502698 ], STAT_INFO_DIS
    -- FAX handle 0: [ 007.661877 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 010.997260 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 010.997402 ], STAT_INFO_CSI
    -- FAX handle 0: [ 010.997498 ], STAT_INFO_DIS
    -- FAX handle 0: [ 013.170407 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 016.502324 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 016.502438 ], STAT_INFO_CSI
    -- FAX handle 0: [ 016.502528 ], STAT_INFO_DIS
    -- FAX handle 0: [ 018.668320 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 021.992616 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 021.992745 ], STAT_INFO_CSI
    -- FAX handle 0: [ 021.992837 ], STAT_INFO_DIS
    -- FAX handle 0: [ 024.168233 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 027.501157 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 027.501273 ], STAT_INFO_CSI
    -- FAX handle 0: [ 027.501359 ], STAT_INFO_DIS
    -- FAX handle 0: [ 029.668155 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 032.445218 ], STAT_EVT_TMR_INT_EXP   st: WT_DIS_RSP   rt: XXXXNTIX
    -- FAX handle 0: [ 033.001085 ], STAT_EVT_T4_EXP        st: WT_HW_CLS    rt: UNEXPECT
    -- FAX handle 0: [ 034.949998 ], STAT_EVT_HW_CLOSE      st: WT_HW_CLS    rt: WCLSNCLS
    -- FAX handle 0: [ 034.950345 ], STAT_SES_COMPLETE
    -- FAX handle 0: [ 034.950442 ], P30EVN_COMPLETE

При все при этом

sip*CLI> fax show sessions

Current FAX Sessions:

Channel              Tech       FAXID      Type  Operation  State           File(s)
SIP/my_sip.zadarma.c DIGIUM     29         G.711 receive    Active          /var/spool/asterisk/fax/1328104402.378.tif

1 FAX sessions

А сам факсовый аппарат передачу не начинает

ВОПРОС вчем косяк

Пример EXT

[fax-so]
exten => 5000,1,Noop(Receiving Fax for: voip, From: ${CALLERID(all)})
exten => 5000,n,Set(FAX_RX_EMAIL=prochor@expopark.ru)
exten => 5000,n(receivefax),Goto(s,receivefax)
exten => s,1,Macro(user-callerid,)
exten => s,n,Noop(Receiving Fax for: ${FAX_RX_EMAIL} , From: ${CALLERID(all)})
exten => s,n(receivefax),StopPlaytones
exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${UNIQUEID}.tif,f)
exten => s,n,ExecIf($["${FAXOPT(error)}"=""]?Set(FAXSTATUS=FAILED LICENSE EXCEEDED))
exten => s,n,ExecIf($["${FAXOPT(error)}"!="" && "${FAXOPT(error)}"!="NO_ERROR"]?Set(FAXSTATUS="FAILED FAXOPT: error: ${FAXOPT(error)} status: ${FAXOPT(status)} statusstr: ${FAXOPT(statusstr)}"))
exten => s,n,Hangup

Опять факс от Digitum

Часть лога

-- Executing [s@fax-so:4] ReceiveFAX("SIP/my_sip.zadarma.com-00000116", "/var/spool/asterisk/fax/1328104402.378.tif,f") in new stack
    -- Channel 'SIP/my_sip.zadarma.com-00000116' receiving FAX '/var/spool/asterisk/fax/1328104402.378.tif'
    -- Channel 'SIP/my_sip.zadarma.com-00000116' FAX session '29' started
    -- FAX handle 0: [ 000.000372 ], STAT_EVT_STRT_RX       st: IDLE         rt: IDLENSRX
    -- FAX handle 0: [ 000.000563 ], STAT_EVT_RX_HW_RDY     st: WT_RX_HW_RDY rt: RRDYNHRY
    -- FAX handle 0: [ 000.000724 ], P30EVN_RECEIVE_STARTED
    -- FAX handle 0: [ 000.000834 ], STAT_INFO_CSI
    -- FAX handle 0: [ 000.000967 ], STAT_INFO_DIS
    -- FAX handle 0: [ 002.167761 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 005.502490 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 005.502607 ], STAT_INFO_CSI
    -- FAX handle 0: [ 005.502698 ], STAT_INFO_DIS
    -- FAX handle 0: [ 007.661877 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 010.997260 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 010.997402 ], STAT_INFO_CSI
    -- FAX handle 0: [ 010.997498 ], STAT_INFO_DIS
    -- FAX handle 0: [ 013.170407 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 016.502324 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 016.502438 ], STAT_INFO_CSI
    -- FAX handle 0: [ 016.502528 ], STAT_INFO_DIS
    -- FAX handle 0: [ 018.668320 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 021.992616 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 021.992745 ], STAT_INFO_CSI
    -- FAX handle 0: [ 021.992837 ], STAT_INFO_DIS
    -- FAX handle 0: [ 024.168233 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 027.501157 ], STAT_EVT_T4_EXP        st: WT_DIS_RSP   rt: RXXXNFRX
    -- FAX handle 0: [ 027.501273 ], STAT_INFO_CSI
    -- FAX handle 0: [ 027.501359 ], STAT_INFO_DIS
    -- FAX handle 0: [ 029.668155 ], STAT_EVT_TX_V21_DONE   st: WT_DIS_RSP   rt: WDSRNT21
    -- FAX handle 0: [ 032.445218 ], STAT_EVT_TMR_INT_EXP   st: WT_DIS_RSP   rt: XXXXNTIX
    -- FAX handle 0: [ 033.001085 ], STAT_EVT_T4_EXP        st: WT_HW_CLS    rt: UNEXPECT
    -- FAX handle 0: [ 034.949998 ], STAT_EVT_HW_CLOSE      st: WT_HW_CLS    rt: WCLSNCLS
    -- FAX handle 0: [ 034.950345 ], STAT_SES_COMPLETE
    -- FAX handle 0: [ 034.950442 ], P30EVN_COMPLETE
-- Channel 'SIP/my_sip.zadarma.com-0000011c' FAX session '30' is complete, result: 'FAILED' (FAX_NO_FAX), error: 'T1_TIMEOUT', pages: 0, resolution: 'unknown', transfer rate: '2400', remoteSID: ''

== Spawn extension (fax-so, s, 4) exited non-zero on 'SIP/my_sip.zadarma.com-0000011c'

При все при этом

sip*CLI> fax show sessions

Current FAX Sessions:

Channel              Tech       FAXID      Type  Operation  State           File(s)
SIP/my_sip.zadarma.c DIGIUM     29         G.711 receive    Active          /var/spool/asterisk/fax/1328104402.378.tif

1 FAX sessions

А сам факсовый аппарат передачу не начинает

ВОПРОС вчем косяк

Пример EXT

[fax-so]
exten => 5000,1,Noop(Receiving Fax for: voip, From: ${CALLERID(all)})
exten => 5000,n,Set(FAX_RX_EMAIL=prochor@expopark.ru)
exten => 5000,n(receivefax),Goto(s,receivefax)
exten => s,1,Macro(user-callerid,)
exten => s,n,Noop(Receiving Fax for: ${FAX_RX_EMAIL} , From: ${CALLERID(all)})
exten => s,n(receivefax),StopPlaytones
exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${UNIQUEID}.tif,f)
exten => s,n,ExecIf($["${FAXOPT(error)}"=""]?Set(FAXSTATUS=FAILED LICENSE EXCEEDED))
exten => s,n,ExecIf($["${FAXOPT(error)}"!="" && "${FAXOPT(error)}"!="NO_ERROR"]?Set(FAXSTATUS="FAILED FAXOPT: error: ${FAXOPT(error)} status: ${FAXOPT(status)} statusstr: ${FAXOPT(statusstr)}"))
exten => s,n,Hangup

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