|
|
@@ -179,11 +179,9 @@ async def newchannelCallback(mngr: Manager, msg: Message):
|
|
|
uid = None
|
|
|
if msg.context in ('from-pstn'):
|
|
|
app.cache['calls'][msg.uniqueid]=msg
|
|
|
- app.logger.warning('call from pstn')
|
|
|
elif ((msg.context in ('from-queue')) and
|
|
|
(msg.linkedid in app.cache['calls']) and
|
|
|
(msg.exten in app.cache['devicemap'])):
|
|
|
- app.logger.warning('call from queue')
|
|
|
did = app.cache['calls'][msg.linkedid].exten
|
|
|
cid = app.cache['calls'][msg.linkedid].calleridnum
|
|
|
user = msg.exten
|
|
|
@@ -191,7 +189,6 @@ async def newchannelCallback(mngr: Manager, msg: Message):
|
|
|
uid = msg.linkedid
|
|
|
elif ((msg.context in ('from-internal')) and
|
|
|
(msg.exten in app.cache['devicemap'])):
|
|
|
- app.logger.warning('call from internal')
|
|
|
user = msg.exten
|
|
|
device = app.cache['devicemap'][user]
|
|
|
if msg.calleridnum in app.cache['usermap']:
|