URL Alert | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 11, 2011 ⬆ |
◄ ► |
Author | Message | |||
Ahsan New member Username: Imahsan Post Number: 11 Registered: 10-2010 |
I want nowsms to run a url in background (just like it runs with 2-way sms) each time a specified number of sms are sent from a SMSC connection. For example there is a SMSC Connection 1.. 7000 SMS are sent from it .. it runs a script done.php then again 7000 SMS sent then again it run the script done.php... Any simple solution? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3003 Registered: 08-2008 |
Hi Ahsan, There is definitely no easy way to do this. There is no trigger based upon the number of messages posted via an SMSC connection. There are accounting callbacks that are HTTP based, and which are triggered every time a message is sent. If you trap the parameters "Type=SMSOUT" and "SMSCName=" (which tells you which SMSC a message was delivered to, then you could manage your own counts and post an alert when it reaches whatever thresholds you want to implement. The following explains how accounting callbacks work: http://www.nowsms.com/dynamic-sms-message-routing-with-http-callbacks The following explains the parameters that are passed in the "SMSOUT" callback, which is the callback that occurs when a message is delivered to an upstream SMSC: http://support.nowsms.com/discus/messages/1/69916.html An alternative way is to poll the XML status query in NowSMS: http://www.nowsms.com/xml-status-query-for-smsc-connection-status-and-statistics It returns an XML status report that includes information about how many messages have been routed via each SMSC connection. You'd need to write a program that parsed the XML results and sent an alert based upon your thresholds. -- Des NowSMS Support |