Skip to content

Commit

Permalink
fix new DID creation file
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 24, 2021
1 parent 29f2ec3 commit b1a4130
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file modified build/MagnusBilling-current.tar.gz
Binary file not shown.
7 changes: 7 additions & 0 deletions protected/controllers/DiddestinationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public function checkRelation($values)
public function afterSave($model, $values)
{
AsteriskAccess::instance()->writeDidContext();
AsteriskAccess::instance()->generateSipDid();

if ($this->isNewRecord) {
$modelDid = Did::model()->findByPk($model->id_did);
Expand Down Expand Up @@ -235,4 +236,10 @@ public function afterSave($model, $values)
return;
}

public function afterDestroy($values)
{
AsteriskAccess::instance()->generateSipDid();
return;
}

}

0 comments on commit b1a4130

Please sign in to comment.