Context for scripts (incoming calls)

This is very simple. Set your trunk context to from-trunk-preprocess and then create a context in extensions_custom.conf with

[from-trunk-preprocess]
exten => _.,1,NoOp(Entering user defined context from-trunk-preprocess in extensions_custom.conf)
exten => _.,n,  <whatever>
; whatever additional lines you need ending with ...
exten => _.,n,Goto(from-trunk,${EXTEN},1)
2 Likes