I am now to asterisk. Installed Asterisk from source on Debian 8.2.
I have a sample pjsip.conf and extensions.conf with trunk to callcentric and sip phone. I am not able to receive and make call with callcentric. Here are the logs captured.
Debian1*CLI> core set debug 4
Core debug was OFF and is now 4.
Receving ingoing call:
[2015-12-21 11:33:54] NOTICE[1345]: res_pjsip/pjsip_distributor.c:347 log_unidentified_request: Request from ‘sip:519xxxxxxx@204.11.194.10’ failed for ‘204.11.192.170:5060’ (callid: 4d01bf2f632ecfe911b4aa583572758c@204.11.194.10) - No matching endpoint found
Making outgoing call:
-- Executing [17771234567@internal:1] Dial("PJSIP/6001-00000000", "PJSIP/17771234567@1777xxxxxxx") in new stack
-- Called PJSIP/17771234567@1777xxxxxxx
== Everyone is busy/congested at this time (1:0/0/1)
– Auto fallthrough, channel ‘PJSIP/6001-00000000’ status is ‘CHANUNAVAIL’
Asterisk 13.6.0
pjsip.conf
;==============TRANSPORTS
[simpletrans]
type=transport
protocol=udp
bind=0.0.0.0
;===============TRUNK
[callcentric]
type=registration
transport=simpletrans
outbound_auth=callcentric-auth
server_uri=sip:callcentric.com
client_uri=sip:1777xxxxxxx@callcentric.com
contact_user=1777xxxxxxx
retry_interval=60
[callcentric-auth]
type=auth
auth_type=userpass
password=xxxxxxxxx
username=1777xxxxxxx
;realm=callcentric.com
[callcentric-aor]
type=aor
contact=sip:204.11.192.170:5060
[1777xxxxxxx]
type=endpoint
transport=simpletrans
context=from-external
disallow=all
allow=ulaw
outbound_auth=callcentric-auth
aors=callcentric-aor
;redirect_method=user
[callcentric-identify]
;type=identify
;endpoint=1777xxxxxxx
;match=204.11.192.170
;===============EXTENSION 6001
[6001]
type=endpoint
context=internal
disallow=all
allow=ulaw
transport=simpletrans
auth=auth6001
aors=6001
[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001
[6001]
type=aor
max_contacts=1
extensions.conf
[from-external]
;exten => s,1,Dial(PJSIP/6001)
exten => s,1,Log(WARNING, Call via trunk: from ${EXTEN})
same => n,Answer()
same => n,SayDigits(${EXTEN})
same => n,Hangup()
[internal]
exten => _XX.,1,Dial(PJSIP/${EXTEN}@1777xxxxxxx)