Commit 2e34e83a authored by Etienne Allovon's avatar Etienne Allovon

Recording doc : fix wrong call to AGI

parent b7bde24a
......@@ -90,12 +90,12 @@ On the XiVO PBX you need to use specific subroutines instead of the default ones
; This subroutine is to be used only when recording is set up on gateway
[xivocc-incall-recording-viagw]
exten = s,1,NoOp(=== Recording incoming calls ===)
exten = s,1,NoOp(=== Recording incoming calls (XiVO PBX) ===)
same = n,Set(XIVO_RECORDINGID=${SIP_HEADER(X-Xivo-Recordingid)})
same = n,Set(DO_RECORD=true)
same = n,System(test -f /usr/share/asterisk/agi-bin/xivocc-determinate-record-incall)
same = n,GotoIf($["${SYSTEMSTATUS}" = "SUCCESS"]?:noagi)
same = n,AGI(determinate-record-incall)
same = n,AGI(xivocc-determinate-record-incall)
same = n(noagi),GotoIf($["${DO_RECORD}" = "true"]?:norecord)
same = n,CelGenUserEvent(ATTACHED_DATA,recording=${XIVO_RECORDINGID})
same = n(norecord),Return()
......@@ -105,7 +105,7 @@ On the XiVO PBX you need to use specific subroutines instead of the default ones
same = n,Set(DO_RECORD=true)
same = n,System(test -f /usr/share/asterisk/agi-bin/xivocc-determinate-record-outcall)
same = n,GotoIf($["${SYSTEMSTATUS}" = "SUCCESS"]?:noagi)
same = n,AGI(determinate-record-outcall)
same = n,AGI(xivocc-determinate-record-outcall)
same = n(noagi),GotoIf($["${DO_RECORD}" = "true"]?:norecord)
same = n,Set(ipbx_name=xivo)
same = n,Set(XIVO_RECORDINGID=${ipbx_name}-${UNIQUEID})
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment