[asterisk-users] PAP2T provisioning via SRV record?

Mike Diehl mdiehl at diehlnet.com
Thu Jun 16 00:58:43 CDT 2011


Well, I ran a simple test by trying to configure the second port to use the DNS SRV record, as described below.

Here is what I have: (sanitized)
==========================================================
<Proxy_2_> diehlnet.com </Proxy_2_>
<Outbound_Proxy_2_> fqdn </Outbound_Proxy_2_>
<Display_Name_2_ ua="na">username</Display_Name_2_>
<User_ID_2_ ua="na">username</User_ID_2_>
<Password_2_ ua="na">password</Password_2_>
<Use_Auth_ID_2_ ua="na">Yes</Use_Auth_ID_2_>
<Auth_ID_2_ ua="na">username</Auth_ID_2_>
<Use_DNS_SRV_2_>yes</Use_DNS_SRV_2_>
==========================================================

With this configuration, the second port does NOT register.  A sniffer trace on the inside interface of my router gives me some clues, though:

23:54:34.906089 IP 10.0.1.87.60198 > 208.67.222.222.53:  1+ A? diehlnet.com. (30)
23:54:35.102409 IP 208.67.222.222.53 > 10.0.1.87.60198:  1 1/0/0 A 173.10.242.193 (46)
23:54:35.104484 IP 10.0.1.87.5061 > 173.10.242.193.5060: UDP, length: 527
23:54:35.104553 IP 173.10.242.193 > 10.0.1.87: icmp 556: 173.10.242.193 udp port 5060 unreachable

It seems that the device is still looking for an A record for diehlnet.com, which does exist.  It should be looking for the SRV record.

What am I missing?

Mike.

On Tuesday 14 June 2011 3:08:33 am Paul Hayes wrote:
> On 13/06/11 19:44, Mike Diehl wrote:
> > Hi all,
> > 
> > I'm trying to provision my PAP2T's to use a SVR lookup to find the
> > Asterisk server.  I'm using a provisioning file that contains an element
> > like:
> > 
> > <Proxy_1_>  _sip._udp.example.com</Proxy_1_>
> > 
> > However, the PAP doesn't seem to be able to find my server with this
> > hostname. The DNS records are in place because my Polycom and
> > Grandstream servers work just fine.
> > 
> > What else do I need to do to get the PAP to work this way?
> > 
> > TIA,
> 
> There's a setting in the Line 1 and Line 2 page called Use DNS SRV which
> is set to No by default for some reason.  Set this to yes and set the
> proxy to example.com.  So something like:
> 
> <Use_DNS_SRV_1_>yes</Use_DNS_SRV_1_>
> <Proxy_1_>example.com</Proxy_1_>
> 
> cheers,
> Paul.
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

-- 

Take care and have fun,
Mike Diehl.



More information about the asterisk-users mailing list