[asterisk-users] Ex-Girlfriend syntax and RealTime Extensions
Philipp Kempgen
philipp.kempgen at amooma.de
Mon Feb 26 12:13:33 MST 2007
Ricardo Carvalho wrote:
> As seen in the following URL:
> http://www.voip-info.org/wiki/view/Asterisk+RealTime+Extensions and as I
> also tested some time ago with an old release of Asterisk, RealTime
> Extensions didn't support the Ex-Girlfriend syntax.
> Is it already working in recent 1.4 or 1.2.15 releases?
Not with dynamic Realtime.
> Is there any other way that I can use to do the same thing but only
> using contexts, for example? If yes, please give me one example.
You might use the Blacklist() application in 1.2 (deprecated!).
Using AstDB is an option:
exten => 123,1,Set(bad=${DB_EXISTS(exgirlfriends/${CALLERID(num)})})
exten => 123,n,GotoIf($[${bad} = 1]?blacklist,1)
exten => 123,n,Dial(SIP/${EXTEN})
exten => blacklist,1,Congestion()
exten => blacklist,n,Hangup()
Haven't checked if this works. You need to either set the DB
entries manually (see "help database") or use DB() and
DB_DELETE() (might want to re-activate an ex-girlfriend).
Regards,
Philipp
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk -> http://www.das-asterisk-buch.de
Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998
More information about the asterisk-users
mailing list