sample code for getting all sms by session