Freepbx 13 /Google Voice CID = DID ?! WHY?

Hi Guys

i just could work on google voice after long of pain .

now for the incoming calls all the CID if the incoming calls is the same as My DID ??!!!

souldnt the CID be correct when using Google voice with freepbx 13 ???

anyway here are the setting below .

[[email protected] ~]# cat /etc/asterisk/motif.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. ;
;--------------------------------------------------------------------------------;
; For information on adding additional paramaters to this file, please visit the ;
; FreePBX.org wiki page, or ask on IRC. This file was created by the new FreePBX ;
; BMO - Big Module Object. Any similarity in naming with BMO from Adventure Time ;
; is totally deliberate. ;
;--------------------------------------------------------------------------------;
[xxxxx]
context=ixxxxx
disallow=all
allow=ulaw
connection=gthesignstore1gmailcom

#include motif_custom.conf

here is form the dial plan
[imxxxore1gmailcom]
include => im-xxxgmailcom-custom
exten => s,1(1),Noop(Receiving GoogleVoice on DID: xxx3078673)
exten => s,n,Noop(${EXTEN})
exten => s,n,Set(CALLERID(name)=${CUT(CALLERID(name),@,1)})
exten => s,n,GotoIf($["${CALLERID(name):0:2}" != “+1”]?nextstop)
exten => s,n,Set(CALLERID(name)=${CALLERID(name):2})
exten => s,n(nextstop),GotoIf($["${CALLERID(name):0:1}" != “+”]?notrim)
exten => s,n,Set(CALLERID(name)=${CALLERID(name):1})
exten => s,n,Set(CDR(did)=xx3078673)
exten => s,n(notrim),Set(CALLERID(number)=${CALLERID(name)})
exten => s,n,Set(DIAL_OPTIONS=${DIAL_OPTIONS}aD(:1))
exten => s,n,Goto(from-trunk,xx3078673,1)

exten => h,1,Hangup

here is the debug for incoming call

=========
ip-172-30-0-188*CLI>
== Spawn extension (macro-dial-one, s, 48) exited non-zero on ‘Motif/+19563078673-9b01’ in macro ‘dial-one’
== Spawn extension (macro-exten-vm, s, 14) exited non-zero on ‘Motif/+19563078673-9b01’ in macro ‘exten-vm’
== Spawn extension (from-did-direct, 102, 2) exited non-zero on ‘Motif/+19563078673-9b01’
– Executing [[email protected]:1] Macro(“Motif/+19563078673-9b01”, “hangupcall,”) in new stack
– Executing [[email protected]:1] GotoIf(“Motif/+19563078673-9b01”, “1?theend”) in new stack
– Goto (macro-hangupcall,s,3)
– Executing [[email protected]:3] ExecIf(“Motif/+19563078673-9b01”, “0?Set(CDR(recordingfile)=)”) in new stack
– Executing [[email protected]:4] Hangup(“Motif/+19563078673-9b01”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Motif/+19563078673-9b01’ in macro ‘hangupcall’
== Spawn extension (from-did-direct, h, 1) exited non-zero on ‘Motif/+19563078673-9b01’
– Executing [[email protected]:1] NoOp(“Motif/+19563078673-5939”, “Receiving GoogleVoice on DID: 9563078673”) in new stack
– Executing [[email protected]:2] NoOp(“Motif/+19563078673-5939”, “s”) in new stack
– Executing [[email protected]:3] NoOp(“Motif/+19563078673-5939”, "hey what the hell is going on ??? [email protected]/srvenc-VtGrlqsftb0sK4tXrJCtmrbSw8f67nRR ") in new stack
– Executing [[email protected]:4] Set(“Motif/+19563078673-5939”, “CALLERID(name)=+19563078673”) in new stack
– Executing [[email protected]:5] GotoIf(“Motif/+19563078673-5939”, “0?nextstop”) in new stack
– Executing [[email protected]:6] Set(“Motif/+19563078673-5939”, “CALLERID(name)=9563078673”) in new stack
– Executing [[email protected]:7] GotoIf(“Motif/+19563078673-5939”, “1?notrim”) in new stack
– Goto (im-thesignstore1gmailcom,s,10)
– Executing [[email protected]:10] Set(“Motif/+19563078673-5939”, “CALLERID(number)=9563078673”) in new stack
– Executing [[email protected]:11] Set(“Motif/+19563078673-5939”, “DIAL_OPTIONS=TtraD(:1)”) in new stack
– Executing [[email protected]:12] Goto(“Motif/+19563078673-5939”, “from-trunk,9563078673,1”) in new stack
– Goto (from-trunk,9563078673,1)
– Executing [[email protected]:1] NoOp(“Motif/+19563078673-5939”, “Catch-All DID Match - Found 9563078673 - You probably want a DID for this.”) in new stack
[2016-08-29 14:49:19] WARNING[2724][C-0000000a]: chan_sip.c:22795 func_header_read: This function can only be used on SIP channels.
– Executing [[email protected]:2] Log(“Motif/+19563078673-5939”, "WARNING,Friendly Scanner from ") in new stack
[2016-08-29 14:49:19] WARNING[2724][C-0000000a]: Ext. 9563078673:2 @ from-trunk: Friendly Scanner from
– Executing [[email protected]:3] Set(“Motif/+19563078673-5939”, “__FROM_DID=9563078673”) in new stack
– Executing [[email protected]:4] Goto(“Motif/+19563078673-5939”, “ext-did,s,1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “__DIRECTION=INBOUND”) in new stack
– Executing [[email protected]:2] ExecIf(“Motif/+19563078673-5939”, “0?Set(__FROM_DID=s)”) in new stack
– Executing [[email protected]:3] Set(“Motif/+19563078673-5939”, “CDR(did)=9563078673”) in new stack
– Executing [[email protected]:4] ExecIf(“Motif/+19563078673-5939”, “0 ?Set(CALLERID(name)=9563078673)”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “__MOHCLASS=”) in new stack
– Executing [[email protected]:6] Set(“Motif/+19563078673-5939”, “__REVERSAL_REJECT=FALSE”) in new stack
– Executing [[email protected]:7] GotoIf(“Motif/+19563078673-5939”, “1?post-reverse-charge”) in new stack
– Goto (ext-did,s,9)
– Executing [[email protected]:9] NoOp(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:10] Set(“Motif/+19563078673-5939”, “__CALLINGNAMEPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:11] Set(“Motif/+19563078673-5939”, “__CALLINGNUMPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:12] Set(“Motif/+19563078673-5939”, “CALLERID(name-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:13] Set(“Motif/+19563078673-5939”, “CALLERID(num-pres)=allowed_not_screened”) in new stack
– Executing [[email protected]:14] NoOp(“Motif/+19563078673-5939”, “CallerID Entry Point”) in new stack
– Executing [[email protected]:15] Goto(“Motif/+19563078673-5939”, “from-did-direct,102,1”) in new stack
– Goto (from-did-direct,102,1)
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] Macro(“Motif/+19563078673-5939”, “exten-vm,novm,102,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“Motif/+19563078673-5939”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “TOUCH_MONITOR=1472482159.17”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “AMPUSER=9563078673”) in new stack
– Executing [[email protected]:3] GotoIf(“Motif/+19563078673-5939”, “0?report”) in new stack
– Executing [[email protected]:4] ExecIf(“Motif/+19563078673-5939”, “1?Set(REALCALLERIDNUM=9563078673)”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “AMPUSER=”) in new stack
– Executing [[email protected]:6] GotoIf(“Motif/+19563078673-5939”, “0?limit”) in new stack
– Executing [[email protected]:7] Set(“Motif/+19563078673-5939”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:8] GotoIf(“Motif/+19563078673-5939”, “1?report”) in new stack
– Goto (macro-user-callerid,s,15)
– Executing [[email protected]:15] GotoIf(“Motif/+19563078673-5939”, “0?continue”) in new stack
– Executing [[email protected]:16] Set(“Motif/+19563078673-5939”, “__TTL=64”) in new stack
– Executing [[email protected]:17] GotoIf(“Motif/+19563078673-5939”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,28)
– Executing [[email protected]:28] Set(“Motif/+19563078673-5939”, “CALLERID(number)=9563078673”) in new stack
– Executing [[email protected]:29] Set(“Motif/+19563078673-5939”, “CALLERID(name)=9563078673”) in new stack
– Executing [[email protected]:30] Set(“Motif/+19563078673-5939”, “CDR(cnum)=9563078673”) in new stack
– Executing [[email protected]:31] Set(“Motif/+19563078673-5939”, “CDR(cnam)=9563078673”) in new stack
– Executing [[email protected]:32] Set(“Motif/+19563078673-5939”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“Motif/+19563078673-5939”, “__EXTTOCALL=102”) in new stack
– Executing [[email protected]:4] Set(“Motif/+19563078673-5939”, “__PICKUPMARK=102”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “RT=”) in new stack
– Executing [[email protected]:6] Gosub(“Motif/+19563078673-5939”, “sub-record-check,s,1(exten,102,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“Motif/+19563078673-5939”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“Motif/+19563078673-5939”, “NOW=1472482159”) in new stack
– Executing [[email protected]:4] Set(“Motif/+19563078673-5939”, “__DAY=29”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “__MONTH=08”) in new stack
– Executing [[email protected]:6] Set(“Motif/+19563078673-5939”, “__YEAR=2016”) in new stack
– Executing [[email protected]:7] Set(“Motif/+19563078673-5939”, “__TIMESTR=20160829-144919”) in new stack
– Executing [[email protected]:8] Set(“Motif/+19563078673-5939”, “__FROMEXTEN=9563078673”) in new stack
– Executing [[email protected]:9] Set(“Motif/+19563078673-5939”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“Motif/+19563078673-5939”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“Motif/+19563078673-5939”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“Motif/+19563078673-5939”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“Motif/+19563078673-5939”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“Motif/+19563078673-5939”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“Motif/+19563078673-5939”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“Motif/+19563078673-5939”, “Exten Recording Check between 9563078673 and 102”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “CALLTYPE=external”) in new stack
– Executing [[email protected]:3] ExecIf(“Motif/+19563078673-5939”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“Motif/+19563078673-5939”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“Motif/+19563078673-5939”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“Motif/+19563078673-5939”, “1?callee”) in new stack
– Goto (sub-record-check,exten,11)
– Executing [[email protected]:11] Gosub(“Motif/+19563078673-5939”, “recordcheck,1(dontcare,external,102)”) in new stack
– Executing [[email protected]:1] NoOp(“Motif/+19563078673-5939”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“Motif/+19563078673-5939”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:12] Return(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:7] GotoIf(“Motif/+19563078673-5939”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,13)
– Executing [[email protected]:13] GosubIf(“Motif/+19563078673-5939”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:14] Macro(“Motif/+19563078673-5939”, “dial-one,TtraD(:1),102”) in new stack
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “DEXTEN=102”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:3] GosubIf(“Motif/+19563078673-5939”, “0?screen,1()”) in new stack
– Executing [[email protected]:4] GosubIf(“Motif/+19563078673-5939”, “0?cf,1()”) in new stack
– Executing [[email protected]:5] GotoIf(“Motif/+19563078673-5939”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,8)
– Executing [[email protected]:8] GotoIf(“Motif/+19563078673-5939”, “0?nodial”) in new stack
– Executing [[email protected]:9] GotoIf(“Motif/+19563078673-5939”, “0?continue”) in new stack
– Executing [[email protected]:10] Set(“Motif/+19563078673-5939”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:11] GotoIf(“Motif/+19563078673-5939”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,23)
– Executing [[email protected]:23] GotoIf(“Motif/+19563078673-5939”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“Motif/+19563078673-5939”, “0?nodial”) in new stack
– Executing [[email protected]:26] GosubIf(“Motif/+19563078673-5939”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “DEVICES=102”) in new stack
– Executing [[email protected]:3] ExecIf(“Motif/+19563078673-5939”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“Motif/+19563078673-5939”, “0?Set(DEVICES=02)”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“Motif/+19563078673-5939”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“Motif/+19563078673-5939”, “THISDIAL=SIP/102”) in new stack
– Executing [[email protected]:8] GosubIf(“Motif/+19563078673-5939”, “1?zap2dahdi,1()”) in new stack
– Executing [[email protected]:1] ExecIf(“Motif/+19563078673-5939”, “0?Return()”) in new stack
– Executing [[email protected]:2] Set(“Motif/+19563078673-5939”, “NEWDIAL=”) in new stack
– Executing [[email protected]:3] Set(“Motif/+19563078673-5939”, “LOOPCNT2=1”) in new stack
– Executing [[email protected]:4] Set(“Motif/+19563078673-5939”, “ITER2=1”) in new stack
– Executing [[email protected]:5] Set(“Motif/+19563078673-5939”, “THISPART2=SIP/102”) in new stack
– Executing [[email protected]:6] ExecIf(“Motif/+19563078673-5939”, “0?Set(THISPART2=DAHDI/102)”) in new stack
– Executing [[email protected]:7] Set(“Motif/+19563078673-5939”, “NEWDIAL=SIP/102&”) in new stack
– Executing [[email protected]:8] Set(“Motif/+19563078673-5939”, “ITER2=2”) in new stack
– Executing [[email protected]:9] GotoIf(“Motif/+19563078673-5939”, “0?begin2”) in new stack
– Executing [[email protected]:10] Set(“Motif/+19563078673-5939”, “THISDIAL=SIP/102”) in new stack
– Executing [[email protected]:11] Return(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:9] GotoIf(“Motif/+19563078673-5939”, “1?docheck”) in new stack
– Goto (macro-dial-one,dstring,12)
– Executing [[email protected]:12] GotoIf(“Motif/+19563078673-5939”, “0?skipset”) in new stack
– Executing [[email protected]:13] Set(“Motif/+19563078673-5939”, “DSTRING=SIP/102&”) in new stack
– Executing [[email protected]:14] Set(“Motif/+19563078673-5939”, “ITER=2”) in new stack
– Executing [[email protected]:15] GotoIf(“Motif/+19563078673-5939”, “0?begin”) in new stack
– Executing [[email protected]:16] ExecIf(“Motif/+19563078673-5939”, “0?Return()”) in new stack
– Executing [[email protected]:17] Set(“Motif/+19563078673-5939”, “DSTRING=SIP/102”) in new stack
– Executing [[email protected]:18] Return(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:27] GotoIf(“Motif/+19563078673-5939”, “0?nodial”) in new stack
– Executing [[email protected]:28] GotoIf(“Motif/+19563078673-5939”, “0?skiptrace”) in new stack
– Executing [[email protected]:29] GosubIf(“Motif/+19563078673-5939”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] Set(“Motif/+19563078673-5939”, “DB(CALLTRACE/102)=9563078673”) in new stack
– Executing [[email protected]:2] Return(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:30] Set(“Motif/+19563078673-5939”, “D_OPTIONS=TtraD(:1)”) in new stack
– Executing [[email protected]:31] NoOp(“Motif/+19563078673-5939”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:32] ExecIf(“Motif/+19563078673-5939”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:33] ExecIf(“Motif/+19563078673-5939”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:34] ExecIf(“Motif/+19563078673-5939”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:35] GosubIf(“Motif/+19563078673-5939”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:36] ExecIf(“Motif/+19563078673-5939”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:37] GosubIf(“Motif/+19563078673-5939”, “0?qwait,1()”) in new stack
– Executing [[email protected]:38] Set(“Motif/+19563078673-5939”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:39] Set(“Motif/+19563078673-5939”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:40] GotoIf(“Motif/+19563078673-5939”, “0?usegoto,1”) in new stack
– Executing [[email protected]:41] GotoIf(“Motif/+19563078673-5939”, “1?godial”) in new stack
– Goto (macro-dial-one,s,46)
– Executing [[email protected]:46] Macro(“Motif/+19563078673-5939”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“Motif/+19563078673-5939”, “”) in new stack
– Executing [[email protected]:47] ExecIf(“Motif/+19563078673-5939”, “1?Set(D_OPTIONS=traD(:1)I)”) in new stack
– Executing [[email protected]:48] Dial(“Motif/+19563078673-5939”, “SIP/102,traD(:1)Ib(func-apply-sipheaders^s^1)”) in new stack
== Using SIP RTP CoS mark 5
– SIP/102-0000000b Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [[email protected]:1] NoOp(“SIP/102-0000000b”, “Applying SIP Headers to channel”) in new stack
– Executing [[email protected]:2] Set(“SIP/102-0000000b”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:3] While(“SIP/102-0000000b”, “0”) in new stack
– Jumping to priority 7
– Executing [[email protected]:8] Return(“SIP/102-0000000b”, “”) in new stack
== Spawn extension (from-internal, 102, 1) exited non-zero on ‘SIP/102-0000000b’
– SIP/102-0000000b Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called SIP/102
– Connected line update to Motif/+19563078673-5939 prevented.
– SIP/102-0000000b is ringing
– SIP/102-0000000b is ringing