Calling to a custom app registered to Asterisk

Hi, good afternoon,

I have an Asterisk (which version is 18.10.10) and I have two applications (one of them is a softphone (Twinkle) and the other one is a custom app based on the framework barseip). The problem comes when I try to call from the Twincle to my custom App, the call never rings in the custom app side so I don’t know what’s the problem. I have the same problem in the other direction (from my custom app to the Twinkle) Next I show you what I get from the command line the moment I make the call to the custom App:

[Oct 18 15:57:43] NOTICE[12730]: res_pjsip_session.c:3967 new_invite:  6002: Call (UDP:10.0.2.161:5061) to extension '6001' rejected because extension not found in context 'internal'.

To do the call, in the Twinkle I use the next addr to dial: sip:6001@10.0.3.97 (because that’s the ip address of pc where the custom app software is located). The problem just comes with the call, the registration is OK both in the Twinkle and the custom App.

I’m using the next configuration in the file pjsip.conf which I got from the Wiki


;===============TRANSPORT
 
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
 
;===============ENDPOINT TEMPLATES
 
[endpoint-basic](!)
type=endpoint
context=internal
disallow=all
allow=ulaw
 
[auth-userpass](!)
type=auth
auth_type=userpass
 
[aor-single-reg](!)
type=aor
max_contacts=1
 
;===============EXTENSION 6001
 
[6001](endpoint-basic)
auth=auth6001
aors=6001
 
[auth6001](auth-userpass)
password=6001
username=6001
 
[6001](aor-single-reg)
 
;===============EXTENSION 6002
 
[6002](endpoint-basic)
auth=auth6002
aors=6002
 
[auth6002](auth-userpass)
password=6002
username=6002
 
[6002](aor-single-reg)
 
;===============EXTENSION 6003
 
[6003](endpoint-basic)
auth=auth6003
aors=6003
 
[auth6003](auth-userpass)
password=6003
username=6003
 
[6003](aor-single-reg) 

My environment is the next:

  • The Asterisk server is located in a machine with the ip address 10.0.3.97 and a RedHat Enterprise Linux 8.7 installed on it.
  • The Twinke client is located in a machine with the ip address 10.0.2.161 and a Ubuntu.
  • The custom app client is located in the same machine…

Can anyone help me with this please?
Thank you so much!

NOTE: I’m completely a beginer in the telephony world!

You haven’t configured the dialplan[1][2] which defines call routing.

[1] Chapter 6. Dialplan Basics
[2] Dialplan - Asterisk Project - Asterisk Project Wiki

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.