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
ERROR: Message rejected
sp_NewPost Add Reply sp_NewTopic Add Topic
October 30, 2015
8:21 am
sudheer
Guest
Guests

Thank You Henk Helmantel
this Is working For me.

Regards, sudheer

August 6, 2014
8:59 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Your HTTP server script returns the text '1' instead of 'result=1', Diafaan SMS Server does not recognize this as a valid response.

If you change the response in your HTTP server script to 'result=1', the HTTP callback function should accept the messages and Diafaan SMS Server will put the messages in the message queue.

Regards, Henk

August 5, 2014
11:31 pm
Cry
Guest
Guests

Sorry Henk,

for test, my url is *Removed*

August 5, 2014
11:05 pm
Cry
Guest
Guests

Already done that way. But still keeps returning me the error. I do not know what I'm doing wrong.

August 5, 2014
10:13 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

This looks correct, but you have to make sure that the HTTP server script returns the correct confirmation text in the HTTP response. Otherwise Diafaan SMS Server will rejected the messages.

The most basic response from the HTTP server script is 'result=1' (without quotes). This response means that the HTTP script accepts the message and that Diafaan SMS Server can go ahead and send it. You also have to make sure that the response is a valid HTTP query string without any (HTML) formatting. For instance the response:

<html>
<body>
result=1
</body>
</html>

is not valid

Regards, Henk

August 5, 2014
8:58 pm
Cry
Guest
Guests

hmm,

This is the information I receive from callback when I send SMS,

source = Web Connector
action = message_out
user_id = 1
ip_number = 179.222.148.148
from = admin
to = +557199723638
message = BBMP BBMP BBMP !!!
message_type = sms.automatic
user_info = 6d6bfc35-0341-44a0-9e50-f84d0d4daa87
priority =
gateway =
tlv_list =
result =
sms_central =
message_part =
message_parts_received =
message_parts_total =
send_time =
receive_time =
pdu =
connector_list =

the SMS not sent, and nothing appears in panel.

My url is working perfectly. giving true or 1

August 5, 2014
8:29 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

When the 'Enable HTTP callbacks' setting is set in Diafaan SMS Server for outgoing messages, all message are affected. Not only the messages that are sent with an anonymous HTTP API call but also the messages that are sent from other connectors in Diafaan SMS Server.

If the HTTP callbacks are not handle properly by your HTTP server script, the messages you send will fail with the error 'ERROR: Message rejected.'. If you do not need HTTP callbacks, you should disable the HTTP callback option.

You can find more information about the HTTP callback functionality in the online manual of Diafaan SMS Server.

Regards, Henk

August 5, 2014
6:19 pm
Cry
Guest
Guests

Hi Henk,

thanks for your reply.

I enabled anonymous HTTP API Requests, and I'm sending requests through the API as anonymous. Is that why I have this problem when I enable the callback?

August 5, 2014
2:44 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Cry,

This error message probably means that you have enabled the HTTP callback functionality without handling the HTTP call properly in your HTTP server script. The HTTP call should return the text 'result=1' for the message, otherwise the message is regarded as rejected by Diafaan SMS Server.

If you have enabled the HTTP callback functionality by mistake, you can disable it in the main options of Diafaan SMS Server, select 'Actions-Options-HTTP callbacks' and deselect the option 'Enable HTTP callbacks'.

Regards, Henk

August 5, 2014
4:37 am
Cry
Guest
Guests

Hi,

When I try send one SMS using the API I got this error: ERROR: Message rejected. What it means? It Happens when I enable HTTP callbacks.

I'm using a free trial for tests.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488