Modified SMS.php to determine the type of sms, and attach a reply request if appropriate