; ; Context for Local Calls ; [justin] exten => 1001,Dial(IAX2/somewhere||t) exten => 1002,Dial(IAX2/someuser@somebox/1234||t) exten => 1003,Dial(SIP/somebody||t) ; ; Context for something else ; [blah] exten => 111,blah ; ; Context to force hangup activity ; [hangup] include => justin include => blah exten => h,1,DoSomething() ; ; Context NOT to force hangup activity ; [nohangup] include => justin include => blah ; ; Context to match everything non-local/other ; [everythingelse] exten => _.,1,Goto(hangup,${EXTEN},1) ; ; Context to determine what kind of call this is.. ; [default] include => everythingelse exten => 111,1,Goto(nohangup,${EXTEN},1) ; local call, no hangup action exten => _XXXX,1,Goto(nohangup,${EXTEN},1) ; local call, no hangup action exten => _9.,1,Goto(hangup,${EXTEN},1) ; non-local, hangup action.