Asteriskο
DIDWW SIP Trunks can be used with Asterisk3CX IP PBX for Inbound calls. The following guide will explain how to configure Asterisk to work with DIDWW Voice-IN service.
extensions.conf:
[from-didww]
exten => _X.,1,Ringing
exten => _X.,n,Answer
exten => _X.,n,Echo
exten => _X.,n,Wait(600)
exten => _X.,n,Hangup
Inbound Trunk Exampleο
sip.conf:
[didww-ny]
host=46.19.209.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
[didww-fra]
host=46.19.210.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
[didww-la]
host=46.19.212.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
[didww-mia]
host=46.19.213.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
[didww-sg]
host=46.19.214.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
[didww-hk]
host=46.19.215.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=invite,port
nat=never
allow=all
Outbound Trunk Exampleο
sip.conf:
[didww-outbound]
type=peer
dtmfmode=rfc2833
dtmf=rfc2833
fromuser=DID number
auth=username:password@out.didww.com
secret=pasword
host=out.didww.com
fromdomain=asterisk IP address
Note
If asterisk will not be able to find extension within given context you will get an unhelpful No such context/extension debug error.
Thus, itβs better to use catch-all extension pattern _X.
during debugging