diff --git a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl
index b56996b1..f78bc614 100644
--- a/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl
+++ b/agc_2-X/trunk/bin/ADMIN_keepalive_ALL.pl
@@ -188,9 +188,10 @@
# 260826-1814 - Added FastAGIServer code
# 260902-1718 - Fix for PJSIP monitoring
# 260903-1914 - Added -ra-delay=X flag
+# 260910-0116 - Small fix for PJSIP
#
-$build = '260903-1914';
+$build = '260910-0116';
$DB=0; # Debug flag
$teodDB=0; # flag to log Timeclock End of Day processes to log file
@@ -4408,10 +4409,10 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
$Ppjsipw .= "endpoint/callerid=\"$fullname[$i]\" <$outbound_cid[$i]>\n";
}
$Ppjsipw .= "endpoint/mailboxes=$voicemail[$i]\n";
+ $Ppjsipw .= "endpoint/accountcode=$extension[$i]\n";
if (($codecs_with_template[$i] > 0) || (!($template_contents[$i] =~ /allow=/i)))
{$Ppjsipw .= "$Pcodec";}
$Ppjsipw .= "$template_contents[$i]\n";
-
$conf_entry_written++;
}
$sthA->finish();
@@ -4446,6 +4447,7 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
$Ppjsipw .= "endpoint/callerid=\"$fullname[$i]\" <$outbound_cid[$i]>\n";
}
$Ppjsipw .= "endpoint/mailboxes=$voicemail[$i]\n";
+ $Ppjsipw .= "endpoint/accountcode=$extension[$i]\n";
$Ppjsipw .= "$Pcodec";
$Ppjsipw .= "endpoint/dtmf_mode = rfc4733\n";
$Ppjsipw .= "endpoint/trust_id_inbound = no\n";
diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php
index 03fe2a18..55b1b26e 100644
--- a/agc_2-X/trunk/www/vicidial/admin.php
+++ b/agc_2-X/trunk/www/vicidial/admin.php
@@ -7777,12 +7777,13 @@ if ($SSscript_remove_js > 0)
# 260822-0855 - Added many input variable declarations, added agent_ingroup_availability API function
# 260902-1656 - Fix for PJSIP
# 260907-1810 - Added copy_phone API function
+# 260910-0111 - Fix for added users without user_group
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
-$admin_version = '2.14-964a';
-$build = '260907-1810';
+$admin_version = '2.14-965a';
+$build = '260910-0111';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -13492,7 +13493,7 @@ if ($ADD=="2")
{
$user = 'AUTOGENERA';
}
- if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user_group) < 2) or ( (mb_strlen($user,'utf-8') > 20) and (!preg_match('/AUTOGENERA/',$user)) ) or ( ($SSrequire_password_length > 0) and ($SSrequire_password_length > strlen($pass)) ) )
+ if ( (strlen($user) < 2) or (strlen($pass) < 2) or (strlen($full_name) < 2) or (strlen($user_group) < 2) or (preg_match('/---ALL---/',$user_group)) or ( (mb_strlen($user,'utf-8') > 20) and (!preg_match('/AUTOGENERA/',$user)) ) or ( ($SSrequire_password_length > 0) and ($SSrequire_password_length > strlen($pass)) ) )
{
echo "
"._QXZ("USER NOT ADDED - Please go back and look at the data you entered")."\n";
echo "
"._QXZ("user id must be between 2 and 20 characters long")."\n";
@@ -13504,6 +13505,7 @@ if ($ADD=="2")
else
{echo "
"._QXZ("full name and password must be at least 2 characters long")."\n";}
echo "
"._QXZ("you must select a user group")."\n";
+ exit;
}
else
{
@@ -13823,6 +13825,7 @@ if ($ADD=="2A")
else
{echo "
"._QXZ("full name and password must be at least 2 characters long")."\n";}
echo "\n";
+ exit;
}
else
{