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

**URL:** <https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950>\
**Category:** Asterisk Dialplan\
**Created:** [June 9, 2022, 4:56pm UTC](https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950 "2022-06-09T16:56:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoFate](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/nofate/32/6511_2.png) [@NoFate](https://community.asterisk.org/u/NoFate)\
**Post date:** [June 9, 2022, 4:56pm UTC](https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950/1 "2022-06-09T16:56:51Z")

</div>

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

```auto
; ################# 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

```

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [June 9, 2022, 5:18pm UTC](https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950/2 "2022-06-09T17:18:20Z")

</div>

> <https://github.com/asterisk/asterisk/blob/master/configs/samples/pjsip.conf.sample#L184>

---

<div class="post-metadata">

**Author:** ![NoFate](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/nofate/32/6511_2.png) [@NoFate](https://community.asterisk.org/u/NoFate)\
**Post date:** [June 9, 2022, 5:22pm UTC](https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950/3 "2022-06-09T17:22:17Z")

</div>

thnx, missed that one!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [July 9, 2022, 5:22pm UTC](https://community.asterisk.org/t/how-to-link-an-incoming-trunk-now-its-always-s/92950/4 "2022-07-09T17:22:52Z")

</div>

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