Added agi-AGENT_route.agi script to more easily allow for agentdirect calls from call menus without having to create a DID entry for every agent
git-svn-id: svn://192.168.202.10@1381 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -316,6 +316,7 @@ if ($extension =~ /^999\d\d\*/)
|
||||
$referring_extension = $EXT_vars[0]; # initial extension sent
|
||||
$did_id = $EXT_vars[1]; # the DID ID to grab settings from
|
||||
$in_group_override = $EXT_vars[2]; # the in-group override, if set
|
||||
$agentdirect_override = $EXT_vars[3]; # the agentdirect override, if set
|
||||
|
||||
### Grab DID values from the database
|
||||
$stmtA = "SELECT call_handle_method,agent_search_method,group_id,did_pattern,list_id,phone_code,campaign_id,user,user_unavailable_action,user_route_settings_ingroup,did_route,voicemail_ext,extension,exten_context,phone,server_ip FROM vicidial_inbound_dids where did_id = '$did_id';";
|
||||
@@ -349,6 +350,8 @@ if ($extension =~ /^999\d\d\*/)
|
||||
}
|
||||
$sthA->finish();
|
||||
|
||||
if (length($agentdirect_override) > 0) {$agent_only = $agentdirect_override;}
|
||||
|
||||
if (length($in_group_override) > 1)
|
||||
{
|
||||
$igo_valid=0;
|
||||
|
||||
Reference in New Issue
Block a user