Проблемы с установкой, настройкой и работой системных и сетевых программ.
Модераторы: GRooVE, alexco
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
-
Гость
- проходил мимо
Непрочитанное сообщение
Гость » 2012-04-18 13:14:27
2-ой день бьюсь - в чем засада не пойму.
IAXModem
PBX# cd /usr/local/etc/iaxmodem
PBX# cat ttyIAX17001
device /dev/ttyIAX17001
owner uucp:uucp
mode 660
port 44572
refresh 60
server 127.0.0.1
peername 17001
secret 111
cidname a.ivanov(FAX)
cidnumber 17001
codec slinear
конфиг IAX-peer в Asterisk-e
[17001]
type=friend
host=dynamic
secret=111
port=44572
context=FAX
disallow=all
allow=ulaw
allow=alaw
requirecalltoken=no
jitterbuffer=no
сам пир
PBX*CLI> iax2 show peers
Name/Username Host Mask Port Status
17001 127.0.0.1 (D) 255.255.255.255 40199 Unmonitored
1 iax2 peers [0 online, 0 offline, 1 unmonitored]
в ttys:
ttyIAX17001 "/usr/local/sbin/faxgetty" dialup on secure
в config.ttyIAX17001 Hylafax:
CountryCode: 1
AreaCode: 800
FAXNumber: +1.800.555.1414
LongDistancePrefix: 1
InternationalPrefix: 011
DialStringRules: etc/dialrules
ServerTracing: 0xFFF
SessionTracing: 0xFFF
RecvFileMode: 0600
LogFileMode: 0600
DeviceMode: 0600
RingsBeforeAnswer: 1
SpeakerVolume: off
GettyArgs: "-h %l dx_%s"
LocalIdentifier: "IAXmodem"
TagLineFont: etc/lutRS18.pcf
TagLineFormat: "From %%l|%c|Page %%P of %%T"
MaxRecvPages: 200
ModemType: Class1
Class1AdaptRecvCmd: AT+FAR=1
Class1TMConnectDelay: 400
ModemResetCmds: AT+VCID=1
PagerTTYParity: none
CallIDPattern: "NMBR="
CallIDPattern: "NAME="
CallIDPattern: "ANID="
CallIDPattern: "NDID="
в девах:
PBX# ll /dev/ttyIA*
lrwxr-xr-x 1 root wheel 10 Apr 18 15:19 /dev/ttyIAX17001 -> /dev/pts/2
при звонке:
PBX*CLI> iax2 show channels
Channel Peer Username ID (Lo/Rem) Seq (Tx/Rx) Lag Jitter JitBuf Format FirstMsg LastMsg
IAX2/17001-424 127.0.0.1 (None) 00424/05748 00003/00003 00000ms -0001ms 0000ms unknow Tx:NEW Rx:ACK
1 active IAX channel
в логе Hylafax:
PBX# cat ttyIAX17001
Listening to rings from modem
в логе iaxmodem:
PBX# cd /var/log/iaxmodem
PBX# cat ttyIAX17001
........................
[2012-04-18 15:18:17] Terminating on signal 15...
[2012-04-18 15:19:13] Removed old /dev/ttyIAX17001
Но при всем при этом факс я принять не могу...почему Hylafax не берет трубку?
Гость
-
Хостинг HostFood.ru
-
Хостинг HostFood.ru
Тарифы на хостинг в России, от 12 рублей:
https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.:
https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах:
https://www.host-food.ru/domains/
-
Гость
- проходил мимо
Непрочитанное сообщение
Гость » 2012-04-18 15:26:40
а теперь в
PBX# cd /var/log/iaxmodem
PBX# cat ttyIAX17001
.........................................................................................................
[2012-04-18 18:20:45] Terminating on signal 15...
[2012-04-18 18:21:43] Removed old /dev/ttyIAX17001
[2012-04-18 18:24:29] Unable to pass the full buffer onto the device file. 868 bytes of 1028 written: Resource temporarily unavailable
[2012-04-18 18:24:34] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:34] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:34] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:39] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:39] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:39] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:44] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:44] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:44] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:49] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:49] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:49] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:54] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:54] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:54] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:59] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
[2012-04-18 18:24:59] Unable to pass the full buffer onto the device file. -1 bytes of 4 written: Resource temporarily unavailable
[2012-04-18 18:24:59] Unable to pass the full buffer onto the device file. -1 bytes of 2 written: Resource temporarily unavailable
При всем при том все остальное не изменилось...
Гость
-
Гость
- проходил мимо
Непрочитанное сообщение
Гость » 2012-04-18 19:04:19
самое интересное что дело видимо в Hylafax-е...файл config.ttyIAX17001 у меня формируется скриптом - дергает инфу из АД. Но если config.ttyIAX17001 добавить по средствам faxaddmodem, то факс принимается ! Круто!!! Но!!! эт только на один раз - после история повторяется!!! Делаю faxaddmodem - факс принимаю!И опять затык!!
Гость