toTypeAndId

Parses cid of call to callType and channelId.

Return

Pair Pair with callType and channelId.

Throws

Throws an exception if format of cid is incorrect.