I'm trying to screen the call transfert to my cell phone using a exemple found on the web.<br>
<a href="http://www.voip-info.org/wiki-Asterisk+cmd+Dial">http://www.voip-info.org/wiki-Asterisk+cmd+Dial</a><br>
<br>
It work partially: while I'm prompted to accept the the caller still
her the music. But wether I accept the call or reject it I'm put in
communication with the caller.<br>
I can see in the log that MARCO_RESULT is set to CONTINUE when I reject
the call but is doesn't hangup as documented on the wiki: "CONTINUE -
Hangup the called party and continue on in the dialplan from where you
called Dial"<br>
<br>
Any hint?<br>
<br>
exten => 447,1,Playback(pls-wait-connect-call)<br>
exten => 447,2,Dial(IAX2/xxxxx/15149999999,20,gmM(screen2))<br>
exten => 447,3,Macro(vm,200)<br>
exten => 447,101,Macro(vm,200,BUSY)<br>
exten => 447,102,hangup <br>
<br>
<br>
[macro-screen2]<br>
exten => s,1,Playback(silence/1)<br>
exten => s,2,Playback(custom/screen-from)<br>
exten => s,3,Read(ACCEPT|custom/screen-accept|1||3)<br>
exten => s,4,GotoIf($[${ACCEPT} = 1 ] ?6:5)<br>
exten => s,5,SetVar(MACRO_RESULT=CONTINUE)<br>
exten => s,6,NoOp <br>
<br clear="all"><br>-- <br>Marcel Eric<br>mailto: <a href="mailto:marceleric@gmail.com">marceleric@gmail.com</a>