|
@@ -221,8 +221,7 @@ async def celCallback(mngr: Manager, msg: Message):
|
|
|
if (cid is not None) and (len(cid) < 7): #for local calls only
|
|
if (cid is not None) and (len(cid) < 7): #for local calls only
|
|
|
if msg.Context in ('from-queue'):
|
|
if msg.Context in ('from-queue'):
|
|
|
if ((msg.EventName == 'CHAN_START') or
|
|
if ((msg.EventName == 'CHAN_START') or
|
|
|
- ((msg.EventName == 'CHAN_END') and
|
|
|
|
|
- ('answered' not in firstMessage))):
|
|
|
|
|
|
|
+ ((msg.EventName == 'CHAN_END') and ('answered' not in firstMessage))):
|
|
|
if msg.EventName == 'CHAN_START': #start dial
|
|
if msg.EventName == 'CHAN_START': #start dial
|
|
|
app.cache['cel_calls'][lid]['channels'][msg.Exten] = msg.Channel
|
|
app.cache['cel_calls'][lid]['channels'][msg.Exten] = msg.Channel
|
|
|
else: #end dial
|
|
else: #end dial
|