[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] DTMF-initiated transfers
From:       Benny Amorsen <benny+usenet () amorsen ! dk>
Date:       2009-11-26 18:35:27
Message-ID: m3fx815e34.fsf () ursa ! amorsen ! dk
[Download RAW message or body]

"Kaloyan Kovachev" <kkovachev@varna.net> writes:

> What if i don't want any transfers (t or T) when calling a specific number or
> specific caller comming from PSTN?

If you do anything that advanced, I would recommend keeping complete
control by leaving out allow_transfer from the peer and handling
everything in the dial plan.

> I would prefer to leave tT options for Dial and to only allow specific methods
> to be disabled per device preferably via
> setvar=TRANSFER_DISABLE(some_method)=Yes|On|1 in the conf files ... if there
> is a refer received from sip device check sip_pvt to pass it furter or not

> In the dialplan it would be possible later to implement any logic of
> setting/clearing those flags leaving the logic in dialplan not in confs

It is highly tricky to set this correctly in the dial plan, especially
when Queue() is involved. The problem is that some of the devices in a
queue need to have t set, whereas it will be harmful for other devices.
This can be accomplished by the use of Local channels, but running a
chunk of dial plan every 20 seconds on tens of devices is detrimental to
Asterisk performance (and stability, as it turns out).

Anyway, I really dislike negative options.


/Benny


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

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic