How to link an incoming trunk, now its always "s"

Hi, i have a few trunks that i use for outgoing calls , i also use the Linhome free SIP provider, configured as below, as you can see its linked to username “xxxx” … my sofphones are also registered to the linhome sip service with other usernames, from there i can also call “xxx” , so i receive an incoming call on the trunk below, but they are always linked to “s” in default extension… how can i identify them?

because i have several trunks, how do i know its coming from the linhome trunk below for example? how can i do that in dialplan? ot do i need something extra in the trunk config below?

thnx

; ################# TRUNK Linhome #####################

[trunk-linhome-auth]
type=auth
auth_type=userpass
password=yyy
username=xxxx

[trunk-linhome-aor]
type=aor
contact=sip:sip.linhome.org
;qualify_frequency=30

[trunk-linhome-registration]
type=registration
outbound_auth=trunk-linhome-auth
server_uri=sip:sip.linhome.org
client_uri=sip:xxxx@sip.linhome.org
retry_interval=30
 
[trunk-linhome]
type=endpoint
context=default
disallow=all
allow=ulaw,alaw
allow=h264,vp8
outbound_auth=trunk-linhome-auth
aors=trunk-linhome-aor
from_domain=sip.linhome.org
direct_media=yes


 
[trunk-linhome-identify]
type=identify
endpoint=trunk-linhome
match=sip.linhome.org
1 Like

thnx, missed that one!