context Inbound-Dialplan { s => { NoOp(); Answer(); if ("${CALLERID(NUM):1}" == "1") { NoOp(); } switch ("${CALLERID(NUM):1:4}") { case "248" : case "800" : NoOp(); break; default: break; } Hangup(); } } [ Context 'Inbound-Dialplan' created by 'pbx_ael' ] 's' => 1. MSet(LOCAL(~~EXTEN~~)=${EXTEN}) [pbx_ael] 2. MSet(LOCAL(~~EXTEN~~)=${~~EXTEN~~}) [pbx_ael] 3. NoOp() [pbx_ael] 4. Answer() [pbx_ael] 5. GotoIf($["${CALLERID(NUM):1}" == "1"]?6:7) [pbx_ael] 6. NoOp() [pbx_ael] 7. NoOp(Finish if_Inbound-Dialplan_390) [pbx_ael] 8. Goto(sw_391_"${CALLERID(NUM):1:4}",10) [pbx_ael] 9. NoOp(Finish switch_Inbound-Dialplan_391) [pbx_ael] 10. Hangup() [pbx_ael] 'sw_391_' => 10. Goto(sw_391_.,10) [pbx_ael] 'sw_391_"248"' => 10. Goto(sw_391_"800",10) [pbx_ael] 'sw_391_"800"' => 10. NoOp() [pbx_ael] 11. Goto(s,9) [pbx_ael] '_sw_391_.' => 10. Goto(s,9) [pbx_ael] -= 5 extensions (15 priorities) in 1 context. =-