Re: [asterisk-users] Need to restart Asterisk if remote server not working?
Max Grobecker schrieb: > > Maybe should I configure a forwarder for the zone t-online.de? It not > > difficult, and if you mean it can help, I'll do that... > > In the meantime, I setup forwarding requests to "t-online.de" and > "t-ipnet.de" to the address 194.25.2.129. That is kind of a global DNS > resolver for all customers and is working since the 90s without address > changes. OK, I'll set it up now... ;) > > Could you say me how can I disable the SRV lookups? > > I use Asterisk 1.8.30.0 on an OpenWRT device. > > In your sip.conf, simply add > > srvlookup = no > > To your DTAG peer configuration. > If set globally, you may break the ability to directly call SIP addresses. I see now, that I already have this globally set... > Have you rebooted the whole WRT device or just restarted the Asterisk > service to resolve your problem? Maybe it's less an Asterisk issue but one > with DNS caching on this device? I just restarted Asterisk... Thanks Luca Bertoncello (lucab...@lucabert.de) pgpqpqFm8dZW7.pgp Description: Digitale Signatur von OpenPGP -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
Hi Luca, Am 06.05.2017 um 15:49 schrieb Luca Bertoncello: > I'm running an own BIND on my Linux-PC... Me too ;-) > Maybe should I configure a forwarder for the zone t-online.de? It not > difficult, and if you mean it can help, I'll do that... In the meantime, I setup forwarding requests to "t-online.de" and "t-ipnet.de" to the address 194.25.2.129. That is kind of a global DNS resolver for all customers and is working since the 90s without address changes. > Could you say me how can I disable the SRV lookups? > I use Asterisk 1.8.30.0 on an OpenWRT device. In your sip.conf, simply add srvlookup = no To your DTAG peer configuration. If set globally, you may break the ability to directly call SIP addresses. > The version of Asterisk on my OpenWRT unfortunately does not support dnsmgr... On embedded systems, I often had problems with "stuck" DNS. But that was ages ago... The last time on my old "Horstbox" with Asterisk 1.2 and bristuff on Linux 2.4 :-/ Have you rebooted the whole WRT device or just restarted the Asterisk service to resolve your problem? Maybe it's less an Asterisk issue but one with DNS caching on this device? Viele Grüße aus dem Tal Max signature.asc Description: OpenPGP digital signature -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
Max Grobecker schrieb: Hello Max, > I'm also a customer of the DTAG. > Yesterday, the messed a bit with their DNS entries... Maybe they tried again to repair a working system... :) > If you are NOT using their DNS resolvers you got a "wrong" IP address back > that was not working. Besides that, you should disable SRV lookups for > their SIP peers. Since Asterisk's chan_sip.c does not honour the weight of > the SRV entries, nor it failovers to the other records, you might just end > up with a not working server. PJSIP might work with that, but it depends on > your version. I'm running an own BIND on my Linux-PC... Maybe should I configure a forwarder for the zone t-online.de? It not difficult, and if you mean it can help, I'll do that... > ims001 should be the preferred one based on the SRV weight. But Asterisk > only looks at the first record that comes as an answer, so if ims002 is at > the first position it will be used for registration, regardless that the > other record is weighted better. And if that one is not answering... So: > Better disable SRV lookups if you are not sure if your SIP channel driver > supports it ;-) Could you say me how can I disable the SRV lookups? I use Asterisk 1.8.30.0 on an OpenWRT device. > You should also use the dnsmgr of Asterisk, resp. configuring it to > reasonable values. In dnsmgr.conf I set: The version of Asterisk on my OpenWRT unfortunately does not support dnsmgr... Thanks Luca Bertoncello (lucab...@lucabert.de) pgpnFFa7pU8Hg.pgp Description: Digitale Signatur von OpenPGP -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
Hello, I'm also a customer of the DTAG. Yesterday, the messed a bit with their DNS entries... If you are NOT using their DNS resolvers you got a "wrong" IP address back that was not working. Besides that, you should disable SRV lookups for their SIP peers. Since Asterisk's chan_sip.c does not honour the weight of the SRV entries, nor it failovers to the other records, you might just end up with a not working server. PJSIP might work with that, but it depends on your version. The "blank" A record for "tel.t-online.de" is also provided and will be changed in case of service disruptions on one server, so it's acceptable to rely on that. DTAG is providing the following SIP servers at the moment (and also yesterday) with their SRV records: _sip._udp.tel.t-online.de. 401 IN SRV 0 5 5060 ims001.voip.t-ipnet.de. _sip._udp.tel.t-online.de. 401 IN SRV 1 5 5060 ims002.voip.t-ipnet.de. ims001 should be the preferred one based on the SRV weight. But Asterisk only looks at the first record that comes as an answer, so if ims002 is at the first position it will be used for registration, regardless that the other record is weighted better. And if that one is not answering... So: Better disable SRV lookups if you are not sure if your SIP channel driver supports it ;-) You should also use the dnsmgr of Asterisk, resp. configuring it to reasonable values. In dnsmgr.conf I set: enable = yes refreshinterval = 10 If dnsmgr is not enabled on your server this might have caused the problem because your SIP driver did not recognized that the target address of the configured hosts has changed. DNS changes should work also without dnsmgr - but since I've enabled the dnsmgr I had far less problems with changing DNS records ;-) Am 06.05.2017 um 09:37 schrieb Luca Bertoncello: > Hi list! > > Yesterday Deutsche Telekom had a really big problem and Asterisk couldn't > connect to the remote Server (by Telekom) until today about 7:30. > > Well, it could happen... > What I find really annoying was that I needed to restart Asterisk as I > checked with sipsak that the Telekom-Server works... > > I think, this should not be normal... Can someone explain me why it happens > and what I have to change in the configuration to avoid this problem? > > Thanks a lot > Luca Bertoncello > (lucab...@lucabert.de) > signature.asc Description: OpenPGP digital signature -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
On Saturday 06 May 2017 at 09:21:16, Luca Bertoncello wrote: > Antony Stone schrieb: > > > 4. Did the IP address of Telekom's end of the connection change? > > I really don't know, but I suppose not I suspect this may in fact have been the cause of your problem. Firstly, I notice that tel.t-online.de has a non-trivial DNS entry: $ host tel.t-online.de tel.t-online.de is an alias for ims.voip.t-ipnet.de. ims.voip.t-ipnet.de is an alias for ims001.voip.t-ipnet.de. ims001.voip.t-ipnet.de is an alias for b-epp-001.isp.t-ipnet.de. b-epp-001.isp.t-ipnet.de has address 217.0.18.36 Secondly I find forum entries from people observing that either the IP address changes from time to time, or even that Telekom's DNS servers do not give the same result as root name servers: https://telekomhilft.telekom.de/t5/Telefonie-Internet/IP-Adressbereich-tel-t- online-de/td-p/2325114 https://telekomhilft.telekom.de/t5/Festnetz-Internet/VoIP-Telefonie-DNS- Aufloesung-von-tel-t-online-de/td-p/1563089 Certainly, with allth eother information you gave, if the IP addresses at both ends stayed the same, I wouldn't expect an Asterisk restart to be necessary. Regards, Antony. -- Your work is both good and original. Unfortunately the parts that are good aren't original, and the parts that are original aren't good. - Samuel Johnson Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
Antony Stone schrieb: > What was Asterisk doing until you restarted it? What happened when it > tried to use the (stale, but now restored) connection? Just saying, that it was not possible to connect to the remote server... [May 6 07:26:50] NOTICE[3376] chan_sip.c:-- Registration for '03514977290@pbxluca' timed out, trying again (Attempt #1769) > > I think, this should not be normal... Can someone explain me why it > > happens and what I have to change in the configuration to avoid this > > problem? > > 1. How is your Asterisk server connecting to Deutsche Telekom (SIP, IAX2, > other...)? SIP > 2. How do you authenticate on that connection (password, certificate, IP > address...)? Password > 3. Do you connect to an IP address at Telekom, or to a hostname? Hostname: tel.t-online.de > 4. Did the IP address of Telekom's end of the connection change? I really don't know, but I suppose not > 5. Did the IP address of your end of the connection change? No. Thanks Luca Bertoncello (lucab...@lucabert.de) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Need to restart Asterisk if remote server not working?
On Saturday 06 May 2017 at 08:37:39, Luca Bertoncello wrote: > Yesterday Deutsche Telekom had a really big problem and Asterisk couldn't > connect to the remote Server (by Telekom) until today about 7:30. > > Well, it could happen... > What I find really annoying was that I needed to restart Asterisk as I > checked with sipsak that the Telekom-Server works... What was Asterisk doing until you restarted it? What happened when it tried to use the (stale, but now restored) connection? > I think, this should not be normal... Can someone explain me why it happens > and what I have to change in the configuration to avoid this problem? 1. How is your Asterisk server connecting to Deutsche Telekom (SIP, IAX2, other...)? 2. How do you authenticate on that connection (password, certificate, IP address...)? 3. Do you connect to an IP address at Telekom, or to a hostname? 4. Did the IP address of Telekom's end of the connection change? 5. Did the IP address of your end of the connection change? Antony. -- "Remember: the S in IoT stands for Security." - Jan-Piet Mens Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Need to restart Asterisk if remote server not working?
Hi list! Yesterday Deutsche Telekom had a really big problem and Asterisk couldn't connect to the remote Server (by Telekom) until today about 7:30. Well, it could happen... What I find really annoying was that I needed to restart Asterisk as I checked with sipsak that the Telekom-Server works... I think, this should not be normal... Can someone explain me why it happens and what I have to change in the configuration to avoid this problem? Thanks a lot Luca Bertoncello (lucab...@lucabert.de) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users