transfer causeΒΆ

class UASCallChannel
UASCallChannel.transfer_cause()

Return the latest transfer cause.

The transfer causes are described here.

Usage example:

# transfer a call. If it does not succeed, try again if the
# cause is BUSY
ret = channel.managed_transfer('sip:3301@127.0.0.1:5060;user=phone')
if ret is False:
    if channel.transfer_cause() == channel.Cause.TARGETREJECT:
        # call is busy, wait a minute then try again
        time.sleep(60)
        ret = channel.managed_transfer('sip:3301@127.0.0.1:5060;user=phone')

Previous topic

transfer to conference

Next topic

call conference room