Setting up Call Forward Buttons on a GXP-2000
I need the ability for a phone to enable and disable call forwarding to a specific number with the touch of a button. This is how I was able to get it to work.’, ‘I started by editing extensions_custom.conf and adding the following to the end:
Where 101 is the extension you want to call forward and 610 is the destination to forward to. And then, 201 forwards to 600.
Location A:
;Forward
exten => _*401,1,Answer()
exten => _*401,n,Set(DB(CF/101)=610)
exten => _*401,n,Playback(call-fwd-unconditional&for)
exten => _*401,n,SayDigits(101)
exten => _*401,n,Hangup()
;Cancel Fwd
exten => _*402,1,Answer()
exten => _*402,n,DBdel(CF/101)
exten => _*402,n,Playback(call-fwd-cancelled&for&extension)
exten => _*402,n,SayDigits(101)
exten => _*402,n,Hangup()
Location B:
;Forward
exten => _*401,1,Answer()
exten => _*401,n,Set(DB(CF/201)=600)
exten => _*401,n,Playback(call-fwd-unconditional&for)
exten => _*401,n,SayDigits(201)
exten => _*401,n,Hangup()
;Cancel Fwd
exten => _*402,1,Answer()
exten => _*402,n,DBdel(CF/201)
exten => _*402,n,Playback(call-fwd-cancelled&for&extension)
exten => _*402,n,SayDigits(201)
exten => _*402,n,Hangup()
Now, on the phone, I create a speed dial button for each.
Button 1: *401
This will call forward extensions 101 to extension 610.
Or, in our case, we want it to forward to a ring group at the other location because our PBXs are trunked together.
Button 2: *402
This will turn off call forward for extension 101.
Also, you can pick up any phone and dial the *401 and *402 by hand to enable and disable the call forwarding for that extension.
So, because extension 101 and 201 are both members of the “main” ring group, by forwarding these extensions, we are basically forwarding the entire ring group. So, if a call comes into location A, and 101 is set to forward, it will ring Location Bs 610 ring group and visa versa.
Now, in our instance, we want both locations to be able to enable and disable the other locations forwarding. So, to do that, we kind of cheated.
On Grandstream GXP-2000\’s, you have the ability to setup up to 4 SIP accounts. At the same time, when you configure a speed dial, you select which account to use. So, we created a VPN connection between the two locations. Once that was working, we created an extra SIP account on each PBX and had one phone at each location log into both PBXs using account 2 on the phones. We then could configure 4 speed dials. 2 for the local PBX forward enable/disable, and 2 for the remote PBX forward enable/disable.
This would allow someone at either location to turn call forwarding on and off at either location, for either location.
Info for my notes:
So, all the * codes are being processed “locally” by the PBX they are logged into, it\’s just that account 2 is logged into the remote PBXs.
I hope this all makes sense, because I had myself so confused when I was doing it, and everything seemed to work fine, then I “implemented” it for the customer and it was all screwed up.. It took me another few hours just to figure out what I was doing.. and I had to do it all remotely using DISA!