Locate Me - External CID passing wrong info.. Please help?

johnnypuffs

New Member
Joined
Nov 2, 2010
Messages
50
Reaction score
0
Hi all,

Using Locate Me for the first time. Seems pretty straightforward but I can not get the correct external CID to display on calls forwarded to me. Sorry for the novel, but I like to give all the info I have so it's easier for people to troubleshoot..

I have this number setup specifically for clients on our "Premium Support" plan, which allows them 24/7 phone access in case of emergency.

I'm updated to the latest:

PBX in a Flash Version = 1.7.5.5
│ FreePBX Version = 2.8.1.2
│ Running Asterisk Version = Asterisk 1.8.2.3
│ Asterisk Source Version = 1.8.2.3
│ Dahdi Source Version = 2.4.0+2.4.0
│ Libpri Source Version = 1.4.11.5
│ IP Address = 192.168.0.111 on eth0
│ Operating System = CentOS release 5.5 (Final)
│ Kernel Version = 2.6.18-194.17.4.el5 - 32 Bit

My Setup --------------------------------------------------------

1. I have the Locate Me feature turned on to "hunt".

2. Initial ring time of 10 seconds, which rings extension 711.

3. Then a Ring Time of 40 sec.

4. My cell number listed in the Follow-Me List, properly formatted with a # at the end.

5. The External CID Configuration is set to "Use Dialed Number", which SHOULD give me a CID of the number they called in on.

---------------------------------------------------------------------

The calls ring through to the extension fine, then dial my cell phone fine. But the CID is always another Google Voice DID we have. The one setup as Default. I need to be able to see the correct GV number coming to me so I know it's important and to pick up.

More Setup ------------------------------------

For this number I have a Google Voice DID coming in. The Inbound Route is set to go to a specific extension, 711. That extension is set with a Custom Context of googlevoice3out.

The custom context has:

ALL OUTBOUND ROUTES: set to Deny

Default3: is the ONLY outbound route set to Allow

Default 3's Trunk Sequence for Matched Routes is:

0 gvoice3
1 gvoice
2 gvoice2
3 gvoice4

---------------------------------------------------

When dialing out from the extension, everything works as it is supposed to. The receiving phone sees the correct gvoice3 number.

It's only Follow-Me that cause this issue.

The next replies to this post are the output from the CLI during a call. (Can't fit in on post)

It appears it is ignoring the External CID Configuration set in follow me, as it allows calls out on Default (numbers/accounts removed for security.. bold/highlighting/etc. by me):

-------------------------------------------------

The following info relates to the CLI output in the next replies:

1. 831####### is the phone number that is calling my DID.

2. 831******* is the dialed Google Voice DID.

The first section until you hit the green highlighted text is the incoming call going to the extension, 711. Everything seems OK to e, though I easily may be missing something..

1. The first RED highlighted section appears to be where the Follow-Me kicks in and calls dialparties.agi for the follow me.. I underlined a line that says:

-- dialparties.agi: Extension 1831*******# cf is disabled

Not sure if this has anything to do with my issue. The call DOES forward as already stated.

2. The second line of red highlighted text is where you can see it is calling the default route (Calling Out Route: Default) instead of Default3 like it should.

3. The third section of red highlighted text shows it's TRYING to set the caller ID to the "Real" caller ID of the number that called in.. Though in the end, that is not even the external CID that comes through.. It's the DID of the Default GV account..

After that I wrote some comments.. but from there on it appears everything starts using the default Google voice account, trunk, etc.

---------------------------------------------------------

Thanks for any help! Much appreciated!!

JP
 
CLI Code

Code:
root@pbx:~ $ asterisk -vr
Verbosity is at least 3
    -- Executing [[email protected]@googlein:1] Wait("Gtalk/+1831#######-874c", "1") in new stack
    -- Executing [[email protected]@googlein:2] Set("Gtalk/+1831#######-874c", "[email protected]") in new stack
    -- Executing [[email protected]@googlein:3] JabberSend("Gtalk/+1831#######-874c", "asterisk3,[email protected],Incoming Google Voice Call: 831#######") in new stack
    -- Executing [[email protected]@googlein:4] Set("Gtalk/+1831#######-874c", "CALLERID(number)=831#######") in new stack
    -- Executing [[email protected]@googlein:5] Set("Gtalk/+1831#######-874c", "CALLERID(name)=831#######") in new stack
    -- Executing [[email protected]@googlein:6] GotoIf("Gtalk/+1831#######-874c", "0?bridged") in new stack
    -- Executing [[email protected]@googlein:7] Goto("Gtalk/+1831#######-874c", "s,regcall") in new stack
    -- Goto (googlein,s,6)
    -- Executing [s@googlein:6] Answer("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [s@googlein:7] SendDTMF("Gtalk/+1831#######-874c", "1") in new stack
    -- Executing [s@googlein:8] Goto("Gtalk/+1831#######-874c", "from-trunk,gv-incoming-account3,1") in new stack
    -- Goto (from-trunk,gv-incoming-account3,1)
    -- Executing [gv-incoming-account3@from-trunk:1] Set("Gtalk/+1831#######-874c", "__FROM_DID=gv-incoming-account3") in new stack
    -- Executing [gv-incoming-account3@from-trunk:2] Gosub("Gtalk/+1831#######-874c", "app-blacklist-check,s,1") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("Gtalk/+1831#######-874c", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("Gtalk/+1831#######-874c", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [gv-incoming-account3@from-trunk:3] Gosub("Gtalk/+1831#######-874c", "cidlookup,cidlookup_3,1") in new stack
  == Manager 'admin' logged on from 127.0.0.1
  == Manager 'admin' logged off from 127.0.0.1
    -- Executing [cidlookup_3@cidlookup:1] Set("Gtalk/+1831#######-874c", "CALLERID(name)=SANTA CRUZ, CA") in new stack
    -- Executing [cidlookup_3@cidlookup:2] Return("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [gv-incoming-account3@from-trunk:4] ExecIf("Gtalk/+1831#######-874c", "0 ?Set(CALLERID(name)=831#######)") in new stack
    -- Executing [gv-incoming-account3@from-trunk:5] Set("Gtalk/+1831#######-874c", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [gv-incoming-account3@from-trunk:6] Set("Gtalk/+1831#######-874c", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [gv-incoming-account3@from-trunk:7] Set("Gtalk/+1831#######-874c", "_RGPREFIX=VIP  ") in new stack
    -- Executing [gv-incoming-account3@from-trunk:8] Set("Gtalk/+1831#######-874c", "CALLERID(name)=VIP  SANTA CRUZ, CA") in new stack
    -- Executing [gv-incoming-account3@from-trunk:9] Goto("Gtalk/+1831#######-874c", "from-did-direct,711,1") in new stack
    -- Goto (from-did-direct,711,1)
    -- Executing [711@from-did-direct:1] GotoIf("Gtalk/+1831#######-874c", "0?ext-local,711,1") in new stack
    -- Executing [711@from-did-direct:2] Macro("Gtalk/+1831#######-874c", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Gtalk/+1831#######-874c", "AMPUSER=831#######") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Gtalk/+1831#######-874c", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("Gtalk/+1831#######-874c", "1?Set(REALCALLERIDNUM=831#######)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("Gtalk/+1831#######-874c", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("Gtalk/+1831#######-874c", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("Gtalk/+1831#######-874c", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Gtalk/+1831#######-874c", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("Gtalk/+1831#######-874c", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("Gtalk/+1831#######-874c", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("Gtalk/+1831#######-874c", "CALLERID(number)=831#######") in new stack
    -- Executing [s@macro-user-callerid:20] Set("Gtalk/+1831#######-874c", "CALLERID(name)=VIP  SANTA CRUZ, CA") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("Gtalk/+1831#######-874c", "Using CallerID "VIP  SANTA CRUZ, CA" <831#######>") in new stack
    -- Executing [711@from-did-direct:3] Set("Gtalk/+1831#######-874c", "__EXTTOCALL=711") in new stack
    -- Executing [711@from-did-direct:4] GotoIf("Gtalk/+1831#######-874c", "1?skipdb") in new stack
    -- Goto (from-did-direct,711,6)
    -- Executing [711@from-did-direct:6] Set("Gtalk/+1831#######-874c", "__NODEST=") in new stack
    -- Executing [711@from-did-direct:7] Set("Gtalk/+1831#######-874c", "__BLKVM_OVERRIDE=BLKVM/711/Gtalk/+1831#######-874c") in new stack
    -- Executing [711@from-did-direct:8] Set("Gtalk/+1831#######-874c", "__BLKVM_BASE=711") in new stack
    -- Executing [711@from-did-direct:9] Set("Gtalk/+1831#######-874c", "DB(BLKVM/711/Gtalk/+1831#######-874c)=TRUE") in new stack
    -- Executing [711@from-did-direct:10] Set("Gtalk/+1831#######-874c", "RRNODEST=") in new stack
    -- Executing [711@from-did-direct:11] Set("Gtalk/+1831#######-874c", "__NODEST=711") in new stack
    -- Executing [711@from-did-direct:12] GosubIf("Gtalk/+1831#######-874c", "1?sub-fmsetcid,s,1") in new stack
    -- Executing [s@sub-fmsetcid:1] Goto("Gtalk/+1831#######-874c", "s-did,1") in new stack
    -- Goto (sub-fmsetcid,s-did,1)
    -- Executing [s-did@sub-fmsetcid:1] ExecIf("Gtalk/+1831#######-874c", "0?Set(__REALCALLERIDNUM=gv-incoming-account3)") in new stack
    -- Executing [s-did@sub-fmsetcid:2] Return("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [711@from-did-direct:13] Set("Gtalk/+1831#######-874c", "RecordMethod=Group") in new stack
    -- Executing [711@from-did-direct:14] Macro("Gtalk/+1831#######-874c", "record-enable,1831*******#-711,Group") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Gtalk/+1831#######-874c", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("Gtalk/+1831#######-874c", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("Gtalk/+1831#######-874c", "1?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,6)
    -- Executing [s@macro-record-enable:6] Set("Gtalk/+1831#######-874c", "LOOPCNT=2") in new stack
    -- Executing [s@macro-record-enable:7] Set("Gtalk/+1831#######-874c", "ITER=1") in new stack
    -- Executing [s@macro-record-enable:8] GotoIf("Gtalk/+1831#######-874c", "1?continue") in new stack
    -- Goto (macro-record-enable,s,13)
    -- Executing [s@macro-record-enable:13] Set("Gtalk/+1831#######-874c", "ITER=2") in new stack
    -- Executing [s@macro-record-enable:14] GotoIf("Gtalk/+1831#######-874c", "1?begin") in new stack
    -- Goto (macro-record-enable,s,8)
    -- Executing [s@macro-record-enable:8] GotoIf("Gtalk/+1831#######-874c", "1?continue") in new stack
    -- Goto (macro-record-enable,s,13)
    -- Executing [s@macro-record-enable:13] Set("Gtalk/+1831#######-874c", "ITER=3") in new stack
    -- Executing [s@macro-record-enable:14] GotoIf("Gtalk/+1831#######-874c", "0?begin") in new stack
    -- Executing [s@macro-record-enable:15] GotoIf("Gtalk/+1831#######-874c", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("Gtalk/+1831#######-874c", "1?MacroExit()") in new stack
    -- Executing [711@from-did-direct:15] GotoIf("Gtalk/+1831#######-874c", "0 ?skipsimple") in new stack
    -- Executing [711@from-did-direct:16] Macro("Gtalk/+1831#######-874c", "simple-dial,711,10") in new stack
    -- Executing [s@macro-simple-dial:1] Set("Gtalk/+1831#######-874c", "__EXTTOCALL=711") in new stack
    -- Executing [s@macro-simple-dial:2] Set("Gtalk/+1831#######-874c", "RT=10") in new stack
    -- Executing [s@macro-simple-dial:3] Set("Gtalk/+1831#######-874c", "CFUEXT=") in new stack
    -- Executing [s@macro-simple-dial:4] Set("Gtalk/+1831#######-874c", "CFBEXT=") in new stack
    -- Executing [s@macro-simple-dial:5] Set("Gtalk/+1831#######-874c", "CWI_TMP=") in new stack
    -- Executing [s@macro-simple-dial:6] Macro("Gtalk/+1831#######-874c", "dial-one,10,tr,711") in new stack
    -- Executing [s@macro-dial-one:1] Set("Gtalk/+1831#######-874c", "DEXTEN=711") in new stack
    -- Executing [s@macro-dial-one:2] Set("Gtalk/+1831#######-874c", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:3] GosubIf("Gtalk/+1831#######-874c", "0?screen,1") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("Gtalk/+1831#######-874c", "0?cf,1") in new stack
    -- Executing [s@macro-dial-one:5] GotoIf("Gtalk/+1831#######-874c", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
 
CLI Code continued part 2

Code:
    -- Executing [s@macro-dial-one:8] GotoIf("Gtalk/+1831#######-874c", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("Gtalk/+1831#######-874c", "0?continue") in new stack
    -- Executing [s@macro-dial-one:10] Set("Gtalk/+1831#######-874c", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("Gtalk/+1831#######-874c", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,23)
    -- Executing [s@macro-dial-one:23] GotoIf("Gtalk/+1831#######-874c", "1?next3:continue") in new stack
    -- Goto (macro-dial-one,s,24)
    -- Executing [s@macro-dial-one:24] ExecIf("Gtalk/+1831#######-874c", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
    -- Executing [s@macro-dial-one:25] GotoIf("Gtalk/+1831#######-874c", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:26] GosubIf("Gtalk/+1831#######-874c", "1?dstring,1:dlocal,1") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("Gtalk/+1831#######-874c", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("Gtalk/+1831#######-874c", "DEVICES=711") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("Gtalk/+1831#######-874c", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("Gtalk/+1831#######-874c", "0?Set(DEVICES=11)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("Gtalk/+1831#######-874c", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("Gtalk/+1831#######-874c", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("Gtalk/+1831#######-874c", "THISDIAL=SIP/711") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("Gtalk/+1831#######-874c", "1?zap2dahdi,1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("Gtalk/+1831#######-874c", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("Gtalk/+1831#######-874c", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("Gtalk/+1831#######-874c", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("Gtalk/+1831#######-874c", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("Gtalk/+1831#######-874c", "THISPART2=SIP/711") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("Gtalk/+1831#######-874c", "0?Set(THISPART2=DAHDI/711)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("Gtalk/+1831#######-874c", "NEWDIAL=SIP/711&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("Gtalk/+1831#######-874c", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("Gtalk/+1831#######-874c", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("Gtalk/+1831#######-874c", "THISDIAL=SIP/711") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("Gtalk/+1831#######-874c", "DSTRING=SIP/711&") in new stack
    -- Executing [dstring@macro-dial-one:10] Set("Gtalk/+1831#######-874c", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:11] GotoIf("Gtalk/+1831#######-874c", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("Gtalk/+1831#######-874c", "DSTRING=SIP/711") in new stack
    -- Executing [dstring@macro-dial-one:13] Return("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [s@macro-dial-one:27] GotoIf("Gtalk/+1831#######-874c", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("Gtalk/+1831#######-874c", "1?skiptrace") in new stack
    -- Goto (macro-dial-one,s,30)
    -- Executing [s@macro-dial-one:30] Set("Gtalk/+1831#######-874c", "D_OPTIONS=trM(auto-blkvm)") in new stack
    -- Executing [s@macro-dial-one:31] ExecIf("Gtalk/+1831#######-874c", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [s@macro-dial-one:32] ExecIf("Gtalk/+1831#######-874c", "0?SIPAddHeader()") in new stack
    -- Executing [s@macro-dial-one:33] ExecIf("Gtalk/+1831#######-874c", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:34] GosubIf("Gtalk/+1831#######-874c", "0?qwait,1") in new stack
    -- Executing [s@macro-dial-one:35] Set("Gtalk/+1831#######-874c", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:36] Set("Gtalk/+1831#######-874c", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:37] Dial("Gtalk/+1831#######-874c", "SIP/711,10,trM(auto-blkvm)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    [B][COLOR="SeaGreen"]-- Called 711
    -- SIP/711-00000003 is ringing
    -- Nobody picked up in 10000 ms[/COLOR]
[/B]    -- Executing [s@macro-dial-one:38] ExecIf("Gtalk/+1831#######-874c", "0?Set(DIALSTATUS=)") in new stack
    -- Executing [s@macro-dial-one:39] GosubIf("Gtalk/+1831#######-874c", "0?s-NOANSWER,1") in new stack
    -- Executing [s@macro-dial-one:40] MacroExit("Gtalk/+1831#######-874c", "") in new stack
    -- Executing [s@macro-simple-dial:7] Set("Gtalk/+1831#######-874c", "__CWIGNORE=") in new stack
    -- Executing [s@macro-simple-dial:8] Set("Gtalk/+1831#######-874c", "PR_DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:9] GosubIf("Gtalk/+1831#######-874c", "0?docfu,1") in new stack
    -- Executing [s@macro-simple-dial:10] GosubIf("Gtalk/+1831#######-874c", "0?docfb,1") in new stack
    -- Executing [s@macro-simple-dial:11] Set("Gtalk/+1831#######-874c", "DIALSTATUS=NOANSWER") in new stack
    -- Executing [s@macro-simple-dial:12] Goto("Gtalk/+1831#######-874c", "s-NOANSWER,1") in new stack
    -- Goto (macro-simple-dial,s-NOANSWER,1)
    -- Executing [s-NOANSWER@macro-simple-dial:1] NoOp("Gtalk/+1831#######-874c", "Extension is reporting s-NOANSWER") in new stack
    -- Executing [711@from-did-direct:17] Set("Gtalk/+1831#######-874c", "RingGroupMethod=hunt") in new stack
    -- Executing [711@from-did-direct:18] Set("Gtalk/+1831#######-874c", "_FMGRP=711") in new stack
    -- Executing [711@from-did-direct:19] GotoIf("Gtalk/+1831#######-874c", "0?doconfirm") in new stack
    -- Executing [711@from-did-direct:20] Macro("Gtalk/+1831#######-874c", "dial,40,tr,1831*******#") in new stack
    -- Executing [s@macro-dial:1] GotoIf("Gtalk/+1831#######-874c", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("Gtalk/+1831#######-874c", "dialparties.agi") in new stack
    [B][COLOR="Red"]-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'VIP  SANTA CRUZ, CA' number is '831#######'
 dialparties.agi: Methodology of ring is  'hunt'
    -- dialparties.agi: Added extension 1831*******# to extension map
    [U]-- dialparties.agi: Extension 1831*******# cf is disabled[/U]
    -- dialparties.agi: Filtered ARG3: 1831*******[/COLOR][/B]
    -- <Gtalk/+1831#######-874c>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:20] NoOp("Gtalk/+1831#######-874c", "Returned from dialparties with hunt groups to dial ") in new stack
    -- Executing [s@macro-dial:21] Set("Gtalk/+1831#######-874c", "HuntLoop=0") in new stack
    -- Executing [s@macro-dial:22] GotoIf("Gtalk/+1831#######-874c", "1?a30") in new stack
    -- Goto (macro-dial,s,26)
    -- Executing [s@macro-dial:26] Set("Gtalk/+1831#######-874c", "HuntMember=HuntMember0") in new stack
    -- Executing [s@macro-dial:27] GotoIf("Gtalk/+1831#######-874c", "1?a32:a35") in new stack
    -- Goto (macro-dial,s,28)
    -- Executing [s@macro-dial:28] Set("Gtalk/+1831#######-874c", "CT_EXTEN=1831*******") in new stack
    -- Executing [s@macro-dial:29] Set("Gtalk/+1831#######-874c", "DB(CALLTRACE/1831*******)=831#######") in new stack
    -- Executing [s@macro-dial:30] Goto("Gtalk/+1831#######-874c", "s,a42") in new stack
    -- Goto (macro-dial,s,38)
    -- Executing [s@macro-dial:38] Dial("Gtalk/+1831#######-874c", "Local/1831*******@from-internal/n,40,trM(auto-blkvm)") in new stack
    -- Called 1831*******@from-internal/n
    -- Executing [1831*******@from-internal:1] Macro("Local/1831*******@from-internal-03db;2", "user-callerid,SKIPTTL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("Local/1831*******@from-internal-03db;2", "AMPUSER=831#######") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("Local/1831*******@from-internal-03db;2", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("Local/1831*******@from-internal-03db;2", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("Local/1831*******@from-internal-03db;2", "CALLERID(number)=831#######") in new stack
    -- Executing [s@macro-user-callerid:20] Set("Local/1831*******@from-internal-03db;2", "CALLERID(name)=VIP  SANTA CRUZ, CA") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("Local/1831*******@from-internal-03db;2", "Using CallerID "VIP  SANTA CRUZ, CA" <831#######>") in new stack
    -- Executing [1831*******@from-internal:2] NoOp("Local/1831*******@from-internal-03db;2", "[COLOR="Red"]Calling Out Route: Default[/COLOR]") in new stack
[/B]
 
CLI Code continues Part 3 - Final

Code:
  -- Executing [1831*******@from-internal:3] Set("Local/1831*******@from-internal-03db;2", "MOHCLASS=default") in new stack
    -- Executing [1831*******@from-internal:4] Set("Local/1831*******@from-internal-03db;2", "_NODEST=") in new stack
    -- Executing [1831*******@from-internal:5] Macro("Local/1831*******@from-internal-03db;2", "record-enable,831#######,OUT,") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("Local/1831*******@from-internal-03db;2", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("Local/1831*******@from-internal-03db;2", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("Local/1831*******@from-internal-03db;2", "0?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,15)
    -- Executing [s@macro-record-enable:15] GotoIf("Local/1831*******@from-internal-03db;2", "0?IN") in new stack
    -- Executing [s@macro-record-enable:16] ExecIf("Local/1831*******@from-internal-03db;2", "1?MacroExit()") in new stack
    -- Executing [1831*******@from-internal:6] Macro("Local/1831*******@from-internal-03db;2", "dialout-trunk,10,1831*******,") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("Local/1831*******@from-internal-03db;2", "DIAL_TRUNK=10") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("Local/1831*******@from-internal-03db;2", "0?sub-pincheck,s,1") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("Local/1831*******@from-internal-03db;2", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("Local/1831*******@from-internal-03db;2", "DIAL_NUMBER=1831*******") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("Local/1831*******@from-internal-03db;2", "DIAL_TRUNK_OPTIONS=tr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("Local/1831*******@from-internal-03db;2", "OUTBOUND_GROUP=OUT_10") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("Local/1831*******@from-internal-03db;2", "1?nomax") in new stack
    -- Goto (macro-dialout-trunk,s,9)
    -- Executing [s@macro-dialout-trunk:9] GotoIf("Local/1831*******@from-internal-03db;2", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("Local/1831*******@from-internal-03db;2", "DIAL_TRUNK_OPTIONS=") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("Local/1831*******@from-internal-03db;2", "outbound-callerid,10") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("Local/1831*******@from-internal-03db;2", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("Local/1831*******@from-internal-03db;2", "1?[COLOR="red"][B]Set(REALCALLERIDNUM=831#######)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("Local/1831*******@from-internal-03db;2", "0?normcid") in new stack
    -- Executing [s@macro-outbound-callerid:4] Set("Local/1831*******@from-internal-03db;2", "USEROUTCID=831#######") in new stack
    -- Executing [s@macro-outbound-callerid:5] GotoIf("Local/1831*******@from-internal-03db;2", "1?bypass") in new stack
    -- Goto (macro-outbound-callerid,s,7)
    -- Executing [s@macro-outbound-callerid:7] Set("Local/1831*******@from-internal-03db;2", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("Local/1831*******@from-internal-03db;2", "TRUNKOUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("Local/1831*******@from-internal-03db;2", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,12)
    -- Executing [s@macro-outbound-callerid:12] ExecIf("Local/1831*******@from-internal-03db;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:13] ExecIf("Local/1831*******@from-internal-03db;2", "1?Set(CALLERID(all)=831#######)") in new stack
    -- Executing [s@macro-outbound-callerid:14] ExecIf("Local/1831*******@from-internal-03db;2", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("Local/1831*******@from-internal-03db;2", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack[/B][/COLOR]


***NOT PART OF OUTPUT - From here forward I would expect
all the references below to be asterisk3, gvoice3 and [email protected]
IF it were working correctly***

Instead it is referencing the main account:

asterisk, gvoice and [email protected]
I really don't care what GV trunk it uses.. But I DO need the external CID to show the [email protected] DID!


Code:
    -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/1831*******@from-internal-03db;2", "1?sub-flp-10,s,1") in new stack
    -- Executing [s@sub-flp-10:1] ExecIf("Local/1831*******@from-internal-03db;2", "0?Set(TARGET_FLP_10=18311831*******)") in new stack
    -- Executing [s@sub-flp-10:2] GotoIf("Local/1831*******@from-internal-03db;2", "0?match") in new stack
    -- Executing [s@sub-flp-10:3] Return("Local/1831*******@from-internal-03db;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("Local/1831*******@from-internal-03db;2", "OUTNUM=1831*******") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("Local/1831*******@from-internal-03db;2", "custom=AMP") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("Local/1831*******@from-internal-03db;2", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default))") in new stack
    -- Executing [s@macro-dialout-trunk:16] Macro("Local/1831*******@from-internal-03db;2", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("Local/1831*******@from-internal-03db;2", "") in new stack
    -- Executing [s@macro-dialout-trunk:17] GotoIf("Local/1831*******@from-internal-03db;2", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("Local/1831*******@from-internal-03db;2", "1?customtrunk") in new stack
    -- Goto (macro-dialout-trunk,s,22)
    -- Executing [s@macro-dialout-trunk:22] Set("Local/1831*******@from-internal-03db;2", "pre_num=AMP:local/") in new stack
    -- Executing [s@macro-dialout-trunk:23] Set("Local/1831*******@from-internal-03db;2", "the_num=OUTNUM") in new stack
    -- Executing [s@macro-dialout-trunk:24] Set("Local/1831*******@from-internal-03db;2", "post_num=@gvoice") in new stack
    -- Executing [s@macro-dialout-trunk:25] GotoIf("Local/1831*******@from-internal-03db;2", "1?outnum:skipoutnum") in new stack
    -- Goto (macro-dialout-trunk,s,26)
    -- Executing [s@macro-dialout-trunk:26] Set("Local/1831*******@from-internal-03db;2", "the_num=1831*******") in new stack
    -- Executing [s@macro-dialout-trunk:27] Dial("Local/1831*******@from-internal-03db;2", "local/1831*******@gvoice,300,") in new stack
    -- Called 1831*******@gvoice
    -- Executing [1831*******@gvoice:1] Wait("Local/1831*******@gvoice-f0a5;2", "1") in new stack
    -- Executing [1831*******@gvoice:2] Set("Local/1831*******@gvoice-f0a5;2", "[email protected]") in new stack
    -- Executing [1831*******@gvoice:3] JabberSend("Local/1831*******@gvoice-f0a5;2", "asterisk,[email protected],Placing GVoice Call: 1831*******") in new stack
    -- Executing [1831*******@gvoice:4] GotoIf("Local/1831*******@gvoice-f0a5;2", "0?us:other") in new stack
    -- Goto (gvoice,1831*******,7)
    -- Executing [1831*******@gvoice:7] Dial("Local/1831*******@gvoice-f0a5;2", "Gtalk/asterisk/+1831*******@voice.google.com") in new stack
    -- Called asterisk/+1831*******@voice.google.com
    -- Gtalk/+1831*******@voice.google.com-cf2d is ringing
    -- Local/1831*******@gvoice-f0a5;1 is ringing
    -- Local/1831*******@from-internal-03db;1 is ringing
    -- Gtalk/+1831*******@voice.google.com-cf2d answered Local/1831*******@gvoice-f0a5;2
    -- Local/1831*******@gvoice-f0a5;1 answered Local/1831*******@from-internal-03db;2
    -- Local/1831*******@from-internal-03db;1 answered Gtalk/+1831#######-874c
    -- Executing [s@macro-auto-blkvm:1] Set("Local/1831*******@from-internal-03db;1", "__MACRO_RESULT=") in new stack
    -- Executing [s@macro-auto-blkvm:2] NoOp("Local/1831*******@from-internal-03db;1", "Deleting: BLKVM/711/Gtalk/+1831#######-874c TRUE") in new stack
  == Spawn extension (gvoice, 1831*******, 7) exited non-zero on 'Local/1831*******@gvoice-f0a5;2'
 
This is one reason I don't care all that much for Custom Contexts - it's a bear to use and it is not the perfect solution to all your routing problems. This is one of those situations where it probably won't work as you hope.

From reading your comments I think you understand that a Google Voice trunk will only send the Google Voice number associated with that trunk. So if you're getting a CallerID of the GV account associated with trunk 1, it's because it's using trunk 1. There's no way you can use one Google Voice account but send the CallerID associated with a different one.

Anyway, I suggest you try this. Let's say your cell phone number is presently entered in the Follow-Me list as 18005551212# Add a prefix to it that no one would ever dial as part of a valid number, for example 000001, so it becomes 00000118005551212#

Then go to the outbound route associated with the trunk you want to use (or create a new outbound route if you prefer) and in the dial rules add this:

000001 | 18005551212 (but use your cell number)

Or if you want to be less specific:

000001 | 1NXXNXXXXXX

Make sure that in the trunk selection, only the trunk you actually want to use is selected.

The idea is that the prefix will force it to match on only that route, and the route will strip the prefix before sending it on to the trunk (that's why you put the 000001 in the field just before the | character).

Try that and see if it does what you want.
 
This is one reason I don't care all that much for Custom Contexts - it's a bear to use and it is not the perfect solution to all your routing problems. This is one of those situations where it probably won't work as you hope.

From reading your comments I think you understand that a Google Voice trunk will only send the Google Voice number associated with that trunk. So if you're getting a CallerID of the GV account associated with trunk 1, it's because it's using trunk 1. There's no way you can use one Google Voice account but send the CallerID associated with a different one.

Anyway, I suggest you try this. Let's say your cell phone number is presently entered in the Follow-Me list as 18005551212# Add a prefix to it that no one would ever dial as part of a valid number, for example 000001, so it becomes 00000118005551212#

Then go to the outbound route associated with the trunk you want to use (or create a new outbound route if you prefer) and in the dial rules add this:

000001 | 18005551212 (but use your cell number)

Or if you want to be less specific:

000001 | 1NXXNXXXXXX

Make sure that in the trunk selection, only the trunk you actually want to use is selected.

The idea is that the prefix will force it to match on only that route, and the route will strip the prefix before sending it on to the trunk (that's why you put the 000001 in the field just before the | character).

Try that and see if it does what you want.

Thanks MT. That sounds like it would work..

Before I saw your post I just went ahead and switched Default and Default 3. So it works now.. The custom contexts work fine when dialing from my extensions.. so the correct CID is always displayed..

From reading your comments I think you understand that a Google Voice trunk will only send the Google Voice number associated with that trunk. So if you're getting a CallerID of the GV account associated with trunk 1, it's because it's using trunk 1. There's no way you can use one Google Voice account but send the CallerID associated with a different one.

I do understand that. I'm just wondering how to make followme use a specific trunk. There must be a way to have it use something other than Default every time.

What you mentioned about prefixing the number is closer to what I want, but in that case I would want the callers real caller ID.

I have 3 businesses through my PBX so I use CID name prefix for each business, then I can answer the phone accordingly.

Is there no way to have followme pass the original caller's CID with a CID prefix? Even on a non GV DID?

That is what would really be ideal for me. If the call could come through as say, VIP 831-555-5555, with the 831-555-5555 being the callers real CID. Some of our clients with the Premium support plan don't seem to realize what an "emergency" is.. (The only time they are supposed to use it). So it would be nice to know who is exactly calling..

Thanks,
JP
 
Google Voice doesn't allow you to set outgoing Caller ID; it will always send the CID of the Google Voice account you are using to make the call.

If you really need to see the Caller's CID then you will have to pay real money to a provider that allows you to set outgoing CallerID. Not all providers do, and I don't have any recommendations in that regard.
 
Google Voice doesn't allow you to set outgoing Caller ID; it will always send the CID of the Google Voice account you are using to make the call.

If you really need to see the Caller's CID then you will have to pay real money to a provider that allows you to set outgoing CallerID. Not all providers do, and I don't have any recommendations in that regard.

Thanks again MT..

I do have two Vitelity numbers. I normally don't use them for outgoing calls, but I certainly can and would in this case..

That brings me back to square one again though. Followme only wants to call out on the main trunk set as 0 in the trunk sequence for outgoing routes..

There must be a way to set the trunk for each followme instance..

JP
 
You're welcome. I'd suggest you try the prefix trick I suggested in my first reply to you. That should work just as well with a standard provider trunk as with a Google Voice trunk.
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top