mirror of
https://github.com/ushahidi/SMSSync.git
synced 2026-04-25 15:55:57 +03:00
[GH-ISSUE #230] SMS is queued, but not Sent #168
Labels
No labels
Bug report
Code improvement
Concern
Feature request
Feature request
Good first issue to work on
In progress
Needs info
Question
Ready
Translation
User Experience
User Experience
Website
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SMSSync#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sorinpohontu on GitHub (Jan 19, 2015).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/230
Hello.
I'm trying to implement SMSsync (v2.7.3) in my own application using documentation from Developer section and I have some issues.
I'm trying to Send SMS from my application and everything works quite well until I "Enable Message Results API" (see below).
If "Enable Message Results API" is unchecked, the SMS is sent.
If "Enable Message Results API" is checked, the messages are queued, but they are not actually sent. Here is relevant part from the log:
19-01 15:55 TaskCheckResponse: SmssyncResponse{payload=Payload{messages=[Message{message='Test 1', to='+40xxxxxxxxx', timestamp='null', uuid='2568c37b-00a4-4753-a014', mMessageType=0, mSentResultCode=-2, mSentResultMessage='', mDeliveryResultCode=-2, mDeliveryResultMessage='', mMessageList=[]}, Message{message='Test 2', to='+40xxxxxxxxx', timestamp='null', uuid='10a7c6de-047f-47e6-9b9f', mMessageType=0, mSentResultCode=-2, mSentResultMessage='', mDeliveryResultCode=-2, mDeliveryResultMessage='', mMessageList=[]}, Message{message='Test 3', to='+40xxxxxxxxx', timestamp='null', uuid='e736f0e1-252d-4403-adc9', mMessageType=0, mSentResultCode=-2, mSentResultMessage='', mDeliveryResultCode=-2, mDeliveryResultMessage='', mMessageList=[]}], task='send', secret='567890', error='null', success=false}}
19-01 15:55 SMSsync has completed processing this message.
19-01 15:55 Successfully finished performing task checking null
19-01 15:55 Checking scheduled message result services
19-01 15:56 Performing task checking
19-01 15:56 TaskCheckResponse: SmssyncResponse{payload=Payload{messages=[], task='send', secret='567890', error='null', success=false}}
After "POST ?task=sent" I do receive the data:
{"queued_messages":["2568c37b-00a4-4753-a014","10a7c6de-047f-47e6-9b9f","e736f0e1-252d-4403-adc9"]}
I reply correctly on GET ?task=result with:
{"message_uuids":["2568c37b-00a4-4753-a014","10a7c6de-047f-47e6-9b9f","e736f0e1-252d-4403-adc9"]}
and I got the replay on POST ?task=result:
{"message_result":"[]"}
Note: on documentation the response should be "message_results", but actually is "message_result".
I've tried with "SMS Delivery Report" both enabled or disabled, same behavior.
Any clue ?
Have a nice day,
/Sorin
@eyedol commented on GitHub (Jan 20, 2015):
Will look into this to see if it's producible. Your integration looks correct.
@sorinpohontu commented on GitHub (Jan 20, 2015):
Hello. I've re-checked my code once again and made a test with your PHP sample.
With your code, everything works as expected, and the SMS is sent.
I've checked again and make sure the response output is always in JSON and now it seems it's working as expected. It's still a mystery why it wasn't working yesterday :)
Thanks for now, I'll get back if there will be another issue related to this.