VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

Asterisk spandsp отправка факса.

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Ответить
Disabledg
Сообщения: 10
Зарегистрирован: 08 сен 2014, 10:12

Asterisk spandsp отправка факса.

Сообщение Disabledg »

Здравствуйте! Подскажите существуют ли модули для freepbx / ucp с возможностью отправки факса из веб интерфейса? Имеется FreePBX 12.0.1rc12 + asterisk 12.5.0 + spandsp 20110122 075024 факс и принимается и отправляется ( для проверки использовался FaxVoip приложение ). Теперь стоит задача что бы пользователь мог не используя технику отправить факс из веб морды. К сожалению нашел подобный мод только для digium - http://hiousi.tumblr.com/post/274568494 ... ser-portal . Ну и он конечно же не работает).
Disabledg
Сообщения: 10
Зарегистрирован: 08 сен 2014, 10:12

Re: Asterisk spandsp отправка факса.

Сообщение Disabledg »

Код: Выделить всё

[2014-09-08 15:22:07] VERBOSE[8221] pbx_spool.c: -- Attempting call on Local/84842740651@from-internal for s@outboundfax:1 (Retry 1)
[2014-09-08 15:22:07] VERBOSE[8222] dial.c: -- Called 84842740651@from-internal
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:1] Macro("Local/84842740651@from-internal-0000001d;2", "user-callerid,LIMIT,EXTERNAL,") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:1] Set("Local/84842740651@from-internal-0000001d;2", "TOUCH_MONITOR=1410175327.82") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:2] Set("Local/84842740651@from-internal-0000001d;2", "AMPUSER=") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("Local/84842740651@from-internal-0000001d;2", "0?report") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("Local/84842740651@from-internal-0000001d;2", "1?Set(REALCALLERIDNUM=)") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:5] Set("Local/84842740651@from-internal-0000001d;2", "AMPUSER=") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("Local/84842740651@from-internal-0000001d;2", "0?limit") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:7] Set("Local/84842740651@from-internal-0000001d;2", "AMPUSERCIDNAME=") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("Local/84842740651@from-internal-0000001d;2", "1?report") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Goto (macro-user-callerid,s,15)
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("Local/84842740651@from-internal-0000001d;2", "1?continue") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Goto (macro-user-callerid,s,28)
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:28] Set("Local/84842740651@from-internal-0000001d;2", "CALLERID(number)=") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:29] Set("Local/84842740651@from-internal-0000001d;2", "CALLERID(name)=") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:30] Set("Local/84842740651@from-internal-0000001d;2", "CDR(cnum)=") in new stack
[2014-09-08 15:22:07] WARNING[5402] func_cdr.c: CDR requires a value (CDR(variable)=value)
)[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:31] Set("Local/84842740651@from-internal-0000001d;2", "CDR(cnam)=") in new stack
[2014-09-08 15:22:07] WARNING[5402] func_cdr.c: CDR requires a value (CDR(variable)=value)
)[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [s@macro-user-callerid:32] Set("Local/84842740651@from-internal-0000001d;2", "CHANNEL(language)=en") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:2] NoCDR("Local/84842740651@from-internal-0000001d;2", "") in new stack
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:3] Progress("Local/84842740651@from-internal-0000001d;2", "") in new stack
[2014-09-08 15:22:07] VERBOSE[8222] dial.c: -- Local/84842740651@from-internal-0000001d;1 is making progress
[2014-09-08 15:22:07] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:4] Wait("Local/84842740651@from-internal-0000001d;2", "1") in new stack
[2014-09-08 15:22:08] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:5] Progress("Local/84842740651@from-internal-0000001d;2", "") in new stack
[2014-09-08 15:22:08] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:6] Playback("Local/84842740651@from-internal-0000001d;2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
[2014-09-08 15:22:08] VERBOSE[8222] dial.c: -- Local/84842740651@from-internal-0000001d;1 is making progress
[2014-09-08 15:22:08] VERBOSE[8223][C-0000001a] file.c: -- <Local/84842740651@from-internal-0000001d;2> Playing 'silence/1.gsm' (language 'en')
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] file.c: File cannot-complete-as-dialed does not exist in any format
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] file.c: Unable to open cannot-complete-as-dialed (format (slin)): No such file or directory
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] app_playback.c: Playback failed on Local/84842740651@from-internal-0000001d;2 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] file.c: File check-number-dial-again does not exist in any format
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] file.c: Unable to open check-number-dial-again (format (slin)): No such file or directory
[2014-09-08 15:22:09] WARNING[8223][C-0000001a] app_playback.c: Playback failed on Local/84842740651@from-internal-0000001d;2 for silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer
[2014-09-08 15:22:09] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:7] Wait("Local/84842740651@from-internal-0000001d;2", "1") in new stack
[2014-09-08 15:22:10] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [84842740651@from-internal:8] Congestion("Local/84842740651@from-internal-0000001d;2", "20") in new stack
[2014-09-08 15:22:10] VERBOSE[8222] dial.c: -- Local/84842740651@from-internal-0000001d;1 is circuit-busy
[2014-09-08 15:22:10] VERBOSE[8223][C-0000001a] pbx.c: == Spawn extension (from-internal, 84842740651, 8) exited non-zero on 'Local/84842740651@from-internal-0000001d;2'
[2014-09-08 15:22:10] VERBOSE[8223][C-0000001a] pbx.c: -- Executing [h@from-internal:1] Hangup("Local/84842740651@from-internal-0000001d;2", "") in new stack
[2014-09-08 15:22:10] VERBOSE[8223][C-0000001a] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/84842740651@from-internal-0000001d;2'
[2014-09-08 15:22:10] NOTICE[8221] pbx_spool.c: Call failed to go through, reason (8) Congestion (circuits busy)

Код: Выделить всё

;[outboundfax]
exten => s,1,Set(FAXOPT(filename)=${FAXFILE})
exten => s,n,Set(FAXOPT(ecm)=yes)
exten => s,n,Set(FAXOPT(headerinfo)=${FAXHEADER})
exten => s,n,Set(FAXOPT(localstationid)=${LOCALID})
exten => s,n,Set(FAXOPT(maxrate)=14400)
exten => s,n,Set(FAXOPT(minrate)=2400)
exten => s,n,SendFAX(${FAXFILE},d)
exten => s,n,System(${ASTVARLIBDIR}/bin/sendfaxnotify.php INIT "${EMAIL}" "${DESTINATION}" "${TIMESTAMP}" "NO_STATUS" "NO_PAGES")
exten => h,1,NoOp(FAXOPT(ecm) : ${FAXOPT(ecm)})
exten => h,n,NoOp(FaxStatus : ${FAXSTATUS})
exten => h,n,NoOp(FaxStatusString : ${FAXSTATUSSTRING})
exten => h,n,NoOp(FaxError : ${FAXERROR})
exten => h,n,NoOp(RemoteStationID : ${REMOTESTATIONID})
exten => h,n,NoOp(FaxPages : ${FAXPAGES})
exten => h,n,NoOp(FaxBitRate : ${FAXBITRATE})
exten => h,n,NoOp(FaxResolution : ${FAXRESOLUTION})
exten => h,n,System(${ASTVARLIBDIR}/bin/sendfaxnotify.php NOTIFY "${EMAIL}" "${DESTINATION}" "${TIMESTAMP}" "${FAXSTATUSSTRING}" "${FAXPAGES}")
; end of outboundfax context

Код: Выделить всё

var $outbound_route = "from-internal";
var $outboundfax_context = "outboundfax"; 
"Channel: Local/номер
"MaxRetries: 1\n" .
"RetryTime: 60\n" .
"WaitTime: 60\n"  .
"Archive: yes\n"  .
"Context: ".
$this->outboundfax_$"Extension: s\n" .
"Priority: 1\n" .
Аватара пользователя
zzuz
Сообщения: 1658
Зарегистрирован: 21 сен 2010, 13:33
Контактная информация:

Re: Asterisk spandsp отправка факса.

Сообщение zzuz »

А что за ерунда в последнем коде? случайно домашнее животное прошлось по клавиатуре?
По вопросу. Вы звоните на номер 84842740651 , для которого нет правил исходящей маршрутизации. Причем тут факс?
Линия24 - Системы Массового Телефонного Обслуживания
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH