Invia SMS: State-space models with regime switching