Switchvox to Trixbox

Hi. I understand that it is weekend but I need help here please. I’ve been looking for answers online but I can’t find any. My current set up is that when a DID number is dialled, it gets routed to Switchvox(Digium), then it forwards the call to trixbox through extension 8891 which is also the queue number on my trixbox. I use eyebeam as a client. The call goes through my extension but the “ANI” does not show. Please help.

Details:
Asterisk 1.6.0.26-FONCORE-r78
Freepbx: v2.8.0.4 ©2008 Fonality, inc All Rights Reserved.

CLI

== Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Using SIP VRTP TOS bits 136 == Using SIP VRTP CoS mark 6 -- Executing [8891@from-internal:1] Macro("SIP/trixbox-00000041", "user-callerid,") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/trixbox-00000041", "AMPUSER=trixbox") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/trixbox-00000041", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/trixbox-00000041", "1?Set(REALCALLERIDNUM=trixbox)") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/trixbox-00000041", "AMPUSER=") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/trixbox-00000041", "AMPUSERCIDNAME=") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/trixbox-00000041", "1?report") in new stack -- Goto (macro-user-callerid,s,10) -- Executing [s@macro-user-callerid:10] GotoIf("SIP/trixbox-00000041", "0?continue") in new stack -- Executing [s@macro-user-callerid:11] Set("SIP/trixbox-00000041", "__TTL=64") in new stack -- Executing [s@macro-user-callerid:12] GotoIf("SIP/trixbox-00000041", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] NoOp("SIP/trixbox-00000041", "Using CallerID "trixbox" <trixbox>") in new stack -- Executing [8891@from-internal:2] Answer("SIP/trixbox-00000041", "") in new stack -- Executing [8891@from-internal:3] ExecIf("SIP/trixbox-00000041", "1?Set(__QUEUEWAIT=1354404797)") in new stack -- Executing [8891@from-internal:4] Set("SIP/trixbox-00000041", "__BLKVM_OVERRIDE=BLKVM/8891/SIP/trixbox-00000041") in new stack -- Executing [8891@from-internal:5] Set("SIP/trixbox-00000041", "__BLKVM_BASE=8891") in new stack -- Executing [8891@from-internal:6] Set("SIP/trixbox-00000041", "DB(BLKVM/8891/SIP/trixbox-00000041)=TRUE") in new stack -- Executing [8891@from-internal:7] ExecIf("SIP/trixbox-00000041", "1?Set(_DIAL_OPTIONS=trM(auto-blkvm))") in new stack -- Executing [8891@from-internal:8] Set("SIP/trixbox-00000041", "__NODEST=8891") in new stack -- Executing [8891@from-internal:9] GotoIf("SIP/trixbox-00000041", "1?REPCID") in new stack -- Goto (from-internal,8891,14) -- Executing [8891@from-internal:14] NoOp("SIP/trixbox-00000041", "CALLERID(name) is trixbox") in new stack -- Executing [8891@from-internal:15] Set("SIP/trixbox-00000041", "_RGPREFIX=Tech") in new stack -- Executing [8891@from-internal:16] Set("SIP/trixbox-00000041", "CALLERID(name)=Techtrixbox") in new stack -- Executing [8891@from-internal:17] Set("SIP/trixbox-00000041", "MONITOR_FILENAME=/var/spool/asterisk/monitor/q8891-20121201-153317-1354404797.223") in new stack -- Executing [8891@from-internal:18] Set("SIP/trixbox-00000041", "__MOHCLASS=default") in new stack -- Executing [8891@from-internal:19] Set("SIP/trixbox-00000041", "__CWIGNORE=TRUE") in new stack -- Executing [8891@from-internal:20] Queue("SIP/trixbox-00000041", "8891,t,,,120") in new stack -- Started music on hold, class 'default', on SIP/trixbox-00000041 -- Called Local/6000@from-internal/n -- Executing [6000@from-internal:1] Macro("Local/6000@from-internal-4c18;2", "exten-vm,novm,6000") in new stack -- Executing [s@macro-exten-vm:1] Macro("Local/6000@from-internal-4c18;2", "user-callerid") in new stack -- Executing [s@macro-user-callerid:1] Set("Local/6000@from-internal-4c18;2", "AMPUSER=trixbox") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("Local/6000@from-internal-4c18;2", "1?report") in new stack -- Goto (macro-user-callerid,s,10) -- Executing [s@macro-user-callerid:10] GotoIf("Local/6000@from-internal-4c18;2", "0?continue") in new stack -- Executing [s@macro-user-callerid:11] Set("Local/6000@from-internal-4c18;2", "__TTL=63") in new stack -- Executing [s@macro-user-callerid:12] GotoIf("Local/6000@from-internal-4c18;2", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] NoOp("Local/6000@from-internal-4c18;2", "Using CallerID "Techtrixbox" <trixbox>") in new stack -- Executing [s@macro-exten-vm:2] Set("Local/6000@from-internal-4c18;2", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("Local/6000@from-internal-4c18;2", "VMBOX=novm") in new stack -- Executing [s@macro-exten-vm:4] Set("Local/6000@from-internal-4c18;2", "EXTTOCALL=6000") in new stack -- Executing [s@macro-exten-vm:5] Set("Local/6000@from-internal-4c18;2", "CFUEXT=") in new stack -- Executing [s@macro-exten-vm:6] Set("Local/6000@from-internal-4c18;2", "CFBEXT=") in new stack -- Executing [s@macro-exten-vm:7] Set("Local/6000@from-internal-4c18;2", "RT=""") in new stack -- Executing [s@macro-exten-vm:8] Macro("Local/6000@from-internal-4c18;2", "record-enable,6000,IN") in new stack -- Executing [s@macro-record-enable:1] GotoIf("Local/6000@from-internal-4c18;2", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] AGI("Local/6000@from-internal-4c18;2", "recordingcheck,20121201-153317,1354404797.225") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck,20121201-153317,1354404797.225: Inbound recording enabled. recordingcheck,20121201-153317,1354404797.225: CALLFILENAME=20121201-153317-1354404797.225 -- <Local/6000@from-internal-4c18;2>AGI Script recordingcheck completed, returning 0 -- Executing [s@macro-record-enable:999] MixMonitor("Local/6000@from-internal-4c18;2", "20121201-153317-1354404797.225.gsm,,") in new stack -- Executing [s@macro-exten-vm:9] Macro("Local/6000@from-internal-4c18;2", "dial,"",trM(auto-blkvm),6000") in new stack -- Executing [s@macro-dial:1] GotoIf("Local/6000@from-internal-4c18;2", "0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("Local/6000@from-internal-4c18;2", "default") in new stack -- Executing [s@macro-dial:3] AGI("Local/6000@from-internal-4c18;2", "dialparties.agi") in new stack == Begin MixMonitor Recording Local/6000@from-internal-4c18;2 -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is 'Techtrixbox' number is 'trixbox' dialparties.agi: Methodology of ring is 'none' -- dialparties.agi: Added extension 6000 to extension map -- dialparties.agi: Extension 6000 cf is disabled -- dialparties.agi: Extension 6000 do not disturb is disabled > dialparties.agi: extnum 6000 has: cw: 0; hascfb: 0 [] hascfu: 0 [] dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE) dialparties.agi: Extension 6000 has ExtensionState: 0 -- dialparties.agi: Checking CW and CFB status for extension 6000 -- dialparties.agi: DbDel CALLTRACE/6000 - Caller ID is not defined -- dialparties.agi: Filtered ARG3: 6000 > dialparties.agi: NODEST: 8891 blkvm enabled macro already in dialopts: trM(auto-blkvm) > dialparties.agi: NODEST: 8891 blkvm enabled macro already in dialopts: trM(auto-blkvm) -- <Local/6000@from-internal-4c18;2>AGI Script dialparties.agi completed, returning 0 -- Executing [s@macro-dial:7] Dial("Local/6000@from-internal-4c18;2", "SIP/6000,"",trM(auto-blkvm)") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 == Using SIP VRTP TOS bits 136 == Using SIP VRTP CoS mark 6 -- Called 6000 -- Local/6000@from-internal-4c18;1 is ringing -- SIP/6000-00000042 is ringing -- Local/6000@from-internal-4c18;1 is ringing -- Nobody picked up in 20000 ms == Spawn extension (macro-dial, s, 7) exited non-zero on 'Local/6000@from-internal-4c18;2' in macro 'dial' == Spawn extension (macro-exten-vm, s, 9) exited non-zero on 'Local/6000@from-internal-4c18;2' in macro 'exten-vm' == Spawn extension (from-internal, 6000, 1) exited non-zero on 'Local/6000@from-internal-4c18;2' -- Executing [h@from-internal:1] Macro("Local/6000@from-internal-4c18;2", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("Local/6000@from-internal-4c18;2", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,4) -- Executing [s@macro-hangupcall:4] GotoIf("Local/6000@from-internal-4c18;2", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,7) -- Executing [s@macro-hangupcall:7] GotoIf("Local/6000@from-internal-4c18;2", "1?theend") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] Hangup("Local/6000@from-internal-4c18;2", "") in new stack == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/6000@from-internal-4c18;2' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'Local/6000@from-internal-4c18;2' == End MixMonitor Recording Local/6000@from-internal-4c18;2 -- Called Local/6001@from-internal/n -- Executing [6001@from-internal:1] Macro("Local/6001@from-internal-d5f2;2", "exten-vm,novm,6001") in new stack -- Executing [s@macro-exten-vm:1] Macro("Local/6001@from-internal-d5f2;2", "user-callerid") in new stack -- Executing [s@macro-user-callerid:1] Set("Local/6001@from-internal-d5f2;2", "AMPUSER=trixbox") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("Local/6001@from-internal-d5f2;2", "1?report") in new stack -- Goto (macro-user-callerid,s,10) -- Executing [s@macro-user-callerid:10] GotoIf("Local/6001@from-internal-d5f2;2", "0?continue") in new stack -- Executing [s@macro-user-callerid:11] Set("Local/6001@from-internal-d5f2;2", "__TTL=63") in new stack -- Executing [s@macro-user-callerid:12] GotoIf("Local/6001@from-internal-d5f2;2", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] NoOp("Local/6001@from-internal-d5f2;2", "Using CallerID "Techtrixbox" <trixbox>") in new stack -- Executing [s@macro-exten-vm:2] Set("Local/6001@from-internal-d5f2;2", "RingGroupMethod=none") in new stack -- Executing [s@macro-exten-vm:3] Set("Local/6001@from-internal-d5f2;2", "VMBOX=novm") in new stack -- Executing [s@macro-exten-vm:4] Set("Local/6001@from-internal-d5f2;2", "EXTTOCALL=6001") in new stack -- Executing [s@macro-exten-vm:5] Set("Local/6001@from-internal-d5f2;2", "CFUEXT=") in new stack -- Executing [s@macro-exten-vm:6] Set("Local/6001@from-internal-d5f2;2", "CFBEXT=") in new stack -- Executing [s@macro-exten-vm:7] Set("Local/6001@from-internal-d5f2;2", "RT=""") in new stack -- Executing [s@macro-exten-vm:8] Macro("Local/6001@from-internal-d5f2;2", "record-enable,6001,IN") in new stack -- Executing [s@macro-record-enable:1] GotoIf("Local/6001@from-internal-d5f2;2", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] AGI("Local/6001@from-internal-d5f2;2", "recordingcheck,20121201-153343,1354404823.228") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck,20121201-153343,1354404823.228: Inbound recording not enabled -- <Local/6001@from-internal-d5f2;2>AGI Script recordingcheck completed, returning 0 -- Executing [s@macro-record-enable:5] MacroExit("Local/6001@from-internal-d5f2;2", "") in new stack -- Executing [s@macro-exten-vm:9] Macro("Local/6001@from-internal-d5f2;2", "dial,"",trM(auto-blkvm),6001") in new stack -- Executing [s@macro-dial:1] GotoIf("Local/6001@from-internal-d5f2;2", "0?dial") in new stack -- Executing [s@macro-dial:2] SetMusicOnHold("Local/6001@from-internal-d5f2;2", "default") in new stack -- Executing [s@macro-dial:3] AGI("Local/6001@from-internal-d5f2;2", "dialparties.agi") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi dialparties.agi: Starting New Dialparties.agi dialparties.agi: Caller ID name is 'Techtrixbox' number is 'trixbox' dialparties.agi: Methodology of ring is 'none' -- dialparties.agi: Added extension 6001 to extension map -- dialparties.agi: Extension 6001 cf is disabled -- dialparties.agi: Extension 6001 do not disturb is disabled > dialparties.agi: extnum 6001 has: cw: 0; hascfb: 0 [] hascfu: 0 [] dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE) dialparties.agi: Extension 6001 has ExtensionState: 0 -- dialparties.agi: Checking CW and CFB status for extension 6001 -- dialparties.agi: DbDel CALLTRACE/6001 - Caller ID is not defined -- dialparties.agi: Filtered ARG3: 6001 > dialparties.agi: NODEST: 8891 blkvm enabled macro already in dialopts: trM(auto-blkvm) > dialparties.agi: NODEST: 8891 blkvm enabled macro already in dialopts: trM(auto-blkvm) -- <Local/6001@from-internal-d5f2;2>AGI Script dialparties.agi completed, returning 0 -- Executing [s@macro-dial:7] Dial("Local/6001@from-internal-d5f2;2", "SIP/6001,"",trM(auto-blkvm)") in new stack

[ext-queues] include => ext-queues-custom exten => 8891,1,Macro(user-callerid,) exten => 8891,n,Answer exten => 8891,n,ExecIf($["${QUEUEWAIT}" = ""]?Set(__QUEUEWAIT=${EPOCH})) exten => 8891,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL}) exten => 8891,n,Set(__BLKVM_BASE=${EXTEN}) exten => 8891,n,Set(DB(${BLKVM_OVERRIDE})=TRUE) exten => 8891,n,ExecIf($["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]?Set(_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm))) exten => 8891,n,Set(__NODEST=${EXTEN}) exten => 8891,n,GotoIf($["foo${RGPREFIX}" = "foo"]?REPCID) exten => 8891,n,GotoIf($["${RGPREFIX}" != "${CALLERID(name):0:${LEN(${RGPREFIX})}}"]?REPCID) exten => 8891,n,Noop(Current RGPREFIX is ${RGPREFIX}....stripping from Caller ID) exten => 8891,n,Set(CALLERID(name)=${CALLERID(name):${LEN(${RGPREFIX})}}) exten => 8891,n,Set(_RGPREFIX=) exten => 8891,n(REPCID),Noop(CALLERID(name) is ${CALLERID(name)}) exten => 8891,n,Set(_RGPREFIX=Tech) exten => 8891,n,Set(CALLERID(name)=${RGPREFIX}${CALLERID(name)}) exten => 8891,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${UNIQUEID}) exten => 8891,n,Set(__MOHCLASS=default) exten => 8891,n,Set(__CWIGNORE=TRUE) exten => 8891,n,Queue(8891,t,,,120) exten => 8891,n,dbDel(${BLKVM_OVERRIDE}) exten => 8891,n,Set(__NODEST=) exten => 8891,n,Set(__CWIGNORE=) exten => 8891,n,Goto(app-blackhole,hangup,1) exten => 8891*,1,Macro(agent-add,8891,) exten => 8891**,1,Macro(agent-del,8891,8891)

ExecIf(“SIP/trixbox-00000041”, “1?Set(REALCALLERIDNUM=trixbox)”) in new stack

What I don’t understand is that why is the caller ID set to trixbox instead of the ANI. I set “Tech” As prefix but I want the caller’s phone number to show up instead of "trixbox. Help please?

Hi

make sure you have no callerid name setup for this peer on both systems

also make sure trust rpid is set to yes

Thanks for the tip. Caller ID is already set up at Switchvox. Where do I set “trust rpid is set to yes”. What I want to do here is to display the phone number(ANI) of the caller when I receive the call at eyebeam.