Support forum
8:21 am
Thank You Henk Helmantel
this Is working For me.
Regards, sudheer
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
11:05 pm
Already done that way. But still keeps returning me the error. I do not know what I'm doing wrong.
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:
<body>
result=1
</body>
</html>
is not valid
Regards, Henk
8:58 pm
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
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
6:19 pm
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?
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
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 HelmantelAdministrators: Henk Helmantel: 1488