Restrict specific number types for certain agents in manual

Any and all non-support discussions

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

Restrict specific number types for certain agents in manual

Postby medk » Mon Sep 19, 2016 7:14 am

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.
VICIbox 8.1.1
OpenSuSE Leap v.42.3 64-bit
Kernel v.4.4.155
Asterisk v.13.21.1-vici
DAHDI v.2.11.1
LibPRI v.1.6.0
Amfletec VoiceSync v.1.3.8
OpenR2 v.1.3.3 for MFC/R2 support
ViciDial SVN v.2.14-689a build 180922-0958 revision 3035
medk
 
Posts: 26
Joined: Thu Sep 15, 2016 7:02 am

Re: Restrict specific number types for certain agents in man

Postby muyousif » Wed Oct 05, 2016 10:43 am

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.
ViciBox v.6.0.3 | VERSION: 2.14-685a BUILD: 180825-2100| Asterisk 1.8.29 | Cluster: 1 DB: 16Core@2.67GHz 16RAM | 1 WEB: 8Core@2.50GHz 16RAM | 8 Tel: QuadCore@2.93GHz 8RAM
muyousif
 
Posts: 119
Joined: Wed May 14, 2014 5:29 am

Re: Restrict specific number types for certain agents in man

Postby williamconley » Mon Oct 17, 2016 10:17 pm

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).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: indrajeetbanerjee and 62 guests