...
If you use XCALLY SHUTTLE, you can set the EXTRAVAR variable with the DID number {EXTEN} or any kind of IVR or Dialplan variable so to pass such value to the Agent phone bar pop-up. See please here for clear examples:
https://wiki.xcallymotion.com/display/SC/Display + custom + data + on + Phonebar + popup