Skip to content

Conversation

procedurallygenerated
Copy link

Lets say your code runs through a lot of scenarios and returns a Response twiml object, and you want to add a particular verb to the start of the response Twiml.

response = build_twiml() # returns twiml.Response object
response.prepend(Play(url=audio_url))

Could use it for things like play a warning saying the call is going to be recorded before the dial. You might want to conditionally add that based on the response.

@skimbrel
Copy link
Contributor

Seems like an okay idea to me. Can you add a test case or two for this?

@phalt
Copy link
Contributor

phalt commented Oct 21, 2014

@varunvairavan Hey, this looks great. Can you add some tests to cover this please? Then I can merge it in.

@carlosdp carlosdp force-pushed the master branch 3 times, most recently from 614259c to 2b69150 Compare September 23, 2015 00:21
@carlosdp
Copy link

carlosdp commented Nov 2, 2015

This is pretty old and test coverage hasn't been added. I'll close this for now, feel free to re-open with tests if someone wants this.

@carlosdp carlosdp closed this Nov 2, 2015
eq19 pushed a commit to VirtualNetworks/parser that referenced this pull request May 1, 2025
Depending on the context, the value should be 'user'
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.

4 participants