{"action":"created","issue":{"url":"https://api.github.com/repos/twilio/twilio-ruby/issues/172","labels_url":"https://api.github.com/repos/twilio/twilio-ruby/issues/172/labels{/name}","comments_url":"https://api.github.com/repos/twilio/twilio-ruby/issues/172/comments","events_url":"https://api.github.com/repos/twilio/twilio-ruby/issues/172/events","html_url":"https://github.com/twilio/twilio-ruby/issues/172","id":106607648,"number":172,"title":"Having problems Pausing in Twilio::TwiML::Response.new","user":{"login":"shua123","id":1593537,"avatar_url":"https://avatars.githubusercontent.com/u/1593537?v=3","gravatar_id":"","url":"https://api.github.com/users/shua123","html_url":"https://github.com/shua123","followers_url":"https://api.github.com/users/shua123/followers","following_url":"https://api.github.com/users/shua123/following{/other_user}","gists_url":"https://api.github.com/users/shua123/gists{/gist_id}","starred_url":"https://api.github.com/users/shua123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shua123/subscriptions","organizations_url":"https://api.github.com/users/shua123/orgs","repos_url":"https://api.github.com/users/shua123/repos","events_url":"https://api.github.com/users/shua123/events{/privacy}","received_events_url":"https://api.github.com/users/shua123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-15T17:40:17Z","updated_at":"2015-09-22T11:31:20Z","closed_at":"2015-09-22T11:31:19Z","body":"This is related, possibly the same as issue #152 .\r\n\r\nI am trying to write a TwiML response that would send 2 messages with a pause in between. I have tried a variety of syntax including the one suggested in Issue #152 but it keeps ignoring the pause and sending both messages right away.\r\n\r\n```ruby\r\n twiml = Twilio::TwiML::Response.new do |r|\r\n         r.Message message\r\n         r.Pause length: \"10\"\r\n         r.Message message2\r\n      end\r\n    respond_to do |format|\r\n      format.xml {render xml: twiml.text}\r\n    end\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/twilio/twilio-ruby/issues/comments/142260169","html_url":"https://github.com/twilio/twilio-ruby/issues/172#issuecomment-142260169","issue_url":"https://api.github.com/repos/twilio/twilio-ruby/issues/172","id":142260169,"user":{"login":"philnash","id":31462,"avatar_url":"https://avatars.githubusercontent.com/u/31462?v=3","gravatar_id":"","url":"https://api.github.com/users/philnash","html_url":"https://github.com/philnash","followers_url":"https://api.github.com/users/philnash/followers","following_url":"https://api.github.com/users/philnash/following{/other_user}","gists_url":"https://api.github.com/users/philnash/gists{/gist_id}","starred_url":"https://api.github.com/users/philnash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philnash/subscriptions","organizations_url":"https://api.github.com/users/philnash/orgs","repos_url":"https://api.github.com/users/philnash/repos","events_url":"https://api.github.com/users/philnash/events{/privacy}","received_events_url":"https://api.github.com/users/philnash/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T11:31:19Z","updated_at":"2015-09-22T11:31:19Z","body":"@shua123 Sorry for the delay in response here. I wasn't reading the code correctly, but I've just figured it out.\r\n\r\nThe `<Pause>` verb does not actually apply when dealing with sending SMS messages. [The only TwiML verbs you can use within a response to an incoming message are `<Message>` and `<Redirect>`](https://www.twilio.com/docs/api/twiml/sms/your_response#twiml-verbs). That is why you are receiving a Schema validation warning.\r\n\r\nIf you want to send 2 messages with a pause in between them, I recommend sending the second message via the REST API and delaying it by using a job queue like Sidekiq.\r\n\r\nLet me know if that helps!"}}