<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CROESNET.EU</title>
	<atom:link href="http://croesnet.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://croesnet.eu</link>
	<description>my experimental site</description>
	<lastBuildDate>Wed, 14 Apr 2010 11:33:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Bridging PPPOE with Fritzbox and Belgacom B-Box2</title>
		<link>http://croesnet.eu/trixbox/bridging-pppoe-with-fritzbox-and-belgacom-b-box2/</link>
		<comments>http://croesnet.eu/trixbox/bridging-pppoe-with-fritzbox-and-belgacom-b-box2/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 19:34:30 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=212</guid>
		<description><![CDATA[Since about two weeks I have a VDSL connection in addition to an ADSL which will be terminated next month. While I do enjoy the bandwidth increase, I quickly discovered that the router which comes with the new subscription does not offer the same functionality as I used to have. VDSL in Belgium comes by [...]]]></description>
			<content:encoded><![CDATA[<p>Since about two weeks I have a VDSL connection in addition to an ADSL which will be terminated next month. While I do enjoy the bandwidth increase, I quickly discovered that the router which comes with the new subscription does not offer the same functionality as I used to have.<br />
VDSL in Belgium comes by default with a so called B-Box2, a Sagem Webr@cer 3464 rebranded by Belgacom, running a customized Belgacom firmware.<br />
With some hidden command this router offers some basic functionality including dyndns, port-forwarding, but features like VPN are missing.</p>
<p>To overcome these limitations, I decided to start using my AVM Fritzbox 7170 router again, and just use the B-Box2 as a bridge. It proved more challenging than I expected, but I succeeded. Below the step you have to perform to make this to work.<span style="text-decoration: underline;"><strong> </strong></span></p>
<p><span style="text-decoration: underline;"><strong>Belgacom B-Box / Sagem 3464 in Bridge mode:</strong></span></p>
<p><strong> </strong></p>
<p><strong> </strong>Firstly, start with the basic steps to configure the B-Box2 for operating in bridge mode. Doing more with less is the trick here. Rather than adding special configuration, it turns out the modem is already supporting bridged PPPOE traffic straight out of the box. I just decided to strip some unnecessary configuration to avoid problem;</p>
<ol>
<li>Disable wireless</li>
<li>Disable the voip wan interface</li>
</ol>
<p>Below are some screenshots of the steps to take on a factory default box</p>

<div class="ngg-galleryoverview" id="ngg-gallery-1-212">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://croesnet.eu/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=1&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/sagem-bbox2/01-fresh-start.png" title=" " class="shutterset_set_1" >
								<img title="01-fresh-start" alt="01-fresh-start" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_01-fresh-start.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/sagem-bbox2/02-disable-wireless.png" title=" " class="shutterset_set_1" >
								<img title="02-disable-wireless" alt="02-disable-wireless" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_02-disable-wireless.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-3" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/sagem-bbox2/03-network-interfaces.png" title=" " class="shutterset_set_1" >
								<img title="03-network-interfaces" alt="03-network-interfaces" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_03-network-interfaces.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-4" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/sagem-bbox2/04-disable-voip-wan.png" title=" " class="shutterset_set_1" >
								<img title="04-disable-voip-wan" alt="04-disable-voip-wan" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_04-disable-voip-wan.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-5" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/sagem-bbox2/05-status.png" title=" " class="shutterset_set_1" >
								<img title="05-status" alt="05-status" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_05-status.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p><span style="text-decoration: underline;"><strong>Reconfigure the Fritzbox 7170:</strong></span></p>
<p>The re-configuration of the Fritzbox is more tricky. To be able to establish a PPPOE connection to your ISP (in my case EDPNET), it is necessary that the router is able to send PPPOE encapsulated packets out of the LAN interface, with a VLAN tag. The VLAN tagging is required for VDSL and is only possible after some configuration tweaks. By default, a fritzbox is able to use the LAN0 interface as pseudo WAN port, however this is normally without VLAN tagging. Your PPPOE requests will time out without response if they are not send with the correct VLAN tagging, in case of EDPNET (and probably Belgacom as well) VLAN ID=10.</p>
<p>I also learned that it is not possible with every firmware version. I was succesful with 29.04.70. Newer firmware versions did cause some problems.</p>
<p>To add VLAN tagging to the IP packets, the following changes need to be made to the ar7.cfg file (in /var/flash). First enable telnet (dial #96*7* from a phone connected to one of the analog or ISDN ports). Telnet into the box, and edit ar7.cfg using the build in <strong>nvi</strong> editor.</p>
<p>Change / add the following:</p>
<p>Insert the below code, in between the existing piece of code in grey:</p>
<pre>       vccs {
                VPI = 1;
                VCI = 32;
                traffic_class = atm_traffic_class_UBR;
                pcr = 0;
                scr = 0;
                priority = 0;
                dsl_encap = dslencap_pppoe;
<span style="color: #0000ff;"><strong>                vlancfg {
                            vlanencap = vlanencap_class_prio;
                            vlanid = 10;
                            vlanprio = 1;
                           }
</strong></span>               ipbridgeing = no;
               ipbridgeing_igmp = no;
               pppoeforwarding = no;
               connections = "internet", "voip";
        }</pre>
<p>Change the following parameters from no to yes:</p>
<pre>enabled = yes;
name = "internet";
dsl_encap = dslencap_inherit;
dslinterfacename = "dsl";
no_masquerading = no;
no_firewall = no;
pppoevlanauto = <strong><span style="color: #0000ff;">yes</span></strong>;
pppoevlanauto_startwithvlan = <strong><span style="color: #0000ff;">yes</span></strong>;
ppptarget = "internet";</pre>
<p>and</p>
<pre>enabled = yes;
name = "voip";
dsl_encap = dslencap_inherit;
dslinterfacename = "dsl";
no_masquerading = no;
no_firewall = no;
pppoevlanauto = <strong><span style="color: #0000ff;">yes</span></strong>;
pppoevlanauto_startwithvlan = <strong><span style="color: #0000ff;">yes</span></strong>;
ppptarget = "voip";</pre>
<p>The code pppoevlanauto and pppoevlanauto_startwithvlan appears twice in the config.<br />
Lastly, change the default VLAN ID from 7 to 10:</p>
<pre>manual_speed = no;
connect_delay_when_synced = 3s;
sync_lost_delay = 0w;
default_tcom_vlan = <strong><span style="color: #0000ff;">10</span></strong>;</pre>
<p>After this, it&#8217;s just a matter of using the GUI to configure LAN0 as WAN interface, with PPPOE. Screenshots below:</p>

<div class="ngg-galleryoverview" id="ngg-gallery-2-212">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://croesnet.eu/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=2&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-6" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/fritzbox-internet/01-expert-mode.png" title=" " class="shutterset_set_2" >
								<img title="01-expert-mode" alt="01-expert-mode" src="http://croesnet.eu/wp-content/gallery/fritzbox-internet/thumbs/thumbs_01-expert-mode.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-7" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://croesnet.eu/wp-content/gallery/fritzbox-internet/02-internet-interface.png" title=" " class="shutterset_set_2" >
								<img title="02-internet-interface" alt="02-internet-interface" src="http://croesnet.eu/wp-content/gallery/fritzbox-internet/thumbs/thumbs_02-internet-interface.png" width="78" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/bridging-pppoe-with-fritzbox-and-belgacom-b-box2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Trixbox behind Fritzbox</title>
		<link>http://croesnet.eu/trixbox/trixbox-behind-fritzbox/</link>
		<comments>http://croesnet.eu/trixbox/trixbox-behind-fritzbox/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:48:50 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=199</guid>
		<description><![CDATA[As of today I&#8217;ve replaced my Netgear DG835GB routers, by two identical Fritzbox models 7170. I had to do this, because the Netgear model was not supported for a migration to the &#8220;1und1 Komplettanschluss&#8221;. I already had replaced the remote end, but because of not being able to establish a VPN between a Netgear and [...]]]></description>
			<content:encoded><![CDATA[<p>As of today I&#8217;ve replaced my Netgear DG835GB routers, by two identical Fritzbox models 7170. I had to do this, because the Netgear model was not supported for a migration to the &#8220;1und1 Komplettanschluss&#8221;. I already had replaced the remote end, but because of not being able to establish a VPN between a Netgear and a Frtizbox, I now replaced the central site router as well.<br />
Given that this one has the Trixbox behind it, as expected, it brought some challenges.</p>
<p>Out of the box, Asterisk is registering with external SIP providers via UDP port 5060. Traffic received by the fritzbox using UDP port 5060 is not passed on to devices behind the Fritzbox, because being considered for the Fritzbox itself.<br />
Trying to setup port forwarding on the Fritzbox for UDP port 5060 gives the following error &#8220;FEHLER: Eintrag kollidiert mit interner Regel&#8221;.</p>
<p>Another solution found on the web suggests to change the port or bindport in sip.conf on the Asterisk server, to a different value than the default 5060. I tried this, including setting up port-forwarding on the router. My trixbox registered now correctly with the various SIP providers I&#8217;m using, but my internal extension failed to register correctly.</p>
<p>The solution turned out to be a modification in the fritzbox. I&#8217;m using software version 29.04.76.<br />
First of all, you need to make sure telnet access is enabled.</p>
<p>I made the following modifications (using nvi):</p>
<p>In file <strong>/var/flash/voip.cfg</strong> change:
<pre>"sip_srcport = 5060;"</pre>
<p> to
<pre>"sip_srcport = 5061;"</pre>
<p>In file <strong>/var/flash/ar7.cfg</strong> :
<pre>
                        forwardrules = "tcp 0.0.0.0:443 0.0.0.0:443 0",
                                       "udp 0.0.0.0:5060 0.0.0.0:5060",</pre>
<p>to
<pre>
                        forwardrules = "tcp 0.0.0.0:443 0.0.0.0:443 0",
                                       "udp 0.0.0.0:5060 192.168.1.3:5060",</pre>
<p>192.168.1.3 being the IP address of my Asterisk/Trixbox.</p>
<p><strong>Note that it is important to use the editor nvi on the fritzbox to edit the config files</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/trixbox-behind-fritzbox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>7941/7961 dialplan</title>
		<link>http://croesnet.eu/trixbox/79417961-dialplan/</link>
		<comments>http://croesnet.eu/trixbox/79417961-dialplan/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:02:54 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=191</guid>
		<description><![CDATA[After a bit of googling, I managed to find a way to reduce the annoying delay when dialing from on of the 7941 phones in my network. Where the 7960&#8242;s immediatly send the outgoing call after pushing the # key, I had a long delay on the 7941 phones. I found the solution in changing [...]]]></description>
			<content:encoded><![CDATA[<p>After a bit of googling, I managed to find a way to reduce the annoying delay when dialing from on of the 7941 phones in my network. Where the 7960&#8242;s immediatly send the outgoing call after pushing the # key, I had a long delay on the 7941 phones.<br />
I found the solution in changing the dialplan file.<br />
Using the below code did the trick. Pushing # sends the dialstring immediatly. Just waiting results in the call being placed 4 seconds after pushing the last button.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;DIALTEMPLATE<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;TEMPLATE</span> <span style="color: #000066;">MATCH</span>=<span style="color: #ff0000;">&quot;*&quot;</span> <span style="color: #000066;">TIMEOUT</span>=<span style="color: #ff0000;">&quot;4&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/DIALTEMPLATE<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/79417961-dialplan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ldap directory for Cisco 7941 / 7961 IP Phones</title>
		<link>http://croesnet.eu/trixbox/ldap-directory-for-cisco-7941-7961-ip-phones/</link>
		<comments>http://croesnet.eu/trixbox/ldap-directory-for-cisco-7941-7961-ip-phones/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 20:37:15 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=166</guid>
		<description><![CDATA[Since a few weeks I&#8217;m having a few Cisco 7941 IP Phones. Although they look pretty similar to the 7940 models, it turns out configuring them is totally different. Once provisioned and registered, I discovered that the ldap directory script I use for the 7960 phone didn&#8217;t work any longer. I finally found a solution [...]]]></description>
			<content:encoded><![CDATA[<p>Since a few weeks I&#8217;m having a few Cisco 7941 IP Phones. Although they look pretty similar to the 7940 models, it turns out configuring them is totally different.<br />
Once provisioned and registered, I discovered that the ldap directory script I use for the 7960 phone didn&#8217;t work any longer.</p>
<p>I finally found a solution for this problem today, by just using some of the code from the pre-installed Trixbox xmlservices scripts.</p>
<p>Rather than using the original directory.php script, I now use the below updated SearchDirectory.php script, and renamed it to ldapSearchDirectory.php.</p>
<p>ldapSearchDirectory.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Copyright (C) 2006 Fonality Inc. (fonality.com)</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//This program is free software; you can redistribute it and/or</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//modify it under the terms of the GNU General Public License</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//as published by the Free Software Foundation; either version 2</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//of the License, or (at your option) any later version.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//This program is distributed in the hope that it will be useful,</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//GNU General Public License for more details.</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/libs/Smarty.class.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$smarty</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Smarty<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/include/xmlservices_libs.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/include/xmlservices_config.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">compile_check</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// $smarty-&gt;debugging = true; </span>
&nbsp;
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PageTitle'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Search by last name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Prompt'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'Enter the first few letters'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'ldapsearchDirectory_'</span><span style="color: #339933;">.</span><span style="color: #000088;">$content_format</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.tpl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>ldapsearchDirectory_ciscoxml4.tpl in the templates directory looks like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;CiscoIPPhoneInput<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>{$PageTitle}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Prompt<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>{$Prompt}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/Prompt<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;URL<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>{$Server}/result.php<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/URL<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;InputItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;DisplayName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Filter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/DisplayName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;QueryStringParam<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>filter<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/QueryStringParam<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;DefaultValue<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/DefaultValue<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;InputFlags<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>A<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/InputFlags<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/InputItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/CiscoIPPhoneInput<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<p>Lastly, the result.php script has been updated a little:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #666666; font-style: italic;">// This XML-PHP page searches contacts in LDAP and display it on CISCO directory service </span>
<span style="color: #666666; font-style: italic;">// Script Provided by Gael Marronnier From Simstream Company www.simstream.com gael_asterisk@simstream.com</span>
<span style="color: #666666; font-style: italic;">// Modified by Arnaud Croes (arnaud@croesnet.eu) to make it work properly in a 3CX environment</span>
<span style="color: #666666; font-style: italic;">// </span>
<span style="color: #666666; font-style: italic;">// Get parameter from directory script</span>
&nbsp;
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/libs/Smarty.class.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$smarty</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Smarty<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/include/xmlservices_libs.php'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">require</span> <span style="color: #0000ff;">'/var/www/html/xmlservices/include/xmlservices_config.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$directoryRowCount</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">30</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">compile_check</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//$smarty-&gt;debugging = true; </span>
&nbsp;
<span style="color: #666666; font-style: italic;"># This sets the offset for the LIMIT portion of the query
</span><span style="color: #000088;">$NextStartingRow</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'NextGroup'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #000088;">$directoryRowCount</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$filter</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;filter&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">// LDAP server characteristics </span>
<span style="color: #000088;">$ds</span><span style="color: #339933;">=</span><span style="color: #990000;">ldap_connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;192.168.1.2&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">ldap_set_option</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #339933;">,</span>LDAP_OPT_PROTOCOL_VERSION<span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Using LDAP v3&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Failed to set version to protocol 3&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$myldap</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ou=addressbook,dc=croesnet,dc=eu&quot;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">// Phone entries on my LDAP server are in the format +1 (800) 5551234, the way outlook likes it.</span>
<span style="color: #666666; font-style: italic;">// Names on the server (cn) are not supposed to have special characters like &amp;</span>
<span style="color: #666666; font-style: italic;">// The script replaces the + by 00 , because 3CX doesn't like the + character in the dial string.</span>
<span style="color: #666666; font-style: italic;">// Also removing space, ( and ) characters.</span>
<span style="color: #666666; font-style: italic;">// Removing the ( and ) characters is just cosmetic, they do not cause functionality problems.</span>
<span style="color: #666666; font-style: italic;">// Phone number format change variables</span>
<span style="color: #000088;">$patterns</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\+/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$patterns</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'/\(|\)|-|\s+/'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replacements</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'00'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replacements</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
  <span style="color: #000088;">$r</span><span style="color: #339933;">=</span><span style="color: #990000;">ldap_bind</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #000088;">$filterldap</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;(|(givenname=*&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;*)(sn=*&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;*)(cn=*&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;*)(mail=*&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$filter</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;*))&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$sr</span><span style="color: #339933;">=</span><span style="color: #990000;">ldap_search</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #339933;">,</span> <span style="color: #000088;">$myldap</span><span style="color: #339933;">,</span> <span style="color: #000088;">$filterldap</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #666666; font-style: italic;">// Lets start displaying XML infos </span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;CiscoIPPhoneDirectory&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Title&gt;IP Telephony Directory&lt;/Title&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
  <span style="color: #000088;">$info</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ldap_get_entries</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #339933;">,</span> <span style="color: #000088;">$sr</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Prompt&gt;&quot;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot; Reachable person(s)&lt;/Prompt&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;count&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mobile&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Name&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">iconv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;ISO-8859-1&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;cn&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (mobile)&lt;/Name&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Telephone&gt;&quot;</span> <span style="color: #339933;">.</span><span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$patterns</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replacements</span><span style="color: #339933;">,</span> <span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;mobile&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/Telephone&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #009900;">&#125;</span> 
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;homephone&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Name&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">iconv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;ISO-8859-1&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;cn&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (home)&lt;/Name&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Telephone&gt;&quot;</span> <span style="color: #339933;">.</span><span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$patterns</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replacements</span><span style="color: #339933;">,</span> <span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;homephone&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/Telephone&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #009900;">&#125;</span> 
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;telephonenumber&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Name&gt;&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">iconv</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;UTF-8&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;ISO-8859-1&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;cn&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot; (business)&lt;/Name&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;Telephone&gt;&quot;</span> <span style="color: #339933;">.</span><span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$patterns</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replacements</span><span style="color: #339933;">,</span> <span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;telephonenumber&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&lt;/Telephone&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/DirectoryEntry&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> 
     <span style="color: #009900;">&#125;</span> 
   <span style="color: #009900;">&#125;</span> 
   <span style="color: #b1b100;">echo</span><span style="color: #0000ff;">&quot;&lt;/CiscoIPPhoneDirectory&gt;&quot;</span><span style="color: #339933;">;</span> 
   <span style="color: #990000;">ldap_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ds</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/ldap-directory-for-cisco-7941-7961-ip-phones/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using Cisco 7941 phones</title>
		<link>http://croesnet.eu/trixbox/using-cisco-7941-phones/</link>
		<comments>http://croesnet.eu/trixbox/using-cisco-7941-phones/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 12:14:47 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=148</guid>
		<description><![CDATA[First of all, I had to upgrade my phones to a SIP image. This requires a factory default reset on the phone. Step 1 Unplug the power cable from the phone and then plug it back in. The phone begins its power up cycle. Step 2 Immediately press and hold # while the Headset, Mute, [...]]]></description>
			<content:encoded><![CDATA[<p>First of all, I had to upgrade my phones to a SIP image. This requires a factory default reset on the phone.</p>
<p>Step 1 Unplug the power cable from the phone and then plug it back in.<br />
The phone begins its power up cycle.</p>
<p>Step 2 Immediately press and hold # while the Headset, Mute, and Speaker buttons turn<br />
on and off in sequence.<br />
Release # after the Speaker button turns off.<br />
The Headset, Mute, and Speaker buttons flash in sequence to indicate that the<br />
phone is waiting for you to enter the key sequence for the reset.</p>
<p>Step 3 Press 123456789*0# within 60 seconds after the Headset, Mute, and Speaker<br />
buttons begin to flash.<br />
If you repeat a key within the sequence (for example, if you press<br />
1223456789*0#), the sequence will still be accepted and the phone will reset.<br />
If you do not complete this key sequence or do not press any keys, the Headset,<br />
Mute, and Speaker buttons will stop flashing after 60 seconds and the phone will<br />
continue with its normal startup process. The phone will not reset.<br />
If you enter an invalid key sequence, the buttons will stop flashing immediately<br />
and the phone will continue with its normal startup process. The phone will not<br />
reset.<br />
If you enter this key sequence correctly, the phone displays this prompt:<br />
Keep network cfg? 1 = yes 2 = no</p>
<p>Step 4 To maintain existing network configuration settings for the phone when the phone<br />
resets, press 1. To reset network configuration settings when the phone resets,<br />
press 2.<br />
If you press another key or do not respond to this prompt within 60 seconds, the<br />
will continue with its normal startup process and will not reset.<br />
Otherwise, the phone goes through the factory reset process.</p>
<p>(thanks to <a href="http://www.tek-tips.com/viewthread.cfm?qid=1316949&amp;page=1">http://www.tek-tips.com/viewthread.cfm?qid=1316949&amp;page=1</a>)</p>
<p>Not sure whether this ia a Cisco issue, or a problem on my NSLU2 tftpd server, but I had to change the xml config file attributes:</p>
<pre>
chmod 777 SEPmacaddr.cnf.xml
chown nobody:nobody SEPmacaddr.cnf.xml
</pre>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/using-cisco-7941-phones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freeconet Poland</title>
		<link>http://croesnet.eu/trixbox/freeconet-poland/</link>
		<comments>http://croesnet.eu/trixbox/freeconet-poland/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 11:47:09 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=143</guid>
		<description><![CDATA[I just ordered an extra number to my Freeconet account. This Polish VOIP provider has a user friendly web-interface for account management, available in English. I use them mainly for inbound calls, but occasionally make outbound calls to Poland via them as well. Especially for calls to mobile phones they have very sharp prices. With [...]]]></description>
			<content:encoded><![CDATA[<p>I just ordered an extra number to my <a href="http://www.freeconet.pl/en">Freeconet </a>account. This Polish VOIP provider has a user friendly web-interface for account management, available in English.<br />
I use them mainly for inbound calls, but occasionally make outbound calls to Poland via them as well. Especially for calls to mobile phones they have very sharp prices.<br />
With over a year of experience with them now, I can say that I&#8217;m very happy with the service.<br />
The extra number I just ordered (all online, available instantly) I will use over a separate trunk, with inbound call routing to a special extension.<br />
I didn&#8217;t manage to have both DID arrive over the same trunk, and have the correct inbound routes configured. Probably lack of knowledge from my site. Anyway, two parallel trunks seems to work just fine.</p>
<p>The trunk config and registration is straight forward.</p>
<p>Trunkname: <strong>1und1</strong></p>
<p>Peer details:</p>
<pre>host=sip.freeconet.pl
username=userid
secret=password
type=friend
dtmfmode=rfc2833
nat=yes
canreinvite=no
fromdomain=sip.freeconet.pl
insecure=very
qualify=yes
disallow=all
allow=alaw&#038;ulaw
</pre>
<p>Register String:</p>
<pre>userid:password@sip.freeconet.pl/48phonenumber
</pre>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/freeconet-poland/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weepee telecom</title>
		<link>http://croesnet.eu/trixbox/weepee-telecom/</link>
		<comments>http://croesnet.eu/trixbox/weepee-telecom/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 22:54:13 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=132</guid>
		<description><![CDATA[Today I discovered Weepee, and decided to register with them, and give their service a try. They offer local numbers in Belgium for a one time fee of only 9 Euro. No minimum call-volume or credit usage requirements. Although I&#8217;m happy with the service provided by IPness for my Belgium phone numbers, I think I&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>Today I discovered <a href="http://weepee-telecom.eu">Weepee</a>, and decided to register with them, and give their service a try.<br />
They offer local numbers in Belgium for a one time fee of only 9 Euro. No minimum call-volume or credit usage requirements.<br />
Although I&#8217;m happy with the service provided by IPness for my Belgium phone numbers, I think I&#8217;ll move those numbers over (once I fully used my credit). IP-Ness expects a call volume with a value of 15 Euros every quarter as minimum usage. When your usage is below this volume, 15 Euro is charged anyway.<br />
With only limited outbound volume via them, I sometimes end up just paying for the service, rather than the usage. I do use the numbers for inbound traffic though.</p>
<p>Because of their pricing structure, Weepee seems a good alternative.<br />
Registration for an account and ordering of a number goes very smooth. The process, including the fax confirmation for ordering your numbers is fully automated. I did this all at 23:00 CET.</p>
<p>Setting up the trunk in the trixbox also worked without any problems.</p>
<p>Trunkname: <strong>Weepee</strong></p>
<p>Peer details:</p>
<pre>type=friend
host=ssw5.weepee.org
canreinvite=no
username=32userid
fromuser=32userid
fromdomain=weepee.org
secret=password
disallow=all
nat=yes
insecure=very
qualify=yes
allow=alaw&#038;ulaw
</pre>
<p>Register String:</p>
<pre>32userid:password@ssw5.weepee.org/32userid
</pre>
<p>After signing up for the SIP-trunk account with 2 numbers, I immediately opened a fax service account as well. Works very well.<br />
If you do the registration and number orderingprocess quickly after eachother, chances are high that you get sequential numbers.</p>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/weepee-telecom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>1und1 Deutschland</title>
		<link>http://croesnet.eu/trixbox/1und1-deutschland/</link>
		<comments>http://croesnet.eu/trixbox/1und1-deutschland/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 17:12:27 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Trixbox]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=137</guid>
		<description><![CDATA[Because I use 1und1 as my ISP in Germany, I can also use their VOIP offering. I don&#8217;t think it is available for people who don&#8217;t have DSL provided by them. Configuring a 1und1.de SIP trunk, and correctly register it, is a bit tricky. Where all the other provides I use can be configured completely [...]]]></description>
			<content:encoded><![CDATA[<p>Because I use 1und1 as my ISP in Germany, I can also use their VOIP offering. I don&#8217;t think it is available for people who don&#8217;t have DSL provided by them.</p>
<p>Configuring a 1und1.de SIP trunk, and correctly register it, is a bit tricky. Where all the other provides I use can be configured completely via the trunk configuration menu-option, the 1und1 trunk requires a tweak in the config files to make a registration possible.</p>
<p>Using the 1und1 client website configurator, you can configure your normal landline number for VOIP usage, but need to be aware that in this case you can only make outbound calls. 1und1 can not transfer inbound calls on your Telecom number back into VOIP.<br />
Using your landline number, just make it appear as caller-id on outbound calls. I use a fritzbox to transfer the incoming landline calls back into the trixbox.</p>
<p>Trunkname: <strong>1und1</strong></p>
<p>Peer details:</p>
<pre>disallow=all
host=sip.1und1.de
username=49userid
fromuser=49userid
secret=passwd
type=friend
qualify=yes
nat=yes
insecure=very
fromdomain=1und1.de
canreinvite=no
allow=alaw&amp;ulaw</pre>
<p>Register String:</p>
<pre>49userid:passwd@sip.1und1.de/49userid
</pre>
<p>To make registration work, it is necessary to add the following in your sip_general_custom.conf file, using the &#8220;config file editor&#8221; function:</p>
<pre>localnet=192.168.0.0/255.255.0.0
externhost=yourhost.dyndns.com
</pre>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/trixbox/1und1-deutschland/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coppermine Integration test</title>
		<link>http://croesnet.eu/test/cppermine-integration-test/</link>
		<comments>http://croesnet.eu/test/cppermine-integration-test/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 13:29:34 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=58</guid>
		<description><![CDATA[Besides CoppermineSC, this is another plugin for Coppermine integration. Testing it a well. The plugin itself can be found here. Seems to offer more functionality, but strugling a little to display a full album, with spaces between the thumbnails. One by one, it all looks fine, even has filename underneath the picture, but a complete [...]]]></description>
			<content:encoded><![CDATA[<p>Besides CoppermineSC, this is another plugin for Coppermine integration. Testing it a well.<br />
The plugin itself can be found <a href="https://blog.artworkz.net/?p=283" target="_blank">here</a>.<br />
Seems to offer more functionality, but strugling a little to display a full album, with spaces between the thumbnails. One by one, it all looks fine, even has filename underneath the picture, but a complete album shows up with the thumbnails directly attached to each other.</p>
<p>Testing the language
<pre>
<div class="ngg-albumoverview">	
	<!-- List of galleries -->
	
	<div class="ngg-album">
		<div class="ngg-albumtitle"><a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=1">sagem-bbox2</a></div>
			<div class="ngg-albumcontent">
				<div class="ngg-thumbnail">
					<a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=1"><img class="Thumb" alt="sagem-bbox2" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_05-status.png"/></a>
				</div>
				<div class="ngg-description">
				<p></p>
								<p><strong>5</strong> Photos</p>
							</div>
		</div>
	</div>

 	
	<div class="ngg-album">
		<div class="ngg-albumtitle"><a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=2">fritzbox-internet</a></div>
			<div class="ngg-albumcontent">
				<div class="ngg-thumbnail">
					<a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=2"><img class="Thumb" alt="fritzbox-internet" src="http://croesnet.eu/wp-content/gallery/fritzbox-internet/thumbs/thumbs_02-internet-interface.png"/></a>
				</div>
				<div class="ngg-description">
				<p></p>
								<p><strong>2</strong> Photos</p>
							</div>
		</div>
	</div>

 	 	
	<!-- Pagination -->
 	<div class="ngg-clear"></div> 	
</div>

</pre>

<div class="ngg-albumoverview">	
	<!-- List of galleries -->
	
	<div class="ngg-album">
		<div class="ngg-albumtitle"><a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=1">sagem-bbox2</a></div>
			<div class="ngg-albumcontent">
				<div class="ngg-thumbnail">
					<a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=1"><img class="Thumb" alt="sagem-bbox2" src="http://croesnet.eu/wp-content/gallery/sagem-bbox2/thumbs/thumbs_05-status.png"/></a>
				</div>
				<div class="ngg-description">
				<p></p>
								<p><strong>5</strong> Photos</p>
							</div>
		</div>
	</div>

 	
	<div class="ngg-album">
		<div class="ngg-albumtitle"><a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=2">fritzbox-internet</a></div>
			<div class="ngg-albumcontent">
				<div class="ngg-thumbnail">
					<a href="http://croesnet.eu/test/cppermine-integration-test/?album=all&amp;gallery=2"><img class="Thumb" alt="fritzbox-internet" src="http://croesnet.eu/wp-content/gallery/fritzbox-internet/thumbs/thumbs_02-internet-interface.png"/></a>
				</div>
				<div class="ngg-description">
				<p></p>
								<p><strong>2</strong> Photos</p>
							</div>
		</div>
	</div>

 	 	
	<!-- Pagination -->
 	<div class="ngg-clear"></div> 	
</div>

<br />
&#8230;..<br />
Testing the language
<pre>
<div class="ngg-galleryoverview" id="ngg-gallery--58">


	
	<!-- Thumbnails -->
	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

</pre>
<p>
<div class="ngg-galleryoverview" id="ngg-gallery--58">


	
	<!-- Thumbnails -->
	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

[thumb:2190:l]
<div class="ngg-galleryoverview" id="ngg-gallery--58">


	
	<!-- Thumbnails -->
	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

[thumb:2192:l]
<div class="ngg-galleryoverview" id="ngg-gallery--58">


	
	<!-- Thumbnails -->
	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

[thumb:2193:l]
<div class="ngg-galleryoverview" id="ngg-gallery--58">


	
	<!-- Thumbnails -->
	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>

[thumb:2195:l]
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/test/cppermine-integration-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CoppermineSC plugin test</title>
		<link>http://croesnet.eu/test/coppermine-plugin-test/</link>
		<comments>http://croesnet.eu/test/coppermine-plugin-test/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 09:47:16 +0000</pubDate>
		<dc:creator>Arnaud</dc:creator>
				<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://croesnet.eu/?p=54</guid>
		<description><![CDATA[testing the CoppermineSC plugin to see if the coppermine album (sitting on croes-album.de) will appear&#8230;. I managed to find a way to insert spaces between the thumbnails, by adding the below code to my style.css file /* ******************** */ /* CoppermineSC classes */ /* ******************** */ .cpg_albumthumbimage { float: left; margin-right: 7px; margin-bottom: 7px; } [...]]]></description>
			<content:encoded><![CDATA[<p>testing the <a href="http://www.rueplumet.com/plugins/copperminesc/" target="_blank">CoppermineSC</a> plugin to see if the coppermine album (sitting on croes-album.de) will appear&#8230;.</p>
<p>I managed to find a way to insert spaces between the thumbnails, by adding the below code to my style.css file</p>
<pre>/* ******************** */
/* CoppermineSC classes */
/* ******************** */

.cpg_albumthumbimage {
float: left;
margin-right: 7px;
margin-bottom: 7px;
}</pre>
<p>[cpg_album:85]</p>
]]></content:encoded>
			<wfw:commentRss>http://croesnet.eu/test/coppermine-plugin-test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
