Re,
Here the trace with this line commented in the marco “macro-user-callerid”:
;exten => s,n,GotoIf($["${CHANNEL:0:5}" = “Local”]?report)
Asterisk Trace:
-- Executing [112@from-internal:1] Macro("SIP/113-0000000b", "exten-vm|novm|112") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/113-0000000b", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/113-0000000b", "AMPUSER=113") in new stack
-- Executing [s@macro-user-callerid:2] ExecIf("SIP/113-0000000b", "1|Set|REALCALLERIDNUM=113") in new stack
-- Executing [s@macro-user-callerid:3] Set("SIP/113-0000000b", "AMPUSER=113") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/113-0000000b", "AMPUSERCIDNAME=113") in new stack
-- Executing [s@macro-user-callerid:5] GotoIf("SIP/113-0000000b", "0?report") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/113-0000000b", "AMPUSERCID=113") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/113-0000000b", "CALLERID(all)="113" <113>") in new stack
-- Executing [s@macro-user-callerid:8] ExecIf("SIP/113-0000000b", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/113-0000000b", "0?continue") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/113-0000000b", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:11] GotoIf("SIP/113-0000000b", "1?continue") in new stack
-- Goto (macro-user-callerid,s,18)
-- Executing [s@macro-user-callerid:18] NoOp("SIP/113-0000000b", "Using CallerID "113" <113>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/113-0000000b", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/113-0000000b", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/113-0000000b", "EXTTOCALL=112") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/113-0000000b", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/113-0000000b", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/113-0000000b", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/113-0000000b", "record-enable|112|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/113-0000000b", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/113-0000000b", "recordingcheck|20100310-172400|1268238240.22") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100310-172400|1268238240.22: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/113-0000000b”, “”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“SIP/113-0000000b”, “dial||tr|112”) in new stack
– Executing [s@macro-dial:1] GotoIf(“SIP/113-0000000b”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“SIP/113-0000000b”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘113’ number is '113’
dialparties.agi: USE_CONFIRMATION: 'FALSE’
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 112 to extension map
– dialparties.agi: Extension 112 cf is disabled
– dialparties.agi: Extension 112 do not disturb is disabled
> dialparties.agi: extnum 112 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 112 has ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 112
– dialparties.agi: dbset CALLTRACE/112 to 113
– dialparties.agi: Filtered ARG3: 112
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“SIP/113-0000000b”, “SIP/112||tr”) in new stack
– Called 112
– SIP/112-0000000c is ringing
– SIP/112-0000000c is ringing
– SIP/112-0000000c answered SIP/113-0000000b
– Started music on hold, class ‘default’, on SIP/113-0000000b
– <SIP/112-0000000c> Playing ‘pbx-transfer’ (language ‘en’)
– Executing [114@from-internal-xfer:1] Macro(“Local/114@from-internal-xfer-21df,2”, “exten-vm|novm|114”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“Local/114@from-internal-xfer-21df,2”, “user-callerid”) in new stack
– Executing [s@macro-user-callerid:1] Set(“Local/114@from-internal-xfer-21df,2”, “AMPUSER=112”) in new stack
– Executing [s@macro-user-callerid:2] ExecIf(“Local/114@from-internal-xfer-21df,2”, “1|Set|REALCALLERIDNUM=112”) in new stack
– Executing [s@macro-user-callerid:3] Set(“Local/114@from-internal-xfer-21df,2”, “AMPUSER=112”) in new stack
– Executing [s@macro-user-callerid:4] Set(“Local/114@from-internal-xfer-21df,2”, “AMPUSERCIDNAME=112”) in new stack
– Executing [s@macro-user-callerid:5] GotoIf(“Local/114@from-internal-xfer-21df,2”, “0?report”) in new stack
– Executing [s@macro-user-callerid:6] Set(“Local/114@from-internal-xfer-21df,2”, “AMPUSERCID=88111”) in new stack
– Executing [s@macro-user-callerid:7] Set(“Local/114@from-internal-xfer-21df,2”, “CALLERID(all)=“112” <88111>”) in new stack
– Executing [s@macro-user-callerid:8] ExecIf(“Local/114@from-internal-xfer-21df,2”, “0|Set|CHANNEL(language)=”) in new stack
– Executing [s@macro-user-callerid:9] GotoIf(“Local/114@from-internal-xfer-21df,2”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:10] Set(“Local/114@from-internal-xfer-21df,2”, “__TTL=63”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,18)
– Executing [s@macro-user-callerid:18] NoOp(“Local/114@from-internal-xfer-21df,2”, “Using CallerID “112” <88111>”) in new stack
– Executing [s@macro-exten-vm:2] Set(“Local/114@from-internal-xfer-21df,2”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“Local/114@from-internal-xfer-21df,2”, “VMBOX=novm”) in new stack
– Executing [s@macro-exten-vm:4] Set(“Local/114@from-internal-xfer-21df,2”, “EXTTOCALL=114”) in new stack
– Executing [s@macro-exten-vm:5] Set(“Local/114@from-internal-xfer-21df,2”, “CFUEXT=”) in new stack
– Executing [s@macro-exten-vm:6] Set(“Local/114@from-internal-xfer-21df,2”, “CFBEXT=”) in new stack
– Executing [s@macro-exten-vm:7] Set(“Local/114@from-internal-xfer-21df,2”, “RT=”"") in new stack
– Executing [s@macro-exten-vm:8] Macro(“Local/114@from-internal-xfer-21df,2”, “record-enable|114|IN”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“Local/114@from-internal-xfer-21df,2”, “recordingcheck|20100310-172406|1268238246.25”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100310-172406|1268238246.25: Inbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“Local/114@from-internal-xfer-21df,2”, “”) in new stack
– Executing [s@macro-exten-vm:9] Macro(“Local/114@from-internal-xfer-21df,2”, “dial||tr|114”) in new stack
– Executing [s@macro-dial:1] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [s@macro-dial:3] AGI(“Local/114@from-internal-xfer-21df,2”, “dialparties.agi”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
dialparties.agi: Caller ID name is ‘112’ number is '88111’
dialparties.agi: USE_CONFIRMATION: 'FALSE’
dialparties.agi: RINGGROUP_INDEX: ''
dialparties.agi: Methodology of ring is ‘none’
– dialparties.agi: Added extension 114 to extension map
– dialparties.agi: Extension 114 cf is disabled
– dialparties.agi: Extension 114 do not disturb is disabled
> dialparties.agi: extnum 114 has: cw: 0; hascfb: 0 [] hascfu: 0 []
dialparties.agi: ExtensionState: 0
dialparties.agi: Extension 114 has ExtensionState: 0
– dialparties.agi: Checking CW and CFB status for extension 114
– dialparties.agi: dbset CALLTRACE/114 to 88111
– dialparties.agi: Filtered ARG3: 114
== Manager ‘admin’ logged off from 127.0.0.1
– AGI Script dialparties.agi completed, returning 0
– Executing [s@macro-dial:7] Dial(“Local/114@from-internal-xfer-21df,2”, “SIP/114||tr”) in new stack
– Called 114
– SIP/114-0000000d is ringing
– SIP/114-0000000d is ringing
– SIP/114-0000000d is ringing
– SIP/114-0000000d is ringing
– SIP/114-0000000d is ringing
– Executing [h@from-internal:1] Macro(“SIP/112-0000000c”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/112-0000000c”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/112-0000000c”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/112-0000000c”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/112-0000000c”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/112-0000000c’ in macro ‘hangupcall’
== Spawn h extension (from-internal, h, 1) exited non-zero on ‘SIP/112-0000000c’
– Stopped music on hold on SIP/113-0000000b
– <Local/114@from-internal-xfer-21df,1> Playing ‘beep’ (language ‘en’)
– Executing [h@macro-dial:1] Macro(“Transfered/SIP/113-0000000b”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“Transfered/SIP/113-0000000b”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“Transfered/SIP/113-0000000b”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“Transfered/SIP/113-0000000b”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“Transfered/SIP/113-0000000b”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘Transfered/SIP/113-0000000b’ in macro ‘hangupcall’
== Spawn h extension (macro-dial, h, 1) exited non-zero on ‘Transfered/SIP/113-0000000b’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘Transfered/SIP/113-0000000b’ in macro ‘dial’
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘Transfered/SIP/113-0000000b’ in macro ‘exten-vm’
== Spawn extension (from-internal, 112, 1) exited non-zero on ‘Transfered/SIP/113-0000000b’
– Executing [h@macro-dial:1] Macro(“SIP/113-0000000b”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“SIP/113-0000000b”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“SIP/113-0000000b”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“SIP/113-0000000b”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“SIP/113-0000000b”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/113-0000000b’ in macro ‘hangupcall’
== Spawn h extension (macro-dial, h, 1) exited non-zero on ‘SIP/113-0000000b’
== Spawn extension (macro-dial, s, 7) exited non-zero on ‘Local/114@from-internal-xfer-21df,2’ in macro ‘dial’
== Spawn extension (macro-exten-vm, s, 9) exited non-zero on ‘Local/114@from-internal-xfer-21df,2’ in macro ‘exten-vm’
== Spawn extension (from-internal-xfer, 114, 1) exited non-zero on ‘Local/114@from-internal-xfer-21df,2’
– Executing [h@macro-dial:1] Macro(“Local/114@from-internal-xfer-21df,2”, “hangupcall”) in new stack
– Executing [s@macro-hangupcall:1] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?skiprg”) in new stack
– Goto (macro-hangupcall,s,4)
– Executing [s@macro-hangupcall:4] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?skipblkvm”) in new stack
– Goto (macro-hangupcall,s,7)
– Executing [s@macro-hangupcall:7] GotoIf(“Local/114@from-internal-xfer-21df,2”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,9)
– Executing [s@macro-hangupcall:9] Hangup(“Local/114@from-internal-xfer-21df,2”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘Local/114@from-internal-xfer-21df,2’ in macro ‘hangupcall’
== Spawn extension (macro-dial, h, 1) exited non-zero on ‘Local/114@from-internal-xfer-21df,2’
Regards
Frederic