Question about HTTP SMSC

Question about HTTP SMSC SearchSearch
Author Message
Alexandre
New member
Username: Alexd

Post Number: 44
Registered: 01-2008
Posted on Wednesday, April 28, 2010 - 12:50 pm:   

I tested sending sms to HTTP SMSC.

I configured SMSGW.INI to track http receipts:

TrackHTTPReceipts=Yes
MessageIDResponsePrefix=messageid=


My script handles request from NowSMS and replies:

messageid=35ef796b-d02f-4439-a1c0-649a78dd3bac

NowSMS generated SMSOUT like this:
SMSOUT-20100428.LOG
2010-04-28 13:08:22,544D706B.req,127.0.0.1,+XXXXXXXXXXX,OK -- HTTP -
192.X.X.X:80,SubmitUser=testlogin;SMSCMsgId=35ef796b-d02f-4439-a1c0-649a78dd3bac ;Text="test reports"

Then HTTP SMSC send delivery report to NowSMS via http request:

http://x:8800/?user=x&password=x&ReceiptMessageId=35ef796b-d02f-4439-a1c0-649a78 dd3bac&ReceiptDelivered=Yes

NowSMS response is:

Error: Invalid Parameter
ReceiptMessageId not found in our local database

What does it mean? And i can resolve it ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2057
Registered: 08-2008
Posted on Thursday, April 29, 2010 - 03:38 pm:   

Hi Alexandre,

I tried a simple test to make sure this feature is not broken, but I didn't see any problem.

My best guess is that there is a stray character that is not obvious.

I'd suggest that you repeat the test with the SMSDEBUG.LOG enabled. Then e-mail me the SMSDEBUG.LOG.

There is also a tracking database in the SMPPDATA\HTTP directory. Please send that as well.

I'd like to make sure that the SMSDEBUG.LOG is sent as part of a ZIP or RAR file, so if there is a stray character causing confusion, we don't lose it in transmission.

Either upload in reply here, or e-mail it to nowsms@nowsms.com with "Attention: Des" in the subject line.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 45
Registered: 01-2008
Posted on Friday, April 30, 2010 - 10:12 am:   

Hello! I check SMPPDATA\HTTP but folder is empty.
Here is debug log in attach.
application/octet-streamSMSDEBUGLOG
SMSDEBUG.LOG (8.4 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2066
Registered: 08-2008
Posted on Friday, April 30, 2010 - 01:19 pm:   

I did some testing and you'll see this behaviour if TrackHTTPReceipts=Yes is not set in the [HTTP - server:port] section. Double check this and confirm
spelling is correct.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 46
Registered: 01-2008
Posted on Friday, April 30, 2010 - 03:48 pm:   

OK, I insert TrackHTTPReceipts=Yes and MessageIDResponsePrefix=messageid=
to [HTTP - server:port] section.
Now NowSMS write to log: ThreadProcessModem: SMS message could not be sent to unknown, Error: No SMSC defined to route message

Please, look at a new smsdebug.log.

My config in SMSGW.INI

[HTTP - 192.168.0.10:80]
TemplateText=/sms2allhandler/SMS2ALLHandler.ashx?UserLogin=@@UserName@@&DestinationAddress=@@PhoneNumber@@&SourceAddress=Sender&Text=@@Text@@
TemplateBinary=/?PhoneNumber=@@PhoneNumber@@&Binary=1&Data=@@Data@@&UDH=@@UDH@@&pid=@@pid@@&dcs=@@dcs@@
ServerType=Custom
HTTPUseAuth=No
SenderAddressOverride=Yes
UseSSL=No
RemovePlus=Yes
SendLongMessage=Yes
ThreadCount=10
RoutePrefOnly=Yes
Route1=+???????*
AllowedUserOnly=Yes
AllowedUser1=7
TrackHTTPReceipts=Yes
MessageIDResponsePrefix=messageid=
UserName=7
Password=7
application/octet-streamSMSDEBUGLOG_2
SMSDEBUG.LOG (12.8 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2069
Registered: 08-2008
Posted on Friday, April 30, 2010 - 06:40 pm:   

Is authentication of users required in the config? NowSMS tries to route the receipt back to the user account that submitted the message, not 2way SMS. It assumes the users are submitting via SMPP and outbound is HTTP.
Alexandre
New member
Username: Alexd

Post Number: 47
Registered: 01-2008
Posted on Tuesday, May 04, 2010 - 10:24 am:   

>>It assumes the users are submitting via SMPP and outbound is HTTP.

If I send message via NowSMS HTTP API, it couldn't receive delivery reports from HTTP SMSC, do I understand correctly?

>> Is authentication of users required in the config?
For web interface - it's true.

Extra question:
How can I get user login who sends a message, via URL Template?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2078
Registered: 08-2008
Posted on Wednesday, May 05, 2010 - 03:43 pm:   


quote:

If I send message via NowSMS HTTP API, it couldn't receive delivery reports from HTTP SMSC, do I understand correctly?




Correct. The use case for which this feature was added involved SMPP clients submitting to NowSMS, and the messages being sent out via an HTTP SMSC connection.

There might be a way for us to add support for what you are trying to do, but I would need to understand the overall use case better.


quote:

How can I get user login who sends a message, via URL Template?




Do you mean for URL template for HTTP SMSC? @@SubmitUser@@ and @@SubmitPassword@@ are available for the URL template.

--
Des
NowSMS Support
Alexandre
New member
Username: Alexd

Post Number: 48
Registered: 01-2008
Posted on Wednesday, May 05, 2010 - 07:26 pm:   

There is my use case:

I have the external system (ExS) that receives SMS messages only via HTTP. Clients can send messages to NowSMS via SMPP as well as HTTP and this messages must be forward to ExS. ExS accepts messages only in concatenated form. NowSMS concats message parts (if it long message) and sends it to the handler, which forwards the message to the ExS . When the ExS sends messages, my handler generate receipt request to NowSMS.
Alexandre
New member
Username: Alexd

Post Number: 49
Registered: 01-2008
Posted on Wednesday, May 05, 2010 - 07:31 pm:   

>>Do you mean for URL template for HTTP SMSC? >>@@SubmitUser@@ and @@SubmitPassword@@ are >>available for the URL template.

Exactly! Thanks.

Plz, update documentation on your website.
narayanan
New member
Username: Narayanansun

Post Number: 1
Registered: 07-2010
Posted on Tuesday, July 13, 2010 - 08:13 am:   

I don't have net connectivity. my simulator and now sms are running in same system. I would like to know how to send message from my now sms tool to my simulator. I updated the ip address and port number both in now sms tool as well in config.ini file.

pls help me to solve this issue.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2333
Registered: 08-2008
Posted on Wednesday, July 14, 2010 - 02:51 pm:   

For an HTTP SMSC connection, NowSMS will send an HTTP GET request to the host name/IP address and port number specified. The HTTP URL will be built from the template. See http://www.nowsms.com/documentation/ProductDocumentation/configuring_smsc_connec tions/HTTP_SMSC.htm for more information.

Does your simulator accept an HTTP request for sending a message?

--
Des
NowSMS Support