[Asterisk-Dev] Dialplan Loop Detection

Eric "ManxPower" Wieling eric at fnords.org
Tue Jan 17 11:04:51 MST 2006


Wolfgang Pichler wrote:
> 
> The Problem now is - If user A forwards its call to user B - and User B
> forwards his calls to user A - then - your guess it right - it will get
> a Desaster...

Check to see if a specific variable exists (FORWARD might be a good 
name).  If it exists you know you have a forwarding loop.  If it does 
not exist, then set it and continue.

I don't recall if 1.2x permits transporting variables across a 
connection to a different server or not.  If not there are ugly things 
you can do with embedding information into the extension being called, 
but that's very ugly.



More information about the asterisk-dev mailing list