Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle acks and nacks from sent messages #5

Merged

Conversation

rudigiesler
Copy link

No description provided.

@rudigiesler rudigiesler mentioned this pull request Mar 26, 2015
@rudigiesler
Copy link
Author

Ready for review.

@@ -2,12 +2,21 @@ language: python
python:
- "2.6"
- "2.7"
services:
- "riak"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need riak, do we?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see we've added a MessageStore -- that seems like a crazy requirement but I'm going to keep reading.

default=None, static=True)
status_callback_method = ConfigText(
"The HTTP method to use when sending the callback status",
default='POST', static=True)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm understanding the Twilio documentation correctly, all of these should just be the equivalent of account fallback values because they can also be specified in the Call request?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! These are the URLs for received calls?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case I recommend we make the values not-static. That will allow us to sub-class this application and make the URLs message-dependent later on.

@hodgestar
Copy link

Left some comments. We definitely don't want to depend on the message store but its otherwise looking good!

Sorry it took me so long to get to this. Have a good weekend!

@rudigiesler
Copy link
Author

Ready for another review.

self._data = {
'error_type': error_type,
'error_message': error_message,
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably doing something like super(Error, self).__init__(error_type=error_type, error_message=error_message) rather than setting _data.

@hodgestar
Copy link

Left some very minor comments. Otherwise looks good.

Woot on making the SessionID manager it's own class -- that worked out very nicely.

@hodgestar
Copy link

👍

rudigiesler pushed a commit that referenced this pull request Apr 10, 2015
…acks-from-sent-messages

Handle acks and nacks from sent messages
@rudigiesler rudigiesler merged commit 53f1450 into develop Apr 10, 2015
@rudigiesler rudigiesler deleted the feature/issue-5-handle-acks-and-nacks-from-sent-messages branch April 10, 2015 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants