transfer causeΒΆ

class UASCallChannel
transfer_cause()

Return the latest transfer cause.

The transfer causes are described here.

Usage example:

state = channel.retrievable_transfer(other_call, 'sip:3301@127.0.0.1:5060;user=phone')
if state != channel.State.TRANSFERRED:
    cause = channel.transfer_cause()
    print("could not transfer the call, reason is {0}".format(cause))