@@ -0,0 +1,920 @@
+from django.core.management.base import BaseCommand%0Afrom optparse import make_option%0Afrom rapidsms_httprouter.router import get_router%0Afrom rapidsms.models import Connection%0A%0Aclass Command(BaseCommand):%0A%0A    option_list = BaseCommand.option_list + (%0A        make_option(%22-p%22, %22--phone%22, dest=%22phone%22),%0A        make_option(%22-t%22, %22--text%22, dest=%22text%22),%0A    )%0A%0A    def handle(self, **options):%0A        if not options%5B'phone'%5D:%0A            phone = raw_input('Phone number you wish the message to appear to come from: ')%0A        else:%0A            phone = options%5B'phone'%5D%0A%0A        if not options%5B'text'%5D:%0A            text = raw_input('Text of the message: ')%0A        else:%0A            text = options%5B'text'%5D%0A%0A%09connection  = Connection.object.get(identity = phone)%0A        router = get_router()%0A        handled = router.handle_incoming(connection.backend.name, connection.identity, text)%0A        self.stdout.write('Done!%5Cn')%0A

Add command to make testing incoming messages easier.