in lambda/src/common/lex_helper.py [0:0]
def extract_phone_number(session_attributes):
source = get_attribute(session_attributes, 'Source', None)
if not source:
return None
if source == 'AmazonConnect':
logger.info('Request is from Connect')
return get_attribute(session_attributes, 'IncomingNumber', None)