Thank you for your answer sanjayws,
Here’s the full log on when the call fails:
– Executing [01XXXXXXXXXX@from-internal:1] Macro(“SIP/5230-0000003f”, “user-callerid,LIMIT,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/5230-0000003f”, “AMPUSER=5230”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/5230-0000003f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/5230-0000003f”, “1?Set(REALCALLERIDNUM=5230)”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/5230-0000003f”, “AMPUSER=5230”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/5230-0000003f”, “AMPUSERCIDNAME=Enrique del Valle”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/5230-0000003f”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/5230-0000003f”, “AMPUSERCID=5230”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/5230-0000003f”, “CALLERID(all)=“Enrique del Valle” <5230>”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“SIP/5230-0000003f”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/5230-0000003f”, “1?Set(GROUP(concurrency_limit)=5230)”) in new stack
– Executing [s@macro-user-callerid:11] ExecIf(“SIP/5230-0000003f”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:12] GosubIf(“SIP/5230-0000003f”, “7?sub-ccss,s,1(from-internal,01XXXXXXXXXX)”) in new stack
– Executing [s@sub-ccss:1] ExecIf(“SIP/5230-0000003f”, “0?Return()”) in new stack
– Executing [s@sub-ccss:2] Set(“SIP/5230-0000003f”, “CCSS_SETUP=TRUE”) in new stack
– Executing [s@sub-ccss:3] GosubIf(“SIP/5230-0000003f”, “0?monitor_config,1(from-internal,01XXXXXXXXXX):monitor_default,1(from-internal,01XXXXXXXXXX)”) in new stack
– Executing [monitor_default@sub-ccss:1] GotoIf(“SIP/5230-0000003f”, “0?is_exten”) in new stack
– Executing [monitor_default@sub-ccss:2] StackPop(“SIP/5230-0000003f”, “”) in new stack
– Executing [monitor_default@sub-ccss:3] Return(“SIP/5230-0000003f”, “FALSE”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/5230-0000003f”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,26)
– Executing [s@macro-user-callerid:26] Set(“SIP/5230-0000003f”, “CALLERID(number)=5230”) in new stack
– Executing [s@macro-user-callerid:27] Set(“SIP/5230-0000003f”, “CALLERID(name)=Enrique del Valle”) in new stack
– Executing [s@macro-user-callerid:28] Set(“SIP/5230-0000003f”, “CHANNEL(language)=es”) in new stack
– Executing [01XXXXXXXXXX@from-internal:2] Set(“SIP/5230-0000003f”, “MOHCLASS=default”) in new stack
– Executing [01XXXXXXXXXX@from-internal:3] Set(“SIP/5230-0000003f”, “_NODEST=”) in new stack
– Executing [01XXXXXXXXXX@from-internal:4] Gosub(“SIP/5230-0000003f”, “sub-record-check,s,1(out,01XXXXXXXXXX,)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“SIP/5230-0000003f”, “1?check”) in new stack
– Goto (sub-record-check,s,6)
– Executing [s@sub-record-check:6] Set(“SIP/5230-0000003f”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:7] GotoIf(“SIP/5230-0000003f”, “1?next”) in new stack
– Goto (sub-record-check,s,10)
– Executing [s@sub-record-check:10] ExecIf(“SIP/5230-0000003f”, “0?Return()”) in new stack
– Executing [s@sub-record-check:11] GotoIf(“SIP/5230-0000003f”, “0?out,1”) in new stack
– Executing [s@sub-record-check:12] Set(“SIP/5230-0000003f”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“SIP/5230-0000003f”, “0?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [s@sub-record-check:14] Set(“SIP/5230-0000003f”, “NOW=1354721283”) in new stack
– Executing [s@sub-record-check:15] Set(“SIP/5230-0000003f”, “__DAY=05”) in new stack
– Executing [s@sub-record-check:16] Set(“SIP/5230-0000003f”, “__MONTH=12”) in new stack
– Executing [s@sub-record-check:17] Set(“SIP/5230-0000003f”, “__YEAR=2012”) in new stack
– Executing [s@sub-record-check:18] Set(“SIP/5230-0000003f”, “__TIMESTR=20121205-152803”) in new stack
– Executing [s@sub-record-check:19] Set(“SIP/5230-0000003f”, “__FROMEXTEN=5230”) in new stack
– Executing [s@sub-record-check:20] Set(“SIP/5230-0000003f”, “__CALLFILENAME=out-01XXXXXXXXXX-5230-20121205-152803-1354721283.63”) in new stack
– Executing [s@sub-record-check:21] Goto(“SIP/5230-0000003f”, “out,1”) in new stack
– Goto (sub-record-check,out,1)
– Executing [out@sub-record-check:1] ExecIf(“SIP/5230-0000003f”, “1?Set(__REC_POLICY_MODE=)”) in new stack
– Executing [out@sub-record-check:2] GosubIf(“SIP/5230-0000003f”, “0?record,1(exten,01XXXXXXXXXX,5230)”) in new stack
– Executing [out@sub-record-check:3] Return(“SIP/5230-0000003f”, “”) in new stack
– Executing [01XXXXXXXXXX@from-internal:5] Macro(“SIP/5230-0000003f”, “dialout-trunk,1,XXXXXXXXXX,”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“SIP/5230-0000003f”, “DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/5230-0000003f”, “0?sub-pincheck,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/5230-0000003f”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/5230-0000003f”, “DIAL_NUMBER=XXXXXXXXXX”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/5230-0000003f”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/5230-0000003f”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/5230-0000003f”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/5230-0000003f”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/5230-0000003f”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/5230-0000003f”, “outbound-callerid,1”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/5230-0000003f”, “0?Set(REALCALLERIDNUM=5230)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/5230-0000003f”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/5230-0000003f”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/5230-0000003f”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/5230-0000003f”, “TRUNKOUTCID=XXXXXXXXXX”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/5230-0000003f”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/5230-0000003f”, “1?Set(CALLERID(all)=XXXXXXXXXX)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:15] ExecIf(“SIP/5230-0000003f”, “0?Set(CALLERPRES()=prohib_passed_screen)”) in new stack
– Executing [s@macro-dialout-trunk:12] GosubIf(“SIP/5230-0000003f”, “0?sub-flp-1,s,1()”) in new stack
– Executing [s@macro-dialout-trunk:13] Set(“SIP/5230-0000003f”, “OUTNUM=XXXXXXXXXX”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/5230-0000003f”, “custom=SIP/GCTELE”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/5230-0000003f”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))”) in new stack
– Executing [s@macro-dialout-trunk:16] ExecIf(“SIP/5230-0000003f”, “0?Set(DIAL_TRUNK_OPTIONS=M(confirm))”) in new stack
– Executing [s@macro-dialout-trunk:17] Macro(“SIP/5230-0000003f”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/5230-0000003f”, “”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/5230-0000003f”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:19] ExecIf(“SIP/5230-0000003f”, “1?Set(CONNECTEDLINE(num,i)=XXXXXXXXXX)”) in new stack
– Executing [s@macro-dialout-trunk:20] ExecIf(“SIP/5230-0000003f”, “1?Set(CONNECTEDLINE(name,i)=CID:XXXXXXXXXX)”) in new stack
– Executing [s@macro-dialout-trunk:21] GotoIf(“SIP/5230-0000003f”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk: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 [s@macro-dialout-trunk:23] NoOp(“SIP/5230-0000003f”, “Dial failed for some reason with DIALSTATUS = CONGESTION and HANGUPCAUSE = 38”) in new stack
– Executing [s@macro-dialout-trunk:24] Goto(“SIP/5230-0000003f”, “s-CONGESTION,1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [s-CONGESTION@macro-dialout-trunk:1] Set(“SIP/5230-0000003f”, “RC=38”) in new stack
– Executing [s-CONGESTION@macro-dialout-trunk:2] Goto(“SIP/5230-0000003f”, “38,1”) in new stack
– Goto (macro-dialout-trunk,38,1)
– Executing [38@macro-dialout-trunk:1] Goto(“SIP/5230-0000003f”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/5230-0000003f”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/5230-0000003f”, “TRUNK Dial failed due to CONGESTION HANGUPCAUSE: 38 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/5230-0000003f”, “CALLERID(number)=5230”) in new stack
– Executing [01XXXXXXXXXX@from-internal:6] Macro(“SIP/5230-0000003f”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/5230-0000003f”, “”) in new stack
– Executing [s@macro-outisbusy:2] GotoIf(“SIP/5230-0000003f”, “0?emergency,1”) in new stack
– Executing [s@macro-outisbusy:3] GotoIf(“SIP/5230-0000003f”, “0?intracompany,1”) in new stack
– Executing [s@macro-outisbusy: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 [s@macro-outisbusy: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 [h@from-internal: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