fix substr on log and change max length to 1000 chars
super major changes, introduce SMSC (was virtual gateway) and change many parts to support SMSC to send SMS instead of gateway