All pastes #547321 Raw Edit

Stuff

public text v1 · immutable
·published 2007-06-07 10:46 UTC
rendered paste body
exten => 4,1,dbDel(${BLKVM_OVERRIDE})
exten => 4,n,Set(__NODEST=)
exten => 4,n,Set(CALLERID(all)=Test <34334343434>)
exten => 4,n,Goto(ext-local,101,1)
;exten => 4,n,Goto(ext-group,904,1)

^^ IVR OPTION 4 CODE

VV OUTPUT OF CODE

    -- Accepting overlap call from '' to '2002' on channel 0/1, span 1
    -- Starting simple switch on 'Zap/1-1'
    -- Executing [2002@from-pstn:1] Set("Zap/1-1", "FROM_DID=2002") in new stack
    -- Executing [2002@from-pstn:2] Gosub("Zap/1-1", "app-blacklist-check|s|1") in new stack
    -- Executing [s@app-blacklist-check:1] LookupBlacklist("Zap/1-1", "") in new stack
    -- Executing [s@app-blacklist-check:2] GotoIf("Zap/1-1", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:3] Return("Zap/1-1", "") in new stack
    -- Executing [2002@from-pstn:3] Goto("Zap/1-1", "ivr-12|s|1") in new stack
    -- Goto (ivr-12,s,1)
    -- Executing [s@ivr-12:1] Set("Zap/1-1", "LOOPCOUNT=0") in new stack
    -- Executing [s@ivr-12:2] Set("Zap/1-1", "__DIR-CONTEXT=default") in new stack
    -- Executing [s@ivr-12:3] Set("Zap/1-1", "_IVR_CONTEXT_ivr-12=") in new stack
    -- Executing [s@ivr-12:4] Set("Zap/1-1", "_IVR_CONTEXT=ivr-12") in new stack
    -- Executing [s@ivr-12:5] GotoIf("Zap/1-1", "0?begin") in new stack
    -- Executing [s@ivr-12:6] Answer("Zap/1-1", "") in new stack
    -- Executing [s@ivr-12:7] Wait("Zap/1-1", "1") in new stack
    -- Executing [s@ivr-12:8] Set("Zap/1-1", "TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to 3
    -- Executing [s@ivr-12:9] Set("Zap/1-1", "TIMEOUT(response)=10") in new stack
    -- Response timeout set to 10
    -- Executing [s@ivr-12:10] BackGround("Zap/1-1", "custom/ivr") in new stack
    -- <Zap/1-1> Playing 'custom/ivr' (language 'en')
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'admin' logged on from 127.0.0.1
  == CDR updated on Zap/1-1
    -- Executing [4@ivr-12:1] DBdel("Zap/1-1", "") in new stack
    -- Executing [4@ivr-12:2] Set("Zap/1-1", "__NODEST=") in new stack
    -- Executing [4@ivr-12:3] Set("Zap/1-1", "CALLERID(all)=Test <34334343434>") in new stack
    -- Executing [4@ivr-12:4] Goto("Zap/1-1", "ext-local|101|1") in new stack
    -- Goto (ext-local,101,1)
    -- Executing [101@ext-local:1] Macro("Zap/1-1", "exten-vm|101|101") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("Zap/1-1", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("Zap/1-1", "user-callerid: Proofline ") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Zap/1-1", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("Zap/1-1", "0?start") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Zap/1-1", "REALCALLERIDNUM=") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("Zap/1-1", "REALCALLERIDNUM is ") in new stack
    -- Executing [s@macro-user-callerid:6] Set("Zap/1-1", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:7] Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("Zap/1-1", "1?report") in new stack
    -- Goto (macro-user-callerid,s,11)
    -- Executing [s@macro-user-callerid:11] NoOp("Zap/1-1", "TTL:  ARG1: 101") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Zap/1-1", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:13] Set("Zap/1-1", "_TTL=64") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("Zap/1-1", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,21)
    -- Executing [s@macro-user-callerid:21] NoOp("Zap/1-1", " CALLERID(all)=Test <34334343434> ") in new stack
    -- Executing [s@macro-exten-vm:2] Set("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
    -- Executing [s@macro-exten-vm:3] Set("Zap/1-1", "VMBOX=101") in new stack
    -- Executing [s@macro-exten-vm:4] Set("Zap/1-1", "EXTTOCALL=101") in new stack
    -- Executing [s@macro-exten-vm:5] Set("Zap/1-1", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("Zap/1-1", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("Zap/1-1", "RT=20") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("Zap/1-1", "record-enable|101|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Zap/1-1", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] DeadAGI("Zap/1-1", "recordingcheck||1181202409.1210") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck||1181202409.1210: Inbound recording enabled.
  recordingcheck||1181202409.1210: CALLFILENAME=20070607-084656-1181202409.1210
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:999] MixMonitor("Zap/1-1", "20070607-084656-1181202409.1210.wav") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("Zap/1-1", "dial|20|tr|101") in new stack
    -- Executing [s@macro-dial:1] DeadAGI("Zap/1-1", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
  == Begin MixMonitor Recording Zap/1-1
  dialparties.agi: Starting New Dialparties.agi
  dialparties.agi: priority is 1
  dialparties.agi: Caller ID name is 'Test' number is ‘34334343434’
  dialparties.agi: Methodology of ring is  'none'
       >  dialparties.agi: USE_CONFIRMATION:  'FALSE'
       >  dialparties.agi: RINGGROUP_INDEX:   ''
    --  dialparties.agi: Added extension 101 to extension map
    --  dialparties.agi: Extension 101 cf is disabled
    --  dialparties.agi: Extension 101 do not disturb is disabled
       >  dialparties.agi: extnum: 101
       >  dialparties.agi: exthascw: 1
       >  dialparties.agi: exthascfb: 0
       >  dialparties.agi: extcfb:
       >  dialparties.agi: exthascfu: 0
       >  dialparties.agi: extcfu:
    --  dialparties.agi: DbDel CALLTRACE/101 - Caller ID is not defined
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:10] Dial("Zap/1-1", "SIP/101|20|tr") in new stack
    -- Called 101