I spent the past few hours trying to make it work, i got it to work for SMS, I'll need to play a little more to make it work for MMS as well.
For incoming SMS, go to /var/www/fusionpbx/app/sms/hook/ create a file sms_hook_bulkvs.php and paste the following code:
<?php
include "../root.php"...