Several fixes for ConfBridge patches and documentation

git-svn-id: svn://192.168.202.10@3639 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2022-09-16 12:48:11 +00:00
parent 279ad1da73
commit 1fe56d1ced
4 changed files with 166 additions and 28 deletions
+39 -9
View File
@@ -1,6 +1,36 @@
--- manager_send.php.old 2022-08-26 16:03:28.232951728 -0400
+++ manager_send.php 2022-08-23 15:55:47.677934909 -0400
@@ -1763,6 +1763,7 @@
--- manager_send.php.orig 2022-09-14 10:36:59.611513030 -0400
+++ manager_send.php 2022-09-14 10:35:51.303740728 -0400
@@ -403,9 +403,17 @@
{$SSagent_debug_logging=0;}
}
+$stmtA="SELECT conf_engine FROM servers WHERE server_ip='$server_ip';";
+$rslt=mysql_to_mysqli($stmtA, $link);
+$row=mysqli_fetch_row($rslt);
+$conf_engine = $row[0];
+
$threeway_context = $ext_context;
if (strlen($meetme_enter_leave3way_filename) > 0)
- {$threeway_context = 'meetme-enter-leave3way';}
+ {
+ $threeway_context = 'meetme-enter-leave3way';
+ if ($conf_engine == "CONFBRIDGE") { $threeway_context = 'confbridge-enter-leave3way'; }
+ }
$auth=0;
$auth_message = user_authorization($user,$pass,'',0,1,0,0,'manager_send');
@@ -576,7 +584,9 @@
print "<!-- sending login sipsak message: $SIPSAK_prefix$campaign -->\n";
passthru("/usr/local/bin/sipsak -M -O desktop -B \"$SIPSAK_prefix$campaign\" -r 5060 -s sip:$extension@$phone_ip > /dev/null");
$queryCID = "$SIPSAK_prefix$campaign$DS$CIDdate";
- }
+ }
+ if ($conf_engine == "CONFBRIDGE") { $exten = "2$exten"; }
+
$ACTION="Originate";
}
@@ -1763,6 +1773,7 @@
$row=''; $rowx='';
$channel_liveX=1;
$channel_liveY=1;
@@ -8,7 +38,7 @@
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($session_id)<3) or ( ( (strlen($extrachannel)<3) or (strlen($exten)<1) ) and (!preg_match("/NEXTAVAILABLE/",$exten)) ) )
{
$channel_liveX=0;
@@ -1790,19 +1791,26 @@
@@ -1790,19 +1801,26 @@
{
if (preg_match("/NEXTAVAILABLE/",$exten))
{
@@ -38,7 +68,7 @@
if ($format=='debug') {echo "\n<!-- $stmtC -->";}
$rslt=mysql_to_mysqli($stmtC, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmtC,'02031',$user,$server_ip,$session_name,$one_mysql_log);}
@@ -1814,12 +1822,12 @@
@@ -1814,12 +1832,12 @@
$extension = "$extension$user";
}
@@ -53,7 +83,7 @@
if ($format=='debug') {echo "\n<!-- $stmtE -->";}
$rslt=mysql_to_mysqli($stmtE, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmtE,'02033',$user,$server_ip,$session_name,$one_mysql_log);}
@@ -1857,7 +1865,7 @@
@@ -1857,7 +1875,7 @@
else
{
$channel_liveX=0;
@@ -62,7 +92,7 @@
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "Cannot find empty conference on $server_ip";}
$stage .= "|ERROR $server_ip|";
}
@@ -1989,6 +1997,7 @@
@@ -1989,6 +2007,7 @@
$row=''; $rowx='';
$channel_liveX=1;
$channel_liveY=1;
@@ -70,7 +100,7 @@
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($session_id)<3) or ( ( (strlen($extrachannel)<3) or (strlen($exten)<1) ) and (!preg_match("/NEXTAVAILABLE/",$exten)) ) )
{
$channel_liveX=0;
@@ -2018,31 +2027,38 @@
@@ -2018,31 +2037,38 @@
{
if (preg_match("/NEXTAVAILABLE/",$exten))
{
@@ -114,7 +144,7 @@
if ($format=='debug') {echo "\n<!-- $stmt -->";}
$rslt=mysql_to_mysqli($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02049',$user,$server_ip,$session_name,$one_mysql_log);}
@@ -2076,7 +2092,7 @@
@@ -2076,7 +2102,7 @@
else
{
$channel_liveX=0;