в макросе что то типа:
Код: Выделить всё
;
;call confirm
exten => s,n(callconfirm),GotoIf($[${ARG2} = 0] ?nothing)
exten => s,n,Set(AnnLoop=0)
exten => s,n(repeat-options),GotoIf($[${AnnLoop} > 2] ?call-noanswer)
exten => s,n,Read(ACCEPT-CALL,dialout-confirm,1)
;
exten => s,n,Set(AnnLoop=${MATH(${AnnLoop}+1)})
;
exten => s,n,GotoIf($["${ACCEPT-CALL}" = ""] ?repeat-options)
exten => s,n,GotoIf($[${ACCEPT-CALL} = 0] ?call-accepted)
exten => s,n,GotoIf($[${ACCEPT-CALL} = 7] ?call-declined)
exten => s,n,GotoIf($[${ACCEPT-CALL} = 9] ?call-transfer)
exten => s,n,GotoIf($[${ACCEPT-CALL} = 8] ?call-parking)
;
;
exten => s,n,Goto(s,repeat-options)
;
exten => s,n(call-accepted),Set(SHARED(xvb-a-call-${DIALEDPEERNUMBER},${ORIG_CHANNEL})=1)
exten => s,n,Hangup
;
exten => s,n(call-declined),Set(MACRO_RESULT=BUSY)
exten => s,n,Hangup
;
exten => s,n(call-transfer),Set(MACRO_RESULT=CONTINUE)
exten => s,n,Macro(xvb-call-transfer)
exten => s,n,Hangup
;
exten => s,n(call-parking),Set(MACRO_RESULT=CONTINUE)
exten => s,n,Macro(xvb-call-parking)
exten => s,n,Hangup
;
exten => s,n(call-noanswer),Set(MACRO_RESULT=CONTINUE)
exten => s,n,Hangup