Displaying 2 results from an estimated 2 matches for "sip_array".
2008 Jan 25
0
Script for seeding polycom phones with an extension directory
...o: php scriptname >
/home/polycom/000000000000-directory.xml.
<?
header("Content-type: text/xml");
header("Connection: close");
header("Expires: -1");
// location of asterisk config files
$location = "/etc/asterisk/";
// parse sip.conf
$sip_array = parse_ini_file($location."sip.conf", true);
while ($v = current($sip_array))
{ if (isset($v['name']))
{ $directory[] = "<fn>". $v['name']."</fn>\n".
"<ct>".key($sip_array)."</ct>\n";
}
next($sip_ar...
2007 Jul 12
0
No subject
...;<br>
header("Expires: -1");<br>
<br>
// location of asterisk config files<br>
$location =3D "/etc/asterisk/";<br>
$dirname =3D "MISD Directory";<br>
<br>
// parse sip.conf<br>
$sip_array =3D parse_ini_file($location."sip.conf", true);<br>
while ($v =3D current($sip_array))<br>
{ if (isset($v['name']))<br>
{ $directory[] =3D "<Name>".
$v['name']."</Name>\n".<br>...