[Freeswitch-svn] [commit] r7310 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl

Freeswitch SVN intralanman at freeswitch.org
Mon Jan 21 10:06:54 EST 2008


Author: intralanman
Date: Mon Jan 21 10:06:53 2008
New Revision: 7310

Modified:
   freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php

Log:
whoops, these are pretty important lines

Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php	(original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/fs_dialplan.php	Mon Jan 21 10:06:53 2008
@@ -75,6 +75,9 @@
     private function writeDialplan($dpArray) {
         //print_r($dpArray);
         if (is_array($dpArray)) {
+            $this -> xmlw -> startElement('section');
+            $this -> xmlw -> writeAttribute('name', 'dialplan');
+            $this -> xmlw -> writeAttribute('description', 'FreeSWITCH Dialplan');
             //$this -> comment('dpArray is an array');
             foreach ($dpArray as $context => $extensions_array) {
                 //$this -> comment($context);
@@ -121,6 +124,8 @@
                 // </context>
                 $this -> xmlw -> endElement();
             }
+            // </section>
+            $this -> xmlw -> endElement();
         }
     }
 }



More information about the Freeswitch-svn mailing list