예제 #1
0
파일: number.php 프로젝트: swk/bluebox
 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);
         }
     }
 }
예제 #2
0
파일: number.php 프로젝트: Jaybee-/bluebox
 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();
 }