Forwarding a DID to an Extension using Asterisk

1 min readVoice

This is a quick and simple guide on how you can setup your asterisk instance to forward a DID acquired from the Atomic platform to an extension within your Asterisk instance.

You will need to edit the extensions.conf file in your Asterisk instance.

Assuming that you want the DID 61283176200 to be forwarded to the extension 1001.

plain text
[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]

[incoming]

exten => 61283176200,1,Dial(SIP/1001)
exten => 61283176200,n,Hangup

If you want the DID to be forwarded to a multiple extensions (1001, 1002 and 1003:

plain text
[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]

[incoming]

exten => 61283176200,1,Dial(SIP/1001&SIP/1002&SIP/1003)
exten => 61283176200,n,Hangup

Once you have edited the file, just save it and reload your Asterisk instance for the configuration to take effect.

Was this article helpful?

Related articles

2-way SMSCLI/CLD TranslationVoicemailAdding / Removing Channels

Still stuck? Ask AVA

Our AI assistant can help with any question

Back to Voice