Ricardo Carvalho
2007-Feb-26 11:45 UTC
[asterisk-users] Ex-Girlfriend syntax and RealTime Extensions
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? 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. Regards, Ricardo.
Philipp Kempgen
2007-Feb-26 12:14 UTC
[asterisk-users] Ex-Girlfriend syntax and RealTime Extensions
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
rjcarvalho@reit.up.pt
2007-Feb-26 17:47 UTC
[asterisk-users] Ex-Girlfriend syntax and RealTime Extensions
Thanks for all those that replayed so far, Although I think your suggestions are interesting, I guess they don?t fit my needs, because I use the Ex-Girlfriend logic to find from which user each call comes in the PSTN direction, and selected the user by that way, calls are sent to the right DID. For example: exten => _[0-9]./tom,1,Dial(SIP/${EXTEN}@did1,120) exten => _[0-9]./john,1,Dial(SIP/${EXTEN}@did2,120) This kind of schema seems to don?t work with Dynamic Realtime, so how can I do the same thing using something that works with Dynamic Realtime? Thanks once again, Ricardo. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070226/712c66cc/attachment.htm