Hi,
I am new to the community and Asterisk - I just installed Asterisk 18 and have been following the online guides. I got as far as a clean installation with two endpoints 6001 and 6002 that are two sip phones that register successfully and can make calls between each other. I then moved to registering with my VOIP provider, by registering it. I was able to successfully register with my VOIP provider, however, I got stuck at making outbound calls (have not attempted fully to handle inbound calls yet, that will be next).
The error I see is when making an outbound call:
[Jan 15 12:56:38] ERROR[1326] res_pjsip.c: Endpoint 'mytrunk': Could not create dialog to invalid URI '155'. Is endpoint registered and reachable?
[Jan 15 12:56:38] ERROR[1326] chan_pjsip.c: Failed to create outgoing session to endpoint 'mytrunk'
[Jan 15 12:56:38] NOTICE[1337][C-00000001] app_dial.c: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)
[Jan 15 12:56:38] VERBOSE[1337][C-00000001] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[Jan 15 12:56:38] VERBOSE[1337][C-00000001] pbx.c: Auto fallthrough, channel 'PJSIP/6001-00000000' status is 'CHANUNAVAIL'
I have confirmed, with my voip provide, 155 is a valid number to dial out with. I see this message with this configuration (i replaced and for my username/password and sip.net is my voip provider’s registration address.
pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
[mytrunk]
type=registration
transport=transport-udp
outbound_auth=mytrunk_auth
server_uri=sip:isp.net
client_uri=sip:<un>@isp.net
contact_user=<un>
retry_interval=60
[mytrunk_auth]
type=auth
auth_type=userpass
password=<pw>
username=<un>
[mytrunk_aors]
type=aor
contact=sip:isp.net:5060
[mytrunk]
type=endpoint
context=from-external
disallow=all
allow=g722
allow=ulaw
allow=g729
outbound_auth=mytrunk_auth
aors=mytrunk_aors
[mytrunk]
type=identify
match=isp.net
endpoint=mytrunk
extensions.conf
exten => _X.,1,Dial(PJSIP/mytrunk/${EXTEN})
interestingly if I change the above to this in my dialplan:
exten => _X.,1,Dial(PJSIP/${EXTEN}@mytrunk)
then I get this error at the Asterisk CLI:
-- Executing [155@from-internal:1] Dial("PJSIP/6001-00000000", "PJSIP/155@mytrunk") in new stack
-- Called PJSIP/155@mytrunk
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'PJSIP/6001-00000000' status is 'CHANUNAVAIL'
I hoped to post as much useful information as possible - any help would be appreciated to help identify the problem and help continue to troubleshoot