Archive

Author Archive

Using Cisco 7941 phones

March 30th, 2009 No comments

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, and Speaker buttons turn
on and off in sequence.
Release # after the Speaker button turns off.
The Headset, Mute, and Speaker buttons flash in sequence to indicate that the
phone is waiting for you to enter the key sequence for the reset.

Step 3 Press 123456789*0# within 60 seconds after the Headset, Mute, and Speaker
buttons begin to flash.
If you repeat a key within the sequence (for example, if you press
1223456789*0#), the sequence will still be accepted and the phone will reset.
If you do not complete this key sequence or do not press any keys, the Headset,
Mute, and Speaker buttons will stop flashing after 60 seconds and the phone will
continue with its normal startup process. The phone will not reset.
If you enter an invalid key sequence, the buttons will stop flashing immediately
and the phone will continue with its normal startup process. The phone will not
reset.
If you enter this key sequence correctly, the phone displays this prompt:
Keep network cfg? 1 = yes 2 = no

Step 4 To maintain existing network configuration settings for the phone when the phone
resets, press 1. To reset network configuration settings when the phone resets,
press 2.
If you press another key or do not respond to this prompt within 60 seconds, the
will continue with its normal startup process and will not reset.
Otherwise, the phone goes through the factory reset process.

(thanks to http://www.tek-tips.com/viewthread.cfm?qid=1316949&page=1)

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:

chmod 777 SEPmacaddr.cnf.xml
chown nobody:nobody SEPmacaddr.cnf.xml
Categories: Trixbox Tags:

Freeconet Poland

March 30th, 2009 No comments

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 over a year of experience with them now, I can say that I’m very happy with the service.
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.
I didn’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.

The trunk config and registration is straight forward.

Trunkname: 1und1

Peer details:

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&ulaw

Register String:

userid:password@sip.freeconet.pl/48phonenumber
Categories: Trixbox Tags:

Weepee telecom

March 25th, 2009 No comments

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’m happy with the service provided by IPness for my Belgium phone numbers, I think I’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.
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.

Because of their pricing structure, Weepee seems a good alternative.
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.

Setting up the trunk in the trixbox also worked without any problems.

Trunkname: Weepee

Peer details:

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&ulaw

Register String:

32userid:password@ssw5.weepee.org/32userid

After signing up for the SIP-trunk account with 2 numbers, I immediately opened a fax service account as well. Works very well.
If you do the registration and number orderingprocess quickly after eachother, chances are high that you get sequential numbers.

Categories: Trixbox Tags:

1und1 Deutschland

February 24th, 2009 1 comment

Because I use 1und1 as my ISP in Germany, I can also use their VOIP offering. I don’t think it is available for people who don’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 via the trunk configuration menu-option, the 1und1 trunk requires a tweak in the config files to make a registration possible.

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.
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.

Trunkname: 1und1

Peer details:

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&ulaw

Register String:

49userid:passwd@sip.1und1.de/49userid

To make registration work, it is necessary to add the following in your sip_general_custom.conf file, using the “config file editor” function:

localnet=192.168.0.0/255.255.0.0
externhost=yourhost.dyndns.com
Categories: Trixbox Tags:

Coppermine Integration test

January 14th, 2009 1 comment

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 album shows up with the thumbnails directly attached to each other.

Testing the language




…..
Testing the language


Categories: Test Tags:

CoppermineSC plugin test

January 14th, 2009 No comments

testing the CoppermineSC plugin to see if the coppermine album (sitting on croes-album.de) will appear….

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;
}

[cpg_album:85]

Categories: Test Tags:

Luchtdoop

January 12th, 2009 No comments

Vandaag heb ik eindelijk de gelegenheid gekregen om mijn verjaardags cadeau aan te spreken. Ik heb de cadeaubon voor een ballonvaart kunnen gebruiken. Ondanks de kou is het erg mooi dit in de winter te doen, en door de lage luchttemperatuur is het ballonvaren zelf ook interessanter vanuit een technisch oogpunt. Voordeel is ook dat er minder gas nodig is om de ballon een temperatuurt bezorgen die iets hoger ligt dan de luchttemperatuur. In plaats van één uur konden we nu twee uur in de lucht blijven.

We waren met drie in het mandje, twee piloten en ik. Veel meer plaats is er ook niet, hoewel er theoretisch plaatst zou zijn voor 4 mensen. In de winter met allemaal dikke jassen zou dit toch wel erg krap zijn geweest.

Na afloop was er nog een officiele ceremonie, waarbij ik gedoopt werd, en de adelijke titel van graaf ontving. Dit is een grappig iets, met een interessante geschiedenis. Hierover zal ik nog wat deatils zoeken.

Meer foto’s zijn te vinden in het familie fotoalbum.

Categories: Fun Tags:

Glühweinparty

January 9th, 2009 No comments

— Just a test —–

Hi,

just like we did some years ago, we would like to organize a Glühweinparty again in Germany. Temperature is low at the moment, so ideal circumstances for such an event.

Please register yourself via the forum below

The event have ended - no more registrations are allowed.
Categories: Test Tags:

New start

January 8th, 2009 No comments

Started from scrtach today, using a fresh install of WordPress 2.7

Categories: Test Tags:

Ldap directory for Cisco 7940 / 7960 IP Phones

February 1st, 2008 8 comments

To avoid having to run multiple address-books on various PC’s, and still having to search for a number when making a phone call, I decided to build a central ldap server inside my network.
Although probably overkill in a home network, a central address book would allow me to read my contacts from every PC. And of course, while at this stage, it was desired to be able to read the database from the Cisco 7960 IP phones as well.
I found a script on the internet, orginally written by Gael Marronnier, and modified it to meet my needs.
Oringally my IP-PBX was 3CX server, where I ran the ldap server and the webserver all on the same platform. After migrating to Trixbox, I decided to run the ldap standalone, to not put to much pressure on my Trixbox (it’s only a small Flepo server).

Requirements to make this work:
1) Load the below scripts on your webserver
1a) Your webserver must have the ldap module loaded
2) Make sure your directory button on the Cisco phone points to the right URL:
SIPDefault.cnf

directory_url: "http://192.168.1.3/cisco/services/directory.php"

directory.php

1
2
3
4
5
6
7
8
9
10
11
<CiscoIPPhoneInput>
<Title>Addressbook</Title>
<Prompt>Prompt text.</Prompt>
<URL>http://192.168.1.3/cisco/services/result.php</URL>
<InputItem>
<DisplayName>Filter</DisplayName>
<QueryStringParam>filter</QueryStringParam>
<InputFlags></InputFlags>
<DefaultValue></DefaultValue>
</InputItem>
</CiscoIPPhoneInput>

result.php

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
<?php 
// This XML-PHP page searches contacts in LDAP and display it on CISCO directory service 
// Script Provided by Gael Marronnier From Simstream Company www.simstream.com gael_asterisk@simstream.com
// Modified by Arnaud Croes (arnaud@croesnet.eu) to make it work properly in a 3CX environment
// 
// Get parameter from directory script
$filter = $_REQUEST["filter"]; 
 
// LDAP server characteristics 
$ds=ldap_connect("192.168.1.2"); 
if (ldap_set_option($ds,LDAP_OPT_PROTOCOL_VERSION,3))
{
    echo "Using LDAP v3";
}else{
    echo "Failed to set version to protocol 3";
}
$myldap="ou=addressbook,dc=domain,dc=com"; 
 
// Phone entries on my LDAP server are in the format +1 (800) 5551234, the way outlook likes it.
// Names on the server (cn) are not supposed to have special characters like &
// The script replaces the + by 00 , because 3CX doesn't like the + character in the dial string.
// Also removing space, ( and ) characters.
// Removing the ( and ) characters is just cosmetic, they do not cause functionality problems.
// Phone number format change variables
$patterns[0] = '/\+/';
$patterns[1] = '/\(|\)|-|\s+/';
$replacements[0] = '00';
$replacements[1] = '';
 
if ($ds) { 
  $r=ldap_bind($ds); 
  $filterldap="(|(givenname=*".$filter."*)(sn=*".$filter."*)(cn=*".$filter."*)(mail=*".$filter."*))";
  $sr=ldap_search($ds, $myldap, $filterldap); 
  // Lets start displaying XML infos 
  echo "<CiscoIPPhoneDirectory>\n"; 
  echo "<Title>IP Telephony Directory</Title>\n"; 
  $info = ldap_get_entries($ds, $sr); 
  echo "<Prompt>"; 
  echo $info["count"]; 
  echo " Reachable person(s)</Prompt>\n"; 
  for ($i=0; $i<$info["count"]; $i++) {
     if ($info[$i]["mobile"][0]) { 
     echo "<DirectoryEntry>\n"; 
     echo "<Name>" . iconv("UTF-8","ISO-8859-1",$info[$i]["cn"][0]) . " (mobile)</Name>\n"; 
     echo "<Telephone>" .preg_replace($patterns, $replacements, $info[$i]["mobile"][0]) ."</Telephone>\n"; 
     echo "</DirectoryEntry>\n"; 
     } 
     if ($info[$i]["homephone"][0]) { 
     echo "<DirectoryEntry>\n"; 
     echo "<Name>" . iconv("UTF-8","ISO-8859-1",$info[$i]["cn"][0]) . " (home)</Name>\n"; 
     echo "<Telephone>" .preg_replace($patterns, $replacements, $info[$i]["homephone"][0]) ."</Telephone>\n"; 
     echo "</DirectoryEntry>\n"; 
     } 
     if ($info[$i]["telephonenumber"][0]) { 
     echo "<DirectoryEntry>\n"; 
     echo "<Name>" . iconv("UTF-8","ISO-8859-1",$info[$i]["cn"][0]) . " (business)</Name>\n"; 
     echo "<Telephone>" .preg_replace($patterns, $replacements, $info[$i]["telephonenumber"][0]) ."</Telephone>\n"; 
     echo "</DirectoryEntry>\n"; 
     } 
   } 
   echo "</CiscoIPPhoneDirectory>"; 
   ldap_close($ds); 
} else { 
  echo "error"; 
} 
 
?>
Categories: Trixbox Tags: