After processing an sms trigger a task

After receiving an SMS I would like to reply with my own message, but asynchronous. So I set SMS which needs to be send in reply on the webserver, but then I have to wait for the Task Sync service to get the reply. 

I added this line of code to immediatly after processing the sms to check if there is already a message which needs to be send (in reply).

I hope you find this a usefull addition.