raiseTypeError('{} is not a valid international number, it should start with 00')
returnnumber
asyncdefhold_bridge():
@asyncio.coroutine
defhold_bridge():
'''
We will create a bridge that will be used to park caller waiting for callee to join.
It will play a song in a loop.
...
...
@@ -164,22 +165,23 @@ async def hold_bridge():
phone_logger.exception(e)
raisee
asyncdeflisten():
@asyncio.coroutine
deflisten():
'''
Start listening on the websocket
'''
globalrunning
globalws
ws_logger.debug('Connecting to websocket: {}'.format(config['webservice']['base_url']+'?app={}&api_key={}:{}'.format(config['asterisk']['app'],config['asterisk']['key'],config['asterisk']['password'])))