Changes to allow for Unknown, Private, Anonymous in Filter Phone Group entries. Also allowed plus sign + in DID entries(edit to extensions.conf required for this to work), Issue #474, reported by MIGO

git-svn-id: svn://192.168.202.10@1899 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2012-11-30 18:08:26 +00:00
parent e873153d65
commit 5bc8ff778f
2 changed files with 12 additions and 6 deletions
@@ -18,6 +18,9 @@ SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
; exten => _XXXXXXXXXX,1,AGI(agi-DID_route.agi) ; use this one instead of the one below if you are having delay issues, and match to number of received digits
exten => _X.,1,AGI(agi-DID_route.agi)
; If you have DIDs that arrive with a plus sign at the beginning then uncomment
;exten => _+X.,1,AGI(agi-DID_route.agi)
; FastAGI for VICIDIAL/astGUIclient call logging
exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME})
+9 -6
View File
@@ -2146,9 +2146,6 @@ if ($non_latin < 1)
$campaign_rank = ereg_replace("[^-0-9]","",$campaign_rank);
$queue_priority = ereg_replace("[^-0-9]","",$queue_priority);
### DIGITS and NEWLINES
$phone_numbers = ereg_replace("[^X\n0-9]","",$phone_numbers);
### Y or N ONLY ###
$allow_closers = ereg_replace("[^NY]","",$allow_closers);
$reset_hopper = ereg_replace("[^NY]","",$reset_hopper);
@@ -2590,7 +2587,7 @@ if ($non_latin < 1)
$group_color = ereg_replace("[^\#0-9a-zA-Z]","",$group_color);
### ALPHA-NUMERIC and hash and star and dot and underscore
$hold_time_option_exten = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$hold_time_option_exten);
$did_pattern = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$did_pattern);
$did_pattern = ereg_replace("[^\+\*\#\.\_0-9a-zA-Z]","",$did_pattern);
$voicemail_ext = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$voicemail_ext);
$phone = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$phone);
$phone_code = ereg_replace("[^\*\#\.\_0-9a-zA-Z]","",$phone_code);
@@ -9572,6 +9569,9 @@ if ($ADD==111)
if ($ADD==121)
{
### filter for DIGITS and NEWLINES
$phone_numbers = ereg_replace("[^X\n0-9]","",$phone_numbers);
echo "<TABLE><TR><TD>\n";
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
@@ -9736,6 +9736,9 @@ if ($ADD==121)
if ($ADD==171)
{
### filter for Letters DIGITS and NEWLINES
$phone_numbers = ereg_replace("[^\n0-9a-zA-Z]","",$phone_numbers);
echo "<TABLE><TR><TD>\n";
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
@@ -12636,8 +12639,8 @@ if ($ADD==2311)
if ($row[0] > 0)
{echo "<br>DID NOT ADDED - there is already a DID in the system with this extension\n";}
else
{
if ( (strlen($did_pattern) < 2) or (eregi(' ',$did_pattern)) or (eregi('-',$did_pattern)) or (eregi("\+",$did_pattern)) )
{ # or (eregi("\+",$did_pattern))
if ( (strlen($did_pattern) < 2) or (eregi(' ',$did_pattern)) or (eregi('-',$did_pattern)) )
{
echo "<br>DID NOT ADDED - Please go back and look at the data you entered\n";
echo "<br>DID Extension must be between 2 and 20 characters in length and contain no ' -+'.\n";