-- Executing [00123456789@from-internal:1] Macro("SIP/59-b7311a40", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/59-b7311a40", "AMPUSER=59") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/59-b7311a40", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/59-b7311a40", "1|Set|REALCALLERIDNUM=59") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/59-b7311a40", "AMPUSER=59") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/59-b7311a40", "AMPUSERCIDNAME=Fax") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/59-b7311a40", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/59-b7311a40", "AMPUSERCID=59") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/59-b7311a40", "CALLERID(all)="Fax" <59>") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/59-b7311a40", "REALCALLERIDNUM=59") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/59-b7311a40", "1|Set|CHANNEL(language)=de") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/59-b7311a40", "1?continue") in new stack
-- Goto (macro-user-callerid,s,20)
-- Executing [s@macro-user-callerid:20] NoOp("SIP/59-b7311a40", "Using CallerID "Fax" <59>") in new stack
-- Executing [00123456789@from-internal:2] Set("SIP/59-b7311a40", "_NODEST=") in new stack
-- Executing [00123456789@from-internal:3] Macro("SIP/59-b7311a40", "record-enable|59|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/59-b7311a40", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/59-b7311a40", "recordingcheck|20090525-091332|1243235612.365") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20090525-091332|1243235612.365: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/59-b7311a40", "") in new stack
-- Executing [00123456789@from-internal:4] Macro("SIP/59-b7311a40", "dialout-trunk|2|0123456789||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/59-b7311a40", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/59-b7311a40", "0?sub-pincheck|s|1") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/59-b7311a40", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/59-b7311a40", "DIAL_NUMBER=0123456789") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/59-b7311a40", "DIAL_TRUNK_OPTIONS=rtT") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/59-b7311a40", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/59-b7311a40", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/59-b7311a40", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/59-b7311a40", "DIAL_TRUNK_OPTIONS=tT") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/59-b7311a40", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/59-b7311a40", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/59-b7311a40", "0|Set|REALCALLERIDNUM=59") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/59-b7311a40", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/59-b7311a40", "USEROUTCID=4180559") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/59-b7311a40", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/59-b7311a40", "TRUNKOUTCID=418050") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/59-b7311a40", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/59-b7311a40", "1|Set|CALLERID(all)=418050") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/59-b7311a40", "1|Set|CALLERID(all)=4180559") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/59-b7311a40", "0|SetCallerPres|prohib_passed_screen") in new stack
-- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/59-b7311a40", "1|AGI|fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern .
== fixlocalprefix: Dialpattern . matched. 0123456789 -> 0123456789
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/59-b7311a40", "OUTNUM=0123456789") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/59-b7311a40", "custom=AMP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/59-b7311a40", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)tT") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/59-b7311a40", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/59-b7311a40", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/59-b7311a40", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/59-b7311a40", "1?customtrunk") in new stack
-- Goto (macro-dialout-trunk,s,21)
-- Executing [s@macro-dialout-trunk:21] Set("SIP/59-b7311a40", "pre_num=AMP:CAPI/g1/") in new stack
-- Executing [s@macro-dialout-trunk:22] Set("SIP/59-b7311a40", "the_num=OUTNUM") in new stack
-- Executing [s@macro-dialout-trunk:23] Set("SIP/59-b7311a40", "post_num=/b") in new stack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/59-b7311a40", "1?outnum:skipoutnum") in new stack
-- Goto (macro-dialout-trunk,s,25)
-- Executing [s@macro-dialout-trunk:25] Set("SIP/59-b7311a40", "the_num=0123456789") in new stack
-- Executing [s@macro-dialout-trunk:26] Dial("SIP/59-b7311a40", "CAPI/g1/0123456789/b|300|tT") in new stack
> data = g1/0123456789/b format=8
> parsed dialstring: 'g1' 'NULL' '0123456789' 'b'
> capi request group = 2
== ISDN3#02: setting format alaw - 0x8 (alaw)
> parsed dialstring: 'g1' 'NULL' '0123456789' 'b'
> capi: peerlink -1 allocated, peer is unlinked
== ISDN3#02: Call CAPI/ISDN3#02/0123456789-a7 with B3 (pres=0x00, ton=0x00)
-- Called g1/0123456789/b
> chan_capi devicestate requested for ISDN3#02/0123456789-a7 is 'In use'
> chan_capi devicestate requested for ISDN3#02/0123456789 is 'In use'
-- ISDN3#02: received CONNECT_CONF PLCI = 0x403
-- ISDN3#02: info element CHANNEL IDENTIFICATION 89
-- ISDN3#02: info element CALL PROCEEDING
-- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Unknown control '15' (15) ] [ISDN3#02]
-- CAPI/ISDN3#02/0123456789-a7 is proceeding passing it to SIP/59-b7311a40
-- ISDN3#02: info element PI 82 88
-- chan_capi queue frame: [ TYPE: Control (4) SUBCLASS: Unknown control '14' (14) ] [ISDN3#02]
-- ISDN3#02: info element PI 82 82
-- ISDN3#02: info element CAUSE 85 d8
-- ISDN3#02: info element DISCONNECT
-- CAPI/ISDN3#02/0123456789-a7 is making progress passing it to SIP/59-b7311a40
== ISDN3#02: CAPI Hangingup for PLCI=0x403 in state 5
-- ISDN3#02: activehangingup (cause=88) for PLCI=0x403
== Spawn extension (macro-dialout-trunk, s, 26) exited non-zero on 'SIP/59-b7311a40'
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/59-b7311a40", "hangupcall|") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/59-b7311a40", "vw") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/59-b7311a40", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/59-b7311a40", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/59-b7311a40", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/59-b7311a40", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/59-b7311a40", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/59-b7311a40'
> chan_capi devicestate requested for ISDN3#02/0123456789-a7 is 'Not in use'
> chan_capi devicestate requested for ISDN3#02/0123456789 is 'Not in use'
> chan_capi devicestate requested for ISDN3#02/0123456789-a7 is 'Not in use'
> chan_capi devicestate requested for ISDN3#02/0123456789 is 'Not in use'
-- ISDN3#02: info element RELEASE COMPLETE
> ISDN3#02: CAPI INFO 0x34d8: Incompatible destination
== ISDN3#02: Interface cleanup PLCI=0x403