Trunks won't load after reboot

Running Ubuntu 10.04:

For some reason, after I reboot all my sip trunks are 'UNKNOWN’status. Pulling up the asterisk log shows:

2010-05-29 14:20:36] WARNING[3956] chan_sip.c: sip_xmit of 0xb76e9968 (len 513) to 192.168.1.4:5060 returned -2: Network is unreachable
[2010-05-29 14:20:36] ERROR[3956] chan_sip.c: Serious Network Trouble; __sip_xmit returns error for pkt data
[2010-05-29 14:20:36] WARNING[3956] acl.c: Unable to lookup 'proxy01.sipphone.com'
[2010-05-29 14:20:36] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:36] WARNING[3956] acl.c: Unable to lookup 'proxy01.sipphone.com'
[2010-05-29 14:20:36] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:36] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for 'myuser' to 'proxy01.sipphone.com'
[2010-05-29 14:20:36] WARNING[3956] acl.c: Unable to lookup 'sip.voipbusterpro.com'
[2010-05-29 14:20:36] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:36] WARNING[3956] acl.c: Unable to lookup 'sip.voipbusterpro.com'
[2010-05-29 14:20:36] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:36] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for 'myuser3' to 'sip.voipbusterpro.com'
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'sip.poivy.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'sip.poivy.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for 'myuser1' to 'sip.poivy.com'
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'sip.sipdiscount.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'sip.sipdiscount.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for 'myuser' to 'sip.sipdiscount.com'
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'incoming.future-nine.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'incoming.future-nine.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for '32XXXXXX' to 'incoming.future-nine.com'
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'callcentric.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] acl.c: Unable to lookup 'callcentric.com'
[2010-05-29 14:20:37] NOTICE[3956] chan_sip.c: Registration from '<sip:[email protected]>' failed for '127.0.0.1' - No matching peer found
[2010-05-29 14:20:37] WARNING[3956] chan_sip.c: Forbidden - wrong password on authentication for REGISTER for '1777XXXXXX' to 'callcentric.com'
[2010-05-29 14:20:40] NOTICE[3956] chan_sip.c: Peer '1001' is now UNREACHABLE!  Last qualify: 0
[2010-05-29 14:20:50] WARNING[3956] acl.c: Cannot connect
[2010-05-29 14:20:50] WARNING[3956] chan_sip.c: sip_xmit of 0xb76e9968 (len 513) to 192.168.1.4:5060 returned -2: Network is unreachable
[2010-05-29 14:20:50] ERROR[3956] chan_sip.c: Serious Network Trouble; __sip_xmit returns error for pkt data
[2010-05-29 14:21:04] NOTICE[3956] chan_sip.c: Peer '1001' is now Reachable. (17ms / 2000ms)

All trunks load with the message “Forbidden - wrong password” in the log, but if I go into asterisk CLI and “reload” the trunks come online. What would cause this?

https://issues.asterisk.org/bug_view_advanced_page.php?bug_id=15052

Hi
Please help!
After reboot my SIP-trunk crashed.
Internal extensions still register and working but I´m not abel to call out or in.
IWhat I can see it´s look like a DNS problem but if i ping from commandline it´s working.I can ping my serviceprovider.
From log-file I cut this for a start:

[2013-04-09 07:59:31] NOTICE[1696] chan_sip.c: – Registration for ‘[email protected]’ timed out, trying again (Attempt #20)
[2013-04-09 07:59:32] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:33] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:35] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:39] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:43] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:47] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:51] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:51] ERROR[1696] netsock2.c: getaddrinfo(“cust01.sip.weblink.se”, “(null)”, …): Temporary failure in name resolution
[2013-04-09 07:59:51] WARNING[1696] acl.c: Unable to lookup ‘cust01.sip.weblink.se
[2013-04-09 07:59:51] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:51] NOTICE[1696] chan_sip.c: – Registration for ‘[email protected]’ timed out, trying again (Attempt #21)
[2013-04-09 07:59:52] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:53] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:55] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument
[2013-04-09 07:59:59] WARNING[1696] chan_sip.c: sip_xmit of 0x7fd828000e40 (len 419) to (null) returned -1: Invalid argument

My system is:
Asterisk Ver. 1.8.20.1
PBX Firmware: 2.210.62-5
PBX Service Pack: 1.0.0.0

Hoping…

Other threads, start a new one. but. . .

Ping (ICMP protocol) is not the same as SIP (UDP protocol by default) check your firewall/routers for correct configuration for udp/5060 forwarding, when (from your PBX box) :-

nmap -v -sU -p 5060 cust01.sip.weblink.se

returns “open” it should work. If you built your own system, check your init scripts for the correct order at startup.