Luca Bertoncello
2017-May-06 13:49 UTC
[asterisk-users] Need to restart Asterisk if remote server not working?
Max Grobecker <max.grobecker at ml.grobecker.info> 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 (lucabert at lucabert.de) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Digitale Signatur von OpenPGP URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170506/eb030654/attachment.pgp>
Max Grobecker
2017-May-06 18:16 UTC
[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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170506/ac0d0e7b/attachment.pgp>
Luca Bertoncello
2017-May-06 18:33 UTC
[asterisk-users] Need to restart Asterisk if remote server not working?
Max Grobecker <max.grobecker at ml.grobecker.info> 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 (lucabert at lucabert.de) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: Digitale Signatur von OpenPGP URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170506/9e39eca7/attachment.pgp>