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
Issue with message_log_update
sp_NewPost Add Reply sp_NewTopic Add Topic
August 3, 2015
1:49 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

It depends how often this error occurs and what the root cause of the error is. When the modem encounters an error, Diafaan SMS Server restarts the GSM Modem Gateway and that is what you see in the event log. A possible error can be that the modem and network have a temporary communication problem, this is a common problem with GSM modems that are connected to a busy network or are placed in a location with low signal strength. Some combinations of modems and mobile networks generate more of these errors than others but it is not uncommon to see an error for every 20 messages or so that you send.

Since you are using the GSM modem (or an Android phone ) over an Internet or WiFi connection, it is also possible that the internet connection to your modem is unreliable. The Internet connection to the modem does not have to be fast but it should be consistently reliable.

If you send a communication log of the modem to dms@diafaan.com I may be able to tell the exact cause of the error (please include the serial number of your license in the email).

Regards, Henk

August 3, 2015
11:41 am
Tanvir
Guest
Guests

Hi Henk,

I am getting lots of these errors should i be worried? Also how can i stop these?

EventTime Event Source
03/08/2015 10:39:57 Serial port "TCP/IP:115200,n,8,1:xxx.xxx.xxx.xxx:10001" open
EventTime Event Source
03/08/2015 10:39:57 Serial port closed.

Kind Regards

Tanvir

July 24, 2015
8:58 am
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

There is not much you can do, either the delivery reports work or they don't. An issue with the number format difference between the message and the receipt is the only reason that Diafaan SMS Server would not process a received delivery report correctly but that does not seem the case in your situation.

There could be two reasons why the delivery reports sometimes stop working:

- Your mobile operator might not always send delivery reports. I have seen this happen when the SMS traffic for a modem was very high.

- It is also possible that the Android phone does not always forward delivery reports to the GSM Modem Emulator app, I have not received any other reports about this but it might be an issue that is specific to your phone.

Regards, Henk

July 23, 2015
10:03 pm
Tanvir
Guest
Guests

Hi Henk,

Another question for you: is there any way to get the delivery receipts again?

Kind regards

Tanvir

July 23, 2015
7:56 pm
Tanvir
Guest
Guests

Hi Henk,

There is definitely an issue with the receipts i was getting them last night and they stopped this morning everything is fine i do have +44 with the number.

Is there anything on the android phone i need to set up?

Kind regards

Tanvir

July 23, 2015
4:00 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

You can use a dual SIM Android phone with Diafaan SMS Server but the GSM Modem Emulator app does not have the ability to control which SIM is used sending the messages. At the moment Android does not officially offer the functionality to control multi-SIM behavior from an app.

Regards, Henk

July 23, 2015
12:33 pm
Tanvir
Guest
Guests

Hi Henk,

Can I use dual sim android phone?

Kind regards

Tanvir

July 21, 2015
1:27 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server sends the messages as fast as possible when you use a GSM modem or Android phone. There are options to decrease the message speed if there are problems with the reliability of the GSM modem but the default settings of the GSM Modem Gateway is set to the optimal send speed.

Regards, Henk

July 21, 2015
12:54 pm
Tanvir
Guest
Guests

Hi Henk,

Thanks for the info really appreciated your honest reply.

I have the app in stalled on the rooted phone is there anything I have to change on the gateway to send it quicker?

Kind regards

Tanvir

July 21, 2015
9:46 am
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

If you are certain that your mobile service supports SMS delivery receipts than it is possible that the format of the destination phone number and the format of the originator number of the receipt is not similar. If the number format is not the same, Diafaan SMS Server cannot match the message with the receipt. Using International number format (starting with a '+') usually works best when you send messages with Diafaan SMS Server.

Rooting Android and using an app to remove the SMS limit could make your phone unusable and I don't recommend it. If you want to take the risk, you can search for 'SMS limit' in the Google app store to find apps that can remove the built-in SMS limits on rooted Android devices. I do not have experience with any of these apps so I won't make any recommendation for a specific app.

Regards, Henk

July 20, 2015
11:34 pm
Tanvir
Guest
Guests

Hi,

I did check the message log and it is 200 and it should have been 201 as I have received the delivery receipt for it.

Android phone I am using is rooted is there a document somewhere I could follow to get the most out it please? or any apps you could recommend please?

Its only that bit left in the puzzle for me to solve. 🙂

Regards

Tanvir

July 20, 2015
8:06 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

The status should change from status code 200 to 201 when the Android phone receives a delivery receipt for the message. You can see in the send log of Diafaan SMS Server what the latest status code for each messages is. Unfortunately, not all mobile operators support delivery receipts.

Stock Android limits the amount of messages that can be sent by an app to (usually) 100 messages per hour. A lot of Android phones also cause errors when the messages are sent immediately after each other. For this reason, the GSM Modem Emulator app limits the message speed to 4 messages per minute. If you use a rooted Android phone or a phone with a custom ROM it is often possible to remove these message limits, either in the Android setting or with a third party app. If you have an Android phone without the send limits, you can increase the number of messages per minute that the GSM Modem Gateway can send to a (much) higher value.

Regards, Henk

July 20, 2015
5:25 pm
Tanvir
Guest
Guests

Hi,

I am using an android phone at the moment with the app and I would like to improve the sending part is there anything i can tweak to enhance the performance?

Regards

Tanvir

July 20, 2015
4:43 pm
Tanvir
Guest
Guests

Hi Henk,

Thanks for the info. When Do the status update via http://xxxxx:9710/http/PHP_script_to_send_SMS_messagesquest-status-update?username=admin&password=xxxxxxmessage-id=f47ae4e8-884b-41d2-a0ba-9429050cbb71 i always get STATUS:200 Success: Message accepted by GSM modem gateway. even though previously I had delivery receipt status 201.

Should that give me STATUS:201 Success: Delivered on the phone or something like that?

Kind regards

Tanvir

July 17, 2015
9:42 am
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

When Diafaan SMS Server does not receive a response to the HTTP callback from the web server within a specific time, it triggers a timeout and sends the HTTP callback again one time, with the extra 'callback_retries=1' parameter to let the web server know that this is a repeated HTTP callback.

It is important to keep the response time for the HTTP callback call as low as possible. It is sometimes difficult to get a consistent low response time, especially when you use a remote web server or a PHP or ASP.NET script with a database lookup. A consistent response time lower than 50 milliseconds is ideal.

You can increase the timeout value for the HTTP callbacks in the settings of Diafaan SMS Server (menu options 'Actions-Options-HTTP callbacks'). However, keep in mind that the HTTP call blocks other actions in the gateway or connector during the call. If the HTTP callbacks take too long, it can slow down the message processing within the gateway or connector considerably.

Regards, Henk

July 16, 2015
11:08 pm
Tanvir
Guest
Guests

Hi Henk,

You are an absolute STAR thanks for all the info.

For some reason I am getting message_log and message_log_update twice one normal and one with CALLBACK_RETRIES = 1, even though my webpage has result=1.

Any suggestions would be much appreciated?

Kind regards

Tanvir

July 16, 2015
1:31 pm
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

The GSM Modem Gateway has a 'SendLimit' option to limit the number of messages that is sent in a specific time period. You can find this option in the advanced settings of the GSM Modem Gateway properties.

This option allows a maximum of messages per whole hour, day, week or month. To limit the number of messages to 175 per day you can set the value to '175D'. Please note that all messages send attempts are counted in the limit, also when the GSM modem returns an error when the message cannot be sent. You can set the 'SendLimitErrorCodeExceptionList' to prevent counting specific errors (or all errors) in the message limit.

When the message limit is reached, the GSM Modem Gateway pauses until the next whole hour, day, week or month.

Regards, Henk

July 16, 2015
10:31 am
Tanvir
Guest
Guests

Hi Henk,

Thanks for the reply.

I will do the receipt based on your suggestion. Is there a way where I can restrict how many messages I send per gateway e.g I will have 6 gateways and I want to sent 175 messages per day per network?

Kind regards

Tanvir

July 16, 2015
9:21 am
Henk Helmantel
Admin
Forum Posts: 552
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

For messages sent with a GSM modem, the 'message_id' parameter is not guaranteed to be unique. The message ID is a combination of the gateway ID of the gateway that sent the message, the destination number of the message and a reference number from the GSM modem. Since the reference number from the modem is a number between 0 an 255, it is reused by the GSM modem after sending 255 messages.

If you match the status update (with status code 201) with the last record that has status code 200 and the same message ID, you are reasonably safe. Diafaan SMS Server uses the same method to match the status update with the original message in the send log.

Messages that are sent with the SMPP Gateway get a unique message ID from the SMPP server, in that case the match on the message_id value is always reliable.

Regards, Henk

July 15, 2015
9:59 pm
Tanvir
Guest
Guests

Hi Henk,

I am trying to make a relationship between message_log (STATUS_CODE = 200) and message_log_update (STATUS_CODE = 201).

Is the MESSAGE_ID unique?

Regards

Tanvir

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 364

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 532

Posts: 1845

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 552