Vieri schrieb:
> I would like to know if I can set Call Forwarding on an extension but allow 
> direct calls from the extension it is forwarded to.
> 
> Example:
> 
> Extension 100 sets call forwarding (all) to extension 101.
> 
> All calls to 100 are immediately forwarded to 101 as expected.
> 
> However, if 101 tries to transfer a call to 100 or tries to call 100 
> directly, it sounds "busy" because it obviously goes into a loop where 101 
> tries to call itself.
> 
> How do I set an "exception" so that 101 can actually call 100 even if the 
> latter is forwarded to 101?
> 
> I'm using * 1.4

Use the "if" statement.

100 => {
        if ("${CALLERID(num)}" = "101") {
                // call 100
                Dial(SIP/100);
        }
        else {
                // forward to 101
                Dial(Local/101);
        }
}

> and freepbx.

Don't know about FreePBX. Ask on their mailing-list/forum/...


   Philipp Kempgen

-- 
AMOOCON 2009, May 4-5, Rostock / Germany   ->  http://www.amoocon.de
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
-- 

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to