Can't get inbound call

I’ve installed a newer version of Asterisk (18) after I messed up an older installation.

Can’t get incoming calls but can make outgoing calls. I’m missing “identify” and I don’t know where it goes in pjsip.conf

Appreciate any help. I can’t see straight any more.

sip.conf:

[general]

register => 624332_Aroint:itsybitsy@sip.bulkvs.com

context=public ;
allowoverlap=no ;
udpbindaddr=0.0.0.0 ;
tcpenable=no ;
tcpbindaddr=0.0.0.0 ;
transport=udp ;
srvlookup=yes ;

[authentication]

basic-options ;
dtmfmode=rfc2833
context=from-office
type=friend

natted-phone ;
directmedia=no
host=dynamic

public-phone ;
directmedia=yes

my-codecs ;
disallow=all
allow=ilbc
allow=g729
allow=gsm
allow=g723
allow=ulaw

ulaw-phone ;
disallow=all
allow=ulaw


pjsip.conf:

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

[6001]
type=endpoint
aors=6001
auth=6001-auth
allow=ulaw
context=default
callerid=“First Extension” <6001>
ice_support=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733

[6001-auth]
type=auth
auth_type=userpass
password=nobodyknows
username=6001

[6001]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60

[6002]
type=endpoint
aors=6002
auth=6002-auth
allow=ulaw
context=default
callerid=“Second Extension” <6002>
ice_support=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733

[6002-auth]
type=auth
auth_type=userpass
password=nobodyknows
username=6002

[vorhand]
type=endpoint
aors=vorhand
auth=vorhand-auth
allow=ulaw
context=vorhand
callerid=“Heichal Moshe”
ice_support=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733

[vorhand-auth]
type=auth
auth_type=userpass
password=nobodyknows
username=vorhand

[vorhand]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60
; ===============
; Registraion
; ===============

[bulkvs]
type = wizard
sends_auth = yes
sends_registrations = yes
transport = ipv4
remote_hosts = sip.bulkvs.com:5060
outbound_auth/username = 60dd122_Aroint
outbound_auth/password = D8tiee8dbbewyircPf
endpoint/allow = ulaw
endpoint/context = default

extensions.conf:

[general]
static=yes
writeprotect=no

[globals]

__DYNAMIC_FEATURES=playmonkeys#recordcall

CONSOLE=Console/dsp ; Console interface for demo

IAXINFO=guest ; IAXtel username/password
TRUNK=DAHDI/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)

[default]

exten => 12128778709,1,Goto(vorhand,12128778709,1)
exten => 2128778709,1,Goto(vorhand,12128778709,1)
exten => 7,1,Goto(voicemail-secure,7,1)
exten => 8500,1,VoiceMailMain()
exten => 6002,1,Answer(500)
same => n,Dial(SIP/6002,5,TtWwXxKkB)
same => n,Playback(Monty-Python-answering-machine-tune-long)
same => n,VoiceMail(6002,s)

[vorhand]
exten => 12128778709,1,Answer(400)
same => n,Background(hello-world)
same => n,WaitExten()
exten => 1,1,Answer(500)
same => n,Playback(hello-world)

[voicemail-secure]
;----------------------------------------------
; VOICEMAIL ENTRY INTO SYSTEM
;----------------------------------------------
exten => 7,1,Answer
exten => 7,2,Wait(1)
exten => 7,3,VoicemailMain(${CALLERIDNUM})
exten => 7,4,Hangup

[macro-voicemail]
exten => s,1,Dial(${ARG1},20)
exten => s,2,Goto(s-$DIALSTATUS},1)
;exten => s-NOANSWER,1,Voicemail(${MACRO_EXTEN},u)
exten => s-NOANSWER,1,Voicemail(${MACRO_EXTEN},su)
exten => s-NOANSWER,2,Hangup()
exten => s-BUSY,1,Voicemail(${MACRO_EXTEN},b)
exten => s-BUSY,2,Hangup()
exten => _s-.,1,Goto(s-NOANSWER,1)

[6002]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60

[vorhand]
type=endpoint
aors=vorhand
auth=vorhand-auth
allow=ulaw
context=vorhand
callerid=“Heichal Moshe”
ice_support=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
dtmf_mode=rfc4733

[vorhand-auth]
type=auth
auth_type=userpass
password=nobodyknows
username=vorhand

[vorhand]
type=aor
max_contacts=1
remove_existing=yes
qualify_frequency=60

[bulkvs]
type = wizard
sends_auth = yes
sends_registrations = yes
transport = ipv4
remote_hosts = sip.bulkvs.com:5060
outbound_auth/username = 623442_Aroint
outbound_auth/password = D8h058334Pf
endpoint/allow = ulaw
endpoint/context = default

You didn’t post the logs for the inbound call, but one of the issue could be that Asterisk challenging auth for INVITE sent by the SIP provider

He is missing identify, but he has a strange mix of wizard and standard configuration, so I don’t feel confident of being sure what his effective configuration is.

Unless he posts a SIP trace for the inbound INVITE call, impossible to determine the real cause of the problem.

Thank you for the help.

It will take me some time to figure out what and how to do the SIP trace. If this is through the CLI there was no mention of an incoming call.

How would I resolve Asterisk challenging auth?

OK, I’ll try and remove the old configuration. Using the Wizard isn’t clear to me and I haven’t found the basic how-to that I need.

By specifying outbound authentication, rather than (both way) authentication. Ignoring any effects of the wizard lines, you need to change the keyword in

auth=vorhand-auth

[quote=“anon44, post:5, topic:92143”]
haven’t found the basic how-to that I need.

Home - Asterisk Documentation (second example)

I’ll work on the auth= over the weekend. And the link will keep me busy for a while. Back in later with more questions. Thank you.

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