<div dir="ltr"><div>Hi,</div><div><br></div><div>slowly it becomes annoying. Since a few days I need to reload the gateway profile twice a day to refresh the SRV records. I found out that my SIP Provider "Deutsche Telekom" updated their Documentation of their SIP Trunk. <br></div><div><br></div><div>Perhaps interesting for others. Here is the updated PDF<br><a href="https://geschaeftskunden.telekom.de/blobCache/umn/uti/457678_1548405575000/blobBinary/SIP-Trunk-Technische-Unterlage.ps">https://geschaeftskunden.telekom.de/blobCache/umn/uti/457678_1548405575000/blobBinary/SIP-Trunk-Technische-Unterlage.ps</a></div><div><br></div><div>The document also includes a section on DNS and SRV. Can someone tell me if I can make changes in the configuration based on the following information so that the SRV records are updated correctly?</div><div><br></div><div>Best regards,</div><div><br></div><div>############</div><div><br></div><div>Domain and IP address recognition and resolution on the SIP trunk interface is performed via DNS servers. <br><br>In the registration mode, the IP address, transport and port of the server are determined according to RFC 3263 and SIPConnect 2.0 16.1 "Locating SIP Servers". <br><br>According to RFC 3263, the SIP-PBX performs a NAPTR query for the domain names: <br>- <a href="http://reg.sip-trunk.telekom.de">reg.sip-trunk.telekom.de</a>. <br>- <a href="http://stat.sip-trunk.telekom.de">stat.sip-trunk.telekom.de</a> <br><br>and receives the records with the protocols supported by the domain name (in case of a SIP trunk usage of the TLS via TCP and TCP protocol depending on whether the client uses TLS or not). <br><br>Since the protocol has been determined, an IP address and port must also be determined, as described in RFC 3263, Chapter 5, and an SRV query is sent to the record returned by the NAPTR. Finally, the client performs an A-Record lookup on these records to obtain the IP addresses of the servers. The destination node selection is the SIP-PBX behavior (SIPconnect 2.0, Chapter 17.1 for Register Mode and Chapter 16.1 for Static Mode). <br><br>A lookup to these domain names is not possible. Therefore a lookup with some tools (e.g. nslookup under some Windows versions) does not lead to success, because these only make an A-Record query by default! <br>The correct query order is therefore <br>- NAPTR on <a href="http://reg.sip-trunk.telekom.de">reg.sip-trunk.telekom.de</a> <br>- SRV to a record of the NAPTR response <br>- A to a record of the SRV response <br><br>Success also leads: <br>- SRV on <a href="http://reg.sip-trunk.telekom.de">reg.sip-trunk.telekom.de</a> <br><br>- A to a record of the SRV response <br><br>Does not lead to success: <br>- A on <a href="http://reg.sip-trunk.telekom.de">reg.sip-trunk.telekom.de</a> <br><br>Attention: With many PBXs, setting the port (e.g. to 5060) leads to a behavior in which only the A record is queried, which then fails. A NAPTR/SRV query is only performed if the port is set to "0". (The background is that the SRV query provides the port, i.e. the port cannot be set to a fixed value in advance).</div><div><br>
</div><div>############ <br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 7. Mai 2019 um 13:42 Uhr schrieb Paul Muaddib <<a href="mailto:paul.muaddib83@gmail.com">paul.muaddib83@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">How can I check the TTL of the SRV register?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 7. Mai 2019 um 12:36 Uhr schrieb Raúl Alexis Betancor Santana <<a href="mailto:rbetancor@gmail.com" target="_blank">rbetancor@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The only way you have is to tell FS to "reload" that provider gw profile.<div><br></div><div>You should check the TTL of that provider SRV registers as may be a problem on their end, not updating them correctly.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 7, 2019 at 10:25 AM Paul Muaddib <<a href="mailto:paul.muaddib83@gmail.com" target="_blank">paul.muaddib83@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Lawrence,</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
I think that you want to know how to tell your fS to re-lookup the SRV
records for that gateway's domain while running, as the SRV records in
that provider's DNS changes regularly.<br>
<br>
I can't help on the details of fS's DNS lookup code, but is that the
actual problem you have and so the question you want to ask?
</div></blockquote><div><br></div><div>Yes, that is my problem. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Di., 7. Mai 2019 um 00:07 Uhr schrieb Lawrence Conroy <<a href="mailto:lconroy@insensate.co.uk" target="_blank">lconroy@insensate.co.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
They may do; they may not. It's hard to tell when the question is that confusing.<br>
<br>
1. IIUC, fS doesn't update local DNS records at all.<br>
(it could, but you'd need to write something external to do the DNS update).<br>
<br>
2. you talk of not being able to call OUT.<br>
That's good, as it means there is no need to update your domain's DNS records.<br>
<br>
I assume that what you mean is that your provider changes its SRV records every couple of days.<br>
You have a gateway entry in your fS config for that provider.<br>
That gateway spec has a defined domain name for the server.<br>
I think that you want to know how to tell your fS to re-lookup the SRV records for that gateway's domain while running, as the SRV records in that provider's DNS changes regularly.<br>
<br>
I can't help on the details of fS's DNS lookup code, but is that the actual problem you have and so the question you want to ask?<br>
<br>
br,<br>
Lawrence<br>
<br>
<br>
On 6 May 2019, at 21:04, Paul Muaddib <<a href="mailto:paul.muaddib83@gmail.com" target="_blank">paul.muaddib83@gmail.com</a>> wrote:<br>
<br>
> Really nobody with the same problem?<br>
> <br>
> Am Do., 2. Mai 2019 um 11:23 Uhr schrieb Paul Muaddib <<a href="mailto:paul.muaddib83@gmail.com" target="_blank">paul.muaddib83@gmail.com</a>>:<br>
> Hi,<br>
> <br>
> how can I tell freeswitch to update the SRV records or is there a way to force the update without restarting. My provider keeps changing the entries after a few days and if I don't restart freeswitch I can not call out anymore (403)<br>
> <br>
> Best regards<br>
> _________________________________________________________________________<br>
> <br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
> <br>
> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> <br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> <br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>
</blockquote></div>