Thank You Henk Helmantel
this Is working For me.
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.
for test, my url is *Removed*
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:
is not valid
This is the information I receive from callback when I send SMS,
source = Web Connector
action = message_out
user_id = 1
ip_number = 188.8.131.52
from = admin
to = +557199723638
message = BBMP BBMP BBMP !!!
message_type = sms.automatic
user_info = 6d6bfc35-0341-44a0-9e50-f84d0d4daa87
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.
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?
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'.
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.
Most Users Ever Online: 494
Currently Browsing this Page:
Guest Posters: 417
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 675