Yawn; call forwarding with an &

[incoming]
exten => _2XX,1,Macro(superdial,${EXTEN},outbound0)
exten => *55,1,Goto(set-cfwd,s,1)
exten => *56,1,Goto(del-cfwd,s,1)

[del-cfwd]
exten => s,1,NoOp(Set your call forwarding)
exten => s,n,VMAuthenticate()
exten => s,n,GotoIf(${AUTH_MAILBOX}?:fail)
exten => s,n,Set(DEST=${DB_DELETE(cfwd/${AUTH_MAILBOX})})
exten => s,n,NoOp(Cleared call forwarding to ${DEST})
exten => s,n(fail),Hangup()

[set-cfwd]
exten => s,1,NoOp(Set your call forwarding)
exten => s,n,VMAuthenticate()
exten => s,n,GotoIf(${AUTH_MAILBOX}?:fail)
exten => s,n,GotoIf($["${CALLERID(num)}"!="None"]?set)
exten => s,n,Read(CALLERID(num))|prompt-for-destination)
exten => s,n(set),Set(DB(cfwd/${AUTH_MAILBOX})=${CALLERID(num)})
exten => s,n,NoOp(Forward set to ${DB(cfwd/${AUTH_MAILBOX})})
exten => s,n(fail),Hangup()

[macro-superdial]
exten => s,1,Noop(dialing ${EXTEN})
exten => s,n,Set(TARGETS=${ARG1})
exten => s,n,GotoIf(DB_EXISTS(cfwd/${EXTEN})?:skip)
exten => s,n,Set(TARGETS=SIP/${ARG1}&LOCAL/${DB(cfwd/${ARG1})[EMAIL PROTECTED])
exten => s,n(skip),Dial(${TARGETS})


On Wed, Jun 11, 2008 at 11:03 AM, Henry L.Coleman <[EMAIL PROTECTED]> wrote:
> I was presenting an Asterisk solution to a prospect the other day and was 
> about to
> explain the power of Follow-me, then he ask "well okay, what's Meet-me then?"
> I had to think....
> In the more recent releases of FreePBX (that is the GUI for Trixbox and 
> Elastix)there is the functality to
> change the ring group from the place you want calls to be sent, this then 
> becomes "Meet-me".In FreePBX
> this is done by a web portal for the user using the "ARI" package thats 
> included in the distro, but if you
> can't get to a web browser what do you do?
> That being said....It would be nice to have a Follow-Me/Meet-me feature.
>
> I'm hopeless at writing code (Java is still a cup of coffee to me) but it 
> doesn't sound to difficult to
> write.
>
> Outside call dials a feature code [*XX]
> Voice prompt then asks for a PIN number or extension
> If this is valid voice prompt asks if:
> 1).The current CID is where the call should be sent. (press "#") ---"Meet-me"
> 2).Enter the phone number you want to calls to ring in the future. - 
> "Follow-me"
>
> Henry
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to