I cannot interpret the results, however. Below is what I saw. Any help would be appreciated. Thanks.
-- Accepting call from '5556001' to '5551234' on channel 0/16, span 1
-- Executing [5551234@from-pstn:1] Set("DAHDI/16-1", "__FROM_DID=5551234") in new stack
-- Executing [5551234@from-pstn:2] Gosub("DAHDI/16-1", "cidlookup,cidlookup_1,1") in new stack
-- Executing [cidlookup_1@cidlookup:1] MYSQL("DAHDI/16-1", "Connect connid localhost xxxxx xxxxxxx cidlookup") in new stack
-- Executing [cidlookup_1@cidlookup:2] MYSQL("DAHDI/16-1", "Query resultid 1 SELECT\ CONCAT\(name\,\'\,\ \'\,phonetype\,\'\,\ \'\,pacts_id\)\ from\ callerid\ WHERE\ number\ LIKE\ \'%5556001%\'") in new stack
-- Executing [cidlookup_1@cidlookup:3] MYSQL("DAHDI/16-1", "Fetch fetchid CALLERID(name)") in new stack
-- Executing [cidlookup_1@cidlookup:4] MYSQL("DAHDI/16-1", "Clear ") in new stack
-- Executing [cidlookup_1@cidlookup:5] MYSQL("DAHDI/16-1", "Disconnect 1") in new stack
-- Executing [cidlookup_1@cidlookup:6] Return("DAHDI/16-1", "") in new stack
-- Executing [5551234@from-pstn:3] ExecIf("DAHDI/16-1", "1 ?Set(CALLERID(name)=5556001)") in new stack
-- Executing [5551234@from-pstn:4] Set("DAHDI/16-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [5551234@from-pstn:5] Set("DAHDI/16-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [5551234@from-pstn:6] Goto("DAHDI/16-1", "from-did-direct,1234,1") in new stack
-- Goto (from-did-direct,1234,1)
-- Executing [1234@from-did-direct:1] Macro("DAHDI/16-1", "exten-vm,novm,1234") in new stack
-- Executing [s@macro-exten-vm:1] Macro("DAHDI/16-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/16-1", "AMPUSER=5556001") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/16-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/16-1", "1?Set(REALCALLERIDNUM=5556001)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/16-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/16-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/16-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/16-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/16-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/16-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/16-1", "Using CallerID "5556001" <5556001>") in new stack
-- Executing [s@macro-exten-vm:2] Set("DAHDI/16-1", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("DAHDI/16-1", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("DAHDI/16-1", "EXTTOCALL=1234") in new stack
-- Executing [s@macro-exten-vm:5] Set("DAHDI/16-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("DAHDI/16-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("DAHDI/16-1", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("DAHDI/16-1", "record-enable,1234,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("DAHDI/16-1", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("DAHDI/16-1", "recordingcheck,20090422-133305,1240432385.57") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20090422-133305,1240432385.57: Inbound recording not enabled
– <DAHDI/16-1>AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“DAHDI/16-1”, “”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“DAHDI/16-1”, “dial,tr,1234”) in new stack
– Executing [s@macro-dial:1] GotoIf(“DAHDI/16-1”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“DAHDI/16-1”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘5556001’ number is '5556001’
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 1234 to extension map
– dialparties.agi: Extension 1234 cf is disabled
– dialparties.agi: Extension 1234 do not disturb is disabled
– dialparties.agi: dbset CALLTRACE/1234 to 5556001
– dialparties.agi: Filtered ARG3: 1234
== Manager ‘admin’ logged off from 127.0.0.1
– <DAHDI/16-1>AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“DAHDI/16-1”, “SIP/1234,tr”) in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
== Extension Changed 1234[ext-local] new state Ringing for Notify User 1200
– Called 1234
– SIP/1234-08f7fd70 is ringing
– Channel 0/16, span 1 got hangup request, cause 16
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘DAHDI/16-1’ in macro ‘dial’
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘DAHDI/16-1’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 1234, 1) exited non-zero on ‘DAHDI/16-1’
== Extension Changed 1234[ext-local] new state Idle for Notify User 1200
– Hungup ‘DAHDI/16-1’