Changeset 8174 introduced some basic loop detection for Call Forward.
However, there are still cases where you'll get an immediate loop when FollowMe (and DND) is used (e.g. 11 calls 12 and 12 has 11 in its grplist). (Which I - or our customers - don't particularly like...)
I modified dialparties.agi so that the caller's extension is not added to the extension map in such cases.
It's more like a draft/sketch, not a production-ready patch!
- Not well-tested
- Doesn't currently work if '#' is appended to the extension (Well - should it?)
- Should this behaviour be configurable?
- There may be side effects...?
Is there any interest for this? (If there is and there is a chance to get this into FreePBX 2.x, I'll try to provide a better patch!)
Implementation note: I've moved the variables introduced in Changset 8174 ($realcalleridnum, $blindtransfer and $ampuser) up a bit to be able to use them earlier in dialparties.agi (and changed som spaces to tabs in that changeset's code to have better readable code there).