Skip to content

Instantly share code, notes, and snippets.

@ipoddubny
Created July 31, 2018 14:20
Show Gist options
  • Save ipoddubny/03cdc347dbe19e78be92570a2be87b14 to your computer and use it in GitHub Desktop.
Save ipoddubny/03cdc347dbe19e78be92570a2be87b14 to your computer and use it in GitHub Desktop.
Asterisk loopback switch usage example
; CompanyID is a channel variable always present when calling someFunction,s,1
[someFunction]
exten => s,1,WaitExten(10)
exten => _X,1,... ; standard handling of 1,2,3,4,5 - common for any company ID
; ...
eswitch => Loopback/${EXTEN}@someFunction_custom_${CompanyID}
[someFunction_custom_1]
exten => 101,...
exten => 102,...
[someFunction_custom_9000]
exten => 101,...
exten => 123,...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment