# PJSIP SRV LOOKUPS

**URL:** https://forums.vitalpbx.org/t/pjsip-srv-lookups/472
**Category:** VitalPBX
**Created:** [September 24, 2021, 3:55pm UTC](https://forums.vitalpbx.org/t/pjsip-srv-lookups/472 "2021-09-24T15:55:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hlev](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/hlev/32/42_2.png) [@hlev](https://forums.vitalpbx.org/u/hlev)
#### Post date: [September 24, 2021, 3:55pm UTC](https://forums.vitalpbx.org/t/pjsip-srv-lookups/472/1 "2021-09-24T15:55:11Z")

</div>

Is it possible to define a PJSIP trunk and have it do SRV Looks for the remote host?

Sip settings do have a toggle for SRV Lookups but wondering if its possible for PJSIP. as I am currently testing the registration and doesn’t seem to be doing the record lookup properly as the trunk wont register.

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [September 24, 2021, 5:48pm UTC](https://forums.vitalpbx.org/t/pjsip-srv-lookups/472/2 "2021-09-24T17:48:49Z")

</div>

To the best of my knowledge, PJSIP does the SRV Lookup by default.

> **[Asterisk 14: Coming with improved PJSIP DNS Support! ⋆ Asterisk](https://www.asterisk.org/pjsip-dns-support/)**
>
> The PJSIP library now used by Asterisk to provide SIP support has included basic SIP DNS support for quite some time. However through using it ourselves

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [September 25, 2021, 5:10pm UTC](https://forums.vitalpbx.org/t/pjsip-srv-lookups/472/3 "2021-09-25T17:10:55Z")

</div>

It seems so.

```auto
pjsip show identifies

```

And then do

```auto
pjsip show identify <redacted>

Identify: <Identify/Endpoint...........................................................>
Match: <criteria...........................>
==========================================================================================

Identify: <redacted>/<redacted>
Match: 123.456.12.12/32
Match: 123.456.12.13/32

ParameterName : ParameterValue
=============================================
endpoint : <redacted>
match : 123.456.12.12/255.255.255.255
match : 123.456.12.13/255.255.255.255
match_header :
srv_lookups : true

```

---

<div class="post-metadata">

### Author: ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)
#### Post date: [October 25, 2021, 5:11pm UTC](https://forums.vitalpbx.org/t/pjsip-srv-lookups/472/4 "2021-10-25T17:11:49Z")

</div>

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