Good point, I added a commit to better split out the sms sessions and ivr sessions, so that now this isn't necessary and we just track an ivr session's id throughout the call rather than look it up like we have to for sms.