Probléme de configuration hylafax+iaxmodem avec asterisk
Bonjour,
j'ai un problème lors de la configuration de hylafax et iaxmodem avec asterisk.
voila la configuration que j'ai utilisé.
merci de voir d’où il viens le problème.
iax.conf:
[general]
bindport=4569
bindaddr=0.0.0.0
disallow=all
allow=alaw
allow=ulaw
minregexpire = 60
maxregexpire = 300
bandwidth=high
[iaxmodem0]
type=friend
secret=password
port=4570
host=dynamic
requirecalltoken=no
context=fax-out
;context=fax-in
disallow=all
allow=alaw
;allow=ulaw
;permit=127.0.0.1/255.255.255.255
[iaxmodem1]
type=friend
secret=password
port=4571
host=dynamic
requirecalltoken=no
;context=fax-out
context=fax-in
disallow=all
allow=alaw
;allow=ulaw
;permit=127.0.0.1/255.255.255.255
extension.conf
[fax-in]
exten => _X.,1,Macro(fax_entrant,iaxmodem1)
[macro-fax_entrant]
exten => s,1,Dial(IAX2/${ARG1})
exten => s,n,Busy()
exten => s,n,Hangup()
[fax-out]
exten => _X.,1,Macro(fax_sortant,iaxmodem0)
[macro-fax_sortant]
exten => s,1,Dial(IAX2/${ARG1},40,r)
;exten => s,n,Busy()
exten => s,n,Congestion()
exten => s,n,Hangup()
/etc/iaxmodem/ttyIAX0:
device /dev/ttyIAX0
owner uucp:uucp
mode 660
port 4570
refresh 60
server 127.0.0.1
peername iaxmodem0
secret password
codec alaw
cidnumber 53770xxxx
/etc/iaxmodem/ttyIAX1:
device /dev/ttyIAX1
owner uucp:uucp
mode 660
port 4571
refresh 60
server 127.0.0.1
peername iaxmodem1
secret password
codec alaw
cidnumber 53770xxxx
# ps -aux |grep fax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
uucp 2612 0.3 0.1 7532 2100 pts/2 S 16:08 0:06 /usr/sbin/faxgetty ttyIAX0
uucp 4896 0.5 0.1 7488 1896 pts/3 S 16:19 0:05 /usr/sbin/faxgetty ttyIAX1
uucp 4979 0.0 0.1 7084 1476 ? Ss 16:20 0:00 /usr/sbin/faxq
uucp 4982 0.0 0.1 5364 1692 ? S 16:20 0:00 /usr/sbin/hfaxd -d -i 4559
ps -aux |grep iax
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 5030 0.0 0.0 2640 332 ? Ss 16:20 0:00 /usr/bin/iaxmodem
uucp 5031 0.0 0.0 2892 1108 ? S 16:20 0:00 /usr/bin/iaxmodem
uucp 5032 0.0 0.0 2892 1108 ? S 16:20 0:00 /usr/bin/iaxmodem
-- Accepting AUTHENTICATED call from 127.0.0.1:
> requested format = alaw,
> requested prefs = (),
> actual format = alaw,
> host prefs = (alaw),
> priority = mine
-- Executing [053770xxxx@fax-out:1] Macro("IAX2/iaxmodem0-235", "fax_sortant,iaxmodem0") in new stack
-- Executing [s@macro-fax_sortant:1] Dial("IAX2/iaxmodem0-235", "IAX2/iaxmodem0,40,r") in new stack
-- Called IAX2/iaxmodem0
[Nov 19 16:31:54] WARNING[1322]: chan_iax2.c:10724 socket_process: Call rejected by 127.0.0.1: Busy
-- Hungup 'IAX2/iaxmodem0-3523'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-fax_sortant:2] Congestion("IAX2/iaxmodem0-235", "") in new stack
== Spawn extension (macro-fax_sortant, s, 2) exited non-zero on 'IAX2/iaxmodem0-235' in macro 'fax_sortant'
== Spawn extension (fax-out, 053770xxxx, 1) exited non-zero on 'IAX2/iaxmodem0-235'
-- Hungup 'IAX2/iaxmodem0-235'
lyazidi-virtual-machine*CLI>