Skip to content

Instantly share code, notes, and snippets.

@alcabanillas-engh
Created November 22, 2008 18:28
Show Gist options
  • Save alcabanillas-engh/27910 to your computer and use it in GitHub Desktop.
Save alcabanillas-engh/27910 to your computer and use it in GitHub Desktop.
; Context created to support click-to-call functionality
;
;Context for the customer connection
[pbx_click_to_call]
exten => _X.,1,AGI(agi://localhost)
exten => _X.,n,Hangup
;Context for the agent connection
[local_click_to_call]
exten => _X.,1,Dial(SIP/${EXTEN}@avaya)
exten => _X.,n,Hangup
[destination_click_to_call]
exten => _X.,1,AGI(agi://localhost)
exten => _X.,n,Dial(SIP/${EXTEN:3}@avaya)
exten => _X.,n,Hangup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment