Anyone know how to disable DNS in asterisk so PJSIP still works when the internet goes down. I tried a few things but nothing is working. I even installed BIND on the asterisk box ...that didn't even work. Once I pull the plug on the internet, I cant dial anything. John Bittner CTO [xaccellogoemail] 380 US Highway 46, Suite 500 Totowa, NJ 07512 Phone: 201.806.2602 x2405 Fax: 201.806.2604 Cell: 973.390.1090 www.xaccel.net<http://www.xaccel.net/> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information which should not be shared or forwarded. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190220/ff00064f/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4300 bytes Desc: image001.png URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190220/ff00064f/attachment.png>
Can't you just reference everything in IPs? If not, then hardcode the IPs in your /etc/hosts file. I think that's a bad idea, but that's one way to ensure you always have the Ip of a domain name. From: asterisk-users <asterisk-users-bounces at lists.digium.com> On Behalf Of John T. Bittner Sent: Wednesday, February 20, 2019 11:30 AM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: [asterisk-users] PJSIP DNS ISSUE Anyone know how to disable DNS in asterisk so PJSIP still works when the internet goes down. I tried a few things but nothing is working. I even installed BIND on the asterisk box ...that didn't even work. Once I pull the plug on the internet, I cant dial anything. John Bittner CTO [xaccellogoemail] 380 US Highway 46, Suite 500 Totowa, NJ 07512 Phone: 201.806.2602 x2405 Fax: 201.806.2604 Cell: 973.390.1090 www.xaccel.net<http://www.xaccel.net/> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information which should not be shared or forwarded. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the e-mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190220/01b3f3fb/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4300 bytes Desc: image001.png URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190220/01b3f3fb/attachment.png>
On Wed, Feb 20, 2019, at 12:30 PM, John T. Bittner wrote:> > Anyone know how to disable DNS in asterisk so PJSIP still works when > the internet goes down.What exactly isn't working? What's the scenario? PJSIP uses asynchronous DNS, so it shouldn't block Asterisk like chan_sip did. There are cases where it can still block though. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Make sure the IP of every interface address is listed in /etc/hosts Use dnsmgr Install local BIND, which you already did. On 02/20/2019 11:29 AM, John T. Bittner wrote:> Anyone know how to disable DNS in asterisk so PJSIP still works when the > internet goes down. > > I tried a few things but nothing is working. I even installed BIND on > the asterisk box …that didn’t even work. Once I pull the plug on the > internet, I cant dial anything. > > John Bittner > > CTO > > xaccellogoemail > > 380 US Highway 46, Suite 500 > > Totowa, NJ 07512 > > Phone: 201.806.2602 x2405 > > Fax: 201.806.2604 > > Cell: 973.390.1090 > > www.xaccel.net <http://www.xaccel.net/> > > */CONFIDENTIALITY NOTICE: > This e-mail message, including any attachments, is for the sole use of > the intended recipient(s) and may contain confidential > and privileged information which should not be shared or forwarded. Any > unauthorized review, use, disclosure or distribution > is prohibited. If you are not the intended recipient, please contact the > sender by reply e-mail and destroy all copies of the e-mail./* > > >-- http://help.nyigc.net/
I tried a bunch of stuff , all my stuff was ip based. I was on asterisk 15, the fix was to upgrade to 16. After that every staying working after the internet went down. Thanks for the help John Sent from my iPhone On Feb 20, 2019, at 11:33 AM, Ryan, Travis <RyanT at OscarWinski.com<mailto:RyanT at OscarWinski.com>> wrote: Can’t you just reference everything in IPs? If not, then hardcode the IPs in your /etc/hosts file. I think that’s a bad idea, but that’s one way to ensure you always have the Ip of a domain name. From: asterisk-users <asterisk-users-bounces at lists.digium.com<mailto:asterisk-users-bounces at lists.digium.com>> On Behalf Of John T. Bittner Sent: Wednesday, February 20, 2019 11:30 AM To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com<mailto:asterisk-users at lists.digium.com>> Subject: [asterisk-users] PJSIP DNS ISSUE Anyone know how to disable DNS in asterisk so PJSIP still works when the internet goes down. I tried a few things but nothing is working. I even installed BIND on the asterisk box …that didn’t even work. Once I pull the plug on the internet, I cant dial anything. John Bittner CTO <image001.png> 380 US Highway 46, Suite 500 Totowa, NJ 07512 Phone: 201.806.2602 x2405 Fax: 201.806.2604 Cell: 973.390.1090 www.xaccel.net<http://www.xaccel.net/> CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information which should not be shared or forwarded. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the e-mail. ________________________________ Teach Canit xAntispam if this mail is spam: Spam<http://mx1.xantispam.net/canit/b.php?c=s&i=02XD4xKDC&m=44dcd078a67a&rlm=xaccel-net> Not spam<http://mx1.xantispam.net/canit/b.php?c=n&i=02XD4xKDC&m=44dcd078a67a&rlm=xaccel-net> Forget previous vote<http://mx1.xantispam.net/canit/b.php?c=f&i=02XD4xKDC&m=44dcd078a67a&rlm=xaccel-net> -- _____________________________________________________________________ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190221/6840f8fa/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 4300 bytes Desc: image001.png URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190221/6840f8fa/attachment.png>