[asterisk-users] bypass menu for certain numbers?

Matt Gibson diwelf at gmail.com
Thu Jan 4 03:14:30 MST 2007


Hi All,

I'm about to modify my menu to allow for certain callers to bypass my
menu entirely, and just ring my phone. I don't need friends hearing my
business menu all the time.

So, my idea was to use my already enabled callerid asterisk database
and lookup the callerid info from it, if it exists consider it a
friend and send them to a direct dial context. If the callerid is new,
not found, or unknown then send them to the regular menu. This would
be done with astdb, gotoif and lookupcidname commands I suppose.
Haven't looked into this end of it much yet.

My question - is this the best/quickest way of going about this? I am
wondering if with many numbers in this database if it will add delay
to the call while it looks up to see where it needs to go.

I've also seen things like the following, which is another option

exten => s,1,GotoIf($["${CALLERIDNUM}" = "KNOWN (ie.
5552221212)"]?direct-dial,s,1)
exten => s,2,GotoIf($["${CALLERIDNUM}" = "KNOWN (ie.
5552221313)"]?direct-dial,s,1)
exten => s,3,Go on with the menu as regular

Any help would be appreciated.

MG


More information about the asterisk-users mailing list