Re: [asterisk-users] transfer option and pressing #

2009-07-13 Thread Brent Davidson
Alex Samad wrote:
 Hi

 I have setup forwarding - xfering - where you press # and then the
 extension. I add t to the dial cmd.

 My problem is that when you call something like internet banking they
 want #, but when # is pressed asterisk gets it instead. is there a way
 around this ?

 I haven't been able to get asterisk to listen to flash either 


 Alex
   
The easiest solution would probably be to look in features.conf and 
change the option for forwarding to require two consecutive # presses.

The other option would be to put an explicit dial rule for the numbers 
that need the # bypass and have them omit T and from the dial command.

You could also set up a dat abase with a simple web front end for your 
users to enter numbers that need to have the transfer function bypassed 
and do something like this (I use AEL so this is in AEL Format)

macro specialDial (ext) {
if (${DB_EXISTS(bypass/${ext})}) {
   Dial (${TRUNK}/${ext});// Dial without transfer
} else {
   Dial (${TRUNK}/${ext},,T); // Dial With Transfer
}
}

This is assuming you create a table called Bypass in your Asterisk 
Database and add the number to the database.

Good luck,
Brent



___
-- 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


Re: [asterisk-users] transfer option and pressing #

2009-07-13 Thread Alex Samad
On Mon, Jul 13, 2009 at 11:50:00AM -0500, Brent Davidson wrote:
 Alex Samad wrote:
  Hi
 
  I have setup forwarding - xfering - where you press # and then the
  extension. I add t to the dial cmd.
 
  My problem is that when you call something like internet banking they
  want #, but when # is pressed asterisk gets it instead. is there a way
  around this ?
 
  I haven't been able to get asterisk to listen to flash either 
 
 
  Alex

 The easiest solution would probably be to look in features.conf and 
 change the option for forwarding to require two consecutive # presses.

actually when into features and change all the options to *digit
instead of #

 
 The other option would be to put an explicit dial rule for the numbers 
 that need the # bypass and have them omit T and from the dial command.
 
 You could also set up a dat abase with a simple web front end for your 
 users to enter numbers that need to have the transfer function bypassed 

this is a home system for now (also testbed)

 and do something like this (I use AEL so this is in AEL Format)
 
 macro specialDial (ext) {
 if (${DB_EXISTS(bypass/${ext})}) {
Dial (${TRUNK}/${ext});// Dial without transfer
 } else {
Dial (${TRUNK}/${ext},,T); // Dial With Transfer
 }
 }
 
 This is assuming you create a table called Bypass in your Asterisk 
 Database and add the number to the database.
 
 Good luck,
 Brent
 
 
 
 ___
 -- 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
 

-- 
See, we love -- we love freedom. That's what they didn't understand. They hate 
things - we love things.

- George W. Bush
08/29/2002
Oklahoma City, OK


signature.asc
Description: Digital signature
___
-- 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

Re: [asterisk-users] transfer option and pressing #

2009-07-12 Thread Alex Balashov
Alex Samad wrote:

 Hi
 
 I have setup forwarding - xfering - where you press # and then the
 extension. I add t to the dial cmd.

No, that's simply the order of evaluation.  If the caller is inside an 
Asterisk application that listens for #, it is going to be intercepted 
and preempted instead of passed on.  Your only solution is to reassign 
the role of # to some other DTMF tone, if that's possible with the app 
that you're using.

-- 
Alex Balashov
Evariste Systems
Web : http://www.evaristesys.com/
Tel : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671

___
-- 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