Trunks going off line

I have a hosted FreePBX using hostpbx.us with two Vonage softphone trunks, one localtelecom and one voipwise trunk

The Vonage trunks work fine for incoming and outgoing calls but both the local telecom and voipwise trunks work after hitting apply config for maybe 10 minutes then when calling in I get an error saying “the number you have dialed is not in service, please check the number and try again” and when I look in the log file I see

“[2013-11-02 18:17:26] VERBOSE[29700][C-000005ca] netsock2.c: == Using SIP RTP TOS bits 184
[2013-11-02 18:17:26] VERBOSE[29700][C-000005ca] netsock2.c: == Using SIP RTP CoS mark 5
[2013-11-02 18:17:26] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/sip.voipwise.com-00000bcc”, “0?checklang:noanonymous”) in new stack
[2013-11-02 18:17:26] VERBOSE[24896][C-000005ca] pbx.c: – Goto (from-sip-external,s,5)
[2013-11-02 18:17:26] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:5] Set(“SIP/sip.voipwise.com-00000bcc”, “TIMEOUT(absolute)=15”) in new stack
[2013-11-02 18:17:26] VERBOSE[24896][C-000005ca] func_timeout.c: – Channel will hangup at 2013-11-02 18:17:41.781 EDT.
[2013-11-02 18:17:26] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:6] Answer(“SIP/sip.voipwise.com-00000bcc”, “”) in new stack
[2013-11-02 18:17:27] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:7] Wait(“SIP/sip.voipwise.com-00000bcc”, “2”) in new stack
[2013-11-02 18:17:29] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:8] Playback(“SIP/sip.voipwise.com-00000bcc”, “ss-noservice”) in new stack
[2013-11-02 18:17:29] VERBOSE[24896][C-000005ca] file.c: – <SIP/sip.voipwise.com-00000bcc> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2013-11-02 18:17:34] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:9] PlayTones(“SIP/sip.voipwise.com-00000bcc”, “congestion”) in new stack
[2013-11-02 18:17:34] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:10] Congestion(“SIP/sip.voipwise.com-00000bcc”, “5”) in new stack
[2013-11-02 18:17:35] VERBOSE[24896][C-000005ca] pbx.c: == Spawn extension (from-sip-external, s, 10) exited non-zero on ‘SIP/sip.voipwise.com-00000bcc’
[2013-11-02 18:17:35] VERBOSE[24896][C-000005ca] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/sip.voipwise.com-00000bcc”, “”) in new stack
[2013-11-02 18:17:35] VERBOSE[24896][C-000005ca] pbx.c: == Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/sip.voipwise.com-00000bcc’

The trunk settings are -
username=xxxxxxx
type=peer
secret=xxxxxxx
port=5060
nat=yes
insecure=very
host=sip.voipwise.com
fromuser=xxxxxxxx
fromdomain=sip.voipwise.com
dtmfmode=rfc2833
disallow=all
canreinvite=yes
auth=md5
allow=ulaw&g729

Any help would be appreciated

I have just tried using another company for the voip trunks, voipgate and the same problem happens.

When looking at the log when things are working I see

[2013-11-03 04:49:06] VERBOSE[29700][C-000005f9] netsock2.c: == Using SIP RTP CoS mark 5
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:1] Set(“SIP/VGATE-00000c0f”, “__FROM_DID=horizonfm”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:2] Gosub(“SIP/VGATE-00000c0f”, “app-blacklist-check,s,1()”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/VGATE-00000c0f”, “0?blacklisted”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:2] Set(“SIP/VGATE-00000c0f”, “CALLED_BLACKLIST=1”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:3] Return(“SIP/VGATE-00000c0f”, “”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:3] Set(“SIP/VGATE-00000c0f”, “CDR(did)=horizonfm”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/VGATE-00000c0f”, “0 ?Set(CALLERID(name)=00922985454)”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:5] Set(“SIP/VGATE-00000c0f”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:6] Set(“SIP/VGATE-00000c0f”, “CALLERPRES()=allowed_not_screened”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:7] Macro(“SIP/VGATE-00000c0f”, “prepend-cid,HORIZON -”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/VGATE-00000c0f”, “1?REPCID”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Goto (macro-prepend-cid,s,5)
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:5] Set(“SIP/VGATE-00000c0f”, “_RGPREFIX=HORIZON -”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:6] Set(“SIP/VGATE-00000c0f”, “CALLERID(name)=HORIZON -00922985454”) in new stack
[2013-11-03 04:49:06] VERBOSE[17352][C-000005f9] pbx.c: – Executing [[email protected]:8] Goto(“SIP/VGATE-00000c0f”, “ivr-2,s,1”) in new stack

When it stops working I see

[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/register.voipgate.com-00000c10”, “Received incoming SIP connection from unknown peer to horizonfm”) in new stack
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:2] Set(“SIP/register.voipgate.com-00000c10”, “DID=horizonfm”) in new stack
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:3] Goto(“SIP/register.voipgate.com-00000c10”, “s,1”) in new stack
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Goto (from-sip-external,s,1)
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/register.voipgate.com-00000c10”, “0?checklang:noanonymous”) in new stack
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Goto (from-sip-external,s,5)
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:5] Set(“SIP/register.voipgate.com-00000c10”, “TIMEOUT(absolute)=15”) in new stack
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] func_timeout.c: – Channel will hangup at 2013-11-03 04:56:07.610 EST.
[2013-11-03 04:55:52] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:6] Answer(“SIP/register.voipgate.com-00000c10”, “”) in new stack
[2013-11-03 04:55:53] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:7] Wait(“SIP/register.voipgate.com-00000c10”, “2”) in new stack
[2013-11-03 04:55:53] NOTICE[17361][C-000005fa] channel.c: Dropping incompatible voice frame on SIP/register.voipgate.com-00000c10 of format ulaw since our native format has changed to (gsm)
[2013-11-03 04:55:55] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:8] Playback(“SIP/register.voipgate.com-00000c10”, “ss-noservice”) in new stack
[2013-11-03 04:55:55] VERBOSE[17361][C-000005fa] file.c: – <SIP/register.voipgate.com-00000c10> Playing ‘ss-noservice.ulaw’ (language ‘en’)
[2013-11-03 04:55:59] VERBOSE[17361][C-000005fa] pbx.c: == Spawn extension (from-sip-external, s, 8) exited non-zero on ‘SIP/register.voipgate.com-00000c10’
[2013-11-03 04:55:59] VERBOSE[17361][C-000005fa] pbx.c: – Executing [[email protected]:1] Hangup(“SIP/register.voipgate.com-00000c10”, “”) in new stack
[2013-11-03 04:55:59] VERBOSE[17361][C-000005fa] pbx.c: == Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/register.voipgate.com-00000c10’

So is this the trunk is no longer registered?

Any help would be great!