Is it possible using asterisk to allow someone to dial in and remotely change where their call is forwarded to? For example, I'm working from home so I want my calls to go to 555 1234, now I need to go out for a bit so I'd like to phone the office and using DTMF tell the asterisk PBX to now forward my calls to my cell phone 555 3456 Has anyone implimented anything like this? R.
Russell Horn wrote:> Is it possible using asterisk to allow someone to dial in and remotely > change where their call is forwarded to? > > For example, I'm working from home so I want my calls to go to 555 1234, > now I need to go out for a bit so I'd like to phone the office and using > DTMF tell the asterisk PBX to now forward my calls to my cell phone 555 > 3456 > > Has anyone implimented anything like this?Sure: ; prompting call forward app - forwards entered extension exten => *72,1,Answer exten => *72,2,Wait(1) exten => *72,3,BackGround(allison7/please-enter-your) exten => *72,4,Playback(extension) exten => *72,5,Playback(then-press-pound) exten => *72,6,Playback(beep) exten => *72,7,Read(fromext) exten => *72,8,Wait(1) exten => *72,9,BackGround(ent-target-attendant) exten => *72,10,Background(then-press-pound) exten => *72,11,Playback(beep) exten => *72,12,Read(toext) exten => *72,13,Wait(1) exten => *72,14,DBput(CF/${fromext}=${toext}) exten => *72,15,Playback(call-fwd-unconditional) exten => *72,16,Playback(for) exten => *72,17,Playback(extension) exten => *72,18,SayDigits(${fromext}) exten => *72,19,Playback(is-set-to) exten => *72,20,SayDigits(${toext}) exten => *72,21,Macro(hangupcall) See dialparites.agi for an example of how the check for CF before dialing an extension. Ryan
----- Original Message ----- From: "Russell Horn" <asterisk-users@albanach.com> To: <asterisk-users@lists.digium.com> Sent: Tuesday, August 24, 2004 2:55 PM Subject: [Asterisk-Users] Remotely change call forward> Is it possible using asterisk to allow someone to dial in and remotely > change where their call is forwarded to? > > For example, I'm working from home so I want my calls to go to 555 1234, > now I need to go out for a bit so I'd like to phone the office and using > DTMF tell the asterisk PBX to now forward my calls to my cell phone 555 > 3456 > > Has anyone implimented anything like this? > > R.I see 2 ways of doing this... 1 would be an AGI script that uses MySQL or PostgreSQL to store and retrieve forwarded numbers.. The 2nd and to me easier way would be to use AstDB and some extension coolness to store the forwarding number, and then implement some kind of vertical service code that you can dial when you call, someting like *78<EXTENSION>NXXNXXXXXX, then feed the NXXNXXXXXX part of the extension to DbPut(features/fwd-<EXTENSION>) or something like that... Check these out for some ideas/hints gimme a holler if you need more help! http://www.voip-info.org/wiki-Asterisk+cmd+DbGet http://www.voip-info.org/wiki-Asterisk+cmd+DbPut http://www.voip-info.org/wiki-Asterisk+cmd+AGI