Skip to content

Instantly share code, notes, and snippets.

@whi-tw
Created May 2, 2017 10:11
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 whi-tw/d106d19830fe0384c902a06acd6c1526 to your computer and use it in GitHub Desktop.
Save whi-tw/d106d19830fe0384c902a06acd6c1526 to your computer and use it in GitHub Desktop.
Asterisk redial until connect extension
[from-internal-custom]
include => to-destination_name
[to-destination_name]
exten => 3627,1(dialing),Dial(SIP/**phone_number**@**trunk_name)
exten => 3627,n,GotoIf($["${DIALSTATUS}" = "BUSY"]?busy:completed)
exten => 3627,n(busy),Playback(beep)
exten => 3627,n,Goto(dialing)
exten => 3627,n(completed),Hangup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment