Summary: | ASTERISK-10759: SRV lookups broken in SIP | ||
Reporter: | John Todd (jtodd) | Labels: | |
Date Opened: | 2007-11-13 18:53:45.000-0600 | Date Closed: | 2007-11-13 20:29:31.000-0600 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/Interoperability |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | SRV results are ignored, even though the DNS lookup happens fine. "sip show settings" has this line: DNS SRV lookup: Yes ...yet the results aren't what Asterisk tries to connect to. It instead tries to contact the A record for "talkplus.com", which is not our SIP platform. ****** ADDITIONAL INFORMATION ****** This dialplan: exten => 111,1,Dial(SIP/echo@talkplus.com) exten => 111,n,Hangup results in this DNS lookup: [root@public asterisk]# tethereal port 53 Capturing on eth0 0.000000 204.91.156.60 -> 204.91.156.197 DNS Standard query SRV _sip._udp.talkplus.com 0.001577 204.91.156.197 -> 204.91.156.60 DNS Standard query response SRV 1 0 5060 pbx.talkplus.com 0.002156 204.91.156.60 -> 204.91.156.197 DNS Standard query A talkplus.com 0.003293 204.91.156.197 -> 204.91.156.60 DNS Standard query response A 38.99.69.34 11.567027 204.91.156.60 -> 204.91.156.197 DNS Standard query A talkplus.com 11.568709 204.91.156.197 -> 204.91.156.60 DNS Standard query response A 38.99.69.34 6 packets captured [root@public asterisk]# which incorrectly results in this SIP dialog (UA conversation removed): [root@public asterisk]# tethereal port 5060 Capturing on eth0 0.200023 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 1.199114 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 2.199969 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 4.200663 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 8.200059 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 16.200870 204.91.156.60 -> 38.99.69.34 SIP/SDP Request: INVITE sip:echo@talkplus.com, with session description 15 packets captured [root@public asterisk]# | ||
Comments: | By: Digium Subversion (svnbot) 2007-11-13 19:13:07.000-0600 Repository: asterisk Revision: 89260 U branches/1.4/main/srv.c ------------------------------------------------------------------------ r89260 | file | 2007-11-13 19:13:06 -0600 (Tue, 13 Nov 2007) | 4 lines Return the proper value when the srv_callback function executes properly. (closes issue ASTERISK-10759) Reported by: jtodd ------------------------------------------------------------------------ By: Digium Subversion (svnbot) 2007-11-13 19:14:43.000-0600 Repository: asterisk Revision: 89262 _U trunk/ U trunk/main/srv.c ------------------------------------------------------------------------ r89262 | file | 2007-11-13 19:14:42 -0600 (Tue, 13 Nov 2007) | 12 lines Merged revisions 89260 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89260 | file | 2007-11-13 21:15:12 -0400 (Tue, 13 Nov 2007) | 4 lines Return the proper value when the srv_callback function executes properly. (closes issue ASTERISK-10759) Reported by: jtodd ........ ------------------------------------------------------------------------ By: John Todd (jtodd) 2007-11-13 20:29:31.000-0600 Works correctly now. Tested. |