[Home]

Summary:ASTERISK-15210: SRV registration
Reporter:Maciej Krajewski (jamicque)Labels:
Date Opened:2009-12-21 12:37:57.000-0600Date Closed:
Priority:MajorRegression?No
Status:Open/NewComponents:Channels/chan_sip/Registration
Versions:Frequency of
Occurrence
Related
Issues:
is related toASTERISK-17722 SIP SRV lookups for registration discard the port when dnsmgr disabled (the default)
Environment:Attachments:
Description:When I use SRVlookup, every register the Asterisk send REGISTER to other IP.
It should send the REGISTER message to the server it send register last time.
Comments:By: Maciej Krajewski (jamicque) 2009-12-21 12:39:28.000-0600

sorry it's not every time it's quite random

By: Elazar Broad (ebroad) 2009-12-21 12:59:16.000-0600

If I understand you right, this is by design. A domain can have multiple SRV records with different server names, the DNS server authoritative for that domain can respond arbitrarily with any server it likes. Asterisk will cache the response for the amount of time configured in the DNSMGR config file, after that it will issue a new query and use whatever is returned in the response to that query.

By: Olle Johansson (oej) 2009-12-21 13:47:15.000-0600

yes, this is a bug. Asterisk should stay with the srv record choosen until it fails, not pick a new one each time.

By: Maciej Krajewski (jamicque) 2009-12-21 13:47:32.000-0600

ok it works, thanks. However i think it should stay with the last register server till it fails



By: Olle Johansson (oej) 2009-12-22 00:56:42.000-0600

Ebroad: Why assign it to me?

By: Leif Madsen (lmadsen) 2011-05-09 09:17:44

This may still be an issue, but I'd be interested if this can be reproduced on Asterisk 1.8?

By: Dennis DeDonatis (dennisd) 2011-05-09 10:40:53

I'm running Asterisk 1.8.4-rc3 and I see this:

[2011-05-09 11:08:15.920] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080
[2011-05-09 11:08:16.244] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:08:16.287] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.37:5080 to 204.11.192.39:5080
[2011-05-09 11:08:16.287] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:08:16.288] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.37:5080 to 204.11.192.39:5080
[2011-05-09 11:13:15.920] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:13:15.920] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.37:5080 to 204.11.192.39:5080
[2011-05-09 11:13:15.998] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:13:15.998] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:18:15.920] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha9.callcentric.com, port 5080
[2011-05-09 11:18:15.997] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:18:16.039] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.39:5080 to 204.11.192.35:5080
[2011-05-09 11:18:16.039] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:18:16.040] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.39:5080 to 204.11.192.35:5080
[2011-05-09 11:23:15.919] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:23:15.920] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.39:5080 to 204.11.192.35:5080
[2011-05-09 11:23:15.990] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:23:15.991] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:28:15.920] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha5.callcentric.com, port 5080
[2011-05-09 11:28:16.166] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080
[2011-05-09 11:28:16.204] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.35:5080 to 204.11.192.37:5080
[2011-05-09 11:28:16.204] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080
[2011-05-09 11:28:16.204] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.35:5080 to 204.11.192.37:5080
[2011-05-09 11:33:15.920] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080
[2011-05-09 11:33:15.920] NOTICE[23579] dnsmgr.c: dnssrv: host 'callcentric.com' changed from 204.11.192.35:5080 to 204.11.192.37:5080
[2011-05-09 11:33:15.996] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080
[2011-05-09 11:33:15.997] VERBOSE[23579] srv.c:        > ast_get_srv: SRV lookup for '_sip._udp.callcentric.com' mapped to host alpha7.callcentric.com, port 5080

I don't know if Asterisk is actually re-registering to the different Callcentric servers or not, so this may be irrelevant.

By: Maciej Krajewski (jamicque) 2011-06-07 13:21:12.930-0500

Issue still exists in 1.8.4.2

By: Luke H (luckman212) 2011-09-25 23:53:39.829-0500

This is still the same behavior in 1.8.7.0 (rel).  Seems to me this is related to ASTERISK-17722

By: Paul Flores (spm.pflores) 2012-07-25 22:53:59.944-0500

Im having this same issue on asterisk 10.6.1 that is running on ubuntu 11.10