Outgoing caller id showing as restricted

I have set up a new flowroute trunk but the caller id is not being sent to the receipient when I make outoing calls. I see ‘restriced’ with no number when I call my cell. I have a ticket in to flow route to see if the are getting an outgoing number from me but was wondering if I can tell from the logs if asterisk thinks I am even sending it to them an outgoing caller id. Which variable indicates the caller id that is sent?

201-780-1111 is the number I am callingZ
5407751111 is the number I want to appear on caller id.

It does look like TRUCKOUTCID is set but I am not sure which variable is actually that they would look at. I do some other variables that are in this block that are not set the phone number. The log in this area is where the CID seems to set

[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Goto (macro-outbound-callerid,s,7)
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:7] Set(“SIP/704-00000000”, “USEROUTCID=”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:8] Set(“SIP/704-00000000”, “EMERGENCYCID=rich”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:9] Set(“SIP/704-00000000”, “TRUNKOUTCID=5407751111”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:10] GotoIf(“SIP/704-00000000”, “0?trunkcid”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:11] Set(“SIP/704-00000000”, “CALLERID(all)=rich”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:12] Set(“SIP/704-00000000”, “CDR(outbound_cnum)=”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:13] Set(“SIP/704-00000000”, “CDR(outbound_cnam)=rich”) in new stack
[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: – Executing [s@macro-outbound-callerid:14] MacroExit(“SIP/704-00000000”, “”) in new stack

Overall log below.

[2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:1] Macro("SIP/704-00000000", "user-callerid,LIMIT,EXTERNAL,") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:1] Set("SIP/704-00000000", "TOUCH_MONITOR=1449783254.0") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:2] Set("SIP/704-00000000", "AMPUSER=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:3] GotoIf("SIP/704-00000000", "0?report") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:4] ExecIf("SIP/704-00000000", "1?Set(REALCALLERIDNUM=704)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:5] Set("SIP/704-00000000", "AMPUSER=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:6] GotoIf("SIP/704-00000000", "0?limit") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:7] Set("SIP/704-00000000", "AMPUSERCIDNAME=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:8] GotoIf("SIP/704-00000000", "0?report") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:9] Set("SIP/704-00000000", "AMPUSERCID=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:10] Set("SIP/704-00000000", "__DIAL_OPTIONS=Ttr") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:11] Set("SIP/704-00000000", "CALLERID(all)="rich" <704>") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:12] GotoIf("SIP/704-00000000", "0?limit") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:13] ExecIf("SIP/704-00000000", "1?Set(GROUP(concurrency_limit)=704)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:14] ExecIf("SIP/704-00000000", "0?Set(CHANNEL(language)=)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:15] GotoIf("SIP/704-00000000", "1?continue") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (macro-user-callerid,s,29) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:29] Set("SIP/704-00000000", "CALLERID(number)=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:30] Set("SIP/704-00000000", "CALLERID(name)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:31] Set("SIP/704-00000000", "CDR(cnum)=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:32] Set("SIP/704-00000000", "CDR(cnam)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-user-callerid:33] Set("SIP/704-00000000", "CHANNEL(language)=en") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:2] Gosub("SIP/704-00000000", "sub-record-check,s,1(out,2017801111,dontcare)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:1] GotoIf("SIP/704-00000000", "0?initialized") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:2] Set("SIP/704-00000000", "__REC_STATUS=INITIALIZED") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:3] Set("SIP/704-00000000", "NOW=1449783254") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:4] Set("SIP/704-00000000", "__DAY=10") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:5] Set("SIP/704-00000000", "__MONTH=12") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:6] Set("SIP/704-00000000", "__YEAR=2015") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:7] Set("SIP/704-00000000", "__TIMESTR=20151210-213414") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:8] Set("SIP/704-00000000", "__FROMEXTEN=704") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:9] Set("SIP/704-00000000", "__MON_FMT=wav") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:10] NoOp("SIP/704-00000000", "Recordings initialized") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:11] ExecIf("SIP/704-00000000", "0?Set(ARG3=dontcare)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:12] Set("SIP/704-00000000", "REC_POLICY_MODE_SAVE=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:13] ExecIf("SIP/704-00000000", "0?Set(REC_STATUS=NO)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:14] GotoIf("SIP/704-00000000", "3?checkaction") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (sub-record-check,s,17) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@sub-record-check:17] GotoIf("SIP/704-00000000", "1?sub-record-check,out,1") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (sub-record-check,out,1) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [out@sub-record-check:1] NoOp("SIP/704-00000000", "Outbound Recording Check from 704 to 2017801111") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [out@sub-record-check:2] Set("SIP/704-00000000", "RECMODE=dontcare") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [out@sub-record-check:3] ExecIf("SIP/704-00000000", "1?Goto(routewins)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (sub-record-check,out,7) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [out@sub-record-check:7] Gosub("SIP/704-00000000", "recordcheck,1(dontcare,out,2017801111)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/704-00000000", "Starting recording check against dontcare") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [recordcheck@sub-record-check:2] Goto("SIP/704-00000000", "dontcare") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (sub-record-check,recordcheck,3) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [recordcheck@sub-record-check:3] Return("SIP/704-00000000", "") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [out@sub-record-check:8] Return("SIP/704-00000000", "") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:3] ExecIf("SIP/704-00000000", "0 ?Set(CDR(accountcode)=)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:4] Set("SIP/704-00000000", "EMERGENCYROUTE=YES") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [201780111@from-internal:5] Set("SIP/704-00000000", "MOHCLASS=default") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:6] ExecIf("SIP/704-00000000", "1?Set(TRUNKCIDOVERRIDE=<5407751111>)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:7] Set("SIP/704-00000000", "_NODEST=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [2017801111@from-internal:8] Macro("SIP/704-00000000", "dialout-trunk,3,12017801111,,off") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:1] Set("SIP/704-00000000", "DIAL_TRUNK=3") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/704-00000000", "0?sub-pincheck,s,1()") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/704-00000000", "0?disabletrunk,1") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:4] Set("SIP/704-00000000", "DIAL_NUMBER=12017801111") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:5] Set("SIP/704-00000000", "DIAL_TRUNK_OPTIONS=Ttr") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:6] Set("SIP/704-00000000", "OUTBOUND_GROUP=OUT_3") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/704-00000000", "1?nomax") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (macro-dialout-trunk,s,9) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/704-00000000", "0?skipoutcid") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:10] Set("SIP/704-00000000", "DIAL_TRUNK_OPTIONS=Tt") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:11] Macro("SIP/704-00000000", "outbound-callerid,3") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/704-00000000", "0?Set(CALLERPRES(name-pres)=)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/704-00000000", "0?Set(CALLERPRES(num-pres)=)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:3] ExecIf("SIP/704-00000000", "0?Set(REALCALLERIDNUM=704)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/704-00000000", "1?normcid") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Goto (macro-outbound-callerid,s,7) [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:7] Set("SIP/704-00000000", "USEROUTCID=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:8] Set("SIP/704-00000000", "EMERGENCYCID=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:9] Set("SIP/704-00000000", "TRUNKOUTCID=5407751111") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:10] GotoIf("SIP/704-00000000", "0?trunkcid") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:11] Set("SIP/704-00000000", "CALLERID(all)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:12] Set("SIP/704-00000000", "CDR(outbound_cnum)=") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:13] Set("SIP/704-00000000", "CDR(outbound_cnam)=rich") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-outbound-callerid:14] MacroExit("SIP/704-00000000", "") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/704-00000000", "0?sub-flp-3,s,1()") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/704-00000000", "OUTNUM=12017801111") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/704-00000000", "custom=SIP/flowroute") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/704-00000000", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/704-00000000", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:17] Macro("SIP/704-00000000", "dialout-trunk-predial-hook,") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/704-00000000", "") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/704-00000000", "0?bypass,1") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/704-00000000", "1?Set(CONNECTEDLINE(num,i)=12017801111)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/704-00000000", "1?Set(CONNECTEDLINE(name,i)=CID:)") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:21] ExecIf("SIP/704-00000000", "0?Set(CONNECTEDLINE(name,i)=CID:(Hidden))") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/704-00000000", "0?customtrunk") in new stack [2015-12-10 21:34:14] VERBOSE[6961][C-00000000] pbx.c: -- Executing [s@macro-dialout-trunk:23] Dial("SIP/704-00000000", "SIP/flowroute/12017801111,300,Tt") in new stack