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=friendnatted-phone ;
directmedia=no
host=dynamicpublic-phone ;
directmedia=yesmy-codecs ;
disallow=all
allow=ilbc
allow=g729
allow=gsm
allow=g723
allow=ulawulaw-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