Block incoming Alpha Numeric Sender Id's | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through May 20, 2013 ⬆ |
◄ ► |
Author | Message | |||
Joel Parker New member Username: Joelparker Post Number: 5 Registered: 06-2009 |
How can I block any message with an alphanumeric sender id coming into the now sms box via an SMPP bind | |||
Joel Parker New member Username: Joelparker Post Number: 6 Registered: 06-2009 |
Sorry, I meant to say arriving on an incoming SMPP bind or via HTTP | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4082 Registered: 08-2008 |
Hi Joel, I assume that these are clients submitting the messages? The only way to do this is with accounting callbacks. Understanding accounting callbacks is a little complicated. (There is an article here: http://www.nowsms.com/understanding-sms-accounting-callbacks) But ... relatively speaking, this would be a simple check to implement in a PreAuth accounting callback. Here's a quickly written one that seems to do the trick for me:
-- Des NowSMS Support | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 4083 Registered: 08-2008 |
An additional thought ... If you wanted to get a little more trick ... Where I set $response = "PreAuth=Deny"; add this: echo "SMPPErrorCode=0xA\r\n"; echo "RejectMessage=Alpha Sender not allowed\r\n"; The RejectMessage response is an error text returned to an HTTP client. The SMPPErrorCode response returns ESME_RINVSRCADR (invalid source address) to an SMPP client. |