Extension outbound CID issues

I have multiple line sip phones that i am trying to setup to have diffrent outbound CID for each line. IE

line 1 CID 555-5551
line 2 CID 555-5552
etc

So i have set the CID in each extension but for some reason it refuses to use it, and after me trying various diffrent setups to make it work it now sends a CID that is NOT listed in the extension, outbound route, or trunk.

So i checked the logs of a call and i see this.

– Executing [[email protected]:12] ExecIf(“SIP/391-00000008”, “1?Set(CALLERID(all)=xxxxxxxx79)”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/391-00000008”, “1?Set(CALLERID(all)=xxxxxxxx80)”) in new stack

The 79 is what the trunk is set to at the moment. But 80 is not set anywhere.

Any idea why its holding onto this config, and anyone know how i can fix my original issue.

Thanks for any help in advance.

Ok I just messed with my configuration and it appears to only use the last added CID for a phone.

So if i go thru my extensions of 1 phone setting like so

line 1 CID XXXXXXXX01
line 2 CID XXXXXXXX02
line 3 CID XXXXXXXX03
line 4 CID XXXXXXXX04

After i click submit then apply settings. All lines no matter which one i use will use CID XXXXXXXXX4

Perplexing.