search for: sip_array

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(&quot;Expires: -1&quot;);<br> &nbsp;<br> // location of asterisk config files<br> $location =3D &quot;/etc/asterisk/&quot;;<br> $dirname =3D &quot;MISD Directory&quot;;<br> &nbsp;<br> // parse sip.conf<br> $sip_array =3D parse_ini_file($location.&quot;sip.conf&quot;, true);<br> while ($v =3D current($sip_array))<br> { if (isset($v['name']))<br> { $directory[] =3D &quot;&lt;Name&gt;&quot;. $v['name'].&quot;&lt;/Name&gt;\n&quot;.<br>...