From 9070a428a49e10acfe7f12913e2841718ca7591a Mon Sep 17 00:00:00 2001 From: GabrielBragaGit Date: Fri, 2 Oct 2020 19:47:26 -0300 Subject: [PATCH] Update Call0800WebController.php --- .../controllers/Call0800WebController.php | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/protected/controllers/Call0800WebController.php b/protected/controllers/Call0800WebController.php index b64c3bde7..affa86ccf 100755 --- a/protected/controllers/Call0800WebController.php +++ b/protected/controllers/Call0800WebController.php @@ -65,8 +65,8 @@ public function actionIndex() $call .= "Context: billing\n"; $call .= "Extension: " . $user . "\n"; $call .= "Priority: 1\n"; - $call .= "Set:IDUSER=" . $model->id_user . "\n"; - $call .= "Set:SECCALL=" . $destination . "\n"; + $call .= "Setvar:IDUSER=" . $model->id_user . "\n"; + $call .= "Setvar:SECCALL=" . $destination . "\n"; AsteriskAccess::generateCallFile($call); @@ -204,17 +204,17 @@ public function actionCallback() $call .= "Context: billing\n"; $call .= "Extension: " . $yournumber . "\n"; $call .= "Priority: 1\n"; - $call .= "Set:CALLED=" . $yournumber . "\n"; - $call .= "Set:TARRIFID=" . $callTrunk[0]['id_rate'] . "\n"; - $call .= "Set:SELLCOST=" . $callTrunk[0]['rateinitial'] . "\n"; - $call .= "Set:BUYCOST=" . $callTrunk[0]['buyrate'] . "\n"; - $call .= "Set:CIDCALLBACK=1\n"; - $call .= "Set:IDUSER=" . $result[0]['id'] . "\n"; - $call .= "Set:IDPREFIX=" . $callTrunk[0]['id_prefix'] . "\n"; - $call .= "Set:IDTRUNK=" . $idTrunk . "\n"; - $call .= "Set:IDPLAN=" . $result[0]['id_plan'] . "\n"; - - $call .= "Set:SECCALL=" . $destination . "\n"; + $call .= "Setvar:CALLED=" . $yournumber . "\n"; + $call .= "Setvar:TARRIFID=" . $callTrunk[0]['id_rate'] . "\n"; + $call .= "Setvar:SELLCOST=" . $callTrunk[0]['rateinitial'] . "\n"; + $call .= "Setvar:BUYCOST=" . $callTrunk[0]['buyrate'] . "\n"; + $call .= "Setvar:CIDCALLBACK=1\n"; + $call .= "Setvar:IDUSER=" . $result[0]['id'] . "\n"; + $call .= "Setvar:IDPREFIX=" . $callTrunk[0]['id_prefix'] . "\n"; + $call .= "Setvar:IDTRUNK=" . $idTrunk . "\n"; + $call .= "Setvar:IDPLAN=" . $result[0]['id_plan'] . "\n"; + + $call .= "Setvar:SECCALL=" . $destination . "\n"; AsteriskAccess::generateCallFile($call, 5); echo Yii::t('zii', 'CallBack Success'); }