Thank you for your answer sanjayws,
Here’s the full log on when the call fails:
– Executing [[email protected]:1] Macro(“SIP/5230-0000003f”, “user-callerid,LIMIT,”) in new stack
– Executing [[email protected]:1] Set(“SIP/5230-0000003f”, “AMPUSER=5230”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/5230-0000003f”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/5230-0000003f”, “1?Set(REALCALLERIDNUM=5230)”) in new stack
– Executing [[email protected]:4] Set(“SIP/5230-0000003f”, “AMPUSER=5230”) in new stack
– Executing [[email protected]:5] Set(“SIP/5230-0000003f”, “AMPUSERCIDNAME=Enrique del Valle”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/5230-0000003f”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/5230-0000003f”, “AMPUSERCID=5230”) in new stack
– Executing [[email protected]:8] Set(“SIP/5230-0000003f”, “CALLERID(all)=“Enrique del Valle” <5230>”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/5230-0000003f”, “0?limit”) in new stack
– Executing [[email protected]:10] ExecIf(“SIP/5230-0000003f”, “1?Set(GROUP(concurrency_limit)=5230)”) in new stack
– Executing [[email protected]:11] ExecIf(“SIP/5230-0000003f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/5230-0000003f”, “7?sub-ccss,s,1(from-internal,01XXXXXXXXXX)”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/5230-0000003f”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“SIP/5230-0000003f”, “CCSS_SETUP=TRUE”) in new stack
– Executing [[email protected]:3] GosubIf(“SIP/5230-0000003f”, “0?monitor_config,1(from-internal,01XXXXXXXXXX):monitor_default,1(from-internal,01XXXXXXXXXX)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/5230-0000003f”, “0?is_exten”) in new stack
– Executing [[email protected]:2] StackPop(“SIP/5230-0000003f”, “”) in new stack
– Executing [[email protected]:3] Return(“SIP/5230-0000003f”, “FALSE”) in new stack
– Executing [[email protected]:13] GotoIf(“SIP/5230-0000003f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [[email protected]:26] Set(“SIP/5230-0000003f”, “CALLERID(number)=5230”) in new stack
– Executing [[email protected]:27] Set(“SIP/5230-0000003f”, “CALLERID(name)=Enrique del Valle”) in new stack
– Executing [[email protected]:28] Set(“SIP/5230-0000003f”, “CHANNEL(language)=es”) in new stack
– Executing [[email protected]:2] Set(“SIP/5230-0000003f”, “MOHCLASS=default”) in new stack
– Executing [[email protected]:3] Set(“SIP/5230-0000003f”, “_NODEST=”) in new stack
– Executing [[email protected]:4] Gosub(“SIP/5230-0000003f”, “sub-record-check,s,1(out,01XXXXXXXXXX,)”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/5230-0000003f”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [[email protected]:6] Set(“SIP/5230-0000003f”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/5230-0000003f”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [[email protected]:10] ExecIf(“SIP/5230-0000003f”, “0?Return()”) in new stack
– Executing [[email protected]:11] GotoIf(“SIP/5230-0000003f”, “0?out,1”) in new stack
– Executing [[email protected]:12] Set(“SIP/5230-0000003f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/5230-0000003f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:14] Set(“SIP/5230-0000003f”, “NOW=1354721283”) in new stack
– Executing [[email protected]:15] Set(“SIP/5230-0000003f”, “__DAY=05”) in new stack
– Executing [[email protected]:16] Set(“SIP/5230-0000003f”, “__MONTH=12”) in new stack
– Executing [[email protected]:17] Set(“SIP/5230-0000003f”, “__YEAR=2012”) in new stack
– Executing [[email protected]:18] Set(“SIP/5230-0000003f”, “__TIMESTR=20121205-152803”) in new stack
– Executing [[email protected]:19] Set(“SIP/5230-0000003f”, “__FROMEXTEN=5230”) in new stack
– Executing [[email protected]:20] Set(“SIP/5230-0000003f”, “__CALLFILENAME=out-01XXXXXXXXXX-5230-20121205-152803-1354721283.63”) in new stack
– Executing [[email protected]:21] Goto(“SIP/5230-0000003f”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [[email protected]:1] ExecIf(“SIP/5230-0000003f”, “1?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/5230-0000003f”, “0?record,1(exten,01XXXXXXXXXX,5230)”) in new stack
– Executing [[email protected]:3] Return(“SIP/5230-0000003f”, “”) in new stack
– Executing [[email protected]:5] Macro(“SIP/5230-0000003f”, “dialout-trunk,1,XXXXXXXXXX,”) in new stack
– Executing [[email protected]:1] Set(“SIP/5230-0000003f”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/5230-0000003f”, “0?sub-pincheck,s,1()”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/5230-0000003f”, “0?disabletrunk,1”) in new stack
– Executing [[email protected]:4] Set(“SIP/5230-0000003f”, “DIAL_NUMBER=XXXXXXXXXX”) in new stack
– Executing [[email protected]:5] Set(“SIP/5230-0000003f”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/5230-0000003f”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/5230-0000003f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/5230-0000003f”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/5230-0000003f”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/5230-0000003f”, “outbound-callerid,1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/5230-0000003f”, “0?Set(REALCALLERIDNUM=5230)”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/5230-0000003f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/5230-0000003f”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/5230-0000003f”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/5230-0000003f”, “TRUNKOUTCID=XXXXXXXXXX”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/5230-0000003f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/5230-0000003f”, “1?Set(CALLERID(all)=XXXXXXXXXX)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/5230-0000003f”, “0?sub-flp-1,s,1()”) in new stack
– Executing [[email protected]:13] Set(“SIP/5230-0000003f”, “OUTNUM=XXXXXXXXXX”) in new stack
– Executing [[email protected]:14] Set(“SIP/5230-0000003f”, “custom=SIP/GCTELE”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/5230-0000003f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [[email protected]:16] ExecIf(“SIP/5230-0000003f”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [[email protected]:17] Macro(“SIP/5230-0000003f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/5230-0000003f”, “”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/5230-0000003f”, “0?bypass,1”) in new stack
– Executing [[email protected]:19] ExecIf(“SIP/5230-0000003f”, “1?Set(CONNECTEDLINE(num,i)=XXXXXXXXXX)”) in new stack
– Executing [[email protected]:20] ExecIf(“SIP/5230-0000003f”, “1?Set(CONNECTEDLINE(name,i)=CID:XXXXXXXXXX)”) in new stack
– Executing [[email protected]:21] GotoIf(“SIP/5230-0000003f”, “0?customtrunk”) in new stack
– Executing [[email protected]:22] Dial(“SIP/5230-0000003f”, “SIP/GCTELE/XXXXXXXXXX,300,”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
– Called SIP/GCTELE/XXXXXXXXXX
– Got SIP response 500 “Failed to do PSTN routing” back from 000.00.000.00:5060
– SIP/GCTELE-00000040 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:23] NoOp(“SIP/5230-0000003f”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 38”) in new stack
– Executing [[email protected]:24] Goto(“SIP/5230-0000003f”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] Set(“SIP/5230-0000003f”, “RC=38”) in new stack
– Executing [[email protected]:2] Goto(“SIP/5230-0000003f”, “38,1”) in new stack
– Goto (macro-dialout-trunk,38,1)
– Executing [[email protected]:1] Goto(“SIP/5230-0000003f”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [[email protected]:1] GotoIf(“SIP/5230-0000003f”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [[email protected]:3] NoOp(“SIP/5230-0000003f”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 38 - failing through to other trunks”) in new stack
– Executing [[email protected]:4] Set(“SIP/5230-0000003f”, “CALLERID(number)=5230”) in new stack
– Executing [[email protected]:6] Macro(“SIP/5230-0000003f”, “outisbusy,”) in new stack
– Executing [[email protected]:1] Progress(“SIP/5230-0000003f”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/5230-0000003f”, “0?emergency,1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/5230-0000003f”, “0?intracompany,1”) in new stack
– Executing [[email protected]:4] Playback(“SIP/5230-0000003f”, “all-circuits-busy-now&pls-try-call-later, noanswer”) in new stack
[2012-12-05 15:28:03] WARNING[26187]: file.c:663 ast_openstream_full: File all-circuits-busy-now does not exist in any format
[2012-12-05 15:28:03] WARNING[26187]: file.c:954 ast_streamfile: Unable to open all-circuits-busy-now (format 0x8 (alaw)): No such file or directory
[2012-12-05 15:28:03] WARNING[26187]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/5230-0000003f for all-circuits-busy-now&pls-try-call-later, noanswer
[2012-12-05 15:28:03] WARNING[26187]: file.c:663 ast_openstream_full: File pls-try-call-later does not exist in any format
[2012-12-05 15:28:03] WARNING[26187]: file.c:954 ast_streamfile: Unable to open pls-try-call-later (format 0x8 (alaw)): No such file or directory
[2012-12-05 15:28:03] WARNING[26187]: app_playback.c:475 playback_exec: ast_streamfile failed on SIP/5230-0000003f for all-circuits-busy-now&pls-try-call-later, noanswer
– Executing [[email protected]:5] Congestion(“SIP/5230-0000003f”, “20”) in new stack
== Spawn extension (macro-outisbusy, s, 5) exited non-zero on ‘SIP/5230-0000003f’ in macro ‘outisbusy’
== Spawn extension (from-internal, 014421356497, 6) exited non-zero on ‘SIP/5230-0000003f’
– Executing [[email protected]:1] Hangup(“SIP/5230-0000003f”, “”) in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/5230-0000003f’
I hope this can help us more to find out what’s going on, as I’m sure is just something I forgot to configure…
Thank you for your support