<div dir="ltr"><a href="https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_cache.c#367">https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/libs/sofia-sip/libsofia-sip-ua/sresolv/sres_cache.c#367</a><div><br></div><div>i'm thinking if we just add a return so that nothing is cached, sofia would do a resolve every time, because it won't find any cached records.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 25, 2019 at 3:07 AM Kai Danielmeier <<a href="mailto:kai.danielmeier@gmail.com">kai.danielmeier@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">Basically I solved the problem by working around it with a hangup hook. In it I check the call disposition and if it is 403 I restart the gateway and then retry the call. Not the most perfect solution, but does the job and I do not have to manually restart any gateways. We had cases where the IP change for the server happened several times daily, which was very annoying.<div><br></div><div>BR</div><div><br></div><div>Kai</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 24. Juni 2019 um 16:51 Uhr schrieb Sebastian Denz <<a href="mailto:denzs@gonicus.de" target="_blank">denzs@gonicus.de</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">I didnt see your post before, so i opened a topic for propably the same<br>
issue today... i am preparing a test setup right now to reproduce it<br>
with the current git-HEAD and then i'll open an issue in Jira...<br>
<br>
Best regards,<br>
Sebastian<br>
<br>
Am 6/18/19 um 9:05 AM schrieb Paul Muaddib:<br>
> Hi,<br>
> <br>
> slowly it becomes annoying. Since a few days I need to reload the gateway<br>
> profile twice a day to refresh the SRV records. I found out that my SIP<br>
> Provider "Deutsche Telekom" updated their Documentation of their SIP Trunk.<br>
> <br>
> 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" rel="noreferrer" target="_blank">https://geschaeftskunden.telekom.de/blobCache/umn/uti/457678_1548405575000/blobBinary/SIP-Trunk-Technische-Unterlage.ps</a><br>
> <br>
> The document also includes a section on DNS and SRV. Can someone tell me if<br>
> I can make changes in the configuration based on the following information<br>
> so that the SRV records are updated correctly?<br>
> <br>
> Best regards,<br>
> <br>
> ############<br>
> <br>
> Domain and IP address recognition and resolution on the SIP trunk interface<br>
> is performed via DNS servers.<br>
> <br>
> In the registration mode, the IP address, transport and port of the server<br>
> are determined according to RFC 3263 and SIPConnect 2.0 16.1 "Locating SIP<br>
> Servers".<br>
> <br>
> According to RFC 3263, the SIP-PBX performs a NAPTR query for the domain<br>
> names:<br>
> - <a href="http://reg.sip-trunk.telekom.de" rel="noreferrer" target="_blank">reg.sip-trunk.telekom.de</a>.<br>
> - <a href="http://stat.sip-trunk.telekom.de" rel="noreferrer" target="_blank">stat.sip-trunk.telekom.de</a><br>
> <br>
> and receives the records with the protocols supported by the domain name<br>
> (in case of a SIP trunk usage of the TLS via TCP and TCP protocol depending<br>
> on whether the client uses TLS or not).<br>
> <br>
> Since the protocol has been determined, an IP address and port must also be<br>
> determined, as described in RFC 3263, Chapter 5, and an SRV query is sent<br>
> to the record returned by the NAPTR. Finally, the client performs an<br>
> A-Record lookup on these records to obtain the IP addresses of the servers.<br>
> The destination node selection is the SIP-PBX behavior (SIPconnect 2.0,<br>
> 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<br>
> some tools (e.g. nslookup under some Windows versions) does not lead to<br>
> 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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">reg.sip-trunk.telekom.de</a><br>
> <br>
> Attention: With many PBXs, setting the port (e.g. to 5060) leads to a<br>
> behavior in which only the A record is queried, which then fails. A<br>
> NAPTR/SRV query is only performed if the port is set to "0". (The<br>
> background is that the SRV query provides the port, i.e. the port cannot be<br>
> set to a fixed value in advance).<br>
> <br>
> ############<br>
> <br>
> <br>
> <br>
> Am Di., 7. Mai 2019 um 13:42 Uhr schrieb Paul Muaddib <<br>
> <a href="mailto:paul.muaddib83@gmail.com" target="_blank">paul.muaddib83@gmail.com</a>>:<br>
> <br>
>> How can I check the TTL of the SRV register?<br>
>><br>
>> Am Di., 7. Mai 2019 um 12:36 Uhr schrieb Raúl Alexis Betancor Santana <<br>
>> <a href="mailto:rbetancor@gmail.com" target="_blank">rbetancor@gmail.com</a>>:<br>
>><br>
>>> The only way you have is to tell FS to "reload" that provider gw profile.<br>
>>><br>
>>> You should check the TTL of that provider SRV registers as may be a<br>
>>> problem on their end, not updating them correctly.<br>
>>><br>
>>> 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>><br>
>>> wrote:<br>
>>><br>
>>>> Hi Lawrence,<br>
>>>><br>
>>>> I think that you want to know how to tell your fS to re-lookup the SRV<br>
>>>>> records for that gateway's domain while running, as the SRV records in that<br>
>>>>> provider's DNS changes regularly.<br>
>>>>><br>
>>>>> I can't help on the details of fS's DNS lookup code, but is that the<br>
>>>>> actual problem you have and so the question you want to ask?<br>
>>>>><br>
>>>><br>
>>>> Yes, that is my problem.<br>
>>>><br>
>>>> Am Di., 7. Mai 2019 um 00:07 Uhr schrieb Lawrence Conroy <<br>
>>>> <a href="mailto:lconroy@insensate.co.uk" target="_blank">lconroy@insensate.co.uk</a>>:<br>
>>>><br>
>>>>> Hi<br>
>>>>> They may do; they may not. It's hard to tell when the question is that<br>
>>>>> 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<br>
>>>>> 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<br>
>>>>> records.<br>
>>>>><br>
>>>>> I assume that what you mean is that your provider changes its SRV<br>
>>>>> 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<br>
>>>>> records for that gateway's domain while running, as the SRV records in that<br>
>>>>> provider's DNS changes regularly.<br>
>>>>><br>
>>>>> I can't help on the details of fS's DNS lookup code, but is that the<br>
>>>>> 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 <<br>
>>>>> <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<br>
>>>>> to force the update without restarting. My provider keeps changing the<br>
>>>>> entries after a few days and if I don't restart freeswitch I can not call<br>
>>>>> out anymore (403)<br>
>>>>>><br>
>>>>>> Best regards<br>
>>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>>><br>
>>>>>> The FreeSWITCH project is sponsored by SignalWire<br>
>>>>> <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
>>>>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
>>>>> services.<br>
>>>>>> Build your next product on our scalable cloud platform.<br>
>>>>>><br>
>>>>>> Join our online community to chat in real time<br>
>>>>> <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:<br>
>>>>> <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>
>>>>><br>
>>>>> The FreeSWITCH project is sponsored by SignalWire<br>
>>>>> <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
>>>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
>>>>> services.<br>
>>>>> Build your next product on our scalable cloud platform.<br>
>>>>><br>
>>>>> Join our online community to chat in real time<br>
>>>>> <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:<br>
>>>>> <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>
>>>> 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<br>
>>>> services.<br>
>>>> Build your next product on our scalable cloud platform.<br>
>>>><br>
>>>> Join our online community to chat in real time<br>
>>>> <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>
>>> 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<br>
>>> services.<br>
>>> Build your next product on our scalable cloud platform.<br>
>>><br>
>>> Join our online community to chat in real time<br>
>>> <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>
> _________________________________________________________________________<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>
<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>