[Asterisk-Users] call forwarding, most basic case

Yair Hakak yhakak at gmail.com
Sat Jul 2 12:06:28 MST 2005


hello all,

i need some help and after trying the wiki i'm even more confused than i was.

 i'm trying to set up call forwarding and running into problems...
 i want the most basic call forwarding imaginable.

1. caller dials extension (say, 154)
2. dialplan is updated to forward caller's extension (based on
CALLERIDNUM) to voicemail, instead of ringing his endpoint.
3. caller is disconnected.

as you can see, i don't want any *21 or #21, and then the number, i
dont even want the caller to be able to pick the number to forward to,
the simplest case possible, and a different extension (155) to turn
the forwarding off (for now, then i'll put them in a menu together or
something.)

so, i know i need an extension like this:

exten =>154,1, Answer 
exten => 154,2,DBput(CFIM/${CALLERIDNUM}=Voicemail(u{CALLERIDNUM}) 
exten =>153,3, Hangup

but line 2 is giving me fits, and the documentation is a bit thin. i'm
confused about the families in the database - do i have to create
them, or are they aready there?

of course, if i'm barking up the wrong tree and there's a much simpler
way to do this please tell me.

thanks,
 yair



More information about the asterisk-users mailing list