Hello.
We have Freepbx 14,
And we have custom dial plan in/out calls.
When transferring an incoming call, the processing ends, recording is interrupted.
How to add to dialplan action when transferring a call.
For example, when transferring an outgoing call to an extension number, add a number to the entry?
Here is our dialplan for an outgoing call:
[dial_out]
exten => _X.,1,Set(CURLOPT(ssl_verifypeer)=0)
same => n,ExecIf($["${CallMeCALL_ID}"!=""]?Set(CALLERID(name)=${CallMeCALL_ID}))
same => n,Log(DEBUG, "Начало исходящего звонка из Битрикс24: с номера ${CallMeIntNum} на ${CALLERID(ANI)}")
; Начало записи звонка
same => n,Set(wavdir="${ASTSPOOLDIR}/monitor/${STRFTIME(,,%Y)}/${STRFTIME(,,%m)}/${STRFTIME(,,%d)}/")
same => n,Set(wavfile="out-bitrix-${EXTEN}-${CallMeIntNum}-${STRFTIME(,,%Y)}${STRFTIME(,,%m)}${STRFTIME(,,%d)}-${STRFTIME(,,%H%M%S)}.wav")
same => n,System(mkdir -p ${wavdir})
same => n,MixMonitor(${wavdir}${wavfile}, b)
same => n,Set(AUDIOHOOK_INHERIT(MixMonitor)=yes)
; Звонок
; t - Разрешает вызываемой стороне, переадресовать вызов
; r - Гудки звонящему абоненту
same => n,Dial(SIP/iptelefontrunk/${EXTEN},,tr)
same => n,Hangup