[Asterisk-Users] How to get call back when transfer fails
Jeremy Hall
jeremyhall at mpccorp.com
Thu Apr 22 11:30:59 MST 2004
>I thought of that too, but I don't think it'll work:
>
>exten 101,1,Setvar(myexten)
>exten 101,2,Dial(Zap/1,10,t)
>exten 101,103,getvar(myexten)
>exten 101,104,Dial(myexten)
>
>If extension 101 is busy it will immediately try to dial me, but I'm
still >on the phone since the transfer didn't complete...
>
>Or did I misunderstand "return-dial" ?
>
>-A.
Try something like this. Record a message (if one doesn't already
exist) saying "Please hold while your call is being transferred."
Then add it to your dialplan as such:
exten 101,1,Setvar(myexten)
exten 101,2,Dial(Zap/1,10,t)
exten 101,103,getvar(myexten)
exten 101,104,playback(hold-transfer)
exten 101,105,Wait(3)
exten 101,106,Dial(myexten)
The hold message would take about 3 seconds, then with the additional 3
second wait, that would give you 6 seconds to hang up your phone, which
if you are transferring a call is very reasonable. If it goes through,
then great, you are done. If not, your phone will ring again in a few
seconds and you get the call back.
Hope that helps!
Jeremy
More information about the asterisk-users
mailing list