[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/104-00000004", "0?sub-pincheck,s,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/104-00000004", "0?disabletrunk,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/104-00000004", "DIAL_NUMBER=63035127") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/104-00000004", "DIAL_TRUNK_OPTIONS=tr") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/104-00000004", "OUTBOUND_GROUP=OUT_1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/104-00000004", "0?nomax") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/104-00000004", "0?chanfull") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/104-00000004", "0?skipoutcid") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/104-00000004", "DIAL_TR[quote]UNK_OPTIONS=") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/104-00000004", "outbound-callerid,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/104-00000004", "0?Set(CALLERPRES()=)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/104-00000004", "0?Set(REALCALLERIDNUM=104)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/104-00000004", "1?normcid") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-outbound-callerid,s,6)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:6] Set("SIP/104-00000004", "USEROUTCID=") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/104-00000004", "EMERGENCYCID=") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/104-00000004", "TRUNKOUTCID=23177070") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/104-00000004", "1?trunkcid") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-outbound-callerid,s,12)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/104-00000004", "1?Set(CALLERID(all)=23177070)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/104-00000004", "0?Set(CALLERID(all)=)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/104-00000004", "0?Set(CALLERID(all)=)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/104-00000004", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/104-00000004", "1?sub-flp-1,s,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@sub-flp-1:1] ExecIf("SIP/104-00000004", "1?Set(TARGET_FLP41=85263035127)") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@sub-flp-1:2] GotoIf("SIP/104-00000004", "1?match") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (sub-flp-1,s,4)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@sub-flp-1:4] Set("SIP/104-00000004", "DIAL_NUMBER=85263035127") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@sub-flp-1:5] Return("SIP/104-00000004", "") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/104-00000004", "OUTNUM=85263035127") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/104-00000004", "custom=DAHDI/g0") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/104-00000004", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:16] Macro("SIP/104-00000004", "dialout-trunk-predial-hook,") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/104-00000004", "") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/104-00000004", "0?bypass,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/104-00000004", "0?customtrunk") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:19] Dial("SIP/104-00000004", "DAHDI/g0/85263035127,300,") in new stack
[Oct 2 20:32:03] WARNING[3756] app_dial.c: Unable to create channel of type 'DAHDI' (cause 0 - Unknown)
[Oct 2 20:32:03] VERBOSE[3756] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:20] NoOp("SIP/104-00000004", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-dialout-trunk:21] Goto("SIP/104-00000004", "s-CHANUNAVAIL,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/104-00000004", "RC=0") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/104-00000004", "0,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-dialout-trunk,0,1)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [0@macro-dialout-trunk:1] Goto("SIP/104-00000004", "continue,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-dialout-trunk,continue,1)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [continue@macro-dialout-trunk:1] GotoIf("SIP/104-00000004", "1?noreport") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Goto (macro-dialout-trunk,continue,3)
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [continue@macro-dialout-trunk:3] NoOp("SIP/104-00000004", "TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 0 - failing through to other trunks") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [continue@macro-dialout-trunk:4] Set("SIP/104-00000004", "CALLERID(number)=104") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [963035127@from-internal:7] Macro("SIP/104-00000004", "outisbusy,") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outisbusy:1] Progress("SIP/104-00000004", "") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outisbusy:2] GotoIf("SIP/104-00000004", "0?emergency,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outisbusy:3] GotoIf("SIP/104-00000004", "0?intracompany,1") in new stack
[Oct 2 20:32:03] VERBOSE[3756] pbx.c: -- Executing [s@macro-outisbusy:4] Playback("SIP/104-00000004", "all-circuits-busy-now&pls-try-call-later, noanswer") in new stack
[Oct 2 20:32:03] VERBOSE[3756] file.c: -- <SIP/104-00000004> Playing 'all-circuits-busy-now.gsm' (language 'en')
[Oct 2 20:32:04] VERBOSE[3756] file.c: -- <SIP/104-00000004> Playing 'pls-try-call-later.gsm' (language 'en')
係google找到係chan_dahdi.c改
但係唔知果個野放左係邊
https://issues.asterisk.org/view.php?id=15619
1. In globals, the var is created as trunk_1 = DAHDI/trunk_1.
Observation: Asterisk has no clue what to do with this in chan_dahdi.c
2. After changing trunk_1 = DAHDI/trunk_1 to trunk_1 = DAHDI/g1, the first channel in the trunk works, but none of the other ones do. Asterisk replies with congestion message in CLI even though the 2 other lines in the defined trunk are free.
The analog trunk is defined as having ports 1, 2 and 3 using SVN revision 4970 of the gui. |