Is it possible to set up asterisk to route calls to a particular extension based on Caller ID number on an incoming FXO call? I have seen info on Blacklists but nothing like what I would like to do here. Anyone have any thoughts?
On October 25, 2004 09:43 pm, Daina Hopper wrote:> Is it possible to set up asterisk to route calls to a particular extension > based on Caller ID number on an incoming FXO call? I have seen info on > Blacklists but nothing like what I would like to do here. Anyone have any > thoughts?The blacklists give the exact notation -- instead of sending to voicemail, just Dial() the right extension. -A.
Daina Hopper wrote:> Is it possible to set up asterisk to route calls to a particular extension > based on Caller ID number on an incoming FXO call? I have seen info on > Blacklists but nothing like what I would like to do here. Anyone have any > thoughts? >Sure. Two examples: 1) If you have DIDs i.e. direct dial lines on B/PRI. exten => 7654321/1234567,1,Do Something This will do something when DID 7654321 is rung by caller id 12345678 2) Standard lines (i.e. no DID) exten => s/1234567,1,Do Something This will do something when a call comes in with caller id 1234567. Make sense? If you're after more information on the above, you would want to search for anti ex-girlfriend. There are some examples based on this so that if your ex-(girl/boy)friend calls you route it somewhere weird (i.e. to her cellphone if it comes from her land line and vice versa). -- Cheers, Matt Riddell _______________________________________________ http://www.sineapps.com/news.php (Daily Asterisk News - html) http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
On Mon, 2004-10-25 at 20:43 -0500, Daina Hopper wrote:> Is it possible to set up asterisk to route calls to a particular extension > based on Caller ID number on an incoming FXO call? I have seen info on > Blacklists but nothing like what I would like to do here. Anyone have any > thoughts?I don't want to be mean here, but you have answered your own question. To blacklist a call based on callerid means you have routed a call to a path that is possibly a notice saying why they are on the blacklist and then hanging up on them. Why do you feel it would be any different for you to instead use a different dial statement? -- Steven Critchfield <critch@basesys.com>