common functions of campaign & mod_sms moved to mod_utils