1 | изначальная версия редактировать | |
Есть Астер 11, факс настроен через spandsp, протокол t38 Прием факса Код:
exten => 2193,1,Answer
exten => 2193,2,Ringing()
exten => 2193,3,NoOp(incoming callerid ${CALLERID(num)})
exten => 2193,4,Set(FAXOPT(ecm)=yes)
exten => 2193,5,Set(FAXOPT(headerinfo)=MY FAXBACK RX)
exten => 2193,6,Set(FAXOPT(localstationid)=My)
exten => 2193,7,Set(FAXOPT(maxrate)=14400)
exten => 2193,8,Set(FAXOPT(minrate)=4800)
exten => 2193,9,Set(tempfax=${STRFTIME(,,%C%y%m%d%H%M)})
exten => 2193,10,receivefax(/var/spool/asterisk/fax/${tempfax}.tiff)
exten => 2193,11,System(/usr/bin/tiff2pdf /var/spool/asterisk/fax/${tempfax}.tiff -o /var/spool/asterisk/fax/${tempfax}.pdf)
exten => 2193,12,System(echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/${tempfax}.pdf dyuryagin.ms@transasia.ru)
exten => 2193,13,Wait(1)
exten => 2193,14,Goto(internal,2198,1)
Первую страницу принимает нормально, а вот после перевода обратно на оператора, последующие страницы не принемаются, хотя в логах вроде прием идет, может можно как-то по другому реализовать прием нескольких страниц?
Код:
-- Executing [2198@IVR:1] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "_DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000295 is ringing -- SIP/2198-00000295 answered SIP/di1-00000294
0xb72d4120 -- Probation passed - setting RTP source address to 192.168.208.226:11792 -- Started music on hold, class 'default', on SIP/di1-00000294 -- <sip 2198-00000295=""> Playing 'pbx-transfer.alaw' (language 'ru') -- Blind transferring SIP/di1-00000294 to '2193' (context OFFICE) priority 1 -- Stopped music on hold on SIP/di1-00000294 -- Executing [2193@OFFICE:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:2] Ringing("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2193@OFFICE:4] Set("SIP/di1-00000294", "FAXOPT(ecm)=yes") in new stack -- Executing [2193@OFFICE:5] Set("SIP/di1-00000294", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack -- Executing [2193@OFFICE:6] Set("SIP/di1-00000294", "FAXOPT(localstationid)=Transasia") in new stack -- Executing [2193@OFFICE:7] Set("SIP/di1-00000294", "FAXOPT(maxrate)=14400") in new stack -- Executing [2193@OFFICE:8] Set("SIP/di1-00000294", "FAXOPT(minrate)=4800") in new stack -- Executing [2193@OFFICE:9] Set("SIP/di1-00000294", "tempfax=201509251038") in new stack -- Executing [2193@OFFICE:10] ReceiveFAX("SIP/di1-00000294", "/var/spool/asterisk/fax/201509251038.tiff") in new stack -- Channel 'SIP/di1-00000294' receiving FAX '/var/spool/asterisk/fax/201509251038.tiff' == Using UDPTL CoS mark 5 -- Executing [2193@OFFICE:11] System("SIP/di1-00000294", "/usr/bin/tiff2pdf /var/spool/asterisk/fax/201509251038.tiff -o /var/spool/asterisk/fax/201509251038.pdf") in new stack -- Executing [2193@OFFICE:12] System("SIP/di1-00000294", "echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/201509251038.pdf trew@mail.ru") in new stack -- Executing [2193@OFFICE:13] Wait("SIP/di1-00000294", "1") in new stack 0x8b8cd00 -- Probation passed - setting RTP source address to 194.197.110.188:8016 -- Executing [2193@OFFICE:14] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000296 is ringing -- SIP/2198-00000296 answered SIP/di1-00000294 0xb72d4120 -- Probation passed - setting RTP source address to 192.168.208.226:11796 -- Started music on hold, class 'default', on SIP/di1-00000294 -- <sip 2198-00000296=""> Playing 'pbx-transfer.alaw' (language 'ru') -- Blind transferring SIP/di1-00000294 to '2193' (context OFFICE) priority 1 -- Stopped music on hold on SIP/di1-00000294 -- Executing [2193@OFFICE:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:2] Ringing("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2193@OFFICE:4] Set("SIP/di1-00000294", "FAXOPT(ecm)=yes") in new stack -- Executing [2193@OFFICE:5] Set("SIP/di1-00000294", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack -- Executing [2193@OFFICE:6] Set("SIP/di1-00000294", "FAXOPT(localstationid)=Transasia") in new stack -- Executing [2193@OFFICE:7] Set("SIP/di1-00000294", "FAXOPT(maxrate)=14400") in new stack -- Executing [2193@OFFICE:8] Set("SIP/di1-00000294", "FAXOPT(minrate)=4800") in new stack -- Executing [2193@OFFICE:9] Set("SIP/di1-00000294", "tempfax=201509251040") in new stack -- Executing [2193@OFFICE:10] ReceiveFAX("SIP/di1-00000294", "/var/spool/asterisk/fax/201509251040.tiff") in new stack -- Channel 'SIP/di1-00000294' receiving FAX '/var/spool/asterisk/fax/201509251040.tiff' -- Executing [2193@OFFICE:11] System("SIP/di1-00000294", "/usr/bin/tiff2pdf /var/spool/asterisk/fax/201509251040.tiff -o /var/spool/asterisk/fax/201509251040.pdf") in new stack -- Executing [2193@OFFICE:12] System("SIP/di1-00000294", "echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/201509251040.pdf trew@mail.ru") in new stack -- Executing [2193@OFFICE:13] Wait("SIP/di1-00000294", "1") in new stack 0x8b8cd00 -- Probation passed - setting RTP source address to 194.197.110.188:8016 -- Executing [2193@OFFICE:14] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000297 is ringing
2 | теги изменены редактировать |
Есть Астер 11, факс настроен через spandsp, протокол t38 Прием факса Код:
exten => 2193,1,Answer
exten => 2193,2,Ringing()
exten => 2193,3,NoOp(incoming callerid ${CALLERID(num)})
exten => 2193,4,Set(FAXOPT(ecm)=yes)
exten => 2193,5,Set(FAXOPT(headerinfo)=MY FAXBACK RX)
exten => 2193,6,Set(FAXOPT(localstationid)=My)
exten => 2193,7,Set(FAXOPT(maxrate)=14400)
exten => 2193,8,Set(FAXOPT(minrate)=4800)
exten => 2193,9,Set(tempfax=${STRFTIME(,,%C%y%m%d%H%M)})
exten => 2193,10,receivefax(/var/spool/asterisk/fax/${tempfax}.tiff)
exten => 2193,11,System(/usr/bin/tiff2pdf /var/spool/asterisk/fax/${tempfax}.tiff -o /var/spool/asterisk/fax/${tempfax}.pdf)
exten => 2193,12,System(echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/${tempfax}.pdf dyuryagin.ms@transasia.ru)
exten => 2193,13,Wait(1)
exten => 2193,14,Goto(internal,2198,1)
Первую страницу принимает нормально, а вот после перевода обратно на оператора, последующие страницы не принемаются, хотя в логах вроде прием идет, может можно как-то по другому реализовать прием нескольких страниц?
Код:
-- Executing [2198@IVR:1] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "_DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000295 is ringing -- SIP/2198-00000295 answered SIP/di1-00000294
0xb72d4120 -- Probation passed - setting RTP source address to 192.168.208.226:11792 -- Started music on hold, class 'default', on SIP/di1-00000294 -- <sip 2198-00000295=""> Playing 'pbx-transfer.alaw' (language 'ru') -- Blind transferring SIP/di1-00000294 to '2193' (context OFFICE) priority 1 -- Stopped music on hold on SIP/di1-00000294 -- Executing [2193@OFFICE:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:2] Ringing("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2193@OFFICE:4] Set("SIP/di1-00000294", "FAXOPT(ecm)=yes") in new stack -- Executing [2193@OFFICE:5] Set("SIP/di1-00000294", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack -- Executing [2193@OFFICE:6] Set("SIP/di1-00000294", "FAXOPT(localstationid)=Transasia") in new stack -- Executing [2193@OFFICE:7] Set("SIP/di1-00000294", "FAXOPT(maxrate)=14400") in new stack -- Executing [2193@OFFICE:8] Set("SIP/di1-00000294", "FAXOPT(minrate)=4800") in new stack -- Executing [2193@OFFICE:9] Set("SIP/di1-00000294", "tempfax=201509251038") in new stack -- Executing [2193@OFFICE:10] ReceiveFAX("SIP/di1-00000294", "/var/spool/asterisk/fax/201509251038.tiff") in new stack -- Channel 'SIP/di1-00000294' receiving FAX '/var/spool/asterisk/fax/201509251038.tiff' == Using UDPTL CoS mark 5 -- Executing [2193@OFFICE:11] System("SIP/di1-00000294", "/usr/bin/tiff2pdf /var/spool/asterisk/fax/201509251038.tiff -o /var/spool/asterisk/fax/201509251038.pdf") in new stack -- Executing [2193@OFFICE:12] System("SIP/di1-00000294", "echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/201509251038.pdf trew@mail.ru") in new stack -- Executing [2193@OFFICE:13] Wait("SIP/di1-00000294", "1") in new stack 0x8b8cd00 -- Probation passed - setting RTP source address to 194.197.110.188:8016 -- Executing [2193@OFFICE:14] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000296 is ringing -- SIP/2198-00000296 answered SIP/di1-00000294 0xb72d4120 -- Probation passed - setting RTP source address to 192.168.208.226:11796 -- Started music on hold, class 'default', on SIP/di1-00000294 -- <sip 2198-00000296=""> Playing 'pbx-transfer.alaw' (language 'ru') -- Blind transferring SIP/di1-00000294 to '2193' (context OFFICE) priority 1 -- Stopped music on hold on SIP/di1-00000294 -- Executing [2193@OFFICE:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:2] Ringing("SIP/di1-00000294", "") in new stack -- Executing [2193@OFFICE:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2193@OFFICE:4] Set("SIP/di1-00000294", "FAXOPT(ecm)=yes") in new stack -- Executing [2193@OFFICE:5] Set("SIP/di1-00000294", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack -- Executing [2193@OFFICE:6] Set("SIP/di1-00000294", "FAXOPT(localstationid)=Transasia") in new stack -- Executing [2193@OFFICE:7] Set("SIP/di1-00000294", "FAXOPT(maxrate)=14400") in new stack -- Executing [2193@OFFICE:8] Set("SIP/di1-00000294", "FAXOPT(minrate)=4800") in new stack -- Executing [2193@OFFICE:9] Set("SIP/di1-00000294", "tempfax=201509251040") in new stack -- Executing [2193@OFFICE:10] ReceiveFAX("SIP/di1-00000294", "/var/spool/asterisk/fax/201509251040.tiff") in new stack -- Channel 'SIP/di1-00000294' receiving FAX '/var/spool/asterisk/fax/201509251040.tiff' -- Executing [2193@OFFICE:11] System("SIP/di1-00000294", "/usr/bin/tiff2pdf /var/spool/asterisk/fax/201509251040.tiff -o /var/spool/asterisk/fax/201509251040.pdf") in new stack -- Executing [2193@OFFICE:12] System("SIP/di1-00000294", "echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/201509251040.pdf trew@mail.ru") in new stack -- Executing [2193@OFFICE:13] Wait("SIP/di1-00000294", "1") in new stack 0x8b8cd00 -- Probation passed - setting RTP source address to 194.197.110.188:8016 -- Executing [2193@OFFICE:14] Goto("SIP/di1-00000294", "internal,2198,1") in new stack -- Goto (internal,2198,1) -- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack -- Executing [2198@internal:2] Set("SIP/di1-00000294", "DYNAMICFEATURES=faxrec#faxsend") in new stack -- Executing [2198@internal:3] NoOp("SIP/di1-00000294", "incoming callerid 88612167027") in new stack -- Executing [2198@internal:4] Dial("SIP/di1-00000294", "SIP/2198,30,t") in new stack == Using SIP VIDEO CoS mark 6 == Using SIP RTP CoS mark 5 -- Called SIP/2198 -- SIP/2198-00000297 is ringing
3 | No.3 Revision редактировать |
Есть Астер 11, факс настроен через spandsp, протокол t38 Прием факса Код:
exten => 2193,1,Answer
exten => 2193,2,Ringing()
exten => 2193,3,NoOp(incoming callerid ${CALLERID(num)})
exten => 2193,4,Set(FAXOPT(ecm)=yes)
exten => 2193,5,Set(FAXOPT(headerinfo)=MY FAXBACK RX)
exten => 2193,6,Set(FAXOPT(localstationid)=My)
exten => 2193,7,Set(FAXOPT(maxrate)=14400)
exten => 2193,8,Set(FAXOPT(minrate)=4800)
exten => 2193,9,Set(tempfax=${STRFTIME(,,%C%y%m%d%H%M)})
exten => 2193,10,receivefax(/var/spool/asterisk/fax/${tempfax}.tiff)
exten => 2193,11,System(/usr/bin/tiff2pdf /var/spool/asterisk/fax/${tempfax}.tiff -o /var/spool/asterisk/fax/${tempfax}.pdf)
exten => 2193,12,System(echo "Принят факс" | mailx -s "fax" -a /var/spool/asterisk/fax/${tempfax}.pdf dyuryagin.ms@transasia.ru)
exten => 2193,13,Wait(1)
exten => 2193,14,Goto(internal,2198,1)
Первую страницу принимает нормально, а вот после перевода обратно на оператора, последующие страницы не принемаются, хотя в логах вроде прием идет, может можно как-то по другому реализовать прием нескольких страниц?
Код:
-- Executing [2198@IVR:1] Goto("SIP/di1-00000294", "internal,2198,1") in new stack
-- Goto (internal,2198,1)
-- Executing [2198@internal:1] Answer("SIP/di1-00000294", "") in new stack
-- Executing [2198@internal:2] Set("SIP/di1-00000294", Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.