Connected calls dropped then reconnected

During active calls, a new call comes in and the outside caller can’t hear me any more, but i can hear them. If i don’t answer the new call coming in, the outside caller and I hear the IVR come on, but the IVR does not accept any user input, however the outside caller and I can resume the conversation while the IVR is speaking in the background. If i answer the new call that rings in, our conversation is connected without a problem. I believe the problem happens when “SIP/900-XXX connected line has changed. Saving it until answer for SIP/cnttrunk-XXX” see the log file below. This problem happens randomly. Does anyone have a solution to the problem. I’m using Asterisk 11.21.0

Log:
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [s@tc-maint:2] Set(“Local/s@tc-maint-00000d40;2”, “TCMAINT=RETURN”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [s@tc-maint:3] Gosub(“Local/s@tc-maint-00000d40;2”, “timeconditions,1,1()”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:1] Set(“Local/s@tc-maint-00000d40;2”, “DB(TC/1/INUSESTATE)=INUSE”) in new st$
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:2] Set(“Local/s@tc-maint-00000d40;2”, “DB(TC/1/NOT_INUSESTATE)=NOT_INUSE”) i$
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:3] GotoIfTime(“Local/s@tc-maint-00000d40;2”, "07:30-16:30,mon-fri,,?truest$
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Goto (timeconditions,1,12)
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:12] GotoIf(“Local/s@tc-maint-00000d40;2”, “0?falsegoto”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:13] ExecIf(“Local/s@tc-maint-00000d40;2”, “0?Set(DB(TC/1)=)”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:14] Set(“Local/s@tc-maint-00000d40;2”, “DEVICE_STATE(Custom:TC1)=NOT_INUSE”)$
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:15] ExecIf(“Local/s@tc-maint-00000d40;2”, “0?Set(NOT_INUSE)”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:16] GotoIf(“Local/s@tc-maint-00000d40;2”, “0?ivr-1,s,1”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:17] Set(“Local/s@tc-maint-00000d40;2”, “TCSTATE=true”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:18] Set(“Local/s@tc-maint-00000d40;2”, “TCOVERRIDE=false”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [1@timeconditions:19] Return(“Local/s@tc-maint-00000d40;2”, “”) in new stack
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [s@tc-maint:4] System(“Local/s@tc-maint-00000d40;2”, "/var/lib/asterisk/bin/schedtc.php 60 /va$
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: – Executing [s@tc-maint:5] Answer(“Local/s@tc-maint-00000d40;2”, “”) in new stack
[2016-05-25 15:41:01] NOTICE[21186] pbx_spool.c: Call completed to Local/s@tc-maint
[2016-05-25 15:41:01] VERBOSE[21187][C-00000e74] pbx.c: == Spawn extension (tc-maint, s, 5) exited non-zero on ‘Local/s@tc-maint-00000d40;2’
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: – Executing [h@macro-parked-call:1] Macro(“SIP/900-00000481”, “hangupcall,”) in new stack
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: – Executing [s@macro-hangupcall:1] ExecIf(“SIP/900-00000481”, “0?Set(CDR(recordingfile)=.wav)”) in new sta$
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: – Executing [s@macro-hangupcall:2] GotoIf(“SIP/900-00000481”, “1?theend”) in new stack
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: – Goto (macro-hangupcall,s,4)
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: – Executing [s@macro-hangupcall:4] Hangup(“SIP/900-00000481”, “”) in new stack
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] app_macro.c: == Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘SIP/900-00000481’ in macro ‘hangupcall’
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: == Spawn extension (macro-parked-call, h, 1) exited non-zero on ‘SIP/900-00000481’
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] app_macro.c: == Spawn extension (macro-parked-call, s, 22) exited non-zero on ‘SIP/900-00000481’ in macro 'parked-ca$
[2016-05-25 15:41:02] VERBOSE[20835][C-00000e68] pbx.c: == Spawn extension (from-internal, 71, 1) exited non-zero on ‘SIP/900-00000481’
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] app_dial.c: – SIP/900-00000486 connected line has changed. Saving it until answer for SIP/cnttrunk-00000485
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] app_dial.c: – SIP/900-00000486 answered SIP/cnttrunk-00000485
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 900[ext-local] new state InUse for Notify User 909
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 900[ext-local] new state InUse for Notify User 912
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 900[ext-local] new state InUse for Notify User 913
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 900[ext-local] new state InUse for Notify User 910
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:1] Set(“SIP/900-00000486”, “__MACRO_RESULT=”) in new stack
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:2] Set(“SIP/900-00000486”, “CFIGNORE=”) in new stack
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 900[ext-local] new state InUse for Notify User 901
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:3] Set(“SIP/900-00000486”, “MASTER_CHANNEL(CFIGNORE)=”) in new stack
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:4] Set(“SIP/900-00000486”, “FORWARD_CONTEXT=from-internal”) in new stack
[2016-05-25 15:41:04] VERBOSE[1478] chan_sip.c: == Extension Changed 901[ext-local] new state Idle for Notify User 909
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:5] Set(“SIP/900-00000486”, “MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal”$
[2016-05-25 15:41:04] VERBOSE[21183][C-00000e73] pbx.c: – Executing [s@macro-auto-blkvm:6] Macro(“SIP/900-00000486”, “blkvm-clr,”) in new stack

That sounds like a router problem.

Is there any chance of debugging it an a non-FreePBX dialplan?

The highlighted log entries don’t look like a problem.