Activate Call Fowarding from outside

samuraitux
Posts: 13
Member Since:
2008-01-05

I have recently setup my new trixbox which works great. However one feature I am looking to implement is allowing my users to activate call forwarding from the outside. One thought was to give them a way to login from the outside world and then dial *72 and the number to forward to. Any help or suggestions would be appreciated.



KodaK
Posts: 1885
Member Since:
2006-06-14
A couple of things come to

A couple of things come to mind, but I'm not in a position to test right now.

One is using DISA, which would allow your users to call in and gain access to the system as if they were on an extension. Then they can dial the feature codes to activate CF. However, this method has some security implications. The obvious is that if someone gains access to your system they can make calls and drive up tolls and/or impersonate you.

Another way is to give the users access to the ARI web page. I know the most recent stable version of freePBX allows you to set your call forwarding options there. The drawback here is that the users would need to have web access to make changes.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



samuraitux
Posts: 13
Member Since:
2008-01-05
Call Fowarding

Thanks, I think I will use both. The ARI is awesome but As you said if the person is not able to access the web they will then need to dial in with the DISA and I was thinking about making them input a code of sorts. One that will change monthly



dickson
Posts: 1831
Member Since:
2006-06-02
how about this: Employees

how about this:
Employees call into a number (IVR whatever)
They get asked for their extension number
Then asked for their password (which would be their voicemail password)
Then if successful, asked them for the number they wish to forward to.
This will prevent someone accidentally forwarding another person's number (or on purpose/exploit)



jahyde
Posts: 2002
Member Since:
2006-06-02
ya - cant you just dial any

ya - cant you just dial any extension directly from an IVR and hit * to login and change prefs?

--

--my PBX is run on 2 V8's



dickson
Posts: 1831
Member Since:
2006-06-02
That only lets you change

That only lets you change basic voicemail settings.

I was just suggesting a code that lets them do the call forwarding from an external phone, with an added security of their voicemail password, to prevent someone else from applying call forwarding without anyone knowledge.



dickson
Posts: 1831
Member Since:
2006-06-02
Drop the code below into

Drop the code below into your extension_custom.conf file
Point an IVR prompt to "CUSTOM" and enter a destination of
custom-cf-on,s,1 (to enable)
custom-cf-off,s,1 (to disable)
The code will ask for the users voicemail password (that corresponds with the extension they want to call forward to) as verification and applies the callforwarding.

[custom-cf-on]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(call-fwd-unconditional)
exten => s,n,Playback(please-enter-your&extension)
exten => s,n,Read(fromext,then-press-pound,,,,)
exten => s,n,Wait(1)
exten => s,n,VMAuthenticate(${fromext})
exten => s,n(startread),Playback(ent-target-attendant)
exten => s,n,Read(toext,then-press-pound,,,,)
exten => s,n,GotoIf($["foo${toext}"="foo"]?startread)
exten => s,n,Wait(1)
exten => s,n,Set(DB(CF/${fromext})=${toext})
exten => s,n,Playback(call-fwd-unconditional&for&extension)
exten => s,n,SayDigits(${fromext})
exten => s,n,Playback(is-set-to)
exten => s,n,SayDigits(${toext})
exten => s,n,Macro(hangupcall,)

[custom-cf-off]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Playback(call-fwd-unconditional)
exten => s,n,Playback(please-enter-your&extension)
exten => s,n,Read(fromext,then-press-pound,,,,)
exten => s,n,Wait(1)
exten => s,n,VMAuthenticate(${fromext})
exten => s,n,dbDel(CF/${fromext})
exten => s,n,Playback(call-fwd-unconditional&de-activated&for&extension)
exten => s,n,SayDigits(${fromext})
exten => s,n,Macro(hangupcall,)



alster
Posts: 104
Member Since:
2006-10-06
nice!

nice!



samuraitux
Posts: 13
Member Since:
2008-01-05
CF script

dickson thank you for the for this script. It works like a charm. I don't know how to thank you enough for this script.



dickson
Posts: 1831
Member Since:
2006-06-02
Welcome!

Welcome!



aplucky1
Posts: 22
Member Since:
2007-03-21
script

how can i use the script for on-net extensions to avoid abuse/mistake?



driver28
Posts: 171
Member Since:
2006-06-05
If you dial *72 or *97 that

If you dial *72 or *97 that are tied in with an extension from an outside phone through DISA, TB will ask for your extension since it can't make out what extension you are calling from.

/Hasse

--

/Hasse



driver28
Posts: 171
Member Since:
2006-06-05
If you dial *72 or *97 that

If you dial *72 or *97 that are tied in with an extension from an outside phone through DISA, TB will ask for your extension since it can't make out what extension you are calling from.

/Hasse

--

/Hasse



driver28
Posts: 171
Member Since:
2006-06-05
This might be a way to go

This might be a way to go too:

Set up a DISA with DID/CID restrictions checking both DID/CID, one for each external user with a mobile as custom extension. Optional PIN if you like.

Set CID on that DISA to the internal extension of the mobile phone. *72,*97 will work as if the phone was an internal extension and just ask for your password. All internal fature codes work as usual and all calls made are presented as if fom an internal extension.

If you like to integrate into an IVR, use Misc Destinations. Create one called FWD and set *72 as Dial string. If your CID isn't matched you will be prompted for it :)

/Hasse

--

/Hasse



kimkhan
Posts: 96
Member Since:
2007-03-07
How to restrict from within to aoid accidents

How would I restirct when we are already inside the office. I can dial *72 from my extension and have another person's extension forwarded to anywhere. I could easily make mistake and forward somebody else or an employee can easily forward someone else's extension to outside to a competitor or a stripclub and embarass someone that he/she does not like and there is no way to trace who did it, as I could do it from a phone that's in an open area like Lobby or Cafeteria, etc.

We need to be restrict call forwarding with the voicemail password or atleast have to use your own phone. Like *97 will only dial the user's voicemail.

Thanks for any help on this.

Kim



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.