public static function delete($obj) { // Remove the number from all contexts that is belongs to if ($obj->NumberContext) { foreach ($obj->NumberContext as $context) { FreeSwitch_NumberContext_Driver::delete($context); } } }
public static function delete($obj) { // Remove the number from all contexts that is belongs to if ($obj->NumberContext) { foreach ($obj->NumberContext as $context) { FreeSwitch_NumberContext_Driver::delete($context); } } Freeswitch::setSection('number_route', $obj['number_id'])->deleteNode(); }