[SOLVED] Call forwarding with confirmation

Hi all,

I’m trying to forward a call to my cellphone in asterisk, but only after I press a key to confirm.
This is to avoid my cellphone voicemail from picking up when unavailable.
How could I achieve this in Asterisk?


I tried the following macro :

[macro-callconfirm] exten => s,1,Wait(1) exten => s,n,Read(ACCEPT,,1,,,10) exten => s,n,GotoIf($[${LEN(${ACCEPT})} <1]?yes:no) exten => s,n(yes),Set(MACRO_RESULT="CONTINUE") exten => s,n(no),NoOp("woo we set nothing")

Everything works, i can hear the MOH, the macro is executed, but whatever the result of $ACCEPT is, the two channels are connected after the 10s timeout…
Shouldn’t Set(MACRO_RESULT=“CONTINUE”) exit the macro and continue the dialplan???

Thanks for your help.

Solved, i just discover that * 1.4+ has a built-in followme function :laughing:
The only problem with followme is that i can’t call multiple numbers at the same time…