Hi Group
Yes this has been addressed before however its not quite working the way I expected.
Im using Asterisk 13.18.5 but have not tested on any other version.
I have multiple accounts being registered from a Yealink phone with only one with a line appearance (Primary line) which is configured as the default account.
Occasionally on outgoing calls, Asterisk matches an account other than the primary account which I can confirm with a SIP debug.
I have tried type=user and type=friend but it still continues to occasionally not match the From: address.
Here is my sip.conf:
[general]
language=en_AU
bindaddr=0.0.0.0
disallow=all
allow=alaw
allow=ulaw
allow=g722
qualify=yes
qualifyfreq=30
insecure=port,invite
nat=no
localnet=192.168.0.0/255.255.0.0
localnet=10.0.0.0/255.0.0.0
localnet=172.16.0.0/12
localnet=169.254.0.0/255.255.0.0
videosupport=no
dtmfmode=auto
allowguest=no
realm=IBC
notifyringing=yes
notifyhold=yes
useragent=IBCCM
sdpsession=IBCCM
srvlookup=no
autocreatepeer=yes
context=DialPlan99
session-timers=refuse
maxexpiry=1800
register_retry_403=yes
trustrpid=yes
sendrpid = pai
tos_sip=cs3
tos_audio=ef
tos_video=af41
tos_text=af41
callcounter=yes
tlsenable=yes
tlsbindaddr=0.0.0.0
tlscertfile=/mnt/kd/ssl/sip-tls/keys/server.crt
tlsprivatekey=/mnt/kd/ssl/sip-tls/keys/server.key
tlscipher=ALL
tlsclientmethod=tlsv1
callevents=yes
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.0.0.0
permit=172.16.0.0/255.240.0.0
permit=192.168.0.0/255.255.0.0
contactdeny=0.0.0.0/0.0.0.0
contactpermit=10.0.0.0/255.0.0.0
contactpermit=172.16.0.0/255.240.0.0
contactpermit=192.168.0.0/255.255.0.0
alwaysauthreject=yes
[extension_default](!)
directmedia=yes
disallow=all
allow=alaw
allow=ulaw
type=peer
host=dynamic
context=DialPlan1
namedcallgroup=default
namedpickupgroup=default
call-limit = 10
deny=0.0.0.0/0.0.0.0
permit=10.0.0.0/255.0.0.0
permit=172.16.0.0/255.240.0.0
permit=192.168.0.0/255.255.0.0
contactdeny=0.0.0.0/0.0.0.0
contactpermit=10.0.0.0/255.0.0.0
contactpermit=172.16.0.0/255.240.0.0
contactpermit=192.168.0.0/255.255.0.0
[1402](extension_default)
type=peer
secret=#password#
[virtualuser11402](extension_default)
type=user
secret=#password#
[virtualuser21402](extension_default)
type=user
secret=#password#
I know that I need to match on username as Yealink phones do not change the source port for each account as they used to previously.
Am I missing something?
Regards
Mike