def get_router():
    router = getattr(settings, 'RAPIDSMS_ROUTER',
                     'rapidsms.router.blocking.BlockingRouter')
    if isinstance(router, string_types):
        try:
            router = import_class(router)()
        except ImportError as e:
            raise ImproperlyConfigured(e)
    return router
Return router defined by RAPIDSMS_ROUTER setting.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/router/api.py/get_router