All Circuits Are Busy Now

Hi all, am now in the process of scrapping all our old BT gear and moving over to a full IP PBX system. Inbound calls work from SIPGATE and internal extension calls work but outbound calls though SIPGATE do not. Causing me real problems. I’ve had it working on the test installation about 3 months ago which was asterisk@home but now I have the system loaded with Debian7/Wheezy along with Asterisk 1.8.15.1 and FreePBX 2.10.1.2.

Here is the log of an outgoing call through SIPGATE:

[2012-12-10 08:17:28] VERBOSE[2677] netsock2.c: == Using SIP RTP TOS bits 184
[2012-12-10 08:17:28] VERBOSE[2677] netsock2.c: == Using SIP RTP CoS mark 5
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:1] Macro(“SIP/1001-0000004a”, “user-callerid,LIMIT,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/1001-0000004a”, “AMPUSER=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“SIP/1001-0000004a”, “0?report”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:3] ExecIf(“SIP/1001-0000004a”, “1?Set(REALCALLERIDNUM=1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:4] Set(“SIP/1001-0000004a”, “AMPUSER=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:5] Set(“SIP/1001-0000004a”, “AMPUSERCIDNAME=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:6] GotoIf(“SIP/1001-0000004a”, “0?report”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:7] Set(“SIP/1001-0000004a”, “AMPUSERCID=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:8] Set(“SIP/1001-0000004a”, “CALLERID(all)=“1001” <1001>”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:9] GotoIf(“SIP/1001-0000004a”, “0?limit”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:10] ExecIf(“SIP/1001-0000004a”, “1?Set(GROUP(concurrency_limit)=1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:11] GotoIf(“SIP/1001-0000004a”, “1?continue”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-user-callerid,s,24)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:24] Set(“SIP/1001-0000004a”, “CALLERID(number)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:25] Set(“SIP/1001-0000004a”, “CALLERID(name)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-user-callerid:26] Set(“SIP/1001-0000004a”, “CHANNEL(language)=en”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:2] Set(“SIP/1001-0000004a”, “MOHCLASS=default”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:3] Set(“SIP/1001-0000004a”, “_NODEST=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:4] Gosub(“SIP/1001-0000004a”, “sub-record-check,s,1(out,014737222444,)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:1] GotoIf(“SIP/1001-0000004a”, “1?check”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (sub-record-check,s,6)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:6] Set(“SIP/1001-0000004a”, “__MON_FMT=wav”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:7] GotoIf(“SIP/1001-0000004a”, “1?next”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (sub-record-check,s,10)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:10] ExecIf(“SIP/1001-0000004a”, “0?Return()”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:11] GotoIf(“SIP/1001-0000004a”, “0?out,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:12] Set(“SIP/1001-0000004a”, “__REC_STATUS=INITIALIZED”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:13] ExecIf(“SIP/1001-0000004a”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:14] Set(“SIP/1001-0000004a”, “NOW=1355127448”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:15] Set(“SIP/1001-0000004a”, “__DAY=10”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:16] Set(“SIP/1001-0000004a”, “__MONTH=12”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:17] Set(“SIP/1001-0000004a”, “__YEAR=2012”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:18] Set(“SIP/1001-0000004a”, “__TIMESTR=20121210-081728”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:19] Set(“SIP/1001-0000004a”, “__FROMEXTEN=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:20] Set(“SIP/1001-0000004a”, “__CALLFILENAME=out-014737222444-1001-20121210-081728-1355127448.74”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@sub-record-check:21] Goto(“SIP/1001-0000004a”, “out,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (sub-record-check,out,1)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [out@sub-record-check:1] ExecIf(“SIP/1001-0000004a”, “1?Set(__REC_POLICY_MODE=dontcare)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [out@sub-record-check:2] GosubIf(“SIP/1001-0000004a”, “0?record,1(exten,014737222444,1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [out@sub-record-check:3] Return(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:5] Macro(“SIP/1001-0000004a”, “dialout-trunk,1,014737222444,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:1] Set(“SIP/1001-0000004a”, “DIAL_TRUNK=1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/1001-0000004a”, “0?sub-pincheck,s,1()”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/1001-0000004a”, “0?disabletrunk,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:4] Set(“SIP/1001-0000004a”, “DIAL_NUMBER=014737222444”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:5] Set(“SIP/1001-0000004a”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:6] Set(“SIP/1001-0000004a”, “OUTBOUND_GROUP=OUT_1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/1001-0000004a”, “1?nomax”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-dialout-trunk,s,9)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/1001-0000004a”, “0?skipoutcid”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:10] Set(“SIP/1001-0000004a”, “DIAL_TRUNK_OPTIONS=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:11] Macro(“SIP/1001-0000004a”, “outbound-callerid,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERPRES()=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/1001-0000004a”, “0?Set(REALCALLERIDNUM=1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/1001-0000004a”, “1?normcid”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-outbound-callerid,s,6)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:6] Set(“SIP/1001-0000004a”, “USEROUTCID=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:7] Set(“SIP/1001-0000004a”, “EMERGENCYCID=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:8] Set(“SIP/1001-0000004a”, “TRUNKOUTCID=01473857880”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/1001-0000004a”, “1?trunkcid”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-outbound-callerid,s,12)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/1001-0000004a”, “1?Set(CALLERID(all)=01473857880)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERID(all)=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERID(all)=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/1001-0000004a”, “0?sub-flp-1,s,1()”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:13] Set(“SIP/1001-0000004a”, “OUTNUM=014737222444”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:14] Set(“SIP/1001-0000004a”, “custom=SIP/out”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/1001-0000004a”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/1001-0000004a”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:17] Macro(“SIP/1001-0000004a”, “dialout-trunk-predial-hook,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/1001-0000004a”, “0?bypass,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/1001-0000004a”, “1?Set(CONNECTEDLINE(num,i)=014737222444)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/1001-0000004a”, “1?Set(CONNECTEDLINE(name,i)=CID:01473857880)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/1001-0000004a”, “0?customtrunk”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:22] Dial(“SIP/1001-0000004a”, “SIP/out/014737222444,300,”) in new stack
[2012-12-10 08:17:28] WARNING[5526] app_dial.c: Unable to create channel of type ‘SIP’ (cause 20 - Unknown)
[2012-12-10 08:17:28] VERBOSE[5526] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:23] NoOp(“SIP/1001-0000004a”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-dialout-trunk:24] Goto(“SIP/1001-0000004a”, “s-CHANUNAVAIL,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/1001-0000004a”, “RC=20”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/1001-0000004a”, “20,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-dialout-trunk,20,1)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [20@macro-dialout-trunk:1] Goto(“SIP/1001-0000004a”, “continue,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-dialout-trunk,continue,1)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/1001-0000004a”, “1?noreport”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Goto (macro-dialout-trunk,continue,3)
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/1001-0000004a”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 20 - failing through to other trunks”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [continue@macro-dialout-trunk:4] Set(“SIP/1001-0000004a”, “CALLERID(number)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [014737222444@from-internal:6] Macro(“SIP/1001-0000004a”, “outisbusy,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outisbusy:1] Progress(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [s@macro-outisbusy:2] Playback(“SIP/1001-0000004a”, “all-circuits-busy-now,noanswer”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] file.c: – <SIP/1001-0000004a> Playing ‘all-circuits-busy-now.ulaw’ (language ‘en’)
[2012-12-10 08:17:30] VERBOSE[5526] app_macro.c: == Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/1001-0000004a’ in macro ‘outisbusy’
[2012-12-10 08:17:30] VERBOSE[5526] pbx.c: == Spawn extension (from-internal, 014737222444, 6) exited non-zero on ‘SIP/1001-0000004a’
[2012-12-10 08:17:30] VERBOSE[5526] pbx.c: – Executing [h@from-internal:1] Hangup(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:30] VERBOSE[5526] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/1001-0000004a’

Trunk Details…

Trunk Name: out

PEER details:

allow=gsm&alaw&ulaw&g729&slinear
authuser=3XXXXX7
canreinvite=no
context=ext-did
disable=all
dtmfmode=rfc2833
fromdomain=sipgate.co.uk
fromuser=3XXXXX7
host=sipgate.co.uk
insecure=very
nat=yes
qualify=yes
secret=password
srvlookup=yes
type=friend
username=3XXXXX7

User context: 3XXXXX7

User details: BLANK as per last installation.

Register String: 3XXXXX7:[email protected]/3XXXXX7

Any ideas as this has taken 2 days of messing around still to no avil…

Cheers!

Anyone??

Sorted! Was an error in the setup of the Cisco 7940’s… DOH!

Can you give more info on what the problem was?

Have to agree with midnightsteel

I am having a similar issue and more info on what the problem was might be helpful.

Thanks in advance.

It was the nat in the config file for cisco phone set to yes but it should actually be no. It worked for me and now have 15 phones all running top notch :slight_smile: