From: Gary G. H. <ghe...@co...> - 2007-05-31 16:36:53
|
Nedi: Below is a cut/paste of a large section of my EXTENSIONS.CONF file that provides examples of call forwarding, call waiting and some other interesting features ... This is a code snippet and should not be interpretted as a complete plug-n-play implementation ... Getting these features to work will require some trial and error ... And no, I am NOT the author ... These were found on VOIP-INFO.ORG and modified only slightly for my needs ... G.Hendershot *************************************** ** start *************************************** ;********************************************************** ; work in progress - untested applications ;********************************************************** ; ; [untested-apps] ; ; ; these are untested and are assumed to need a lot of work before making active ; ; Unconditional Call Forward ; exten => _*21*X.,1,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4}) exten => _*21*X.,2,Playback(custom-sounds/call-fwd-unconditional) exten => _*21*X.,3,Hangup exten => _*22*,1,DBdel(CFIM/${CALLERIDNUM}) exten => _*22*,2,Playback(custom-sounds/call-fwd-cancelled) exten => _*22*,3,Hangup ; ; Call Forward on Busy or Unavailable ; exten => _*61*X.,1,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4}) exten => _*61*X.,2,Playback(custom-sounds/call-fwd-busy) exten => _*61*X.,3,Hangup exten => _*62*,1,DBdel(CFBS/${CALLERIDNUM}) exten => _*62*,2,Playback(custom-sounds/call-fwd-cancelled) exten => _*62*,3,Hangup ; ; Repeat last dialled number ; exten = *5,1,DBget(temp=RepeatDial/${CALLERIDNUM}) exten = *5,2,Dial(Local/${temp}@router) ; Last known exten = *5,102,Congestion ; ;call waiting ; exten => *70,1,Answer exten => *70,2,Wait(1) exten => *70,3,DBput(CW/${CALLERIDNUM}=ENABLED) exten => *70,4,Playback(custom-sounds/callwaiting) exten => *70,5,Playback(custom-sounds/activated) ; exten => *70,6,Macro(hangupcall) exten => *71,1,Answer exten => *71,2,Wait(1) exten => *71,3,DBdel(CW/${CALLERIDNUM}) exten => *71,4,Playback(custom-sounds/callwaiting) exten => *71,5,Playback(custom-sounds/de-activated) ; exten => *71,6,Macro(hangupcall) ; ; dialed call forward app - forwards calling extension ; exten => _*72.,1,DBput(CF/${CALLERIDNUM}=${EXTEN:3}) exten => _*72.,2,Answer exten => _*72.,3,Wait(1) exten => _*72.,4,Playback(custom-sounds/call-fwd-unconditional) exten => _*72.,5,Playback(custom-sounds/for) exten => _*72.,6,Playback(custom-sounds/extension) exten => _*72.,7,SayDigits(${CALLERIDNUM}) exten => _*72.,8,Playback(custom-sounds/is-set-to) exten => _*72.,9,SayDigits(${EXTEN:3}) ; exten => _*72.,10,Macro(hangupcall) ; ; prompting call forward app - forwards entered extension ; exten => *72,1,Answer exten => *72,2,Wait(1) exten => *72,3,BackGround(custom-sounds/please-enter-your) exten => *72,4,Playback(custom-sounds/extension) exten => *72,5,Read(fromext,custom-sounds/then-press-pound) exten => *72,6,Wait(1) exten => *72,7,BackGround(custom-sounds/ent-target-attendant) exten => *72,8,Read(toext,custom-sounds/then-press-pound) exten => *72,9,Wait(1) exten => *72,10,DBput(CF/${fromext}=${toext}) exten => *72,11,Playback(custom-sounds/call-fwd-unconditional) exten => *72,12,Playback(custom-sounds/for) exten => *72,13,Playback(custom-sounds/extension) exten => *72,14,SayDigits(${fromext}) exten => *72,15,Playback(custom-sounds/is-set-to) exten => *72,16,SayDigits(${toext}) ; exten => *72,17,Macro(hangupcall) ; ; cancels dialed extension call forward ; exten => _*73.,1,DBdel(CF/${EXTEN:3}) exten => _*73.,2,Answer exten => _*73.,3,Wait(1) exten => _*73.,4,SayDigits(${EXTEN:3}) exten => _*73.,5,Playback(custom-sounds/call-fwd-cancelled) ; exten => _*73.,6,Macro(hangupcall) ; ; cancels call forward for calling extension ; exten => *73,1,DBdel(CF/${CALLERIDNUM}) exten => *73,2,Answer exten => *73,3,Wait(1) exten => *73,4,Playback(custom-sounds/call-fwd-cancelled) ; exten => *73,5,Macro(hangupcall) ; ; dialed call forward on busy app - forwards calling extension when busy ; exten => _*90.,1,DBput(CFB/${CALLERIDNUM}=${EXTEN:3}) exten => _*90.,2,Answer exten => _*90.,3,Wait(1) exten => _*90.,4,Playback(custom-sounds/call-fwd-on-busy) exten => _*90.,5,Playback(custom-sounds/for) exten => _*90.,6,Playback(custom-sounds/extension) exten => _*90.,7,SayDigits(${CALLERIDNUM}) exten => _*90.,8,Playback(custom-sounds/is-set-to) exten => _*90.,9,SayDigits(${EXTEN:3}) ; exten => _*90.,10,Macro(hangupcall) ; ; cancels call forward on busy for calling extension ; exten => *91,1,DBdel(CFB/${CALLERIDNUM}) exten => *91,2,Answer exten => *91,3,Wait(1) exten => *91,4,Playback(custom-sounds/call-fwd-on-busy) exten => *91,5,Playback(custom-sounds/de-activated) ; exten => *91,6,Macro(hangupcall) ; ; record messages ; exten => *77,1,Wait(2) exten => *77,2,Record(${CALLERIDNUM}ivrrecording:wav) exten => *77,3,Wait(2) exten => *77,4,Hangup ; exten => *99,1,Playback(${CALLERIDNUM}ivrrecording) exten => *99,2,Wait(2) exten => *99,3,Hangup ; ; company directory ; ; exten => *411,1,Directory(default|from-sip-internal|l) ; *************************************** ** end *************************************** -----Original Message----- From: ast...@li... [mailto:ast...@li...] On Behalf Of Nedi Sent: Wednesday, May 30, 2007 6:25 PM To: Astlinux list Subject: [Astlinux-users] Call Forwarding in my Astlinux I have no success. Hello, I come back, has anyone idea how can i make call forwarding it would be great anyone cann help me with. nedi ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Astlinux-users mailing list Ast...@li... https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pa...@kr.... |