Patch for chan_cellphone is (c) 2007 Nikolaus Hammler http://www.nobaq.net Licensed under GNU GPL Big fat Warning! This is ONLY a test! Don't expect it to work! It do not have the time to occupy me with the patch right now Short README ============ This really small patch was made in approx. 3 hours for version 13 [1] of chan_cellphone! The patch compiled without warnings and I did a small test. Asterisk loaded successfully and I could successfully connect my mobile phone! But I did not have the time for excessive testing yet! For applying it to to version 13 you needed the 1.2 source tree. (I used apt-get source asterisk-bristuff from backports) In the meantine, version 14 [2] is out. I just did modify the patch to also compile here and apply here! I did NOT test version 14 with Asterisk 1.2! If you are happy with version 14 of the patch, you can just call $ make It will generate a chan_cellphone.so that you can copy to /usr/lib/asterisk/modules. Good luck! Niki Short TODO to try to apply to future versions ============================================= chan_cellphone developes very fast. So you might to try to apply the backport patch to future versions. You can try it with this tutorial. Requirements ------------ - Asterisk sourcetree should not be required any more! - chan_cellphone patch. Get it from [3]. This patch applys for the latest version 14-1.4.1. You could try if it will work for future versions. - A few UNIX commandline knowledge - libbluetooth1, libbluetooth1-dev, make, gcc, Asterisk, ... Getting the patch ------------------- First, please get the patch from [3]: $ mkdir chan_cellphone; cd chan_cellphone $ wget 'http://bugs.digium.com/file_download.php?file_id=13298&type=bug' $ mv 'file_download.php?file_id=13298&type=bug' chan_cellphone-14-1.4.1.patch.gz $ gunzip chan_cellphone-14-1.4.1.patch.gz Try: $ patch --dry-run -p0 < chan_cellphone-14-1.4.1.patch The --dry-run is the important switch! It actually does not modify anything. You will get an error message now. Quit with CTRL+C Modifying the patch ------------------- Please search for the following lines and delete everything from this line (including the line itself) UNTIL the next line that begins with 'diff'. I recommend an editor that uses syntax highlighting for diff-files, e.g. Midnight Commanders mcedit. diff -Nur asterisk-1.4.1/menuselect-deps.in asterisk-1.4.1-patched/menuselect-deps.in diff -Nur asterisk-1.4.1/configure asterisk-1.4.1-patched/configure diff -Nur asterisk-1.4.1/configure.ac asterisk-1.4.1-patched/configure.ac diff -Nur asterisk-1.4.1/include/asterisk/autoconfig.h.in asterisk-1.4.1-patched/include/asterisk/autoconfig.h.in diff -Nur asterisk-1.4.1/makeopts.in asterisk-1.4.1-patched/makeopts.in Try if the patch applies: $ patch --dry-run -p0 < chan_cellphone-14-1.4.1.patch If there is no error message any more, remove the '--dry-run' switch: $ patch -p0 < chan_cellphone-14-1.4.1.patch You will find a directory asterisk-1.4.1 containing the patch in the current directory. In the subdir there is channels/chan_cellphone.c Applying the backport patch --------------------------- Now you will need to patch this the chan_cellphone.c file. Copy it to the this directory (that also contains the Makefile) overwriting my existing chan_cellphone.c! Now apply my patch: $ patch -p0 < chan_cellphone-backport.patch If there are no errors, it should compile successfully! Just try it by typing "make". Otherwise: Sorry. You are welcome to fix the error and share the solution with me. [1] http://bugs.digium.com/file_download.php?file_id=13238&type=bug [2] http://bugs.digium.com/file_download.php?file_id=13298&type=bug [3] http://bugs.digium.com/view.php?id=8919