The following guide will explain how to set new DID number on Asterisk. In the following explanation we will use DID number 972775654199 for example, this DID number will be forwarded to the internal SIP extension 100.
Your Asterisk configuration files should look as follows:
sip.conf:
[46.19.209.10]
host=46.19.209.10
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.11]
host=46.19.209.11
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.12]
host=46.19.209.12
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.13]
host=46.19.209.13
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.14]
host=46.19.209.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.15]
host=46.19.209.15
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.75]
host=46.19.209.75
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.76]
host=46.19.209.76
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.77]
host=46.19.209.77
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.78]
host=46.19.209.78
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.79]
host=46.19.209.79
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.209.80]
host=46.19.209.80
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.10]
host=46.19.210.10
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.11]
host=46.19.210.11
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.12]
host=46.19.210.12
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.13]
host=46.19.210.13
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.14]
host=46.19.210.14
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.15]
host=46.19.210.15
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.75]
host=46.19.210.75
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.76]
host=46.19.210.76
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.77]
host=46.19.210.77
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.78]
host=46.19.210.78
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.79]
host=46.19.210.79
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
[46.19.210.80]
host=46.19.210.80
dtmfmode=rfc2833
dtmf=rfc2833
type=peer
context=from-didww
insecure=very
nat=never
allow=all
extensions.conf:
[from-didww]
exten=> 972775654199,1,Dial(SIP/100)
Please find more information about DIDWW Configuration Scripts

How to Set SIP Trunk Configuration for DIDWW DID Number on Asterisk?