Skip to content

Instantly share code, notes, and snippets.

@marks
Created July 27, 2009 03:41
Show Gist options
  • Select an option

  • Save marks/156012 to your computer and use it in GitHub Desktop.

Select an option

Save marks/156012 to your computer and use it in GitHub Desktop.
[agents]
exten => _XXXXXXX,2,Dial(${PSTN_TRUNKS}/1512${EXTEN}||iM(ackcall))
[macro-ackcall]
exten=>s,1,Wait(.8)
exten=>s,2,Set(TIMEOUT(absolute)=12)
exten=>s,3,Read(ACCEPT|mcc-agent-ackcall|1) ; "...Press zero to be connected with caller, or any number to leave the caller in queue..."
exten=>s,4,Gotoif($[${ACCEPT}=0]?50:30)
exten=>s,30,Set(MACRO_RESULT=CONTINUE) ;hangup!
exten=>s,50,Set(TIMEOUT(absolute)=0) ;connect!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment