SMSC Statistics | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through December 14, 2010 ⬆ |
◄ ► |
Author | Message | |||
Ahsan New member Username: Imahsan Post Number: 1 Registered: 10-2010 |
I am using NowSMS Gateway 2008 version! Is this possible to know, when an sms is sent throught web HTTP request, that from which SMSC connection it was sent? Or any way to check statistics (number of sms Sent) about SMS sent from each SMSC Connection? I do not want to setup anything like online accounting charge! I just want to know from which SMSC connection the sms was sent! Am I clear in my question or further explanation is required? | |||
Ahsan New member Username: Imahsan Post Number: 2 Registered: 10-2010 |
I have made only one account! I do not want to make more than one account! In other words all my SMSC connections are allowed on my one account! I also do not want to specify Sender and want SMSC gateway to select one on its own to manage things in a more better way still i want statistics about SMS sent from each SMSC | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2603 Registered: 08-2008 |
Your questions are unclear to me. I suggest you look at the log files that NowSMS generates. Especially SMSOUT-yyyymmdd.LOG which records all outbound SMS messages, what user account submitted them, and what SMSC connection they were dispatched to. -- Des NowSMS Support | |||
Ahsan New member Username: Imahsan Post Number: 3 Registered: 10-2010 |
Let me make it clear! I send an SMS through HTTP request using the Gateway! Now i want gateway to tell me which SMSC connection it used to send that SMS! | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2604 Registered: 08-2008 |
That information is in SMSOUT-yyyymmdd.LOG | |||
Ahsan New member Username: Imahsan Post Number: 4 Registered: 10-2010 |
But for this i need to use file systems object and it will be much more complex! Is this possible that after sending the SMS i am returned with some variables containing information about the sms sent such as SMS ID and the SMSC connection used ? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2605 Registered: 08-2008 |
The HTTP response to you happens before the message has been sent out. The outcome is not yet known. The message could be eligible for more than one outbound route. Your only options are accounting callbacks (Type=SMSOUT will tell you each time a message is dispatched), or the SMSOUT log file. | |||
Ahsan New member Username: Imahsan Post Number: 5 Registered: 10-2010 |
Can you explain how can i do this using accounting callbacks with an example if possible? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2606 Registered: 08-2008 |
The following link has a good example of how accounting callbacks work. http://blog.nowsms.com/2009/01/dynamic-sms-message-routing-with-http.html In your case, you would ignore all "Type=" callbacks except for "Type=SMSOut". The other parameters are all similar to what you see in the above example. The only difference is that "Type=SMSOut" also includes "SMSCName=" and "Status=" parameters to tell you about the message routing. | |||
Ahsan New member Username: Imahsan Post Number: 6 Registered: 10-2010 |
Is this gonna work in NowSMS 2008? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2607 Registered: 08-2008 |
I see a reference here so it should be in NowSMS 2008: http://support.nowsms.com/discus/messages/1/24701.html | |||
Ahsan New member Username: Imahsan Post Number: 7 Registered: 10-2010 |
I am unable to understand the flow of this Callback Accounting URL! I will try to explain you my understanding regarding this and you are requested to correct me where I am wrong! My understanding regarding this is as follows: For example gateway is installed on my local machine and if i tried to send an SMS with the following URL http://localhost:8800/?PhoneNumber=XXXXXXX&text=Hello&SMSAccountingURL=http://lo calhost/test/test.php Now the gateway will request the URL http://localhost/test/test.php two times! One before sending the SMS and sending after the Sending the SMS and send the variables to http://localhost/test/test.php as follows: in the first request: PreAuth=Yes (indicates that the message is a Pre-Authorisation Request) Type=SMSSend From=Defined "SMS Users" Account To=Comma delimited list of message recipients (will not be present if message is addressed to more than 100 recipients) MsgCount=#### (number of recipients user is requesting to send the message to) SubmitIP=a.b.c.d SMSCRoute=xxxxxx (optional, will be present only if an explicit route was requested in message submission) Sender=xxxxxx (optional, will be present only if a sender address was specified in message submission) Binary=1 (optional, will be present if the message is binary) PID=# (optional, will be present only if a non-zero PID value was specified in message submission) DCS=# (optional, will be present only if a non-zero DCS value was specified in message submission) UDH=HexString (optional, will be present only if message contains User Data Header) Data=HexString (optional, will be present only if message is binary) Text=String (optional, will be present only if message is text) ReceiptRequested=Yes (optional, will be present only if message is requesting a delivery receipt ... only available in v2009.01.26 and later) and in the second request: Type=SMSSend From=Defined "SMS Users" Account To=Message Recipient Phone Number (if the message is sent to multiple recipients, this callback is repeated for each recipient) MessageID=Message ID assigned to the message by NowSMS SubmitIP=a.b.c.d SMSCRoute=xxxxxx (optional, will be present only if an explicit route was requested in message submission) Sender=xxxxxx (optional, will be present only if a sender address was specified in message submission) Binary=1 (optional, will be present if the message is binary) PID=# (optional, will be present only if a non-zero PID value was specified in message submission) DCS=# (optional, will be present only if a non-zero DCS value was specified in message submission) UDH=HexString (optional, will be present only if message contains User Data Header) Data=HexString (optional, will be present only if message is binary) Text=String (optional, will be present only if message is text) ReceiptRequested=Yes (optional, will be present only if message is requesting a delivery receipt ... only available in v2009.01.26 and later) I can use these variables in test.php Am i right in my understanding? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2608 Registered: 08-2008 |
That is a correct understanding. |