|
@@ -205,6 +205,8 @@ async def newchannelCallback(mngr: Manager, msg: Message):
|
|
|
'callerId': cid,
|
|
'callerId': cid,
|
|
|
'did': did,
|
|
'did': did,
|
|
|
'callId': uid}
|
|
'callId': uid}
|
|
|
|
|
+ if ('WebCallId' in app.cache['calls'][msg.linkedid]):
|
|
|
|
|
+ _cb['WebCallId'] = app.cache['calls'][msg.linkedid]['WebCallId']
|
|
|
reply = await doCallback(device, _cb)
|
|
reply = await doCallback(device, _cb)
|
|
|
|
|
|
|
|
@manager.register_event('CEL')
|
|
@manager.register_event('CEL')
|
|
@@ -267,7 +269,9 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
app.logger.warning(f'''SETVARIABLE({str(msg)})''')
|
|
app.logger.warning(f'''SETVARIABLE({str(msg)})''')
|
|
|
varname, value = msg.AppData.split(',')[1].split('=')[0:2]
|
|
varname, value = msg.AppData.split(',')[1].split('=')[0:2]
|
|
|
app.logger.warning(f'''SETVARIABLE({varname} is {value})''')
|
|
app.logger.warning(f'''SETVARIABLE({varname} is {value})''')
|
|
|
- app.cache['cel_calls'][msg.linkedid][varname]=value
|
|
|
|
|
|
|
+ app.cache['cel_calls'][lid][varname]=value
|
|
|
|
|
+ if (lid in app.cache['calls']):
|
|
|
|
|
+ app.cache['calls'][lid][varname]=value
|
|
|
|
|
|
|
|
async def getCDR(start=None,
|
|
async def getCDR(start=None,
|
|
|
end=None,
|
|
end=None,
|