Hi all, i have following entries in my extensions.conf: [demo] exten => _.,1,Dial,Modem/g1:${Exten} exten => _.,2,Congestion I think this should make it possible to dial every number over the Modem/g1 line. But some prefixes like 0190 etc. should better not be possible. How can i exclude especially prefixes ? Thanks for help, Thomas.
Hello, Can anybody help me with this ? -----Urspr?ngliche Nachricht----- Von: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]Im Auftrag von Thomas Haeger Gesendet: Montag, 5. Mai 2003 13:26 An: asterisk-users@lists.digium.com Betreff: [Asterisk-Users] Exclude prefixes Hi all, i have following entries in my extensions.conf: [demo] exten => _.,1,Dial,Modem/g1:${Exten} exten => _.,2,Congestion I think this should make it possible to dial every number over the Modem/g1 line. But some prefixes like 0190 etc. should better not be possible. How can i exclude especially prefixes ? Thanks for help, Thomas. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
Hi Thomas, Thomas Haeger wrote:>Hello, > >Can anybody help me with this ? > >i have following entries in my extensions.conf: > > >[demo] > >exten => _.,1,Dial,Modem/g1:${Exten} >exten => _.,2,Congestion > > >I think this should make it possible to dial every number over the Modem/g1 >line. >But some prefixes like 0190 etc. should better not be possible. > > >How can i exclude especially prefixes ? >try this: [demo] exten => _0190.,1,Congestion exten => _.,1,Dial,Modem/g1:${Exten} exten => _.,2,Congestion Greetings, Christoph
[demo] exten => _0190.,1,Congestion exten => _.,1,Dial,Modem/g1:${Exten} exten => _.,2,Congestion RTFM Jeremy McNamara Thomas Haeger wrote:>Hello, > >Can anybody help me with this ? > > > >-----Urspr?ngliche Nachricht----- >Von: asterisk-users-admin@lists.digium.com >[mailto:asterisk-users-admin@lists.digium.com]Im Auftrag von Thomas >Haeger >Gesendet: Montag, 5. Mai 2003 13:26 >An: asterisk-users@lists.digium.com >Betreff: [Asterisk-Users] Exclude prefixes > > >Hi all, > > >i have following entries in my extensions.conf: > > >[demo] > >exten => _.,1,Dial,Modem/g1:${Exten} >exten => _.,2,Congestion > > >I think this should make it possible to dial every number over the Modem/g1 >line. >But some prefixes like 0190 etc. should better not be possible. > > >How can i exclude especially prefixes ? > > > >Thanks for help, > >Thomas. > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users > >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users > >
do the following: [demo] exten => _XXXX.,1,Dial,Modem/g1:${Exten} exten => _XXXX.,2,Congestion exten => _0190.,1,Hangup On Wednesday 07 May 2003 2:57 pm, Thomas Haeger wrote:> Hello, > > Can anybody help me with this ? > > > > -----Urspr?ngliche Nachricht----- > Von: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com]Im Auftrag von Thomas > Haeger > Gesendet: Montag, 5. Mai 2003 13:26 > An: asterisk-users@lists.digium.com > Betreff: [Asterisk-Users] Exclude prefixes > > > Hi all, > > > i have following entries in my extensions.conf: > > > [demo] > > exten => _.,1,Dial,Modem/g1:${Exten} > exten => _.,2,Congestion > > > I think this should make it possible to dial every number over the Modem/g1 > line. > But some prefixes like 0190 etc. should better not be possible. > > > How can i exclude especially prefixes ? > > > > Thanks for help, > > Thomas. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
On Wed, 7 May 2003 at 15:57, Thomas Haeger wrote:> [demo] > > exten => _.,1,Dial,Modem/g1:${Exten} > exten => _.,2,Congestion > > I think this should make it possible to dial every number over the > Modem/g1 line. But some prefixes like 0190 etc. should better not be > possible.How about this: exten => 0190,1,Congestion exten => 0900,1,Congestion ... cu Reinhard
This suggestion seems to work ... Thanks, Thomas. -----Urspr?ngliche Nachricht----- Von: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]Im Auftrag von Michael Bielicki Gesendet: Mittwoch, 7. Mai 2003 16:32 An: asterisk-users@lists.digium.com Betreff: Re: AW: [Asterisk-Users] Exclude prefixes do the following: [demo] exten => _XXXX.,1,Dial,Modem/g1:${Exten} exten => _XXXX.,2,Congestion exten => _0190.,1,Hangup On Wednesday 07 May 2003 2:57 pm, Thomas Haeger wrote:> Hello, > > Can anybody help me with this ? > > > > -----Urspr?ngliche Nachricht----- > Von: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com]Im Auftrag von Thomas > Haeger > Gesendet: Montag, 5. Mai 2003 13:26 > An: asterisk-users@lists.digium.com > Betreff: [Asterisk-Users] Exclude prefixes > > > Hi all, > > > i have following entries in my extensions.conf: > > > [demo] > > exten => _.,1,Dial,Modem/g1:${Exten} > exten => _.,2,Congestion > > > I think this should make it possible to dial every number over theModem/g1> line. > But some prefixes like 0190 etc. should better not be possible. > > > How can i exclude especially prefixes ? > > > > Thanks for help, > > Thomas. > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users_______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users
asterisk@billheckel.com
2003-May-07 08:34 UTC
[Asterisk-Users] Re: [Users] Exclude prefixes
What I do to help prevent toll fraud using excluded prefixes is that is the area code is one of the foreign islands known for toll abuse is play a message stating that that number is not available due to toll fraud then hangup. Same goes for 900 numbers. ( by whole outbound plan is here ) ; we allow 9xxxyyyzzzz and 91xxxyyyzzzz dialing [castleout] ignorepat => 9 exten => _91NXXNXXXXXX,1,SetCallerID,our name<123 456-7890> exten => _91NXXNXXXXXX,2,StripMSD,2 exten => _9NXXNXXXXXX,1,SetCallerID,our name<123 456-7890> exten => _9NXXNXXXXXX,2,StripMSD,1 exten => _412NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _412NXXXXXX,4,Busy exten => _412NXXXXXX,5,Hangup exten => _724NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _724NXXXXXX,4,Busy exten => _724NXXXXXX,5,Hangup exten => _800NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _800NXXXXXX,4,Busy exten => _800NXXXXXX,5,Hangup exten => _888NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _888NXXXXXX,4,Busy exten => _888NXXXXXX,5,Hangup exten => _877NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _877NXXXXXX,4,Busy exten => _877NXXXXXX,5,Hangup exten => _866NXXXXXX,3,Dial,Zap/g4/BYEXTENSION exten => _866NXXXXXX,4,Busy exten => _866NXXXXXX,5,Hangup exten => _242NXXXXXX,3,Goto,blocked|1 exten => _246NXXXXXX,3,Goto,blocked|1 exten => _264NXXXXXX,3,Goto,blocked|1 exten => _268NXXXXXX,3,Goto,blocked|1 exten => _284NXXXXXX,3,Goto,blocked|1 exten => _340NXXXXXX,3,Goto,blocked|1 exten => _345NXXXXXX,3,Goto,blocked|1 exten => _441NXXXXXX,3,Goto,blocked|1 exten => _473NXXXXXX,3,Goto,blocked|1 exten => _590NXXXXXX,3,Goto,blocked|1 exten => _649NXXXXXX,3,Goto,blocked|1 exten => _664NXXXXXX,3,Goto,blocked|1 exten => _680NXXXXXX,3,Goto,blocked|1 exten => _684NXXXXXX,3,Goto,blocked|1 exten => _758NXXXXXX,3,Goto,blocked|1 exten => _767NXXXXXX,3,Goto,blocked|1 exten => _784NXXXXXX,3,Goto,blocked|1 exten => _809NXXXXXX,3,Goto,blocked|1 exten => _868NXXXXXX,3,Goto,blocked|1 exten => _869NXXXXXX,3,Goto,blocked|1 exten => _876NXXXXXX,3,Goto,blocked|1 exten => _900NXXXXXX,3,Goto,blocked|1 exten => _NXXNXXXXXX,3,Dial,Zap/g3/BYEXTENSION exten => _NXXNXXXXXX,4,Busy exten => _NXXNXXXXXX,5,Hangup exten => blocked,1,playback,scam-blocked exten => blocked,2,hangup Reinhard Max wrote:> On Wed, 7 May 2003 at 15:57, Thomas Haeger wrote: > > >>[demo] >> >>exten => _.,1,Dial,Modem/g1:${Exten} >>exten => _.,2,Congestion >> >>I think this should make it possible to dial every number over the >>Modem/g1 line. But some prefixes like 0190 etc. should better not be >>possible. > > > How about this: > > exten => 0190,1,Congestion > exten => 0900,1,Congestion > ... > > cu > Reinhard > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > >
On Wed, 07 May 2003 around 16:31:24 +0200, Christoph Frei wrote:> Hi Thomas, > > Thomas Haeger wrote: > > >Hello, > > > >Can anybody help me with this ? > > > >i have following entries in my extensions.conf: > > > > > >[demo] > > > >exten => _.,1,Dial,Modem/g1:${Exten} > >exten => _.,2,Congestion > > > > > >I think this should make it possible to dial every number over the Modem/g1 > >line. > >But some prefixes like 0190 etc. should better not be possible. > > > > > >How can i exclude especially prefixes ? > > > try this: > > [demo] > > exten => _0190.,1,Congestion > > exten => _.,1,Dial,Modem/g1:${Exten} > exten => _.,2,CongestionGuys, this wont work in all case. The shorter regular expression will match first. Just ran headlong into this problem when connecting to a PABX which sents digit after digit instead of the entire number in one go. Met vriendelijke groet, Pauline Middelink -- GPG Key fingerprint = 2D5B 87A7 DDA6 0378 5DEA BD3B 9A50 B416 E2D0 C3C2 For more details look at my website http://www.polyware.nl/~middelink -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2107 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030508/b8564e9e/smime.bin
On Thursday 08 May 2003 01:24, Pauline Middelink wrote:> Christoph Frei wrote: > > Thomas Haeger wrote: > > >I think this should make it possible to dial every number > > > over the Modem/g1 line. > > >But some prefixes like 0190 etc. should better not be > > > possible. > > > > > > > > >How can i exclude especially prefixes ? > > > > try this: > > > > [demo] > > > > exten => _0190.,1,Congestion > > > > exten => _.,1,Dial,Modem/g1:${Exten} > > exten => _.,2,Congestion > > Guys, this wont work in all case. The shorter regular > expression will match first. Just ran headlong into this > problem when connecting to a PABX which sents digit after > digit instead of the entire number in one go.If so, then I think that would be a bug. From my reading of the source, the logic is never to assume the extension is complete until one of the following two conditions is met: a) DigitTimeout, or b) no other extension can possibly match. -Tilghman
> Guys, this wont work in all case. The shorter regular > expression will match first. Just ran headlong into this > problem when connecting to a PABX which sents digit after > digit instead of the entire number in one go.You can *always* force the order with includes, i.e.: [nodial] exten => _0900.,1,Congestion [okaydial] exten => _0XXX.,1,Dial(...) [default] include => nodial include => okaydial Mark