Реально ли реализовать такую схему? Если да, то как заставить Астер детектировать факс и далать переход на отправку факса?Ниже куски конфигов. Циска и астер оба мои.
sip.conf
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=g723
allow=g726
language=ru
faxdetect=yes
t38pt_udptl=yes,redundancy,maxdatagram=400
host=192.168.44.4
username=cisco5350
fromuser=80000000
fromdomain=192.168.44.77
callerid=80000000
nat=no
dtmfmode=rfc2833
insecure=port
canreinvite=no
context=incoming
qualify=no
;Set(DYNAMIC_FEATURES=fax_send)
fax_send => *3,callee,Macro(fax)
start=39601
udptlend=39999
T38FaxUdpEC = t38UDPRedundancy
T38FaxMaxDatagram = 400
udptlfecentries = 1
udptlfecspan = 3
t38pt_rtp=no
t38pt_tcp=no
exten => _XXXXXXX,1,Set(NUM=${NUMBER})
exten => _XXXXXXX,n,NoOp(${NUM})
exten => _XXXXXXX,n,Answer
exten => _XXXXXXX,n,Wait(1)
exten => _XXXXXXX,n,Playback(/var/lib/asterisk/sounds/ru/payrem)
exten => _XXXXXXX,n,Set(CDR(userfield)=${CDR(dst)}--${CDR(disposition)})
exten => _XXXXXXX,n,Hangup()
exten => failed,1,Set(NUM=${NUMBER})
exten => failed,n,NoOp(${NUM})
exten => failed,n,Set(CDR(userfield)=${CDR(dst)}--${CDR(disposition)})
exten => failed,n,Hangup()
exten => s,1,NoOp(************** SENDING FAX... *****************)
exten => s,n,System(/usr/bin/gs -dSAFER -dBATCH -dQUIET -sDEVICE=tiffg3 -sPAPERSIZE=a4 -r204x196 -dNOPAUSE -sOutputFile=/var/spool/asterisk/fax/Fax_Aster.tiff /var/spool/asterisk/fax/Fax_Aster.pdf)
exten => s,n,Set(LOCALSTATIONID=800000000)
exten => s,n,Set(LOCALHEADERINFO="XXXXXX.XXXXXXX")
exten => s,n,SendFAX(/var/spool/asterisk/fax/Fax_Aster.tiff)
exten => s,n,Hangup()
Asterisk 1.8.7.1 built by root @ ххххх on a x86_64 running Linux on 2014-09-26 13:29:00 UTC
CLI> module show like fax
Module Description Use Count
res_fax.so Generic FAX Applications 1
res_fax_spandsp.so Spandsp G.711 and T.38 FAX Technologies 0
2 modules loaded