Twilio + asterisk + fax

I want to solve the following quickly.

I want to receive faxes via asterisk using SIP trunking on twilio.
And I want to convert it to PDF with asterisk and save it.
However, incoming calls from twilio to asterisk do not result in a 404 error.
What should I configure in sip.conf and extensions.conf?

Also, can I set someone to check the version of asterisk from the external network?

help me.

The version of asterisk uses 13.27.0.

What is the configuration you are using now? What is the console output?

The sip.conf, extensions.conf and message logs are as follows.
The ip address and phone number have been changed to xxx and yy.
In the settings below, I save in TIFF, but I really want to save in PDF.

/var/log/asterisk/message

[Jun 14 13:52:54] WARNING[7762] chan_sip.c: Retransmission timeout reached on transmission xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx for seqno 1 (Critical Response) – See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
[Jun 14 13:52:55] ERROR[7762][C-00013caa] netsock2.c: getaddrinfo(“ip-xxx-xxx-xxx-xxx”, “(null)”, …): No address associated with hostname
[Jun 14 13:52:55] WARNING[7762][C-00013caa] acl.c: Unable to lookup ‘ip-xxx-xxx-xxx-xxx’
[Jun 14 13:52:55] NOTICE[7762][C-00013caa] chan_sip.c: Call from ‘’ (xxx.xxx.xxx.xxx:5060) to extension ‘+yyxxxxxxxxxx’ rejected because extension not found in context ‘default’.
[Jun 14 13:52:56] ERROR[7762][C-00013cab] netsock2.c: getaddrinfo(“ip-xxx-xxx-xxx-xxx’”, “(null)”, …): No address associated with hostname
[Jun 14 13:52:56] WARNING[7762][C-00013cab] acl.c: Unable to lookup ‘ip-xxx-xxx-xxx-xxx’’

sip.conf

[general]
context=default
port=5060
bindaddr=0.0.0.0
nat=yes

srvlookup=yes
udpenable=yes
tcpenable=yes
preferred_codec_only=yes
allowguest=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
externip=xxx.xxx.xxx.xxx
localnet=xxx.xxx.xxx.xxx/xx

twilio-trunk
type=user
dtmfmode=rfc2833
canreinivite=no
insecure=port,invite
faxdetect=yes
context=yes
disallow=all

twilio0
host=xxxxxxxxxxxxx.twilio.com
defaultuser=xxxxxxxxx
secret=xxxxxxxxxxxxx
fromuser=+yyxxxxxxxxxx

extensions.conf

[faxin]
exten => _+yyxxxxxxxxxx,1,NoOp(Faxin-{EXTEN}) same => n,Set(FAXOPT(ecm)=yes) same => n,Set(FAXOPT(maxrate)=14400) same => n,Set(FAXOPT(minrate)=2400) same => n,Set(FAXOPT(modem)=v17,v27,v29) same => n,Set(TIFF={EXTEN}-{UNIQUEID}.tif) same => n,ReceiveFax(/tmp/{TIFF})
same => n,Hangup()
; Hangup.
exten => h,1,NoOp(Hangup in-fax)
same => n,NoOp(FAX Status: {FAXSTATUS}) same => n,NoOp(FAXOPT(ecm): {FAXOPT(ecm)})
same => n,NoOp(FAXOPT(filename): {FAXOPT(filename)}) same => n,NoOp(FAXOPT(headerinfo): {FAXOPT(headerinfo)})
same => n,NoOp(FAXOPT(localstationid): {FAXOPT(localstationid)}) same => n,NoOp(FAXOPT(maxrate): {FAXOPT(maxrate)})
same => n,NoOp(FAXOPT(minrate): {FAXOPT(minrate)}) same => n,NoOp(FAXOPT(pages): {FAXOPT(pages)})
same => n,NoOp(FAXOPT(rate): {FAXOPT(rate)}) same => n,NoOp(FAXOPT(remotestationid): {FAXOPT(remotestationid)})
same => n,NoOp(FAXOPT(resolution): {FAXOPT(resolution)}) same => n,NoOp(FAXOPT(status): {FAXOPT(status)})
same => n,NoOp(FAXOPT(statusstr): {FAXOPT(statusstr)}) same => n,NoOp(FAXOPT(error): {FAXOPT(error)})

Are there any problems with what is written in config?
Is there a missing config?
I am waiting for your advice.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.