Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
DLR on HTTP Scripting Gateway
sp_NewPost Add Reply sp_NewTopic Add Topic
June 24, 2020
1:44 pm
Henk Helmantel
Admin
Forum Posts: 1196
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

You can call the 'OnStatusRequest' method in the script immediately after sending the message, or after a small delay with a 'Thread.Sleep(2000);' call if you need to wait 2 seconds for the status to update on the SMS service.

Using 'Thread.Sleep(2000)' causes the script to pause and decreases message throughput, a better (but slightly more complicated) way to wait a few seconds before calling the 'OnStatusRequest' method is to use a timer or the 'Task.Delay' method. With both methods the script keeps processing the outgoing messages during the delay. The 'Task.Delay' method is probably the easiest to implement.

Regards, Henk

June 23, 2020
6:50 pm
Ricardo
Guest
Guests

Hi team, hoping you're going well in this pandemic times, regarding to the DLR in my script, now I can get the DLR from my provider, but it is taking too much time to obtain, like 30 seconds, when I do this in a python script I can get the DLR in 2 seconds, what I'm doing bad, do you need the code?

Regards

Ricardo

June 22, 2020
11:41 am
Henk Helmantel
Admin
Forum Posts: 1196
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Ricardo,

When you set the 'sendStatusRequest' parameter of the 'PostSendResult' method in the script to 'true', the script will call the 'OnStatusRequest' method one or more times in increasing time intervals until you call the 'PostSendResultUpdate' method. In the 'sendStatusRequest' method, you can send a DLR request to the SMS service and set the final status of the message when it is available.

You can find and example on how to use the 'OnStatusRequest' method in the 'BulkSMS.com.cs' script in the Scripting Pack on the download page of this website.

Regards, Henk

June 19, 2020
10:54 pm
Ricardo
Guest
Guests

Hi, I'm trying to make an Scripting gateway to connect to an HTTP service, my question is how can I request the DLR on this service like 10 seconds after sending an SMS, in this service I must send and HTTP GET request to obtain the DLR

regardds

Ricardo

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
14 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 578

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 949

Posts: 3265

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1196