Skip to content

Instantly share code, notes, and snippets.

@NickBouwhuis
Created February 20, 2022 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NickBouwhuis/7dc8cbbae84365f383f01c51bb629933 to your computer and use it in GitHub Desktop.
Save NickBouwhuis/7dc8cbbae84365f383f01c51bb629933 to your computer and use it in GitHub Desktop.
Asterisk - Starter extensions.conf for use with phones and a provider
[from-internal]
exten = 200,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n,Hangup()
exten = _[+X].,1,Noop (Outgoing call to ${EXTEN} via example)
same.= n,Dial(PJSIP/${EXTEN}@example)
same = n,Hangup()
[from-example]
exten = 31141231231,1,Noop(Incoming call on example trunk from ${CALLERID(num)})
same = n,Dial(PJSIP/6001)
same = n,Hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment