This is what I do:
[cf]exten = _*72XXX,1,DBput(CF/${CALLERIDNUM}=${CALLERIDNUM:-10:3}${EXTEN:3})exten = _*72XXX,2,Answerexten = _*72XXX,3,Playback(call-fwd-unconditional)exten = _*72XXX,4,Playback(is-set-to)
exten = _*72XXX,5,SayDigits(${EXTEN:3})exten = _*72XXX,6,Playback(vm-goodbye)exten = _*72XXX,7,hangupexten = _*72X.,1,DBput(CF/${CALLERIDNUM}=${EXTEN:3})exten = _*72X.,2,Answer
exten = _*72X.,3,Playback(call-fwd-unconditional)exten = _*72X.,4,Playback(is-set-to)exten = _*72X.,5,SayDigits(${EXTEN:3})exten = _*72X.,6,Playback(vm-goodbye)
exten = _*72X.,7,hangupexten = *73,1,DBdel(CF/${CALLERIDNUM})exten = *73,2,Answerexten = *73,3,Playback(call-fwd-cancelled)exten = *73,4,wait(.5)exten = *73,5,playback(vm-goodbye)
exten = *73,6,hangup
*72+ number will activate call forwarding... *73 will deactivate call forwarding.
You then just add a DBget in your inbound dialplan to see if CF key exists in the database.
On 9/7/06, A C Sathish-a22713 [EMAIL PROTECTED] wrote:
All,Could any one help me in configuring the feature codes for Callforward feature in asterisk..?
Howto configure the feature code *XX for activation /deactivation ofcall forward for SIP users ?Would appreciate , if somebody can help me more in detail .Thanks Regards,-Sathish
___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
___
--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