fixed carrier modification bugs

git-svn-id: svn://192.168.202.10@1056 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2009-02-13 00:15:21 +00:00
parent c9edc31517
commit 504262df22
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -878,8 +878,12 @@ if ( ($active_asterisk_server =~ /Y/) && ($generate_vicidial_conf =~ /Y/) && ($r
if ($DB) {print "reloading asterisk\n";}
`echo reload > /root/asterisk_command_reload`;
`screen -XS asterisk readbuf /root/asterisk_command_reload`;
sleep(2);
`screen -XS asterisk paste .`;
sleep(10);
}
+2 -2
View File
@@ -10339,7 +10339,7 @@ if ($ADD==431111111111)
{
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
if (strlen($template_name) < 1)
if ( (strlen($template_id) < 1) or (strlen($template_name) < 1) )
{echo "<br>CONF TEMPLATE NOT MODIFIED - Please go back and look at the data you entered\n";}
else
{
@@ -10379,7 +10379,7 @@ if ($ADD==441111111111)
{
echo "<FONT FACE=\"ARIAL,HELVETICA\" COLOR=BLACK SIZE=2>";
if ( (strlen($carrier_id) < 1) or (strlen($server_ip) < 7) or (strlen($protocol) < 1) or (strlen($dialplan_entry) < 1) )
if ( (strlen($carrier_id) < 1) or (strlen($server_ip) < 7) or (strlen($protocol) < 1) )
{echo "<br>CARRIER NOT MODIFIED - Please go back and look at the data you entered\n";}
else
{