[Home]

Summary:ASTERISK-02053: Missing DNS SRV support for SIP registration
Reporter:ag (ag)Labels:
Date Opened:2004-07-18 11:23:43Date Closed:2011-06-07 14:04:55
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Example:

register => 31208225157:4433@budgetphone.nl:5060/1082205157

budgetphone.nl should be looked up in DNS and associated SRV record should point to the SIP registrar server
Comments:By: Mark Spencer (markster) 2004-07-18 12:16:38

If you have a sip friend/peer entry for budgetphone.nl it will not lookup the SRV record but will use the host you have specified.  If you do not have "srvlookup=yes" in your sip.conf in the general section, SRV records will never be searched.

By: Brian West (bkw918) 2004-07-18 12:29:13

Also SRV lookups dont show up on verbose 3 or below... but 4 and above now. :)

By: ag (ag) 2004-07-18 12:37:16

It does not go do the designated IP: Example:

[general]
port = 5060
srvlookup = yes
register => 1663:a444@budgetphone.nl/1663

[budgetphone.nl]
type=peer
context=SIP
host=81.23.228.150
accountcode=BPC
port=5060
trustrpid=1

By: Mark Spencer (markster) 2004-07-18 15:10:51

Are you sure you're running latest CVS head?

By: ag (ag) 2004-07-18 16:14:58

I run the CVS from 21-st of June.

By: Brian West (bkw918) 2004-07-18 16:41:11

Can you show me the srv entry for budgetphone.nl  I can't seem to look it up.

By: ag (ag) 2004-07-18 16:43:00

adigeo@imac2:~$dig SRV _sip._udp.budgetphone.nl

;; ANSWER SECTION:
_sip._udp.budgetphone.nl. 60    IN      SRV     10 0 5060 sip.budgetphone.nl.

;; ADDITIONAL SECTION:
sip.budgetphone.nl.     60      IN      A       81.23.228.150

By: Mark Spencer (markster) 2004-07-18 17:11:50

21 june is TOO OLD

please update to latest CVS before submitting bugs, it's in the bug documentation.

By: Mark Spencer (markster) 2004-07-18 17:13:26

This as been fixed already, I'm quite confident.  If latest CVS still gives you the same problem, I'll be happy to look at it.

Note that since you have a budgetphone.nl peer entry, it will use the host there, not what's in SRV.