Show incoming group name on softphone

i have a problem with my freepbx
i have one gsm gateway and different group of gsm like sim 123 =a, sim 456=b,
all it have send to freebx that have same queue;

gsmgateway<---->freepbx<—> softphones
1,2,3,4,5,6 one queue 10 agent
(sim card)
123 =a

i want to display “a” (or another things)any of first three sim cards inbound caller to agent and from 4,5,6 to agent i want to display “b” or something to same agents