[asterisk-users] Forward loop protection...

A J Stiles asterisk_list at earthshod.co.uk
Wed Jun 3 03:08:20 CDT 2015


On Tuesday 02 Jun 2015, Carlos Chavez wrote:
>      Ia had a server overload today because someone did a call forward
> to their own extension.  To do a call forward I write a key called CFWD
> with the extensión number and number to dial .  The main script tests if
> the key/value exists and dials the number stored in the database.  What
> is an easy way to prevent dumb people from creating a loop?

There currently is no easy way to prevent an infinite forwarding loop.  If you 
come up with one, then you might well earn yourself a Nobel Prize for solving 
the Halting Problem .....

The obvious bodge is to set a hard limit on depth of recursion; if an actual 
real, live person is not reached within, say, five hops then the call should go 
to  (the originally-called party's)  voicemail.

-- 
AJS

Note:  Originating address only accepts e-mail from list!  If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .



More information about the asterisk-users mailing list