Skip to content

Commit

Permalink
Check external ip from pjsip also
Browse files Browse the repository at this point in the history
  • Loading branch information
asternic committed Sep 7, 2023
1 parent 5510ea6 commit 528d864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/qr_batch/libs/IssabelQRConfig.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function __construct()
echo "$this->rutaDB: $pDB->errMsg <br>";
} else{
$this->_DB = $pDB;
$sPeticionSQL = 'SELECT data FROM sipsettings WHERE keyword="externip_val"';
$sPeticionSQL = 'SELECT data FROM sipsettings WHERE keyword="externip_val" UNION SELECT data FROM pjsipsettings WHERE keyword="externip_val"';
$result = $this->_DB->getFirstRowQuery($sPeticionSQL, TRUE, array());
if(count($result)>0) {
$this->_allips[$result['data']]=1;
Expand Down

0 comments on commit 528d864

Please sign in to comment.