Asterisk extension '100' rejected because extension not found in context 'from-internal'

I am trying to configure my first sip server and ran in few problems. if i try a call i get the NOTICE chan_sip.c:26826 handle_request_invite: Call from ‘101’ (192.168.0…) to extension ‘100’ rejected because extension not found in context ‘from-internal’

my sip.conf is

[general]
context=default

[100]
type=friend
;username=100
;callerid=100
secret=4839
host=dynamic
allow=all
context=from-internal
;subscribecontext=dial
;qualify=yes
;directmedia=no
;call-limit=10

[101]
type=friend
;username=101
;callerid=101
secret=4832
host=dynamic
allow=all
context=from-internal
;subscribecontext=dial
;qualify=yes

ignore the commeted parts i tried few things in the last few days.

extension.conf

[from-internal]
exten => 100,1,Dial(SIP/100)
exten => 101,1,Dial(SIP/101)

On Monday 26 February 2024 at 10:41:51, TheKlaeys via Asterisk Community
wrote:

I am trying to configure my first sip server and ran in few problems. if i
try a call i get the NOTICE chan_sip.c

If you are setting up your first Asterisk server then you should not be using
chan_sip.

It is deprecated, unmaintained, and no longer exists in the current source
code.

I recommend you convert to PJSIP, which apart from anything else will mean
you’re far more likely to find people here who can help with problems.

Antony.


Tinned food was developed for the British Navy in 1813.

The tin opener was not invented until 1858.

                                               Please reply to the list;
                                                     please *don't* CC me.

to Pooh sry for the Reply first

Yes I found out about that when i already configured it but now i also tried something in PJSIP

[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0

[100]
type=endpoint
context=from-internal
allow=all
auth=100
aors=100

[100]
type=auth
auth_type=userpass
password=****
username=100

[100]
type=aor
max_contacts=1

[101]
type=endpoint
context=from-internal
allow=all
auth=101
aors=101

[101]
type=auth

What is the output of the Asterisk CLI command “dialplan show from-internal”?

*CLI> dialplan show from-internal[Feb 26 10:52:41] WARNING[1014]: db.c:360 ast_db_put: Couldn’t execute statement: SQL logic error
– Registered SIP ‘101’ at 192.168…
> Saved useragent “Linphone-Desktop/5.1.2 (ANB10) windows/10 Qt/5.15.2 LinphoneSDK/5.2.97” for peer 101

That’s not the complete output of the CLI command, though you may have permissions issues if the AstDB is failing like that or it is corrupt.

im logt in with the root user so i shouldnt have permission issues or not?

I Tried again now I get this

There is no existence of ‘from-internal’ context
Command ‘dialplan show from-internal’ failed.

That depends on what Asterisk is running as and what it has permissions to. Based on the CLI output there is no from-internal, so if it didn’t have permissions to read extensions.conf then it wouldn’t be present.

I would suggest checking permissions.

ls -l extensions.conf
-rw-r–r-- 1 root root 431 Feb 26 10:06 extensions.conf

And what is Asterisk running as for user?

I am logt in with root at the moment

On Monday 26 February 2024 at 11:10:12, TheKlaeys via Asterisk Community
wrote:

im logt in with the root user so i shouldnt have permission issues or not?

I Tried again now I get this

There is no existence of ‘from-internal’ context
Command ‘dialplan show from-internal’ failed.

What’s the output from “dialplan reload”?

Antony.


“In fact I wanted to be John Cleese and it took me some time to realise that
the job was already taken.”

  • Douglas Adams

                                                Please reply to the list;
                                                      please *don't* CC me.
    

It says No such command

On Monday 26 February 2024 at 11:27:12, TheKlaeys via Asterisk Community
wrote:

It says No such command

Which version of Asterisk are you running, which Linux distribution is it
installed under, and exactly how did you install it?

Antony.


I don’t know, maybe if we all waited then cosmic rays would write all our
software for us. Of course it might take a while.

  • Ron Minnich, Los Alamos National Laboratory

                                                Please reply to the list;
                                                      please *don't* CC me.
    

Asterisk 18.19.0 built by root @ Asterisk on a x86_64 running Linux on 2023-09-06 12:29:33 UTC

I used a guidance online i dont know the exact thing anymore but it was a manual installation something like this.

On Monday 26 February 2024 at 11:59:48, TheKlaeys via Asterisk Community
wrote:

Asterisk 18.19.0 built by root @ Asterisk on a x86_64 running Linux on
2023-09-06 12:29:33 UTC

I used a guidance online i dont know the exact thing anymore but it was a
manual installation something like this.
Installing Asterisk - Documentation

So, you compiled it from source?

Which Linux distribution and version are you running this on?

Antony.


+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++

  • Terry Pratchett

                                                Please reply to the list;
                                                      please *don't* CC me.
    

Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm

so I could actually fix that so it now works and my output is

dialplan show from-internal
[ Context ‘from-internal’ created by ‘pbx_config’ ]
‘100’ => 1. Dial(SIP/100) [extensions.conf:2]
‘101’ => 1. Dial(SIP/101) [extensions.conf:3]
2. Vxml(path to script) [extensions.conf:7]
3. Log(NOTICE,error z voximala: $[“${VOXIMAL_ERROR}”]) [extensions.conf:8]
4. Hangup() [extensions.conf:9]
5. Vxml(path to script) [extensions.conf:12]
6. Log(NOTICE,error z voximala: $[“${VOXIMAL_ERROR}”]) [extensions.conf:13]
7. Hangup() [extensions.conf:14]

-= 2 extensions (8 priorities) in 1 context. =-

And what is the current problem?

well now the previous problem is gone now i get this when I try to call

No application ‘Dial’ for extension (from-internal, 101, 1)
== Spawn extension (from-internal, 101, 1) exited non-zero on ‘SIP/100-00000000’