How to include outbound context for myphones?

From the Asterisk console, this is sufficient (with dur being a remote virtual server) so far as it goes, for inbound and outbound:

dur*CLI> 
dur*CLI> dialplan show inbound 
[ Context 'inbound' created by 'pbx_config' ]
  '_+1NXXNXXXXXX' => 1. NoOp()                                     [pbx_config]
                    2. Dial(SIP/thufir,60)                        [pbx_config]
                    3. Hangup()                                   [pbx_config]

-= 1 extension (3 priorities) in 1 context. =-
dur*CLI> 
dur*CLI> dialplan show outbound 
[ Context 'outbound' created by 'pbx_config' ]
  '_1NXXNXXXXXX' => 1. NoOp()                                     [pbx_config]
                    2. Set(CALLERID(name)=opm)                    [pbx_config]
                    3. Log(NOTICE, Dialing out from ${CALLERID(all)} to ${EXTEN:1} through ${TOLL}) [pbx_config]
                    4. Dial(${TOLL}/${EXTEN:1},60)                [pbx_config]
                    5. Playtones(congestion)                      [pbx_config]
                    6. Hangup()                                   [pbx_config]

-= 1 extension (6 priorities) in 1 context. =-
dur*CLI> 
dur*CLI> dialplan show myphones 
[ Context 'myphones' created by 'pbx_config' ]
  '1000' =>         1. Dial(SIP/1000)                             [pbx_config]
                    2. Hangup()                                   [pbx_config]
  '1001' =>         1. Dial(SIP/1001)                             [pbx_config]
                    2. Hangup()                                   [pbx_config]
  '201' =>          1. Answer()                                   [pbx_config]
                    2. Playback(tt-monty-knights)                 [pbx_config]
                    3. Hangup()                                   [pbx_config]
  '202' =>          1. Answer()                                   [pbx_config]
                    2. Playback(welcome)                          [pbx_config]
                    3. Playback(demo-echotest)                    [pbx_config]
                    4. Echo()                                     [pbx_config]
                    5. Playback(demo-echodone)                    [pbx_config]
                    6. Playback(vm-goodbye)                       [pbx_config]
                    7. Hangup()                                   [pbx_config]
  '4000' =>         1. Playback(tt-monkeys)                       [pbx_config]
  '5000' =>         1. Playback(tt-monkeysintro)                  [pbx_config]
  '555' =>          1. Playback(hello-world)                      [pbx_config]
                    2. Playback(echo-test)                        [pbx_config]
                    3. Echo()                                     [pbx_config]
                    4. Playback(demo-echodone)                    [pbx_config]
  '6001' =>         1. Dial(SIP/demo_alice,20)                    [pbx_config]
  '6002' =>         1. Dial(SIP/demo_bob,20)                      [pbx_config]
  '6003' =>         1. Dial(SIP/thufir,20)                        [pbx_config]
  '6004' =>         1. Dial(SIP/hawat,20)                         [pbx_config]
  '6005' =>         1. Dial(SIP/piter,20)                         [pbx_config]
  Include =>        'inbound'                                     [pbx_config]

-= 12 extensions (25 priorities) in 1 context. =-
dur*CLI> 

However, I’ve been dialing as:

dur*CLI> channel originate SIP/thufir extension 18003569377@outbound

When I add include => outbound to myphones it breaks incoming calls. Why?

Don’t include the inbound context, only the outbound.

Can you clarify and expand? Unless I really got things reversed, I included inbound and it worked fine (I think). But, including outbound broke the ability to receive calls.

(I took down the server so that I can setup fail2ban.)

If you include inbound and outbound you are using the same extension in the same context. From your dialplan you don’t need to include the inbound context. So remove the include statement for the inbound and include only the outbound.