Page 1 of 1

Restrict specific number types for certain agents in manual

PostPosted: Mon Sep 19, 2016 7:14 am
by medk
Hello,

I have 30 agents, I work on landline and mobile numbers in Switzerland. Mobiles start with 07xxxxxxxx, everything else is landline.

Now if I want to target mobiles: exten => _07X.,1,AGI(agi://127.0.0.1:4577/call_log)
To target landlines: exten => _0X.,1,AGI(agi://127.0.0.1:4577/call_log)

Now If I want to grant access to mobiles to specific agents using their softphone numbers (8001, 8002, 8003...), how could this be done? So that agents listed in the mobile-enabled list can call mobile numbers manually from their eyeBeam's, others can't.

Here is my trunk config:

exten => _07X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _07X.,2,Dial(***********/41${EXTEN:1},,To)
exten => _07X.,3,Hangup

exten => _0X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0X.,2,Dial(***********/0041${EXTEN:1},,tToR)
exten => _0X.,3,Hangup

The first is for a certain voip provider used only for mobile, the second is for another provider used only for landlines, so if the number begins with _07 then it's mobile, if not, it's landline.

Now how to limit manually dialing mobiles to certain extensions (8001, 8002, 8003...)? and then I have only to change that list of extensions here to grant access for others.

Thanks.

Re: Restrict specific number types for certain agents in man

PostPosted: Wed Oct 05, 2016 10:43 am
by muyousif
You can create two different contexts for mobile and landline.. like
[mobile]
exten => _07X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _07X.,2,Dial(***********/41${EXTEN:1},,To)
exten => _07X.,3,Hangup

[landline]
exten => _0X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _0X.,2,Dial(***********/0041${EXTEN:1},,tToR)
exten => _0X.,3,Hangup

Now for agents which need to have mobile access.. go to Admin.. Phones in vicidial and change Phone_context to mobile and for other agents change this to landline. Make sure you only change Phone_context not Extension_context..

It's just an idea you may have to play a little bit to get it work.

Re: Restrict specific number types for certain agents in man

PostPosted: Mon Oct 17, 2016 10:17 pm
by williamconley
1) Welcome to the Party! 8-)

2) As you are obviously new here, I have some suggestions to help us all help you:

When you post, please post your entire configuration including (but not limited to) your installation method (7.X.X?) and vicidial version with build (VERSION: 2.X-XXXx ... BUILD: #####-####).

This IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "manual/from scratch" you must post your operating system with version (and the .iso version from which you installed your original operating system) plus a link to the installation instructions you used. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3) Agents should never dial directly from their soft phones. That causes calls outside the system which in many cases are not configured for recording (possible, but not everyone knows how) and most importantly the data from these calls is not capture in the Vicidial Lead record anywhere.

4) Require that the agents be logged in and use the Manual Dial button on their agent screens (configuring access to manual dial is on the User record).

5) Now the agents are in a campaign, and you can easily segregate the by Campaign and each campaign can have a different Manual Dial Prefix which will lead to a different dialplan.

6) Your basic dialplans are too short and may one day cause you a long night of hair pulling with a deep feature. Whatever the least number of digits for dialing in your country is, be sure to fill those dialplans with Xs to represent that minimum. If there are no numbers under 8 digits, for instance, exten => _07XXXXXX.,1,AGI instead of just _07X.,1,AGI.

7) That being said: If you MUST have manual dialing direct from phones: Beware that agents need only wander to the wrong workstation to dial out to a cell phone when they should not. Not to mention the danger of someone actually having a reason to sit at a different station (even temporarily) which happens. Vicidial is designed specifically for hot-seating. But once logged in,then user-credentials can limit campaign access.

8) If agents must Share a campaign, when NOT manual dialing, then enable NONcell phones in the primary campaign, but give your Cell agents a special campaign they can log into for Cell access (and deny access to this campaign to your untrusted souls, of course).