[asterisk-dev] DTMF-initiated transfers

Benny Amorsen benny+usenet at amorsen.dk
Thu Nov 26 12:35:27 CST 2009


"Kaloyan Kovachev" <kkovachev at 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




More information about the asterisk-dev mailing list