Skip to content

Commit b1a4130

Browse files
fix new DID creation file
1 parent 29f2ec3 commit b1a4130

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

build/MagnusBilling-current.tar.gz

-10.3 KB
Binary file not shown.

protected/controllers/DiddestinationController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ public function checkRelation($values)
176176
public function afterSave($model, $values)
177177
{
178178
AsteriskAccess::instance()->writeDidContext();
179+
AsteriskAccess::instance()->generateSipDid();
179180

180181
if ($this->isNewRecord) {
181182
$modelDid = Did::model()->findByPk($model->id_did);
@@ -235,4 +236,10 @@ public function afterSave($model, $values)
235236
return;
236237
}
237238

239+
public function afterDestroy($values)
240+
{
241+
AsteriskAccess::instance()->generateSipDid();
242+
return;
243+
}
244+
238245
}

0 commit comments

Comments
 (0)