Restrict specific number types for certain agents in manual
Posted: 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.
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.