The docs say username can/should be left out in certain cases but isn’t clear when or why. I’ve tried it with & without. Didn’t seem to make a difference??
[MyTrunk]
type=aor
contact = sip:username@MyProvider.com
[MyTrunk]
type=endpoint
context=inbound_calls
aors=MyTrunk
identify_by=ip ;[Inbound calls from my voip provider]
[MyTrunk]
type=identify
endpoint=MyTrunk
match=254.9.1.0/24
;***************************************************
[MyPhone]
type=aor
contact=sip:username@192.168.20.29:10000\;transport=udp
[MyPhone]
type=endpoint
aors=MyPhone
context=outbound_calls
identify_by=ip ;Asterisk & MyPhone are both on the lan w/static IP
[MyPhone]
type=identify
endpoint=MyPhone
match=192.168.20.29