Odd. I just tried it myself on FPBX14/Asterisk13 and my route is followed just fine, presenting the associated CID to my mobile.
At least that tells me that it is possible, so we should definitely try to find it in the routes in question.
In my case:
-using a route that is blocked for all extensions by Extension Routes, so that has no effect.
-route uses a 6 digit prefix (don’t ask), prefix is stripped, and then pushed onto the trunk listed in the route, which has the CID hardcoded (Force Trunk CID)
-the route is nr 6 in a seqeunce of 9, where 9 is the default with our main number. all others above and after route calls based on dialed number (different trunks for different countries etc).
Can you gather from the logs that it’s actually hitting the proper Outbound Route? if you search your logs for “@outbound-allroutes:” you should get a nice breakdown of all the steps it follows.
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:2] Gosub(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “sub-record-check,s,1(out,3311110626XXXXXXX,dontcare)”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:3] ExecIf(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “0 ?Set(CDR(accountcode)=)”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:4] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_ROUTEID=6”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:5] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_ROUTENAME=Sim Support”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:6] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “MOHCLASS=default”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:7] ExecIf(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “1?Set(TRUNKCIDOVERRIDE=<320XXXXXX>)”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:8] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_CALLERIDNAMEINTERNAL=Wake Up Calls”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:9] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_CALLERIDNUMINTERNAL=*68”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:10] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_EMAILNOTIFICATION=FALSE”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:11] Set(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “_NODEST=”) in new stack
[2023-07-24 23:23:00] VERBOSE[59096][C-00001ac0] pbx.c: Executing [3311110626XXXXXXX@outbound-allroutes:12] Macro(“Local/3311110626XXXXXXX@originate-skipvm-0000220e;2”, “dialout-trunk,3,0626XXXXXXX,on”) in new stack
Last line shows it dials out on trunk 3 (literally position 3 in the Trunks view). Line 7 is where the CID is forced. Line 5 shows the route that’s used.
(I’ve masked the nrs, 0626XXXXXX is my mobile, <320XXXXXX> is the 9-digit CID without leading 0. Your situation is probably different wrt number formatting, but you get the picture)
(You may want to copy my logs and paste them in text editor so you get full lines. Easier to read.)