"Call to extension +49162... rejected because extension not found in context 'interna' - but call to +49175... works ?!

Hi all:

I want to make an outgoing call to +49162… - yet this call is rejected with the following error message:

NOTICE[5519]: res_pjsip_session.c:4041 new_invite: 202: Call (UDP:192.168.2.52:5060) to extension '+49162......' rejected because extension not found in context 'internal'.

A call to +49175… does succeed:

   -- Executing [+49175......@internal:1] Verbose("PJSIP/202-00000053", "Ausgehender Anruf an +49175...... ...") in new stack
Ausgehender Anruf an +49175...... ...
    -- Executing [+49175......@internal:2] Goto("PJSIP/202-00000053", "outgoing,+49175......,1") in new stack
    -- Goto (outgoing,+49175......,1)
    -- Executing [+49175......@outgoing:1] Dial("PJSIP/202-00000053", "PJSIP/telekom_93......_endpoint/sip:0175......@tel.t-online.de,60") in new stack
    -- Called PJSIP/telekom_93......_endpoint/sip:0175......@tel.t-online.de
    -- PJSIP/telekom_93......_endpoint-00000054 is making progress passing it to PJSIP/202-00000053
       > 0x7f10ec063b90 -- Strict RTP learning after remote address set to: 192.168.2.52:12366
       > 0x7f10ec063b90 -- Strict RTP switching to RTP target address 192.168.2.52:12366 as source
    -- PJSIP/telekom_93......_endpoint-00000054 is ringing

So, I tried to see what asterisk thinks my context internal does look like:

goedevm004*CLI> dialplan show internal
[ Context 'internal' created by 'pbx_config' ]
Autohints support enabled
  '200' =>          hint: PJSIP/200                               [pbx_config]
                    1. Dial(PJSIP/200)                            [extensions.conf:86]
                    2. Hangup()                                   [extensions.conf:87]
  '201' =>          1. Dial(PJSIP/201)                            [extensions.conf:91]
                    2. Hangup()                                   [extensions.conf:92]
  '202' =>          hint: PJSIP/202                               [pbx_config]
                    1. Dial(PJSIP/202)                            [extensions.conf:96]
                    2. Hangup()                                   [extensions.conf:97]
  '204' =>          hint: PJSIP/204                               [pbx_config]
                    1. Dial(PJSIP/204)                            [extensions.conf:101]
                    2. Hangup()                                   [extensions.conf:102]
  '300' =>          1. Dial(PJSIP/200&PJSIP/201&PJSIP/202&PJSIP/901) [extensions.conf:112]
                    2. Hangup()                                   [extensions.conf:113]
  '5200' =>         1. VoiceMailMain(5200@VoiceMail1,s)           [extensions.conf:116]
  '5201' =>         1. VoiceMailMain(5201@VoiceMail1,s)           [extensions.conf:117]
  '5202' =>         1. VoiceMailMain(5202@VoiceMail1,s)           [extensions.conf:118]
  '555' =>          1. Verbose(TEST BLACKLIST)                    [extensions.conf:123]
                    2. Set(${CALLERID(num)}=555)                  [extensions.conf:124]
                    3. Verbose(Caller ID(all): ${CALLERID(all)})  [extensions.conf:125]
                    4. GotoIf($[${BLACKLIST()}]?blacklisted,1)    [extensions.conf:126]
                    5. Dial(PJSIP/901,30)                         [extensions.conf:127]
                    6. Hangup()                                   [extensions.conf:128]
  '5901' =>         1. VoiceMailMain(5901@VoiceMail1,s)           [extensions.conf:119]
  '901' =>          1. Dial(PJSIP/901)                            [extensions.conf:106]
                    2. Hangup()                                   [extensions.conf:107]
  'blacklisted' =>  1. Verbose(${CALLERID(num)} ist blacklisted und wird abgewiesen!) [extensions.conf:130]
                    2. Playback(goodbye)                          [extensions.conf:131]
                    3. Hangup()                                   [extensions.conf:132]
  'telekom_93...._endpoint' => hint: PJSIP/telekom_93...._endpoint           [pbx_config]
  '_+X.' =>         1. Verbose(Ausgehender Anruf an ${EXTEN} ...) [extensions.conf:79]
                    2. Goto(outgoing,${EXTEN},1)                  [extensions.conf:80]
  '_0X.' =>         1. Verbose(Ausgehender Anruf an ${EXTEN:1} ...) [extensions.conf:76]
                    2. Goto(outgoing,${EXTEN:1},1)                [extensions.conf:77]

-= 15 extensions (33 priorities) in 1 context. =-

Now - I can’t see what’s different between +49162… and +49175… - Do you gurus see a mistake I made? Any further info needed? Thanks in advance for any idea, hint, advice …

Best,
Frank DG1SG

Please show us the

outgoing

context.

Why is an ‘outgoing’ call executing in the ‘internal’ context?

A console log snippet showing a failed attempt may yield clues.

Because they are using “internal” for what FreePBX would call from-internal.

They have already provided one:

It’s failing to find a priority 1 for the extension, so it doesn’t produce much output.

Update: The culprit was an unprintable character in the number string of +49162… - once I carefully examined the log I saw some “%EC%…:” as part of the number. Deleted the number/ endpoint and typed in the data again - now all is working.

Thanks a lot to @david551, @sedwards, @EkFudrek for looking into this issue!
Closing the issue now…