Cancel pending phone request
Get a recent message from the cache
Get retry count for a message
Check if message has exceeded maximum retry attempts
Increment retry counter for a message
Check if an error code indicates a MAC failure
Mark retry as failed
Mark retry as successful
Parse error code from retry receipt's retry node. Returns undefined if no error code is present.
Schedule a phone request with delay
Optionaldelay: numberCheck if a session should be recreated based on retry count, history, and error code. MAC errors (codes 4 and 7) trigger immediate session recreation regardless of timeout.
Add a recent message to the cache for retry handling