Blocking routes from the same connection | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ |
◄ ► |
Author | Message | |||
Ruben da Costa e Silva New member Username: Rubendacosta Post Number: 5 Registered: 06-2022 |
Hello team. I have a question. My company is an SMS aggregator, that has several SMPP connections with other companies. I already know that I can block my users from using a specific connection, but is there a way of allowing specific users to only use some of the routes of that connection? As an example: One of our partners is providing us routes for France, Italy and Germany, but we want to allow a specific user to use that connection to send SMS's to France, but not to Italy and Germany. Can we make that configuration in NOWSMS, and if not, are there any alternatives that you could suggest. Thanks in advance. | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 6332 Registered: 08-2008 |
Hi Ruben, To accomplish that level of control, you would need to implement accounting callbacks. When a client submits a message to NowSMS, if an accounting callback is configured, NowSMS queries the callback URL via HTTP.. The callback script can decide whether or not to accept the message, or reject the message with a particular SMPP error code. It can also determine what outbound route should be used. An overview of accounting callbacks can be found here: https://nowsms.com/understanding-sms-accounting-callbacks A PHP example that blocks a particular recipient address is here: https://support.nowsms.com/discus/messages/1/73669.html You also might find a chart of SMPP error codes helpful: https://nowsms.com/smpp-error-code-reference The appropriate error code if rejecting a message in this scenario would probably be: ESME_RINVDSTADR - 0x0B - nvalid destination address Regards, Des NowSMS Support |