Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Dial another phone number and connect it to this call

:param action: submit the result of the dial to this URL
:param method: submit to 'action' url using GET or POST

src/p/y/python-twilio2-HEAD/tests/test_twiml.py   python-twilio2(Download)
    def testDial(self):
        """ should redirect the call"""
        r = Response()
        r.append(twiml.Dial("1231231234"))
        r = self.strip(r)
    def testAddNumber(self):
        """add a number to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Number("1231231234"))
    def testAddConference(self):
        """ add a conference to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Conference("My Room"))
        self.assertRaises(TwimlException, verb.append, twiml.Hangup())
        self.assertRaises(TwimlException, verb.append, twiml.Redirect())
        self.assertRaises(TwimlException, verb.append, twiml.Dial())
        self.assertRaises(TwimlException, verb.append, twiml.Conference(""))
        self.assertRaises(TwimlException, verb.append, twiml.Sms(""))

src/t/w/twilio-python-HEAD/tests/test_twiml.py   twilio-python(Download)
    def testDial(self):
        """ should redirect the call"""
        r = Response()
        r.append(twiml.Dial("1231231234"))
        r = self.strip(r)
    def testAddNumber(self):
        """add a number to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Number("1231231234"))
    def testAddConference(self):
        """ add a conference to a dial"""
        r = Response()
        d = twiml.Dial()
        d.append(twiml.Conference("My Room"))
        self.assertRaises(TwimlException, verb.append, twiml.Hangup())
        self.assertRaises(TwimlException, verb.append, twiml.Redirect())
        self.assertRaises(TwimlException, verb.append, twiml.Dial())
        self.assertRaises(TwimlException, verb.append, twiml.Conference(""))
        self.assertRaises(TwimlException, verb.append, twiml.Sms(""))