You can't dial from exten => h
You could use an AGI with a .call file, or you could create the .call
file from inside the Asterisk dialplan. Heck, you could do it with
System() commands. See sample.call in the asterisk source directory. as
well as docs/ in the asterisk source directory.
Patricio Valarezo wrote:> Hi, it's possible to implement a callback without agi?, i'm trying
this
> but * exits without dialing (if I hungup during s,3 wait) but if it
> hungs in s,4 it dials, so is there an explanation to this behavior?
> there is an alternative to do it? just for learning
>
> thanks for your answers
>
> [followme]
> exten => s,1,NoOp(Followme me sigue)
> exten => s,2,NoOp(El CID es ${CALLERID(num)})
> exten => s,3,Wait(4)
> exten => s,4,Hangup()
>
> ; al cortar debera iniciar la secuencia
> exten => h,1,NoOp("${CALLERID(num)} ha cortado")
> exten => h,n,NoOp(channel es ${CHANNEL})
> exten => h,n,Wait(10)
> exten => h,n,NoOp("aqui podriamos marcar")
> exten => h,n,Dial(${CANAL}/${CALLERID(num)})
> exten => s,n,Hangup()
>
>
> PV.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>