So we have queues set up for Asterisk and it seems that the caller ID information is not being passed for queued calls.
For normal calls everything works fine. I dont know if this is an asterisk issue or a asterisk-im issue.
Here is an example of the manager log (modified for privacy):
Event: Dial
Privilege: call,all
Source: Local/255@from-queues-327d,2
Destination: SIP/255-0b952c70
CallerID: 469xxxxxxx
CallerIDName: John Doe
SrcUniqueID: 1196971261.19715
DestUniqueID: 1196971262.19717
Event: ExtensionStatus
Privilege: call,all
Exten: 255
Context: hints
Status: 8
Event: Newcallerid
Privilege: call,all
Channel: SIP/255-0b952c70
CallerID: 255
CallerIDName: <Unknown>
Uniqueid: 1196971262.19717
CID-CallingPres: 0 (Presentation Allowed, Not Screened)
Event: Newstate
Privilege: call,all
Channel: SIP/255-0b952c70
State: Ringing
CallerID: 255
CallerIDName: <unknown>
Uniqueid: 1196971262.19717