How to bar premium numbers from dialling

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

How to bar premium numbers from dialling

Postby webgurru » Fri Jul 10, 2009 8:25 am

Hi,

I want to put a bar on premium numbers starting with 0900 and 0870. Is there any way to stop these numbers from dialling. I don't want these numbers to be dialled from campaign (using manual dial) and phones as well.

Best regards,
webgurru
 
Posts: 147
Joined: Thu May 07, 2009 11:10 am
Location: United Kingdom

Postby mflorell » Fri Jul 10, 2009 9:04 am

just put a "_0900.,1,Hangup" in your dialplan
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby webgurru » Fri Jul 10, 2009 9:54 am

Hi Matt,

My present dialplan is

Code: Select all
exten => _90XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _90XXXXXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,tTo)
exten => _90XXXXXXXXXX,3,Hangup


Should I change this to

Code: Select all
exten => _90XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _90XXXXXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,tTo)
exten => _90XXXXXXXXXX,3,Hangup
exten => _90900XXXXXXX,1,Hangup


Best regards,

mflorell wrote:just put a "_0900.,1,Hangup" in your dialplan
webgurru
 
Posts: 147
Joined: Thu May 07, 2009 11:10 am
Location: United Kingdom

Postby mflorell » Fri Jul 10, 2009 6:18 pm

You should put this line first:

exten => _90900XXXXXXX,1,Hangup

And of course try this yourself and watch the Asterisk CLI and see what it does.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Postby webgurru » Sat Jul 11, 2009 5:19 am

Thanks Matt it worked.

Best regards,

mflorell wrote:You should put this line first:

exten => _90900XXXXXXX,1,Hangup

And of course try this yourself and watch the Asterisk CLI and see what it does.
webgurru
 
Posts: 147
Joined: Thu May 07, 2009 11:10 am
Location: United Kingdom


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 91 guests