Ejemplo n.º 1
0
 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);
         }
     }
 }
Ejemplo n.º 2
0
 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();
 }