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 [email protected] 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 [[email protected]:1] Macro(“SIP/1001-0000004a”, “user-callerid,LIMIT,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:1] Set(“SIP/1001-0000004a”, “AMPUSER=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/1001-0000004a”, “0?report”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:3] ExecIf(“SIP/1001-0000004a”, “1?Set(REALCALLERIDNUM=1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:4] Set(“SIP/1001-0000004a”, “AMPUSER=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:5] Set(“SIP/1001-0000004a”, “AMPUSERCIDNAME=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:6] GotoIf(“SIP/1001-0000004a”, “0?report”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:7] Set(“SIP/1001-0000004a”, “AMPUSERCID=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:8] Set(“SIP/1001-0000004a”, “CALLERID(all)=“1001” <1001>”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:9] GotoIf(“SIP/1001-0000004a”, “0?limit”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]:24] Set(“SIP/1001-0000004a”, “CALLERID(number)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:25] Set(“SIP/1001-0000004a”, “CALLERID(name)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:26] Set(“SIP/1001-0000004a”, “CHANNEL(language)=en”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:2] Set(“SIP/1001-0000004a”, “MOHCLASS=default”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:3] Set(“SIP/1001-0000004a”, “_NODEST=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]:6] Set(“SIP/1001-0000004a”, “__MON_FMT=wav”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]:10] ExecIf(“SIP/1001-0000004a”, “0?Return()”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:11] GotoIf(“SIP/1001-0000004a”, “0?out,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:12] Set(“SIP/1001-0000004a”, “__REC_STATUS=INITIALIZED”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/1001-0000004a”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:14] Set(“SIP/1001-0000004a”, “NOW=1355127448”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:15] Set(“SIP/1001-0000004a”, “__DAY=10”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:16] Set(“SIP/1001-0000004a”, “__MONTH=12”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:17] Set(“SIP/1001-0000004a”, “__YEAR=2012”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:18] Set(“SIP/1001-0000004a”, “__TIMESTR=20121210-081728”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:19] Set(“SIP/1001-0000004a”, “__FROMEXTEN=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:3] Return(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:5] Macro(“SIP/1001-0000004a”, “dialout-trunk,1,014737222444,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:1] Set(“SIP/1001-0000004a”, “DIAL_TRUNK=1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:2] GosubIf(“SIP/1001-0000004a”, “0?sub-pincheck,s,1()”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/1001-0000004a”, “0?disabletrunk,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:4] Set(“SIP/1001-0000004a”, “DIAL_NUMBER=014737222444”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:5] Set(“SIP/1001-0000004a”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:6] Set(“SIP/1001-0000004a”, “OUTBOUND_GROUP=OUT_1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]:9] GotoIf(“SIP/1001-0000004a”, “0?skipoutcid”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:10] Set(“SIP/1001-0000004a”, “DIAL_TRUNK_OPTIONS=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:11] Macro(“SIP/1001-0000004a”, “outbound-callerid,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:1] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERPRES()=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:2] ExecIf(“SIP/1001-0000004a”, “0?Set(REALCALLERIDNUM=1001)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]:6] Set(“SIP/1001-0000004a”, “USEROUTCID=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:7] Set(“SIP/1001-0000004a”, “EMERGENCYCID=”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:8] Set(“SIP/1001-0000004a”, “TRUNKOUTCID=01473857880”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]:12] ExecIf(“SIP/1001-0000004a”, “1?Set(CALLERID(all)=01473857880)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:13] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERID(all)=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:14] ExecIf(“SIP/1001-0000004a”, “0?Set(CALLERID(all)=)”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]:13] Set(“SIP/1001-0000004a”, “OUTNUM=014737222444”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:14] Set(“SIP/1001-0000004a”, “custom=SIP/out”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]:17] Macro(“SIP/1001-0000004a”, “dialout-trunk-predial-hook,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:1] MacroExit(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:18] GotoIf(“SIP/1001-0000004a”, “0?bypass,1”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]:21] GotoIf(“SIP/1001-0000004a”, “0?customtrunk”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:1] Set(“SIP/1001-0000004a”, “RC=20”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:4] Set(“SIP/1001-0000004a”, “CALLERID(number)=1001”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:6] Macro(“SIP/1001-0000004a”, “outisbusy,”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]:1] Progress(“SIP/1001-0000004a”, “”) in new stack
[2012-12-10 08:17:28] VERBOSE[5526] pbx.c: – Executing [[email protected]: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 [[email protected]: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: