Add SMS messages to the outbound queue and delivery notification.

Add SMS messages to the outbound queue and delivery notification. SearchSearch
Author Message
Nasif Khan
Posted on Sunday, September 27, 2009 - 07:48 am:   

Hi

I am using NowSMS trial version. i was testing that whether I can send SMS using manual .REQ file using my own file name. (e.g U34341.REQ).
I have created 10 diffrent files with separate names but with same extension and found out that I can send sms successfuly but I cannot get the SMS delivery notification if I send sms using this way.

Can anyone help me about it?

Thanks
Nasif
Nasif Khan
New member
Username: Nasifkhan

Post Number: 2
Registered: 11-2006
Posted on Sunday, September 27, 2009 - 09:23 am:   

Also I have found that while submitting via http, i am getting the delivery notifications for some SMS's but not all. i.e if i post 3 sms at a time, i getting the delivery for the last sms ???? can u tell me why??
rajneesh
New member
Username: Rajneeshmodasysnet

Post Number: 1
Registered: 09-2009
Posted on Monday, September 28, 2009 - 04:24 am:   

Hi
My company is using now sms/mms gateway v5.5..
Basically we dealing with mobile content management and caller ring back tone service..
Currently we need the sms quiz service where customer can play and send their sms to the particular no.(us) and get the point highest will winner.. Is it possible in the version of your gateway which we are using right now if yes ,pls do give the idea and more info about it
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1307
Registered: 08-2008
Posted on Monday, September 28, 2009 - 05:27 pm:   

Hi Nasif,

If you create the .REQ file directly, you need to include ReceiptRequested=Yes in the file to request a delivery receipt.

(If you used the ReceiptRequested=Yes setting in SMSGW.INI, this only sets this flag automatically for HTTP submissions. So when the HTTP submission creates the .REQ file, it would put it in place.)


quote:

Also I have found that while submitting via http, i am getting the delivery notifications for some SMS's but not all. i.e if i post 3 sms at a time, i getting the delivery for the last sms ???? can u tell me why??




Are you using a GSM modem?

I have noticed that some GSM modems have very limited buffering of delivery receipts.

NowSMS works best if the modem supports the "Direct to Modem" option for "SMS Message Storage" under "Properties" of the modem in NowSMS.

In that mode, the modem pushes messages and delivery receipts to NowSMS as they are received, so that NowSMS does not have to poll for them.

Try the "Direct to modem" setting, and see if it makes a difference.

It would also help if you enable the SMSDEBUG.LOG, and repeat an attempt where you send out multiple messages requesting delivery receipts.

Post the SMSDEBUG.LOG in reply here, and I can take a quick look to see how the modem is handling the delivery receipts.

--
Des
NowSMS Support
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1308
Registered: 08-2008
Posted on Monday, September 28, 2009 - 05:30 pm:   

For the question from rajneesh ... NowSMS can route received messages to an application that you write, so that you can process these messages.

For more information, see the 2-way SMS related postings on the API page: http://www.nowsms.com/support/api.htm

--
Des
NowSMS Support
Nasif Khan
New member
Username: Nasifkhan

Post Number: 3
Registered: 11-2006
Posted on Tuesday, September 29, 2009 - 03:28 am:   

Hi Des,

I am using SMPP connectivity.

Here is SMSDEBUG.LOG

09:22:01:614 [0] main: Now SMS/MMS Gateway Web server started on port number 8800
09:22:03:614 [0] main: preferred sender = XXXXX,SMPP - 10.6.1.10:2775
09:23:45:486 [6] ThreadProcessConnection: Processing connection from 10.243.97.16...

09:23:45:486 [6] ThreadProcessConnection: Processing request /?phonenumber=XXXXXXXXXX&Text=asdasdasd&ReceiptRequested=Yes
09:23:45:486 [6] Debug: 1 recipient entries
09:23:45:486 [6] Debug: XXXXXXXXXXXXX
09:23:45:502 [6] ThreadProcessConnection: Request processing complete
09:23:46:142 [2] ThreadProcessModem: Processing 4AC16FB1.req...
09:23:46:673 [6] ThreadProcessConnection: Processing connection from 10.243.97.16...

09:23:46:673 [6] ThreadProcessConnection: Processing request /?phonenumber=XXXXXXXXXX&Text=asdasdasd&ReceiptRequested=Yes
09:23:46:673 [6] Debug: 1 recipient entries
09:23:46:673 [6] Debug: XXXXXXXXXXXXX
09:23:46:689 [6] ThreadProcessConnection: Request processing complete
09:23:52:343 [2] ThreadProcessModem: Processing 4AC16FB2.req...
09:23:58:701 [2] SMPPReceiveMessageCallback: inbound message: sender=XXXXXXXXXXXX, recip=XXXXX, pid=0, dcs=0, msgFlags=4, udh=, msg=id:4AC16FB2 sub:000 dlvrd:000 submit date:0909290923 done date:0909290924 stat:DELIVRD err:000 Text:asdasdasd
09:23:59:591 [3] ThreadProcessInboundSMS: Processing 4AC16FB3.in...


Here I am getting delivery notifications from the second SMS.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1316
Registered: 08-2008
Posted on Tuesday, September 29, 2009 - 01:54 pm:   

Hi Nasif,

That is very odd.

A GSM modem might have a limited delivery receipt buffer, but an SMPP server should not.

Are you sending to the same message to the same phone number ... or is it different phone numbers? I could see where the system could possibly get confused by duplicate messages, or maybe it is filtering them on purpose ... but unless the system is filtering duplicates on purpose, this should not happen.

Unfortunately, you'd need to ask your provider about this. From a NowSMS perspective, there's nothing that we could do differently ... we're asking for a receipt with each message, and we can only present the receipts that we receive back.

--
Des
NowSMS Support
Nasif Khan
New member
Username: Nasifkhan

Post Number: 4
Registered: 11-2006
Posted on Wednesday, September 30, 2009 - 04:14 am:   

Hi Des,

Thanks for your reply.

I am sending the same SMS to same phone number multiple times. Could this be a reason???

Thanks
Nasif
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1318
Registered: 08-2008
Posted on Wednesday, September 30, 2009 - 03:43 pm:   

Hi Nasif,

It could be.

Does the recipient actually receive multiple messages?

If they are receiving multiple messages, then you SHOULD get multiple receipts.

(If the recipient only gets a single message, then a spam filter might be silently discarding duplicates.)

Even if the recipient is receiving the multiple messages, there may be a problem an issue with your service provider where they get confused with delivery receipts for duplicate messages.

Unfortunately, in situations like this, you're often stuck trying to figure out where the service provider's problem is. I'd suggest trying tests where you send the same message to multiple different recipients ... and one where you send different texts to the same recipient. That may help narrow down when the problem occurs.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 24
Registered: 01-2008
Posted on Saturday, October 03, 2009 - 05:41 pm:   

hmmm... i have a question about .req file.
So i can manual create .req file in Q dir with any random name ? And NowSMS will save it ?
So9 what about share .DLL Library with methods SendSMS,SendWapPush ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 1334
Registered: 08-2008
Posted on Monday, October 05, 2009 - 02:56 pm:   

Hi Alexandre,

We don't encourage people to create the .REQ files directly, or have any documentation about the format.

I will say that it works best for simple text messages. That's because the part of NowSMS that creates the .REQ files normally takes care of encoding the REQ files for long text, WAP push, etc.

There is no DLL interface available. However, I did have an interesting thought while reading your message.

A simple API that accepted name/value pairs that matched the HTTP URL parameters would be useful. The DLL could route the parameters to NowSMS the same way as an HTTP request.

I'm going to see if we can explore that possibility. It may not be as simple or practical as I'm thinking it could be ... but it seems like it would be useful if possible.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 25
Registered: 01-2008
Posted on Monday, October 05, 2009 - 03:29 pm:   

Yeah it`s will be cool.

It`s will be useful for example:

I make some app for sending sms/wappush, for write to database, first i need to know what is message id for sent sms (i need parse http response from now sms), second i need decode Data in sms (if it 7bit segmentable or it wap-push, or UCS) and only after that i write to database outbound sms :-)

My idea (maybe i wrong:-)) is: if u make some SDK library with async methods like SendTextSMS,SendWapPush or MMS, with 'IN' array parameters (like DestinatAdress,UserLogin,Password,Sender,RouteName etc.) with 'OUT' paramas like 'Result of operation' (for example 0 - all ok, -1 - login failed,-2 - password failed, -3 - route failed, -4 - server off line and etc.), 'MessageID','Number of segments'. I think (maybe i wrong again:-)) it`s will be faster then parse message id from http response and decoding text of sms :-)