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

IAX

iax.conf:

[didww-iax-us]
type=user
permit=46.19.209.42
context=from-didww

[didww-iax-eu]
type=user
permit=46.19.210.42
context=from-didww

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 IAX2 debug error. Thus, it’s better to use catch-all extension pattern _X. during debugging

You can find detailed explanation of asterisk IAX authentication here.