added code to determine session by phone #