Difference between revisions of "OpenBTS: SMS"

From OnnoWiki
Jump to navigation Jump to search
Line 1: Line 1:
Smqueue is an RFC-3428 store and forward server, used to support SMS in OpenBTS installations. Smqueue runs alongside Asterisk to provide SMS routing service. Smqueue is distributed with OpenBTS releases 2.5 and later. It uses parts of the OpenBTS source code, but has very different build dependencies and may be run on a different machine than the one used to run OpenBTS. Because of these different build and installation requirements, smqueue is not part of the normal GNU build process for the rest of the OpenBTS application.
+
Smqueue adalah RFC-3428 store and forward server, digunakan untuk mendukung SMS di instalasi OpenBTS. Smqueue bersama Asterisk memberikan layanan SMS routing. Smqueue di distribusikan di OpenBTS releases 2.5 dan selanjutnya. Smqueue menggunakan sebagian dari source code OpenBTS, tapi mempunyai dependensi yang sangat berbeda dan dapat di jalankan di mesin yang berbeda dari mesin OpenBTS itu sendiri. Karena perbedaan ini, smqueue bukan merupakan bagian normal dari aplikasi OpenBTS.
  
 
To build smqueue, go to the smqueue directory and type "make -f Makefile.standalone". That's it. You do not have to run the OpenBTS configure script to do this. If you get build errors, it is probably due to having an out-of-date osip2 installation. You need osip2 release 3.3 or later.
 
To build smqueue, go to the smqueue directory and type "make -f Makefile.standalone". That's it. You do not have to run the OpenBTS configure script to do this. If you get build errors, it is probably due to having an out-of-date osip2 installation. You need osip2 release 3.3 or later.

Revision as of 15:11, 5 May 2011

Smqueue adalah RFC-3428 store and forward server, digunakan untuk mendukung SMS di instalasi OpenBTS. Smqueue bersama Asterisk memberikan layanan SMS routing. Smqueue di distribusikan di OpenBTS releases 2.5 dan selanjutnya. Smqueue menggunakan sebagian dari source code OpenBTS, tapi mempunyai dependensi yang sangat berbeda dan dapat di jalankan di mesin yang berbeda dari mesin OpenBTS itu sendiri. Karena perbedaan ini, smqueue bukan merupakan bagian normal dari aplikasi OpenBTS.

To build smqueue, go to the smqueue directory and type "make -f Makefile.standalone". That's it. You do not have to run the OpenBTS configure script to do this. If you get build errors, it is probably due to having an out-of-date osip2 installation. You need osip2 release 3.3 or later.

There are known compilation errors if you use g++ >4.3. Set g++-4.3 in makefile and it should compile ok.

As of release 2.5, smqueue uses the Asterisk SIP registry for address resolution and message routing. Therefore smqueue must be run as root and must run on the same machine as your Asterisk server.

The original version of smqueue was written by John Gilmore and used for the experimental SMS system at Burning Man 2009.


Hacking smqueue

smqueue masih belum sempurna perlu edit file

cd /usr/local/src/openbts-2.6.0Mamou/smqueue
vi smqueue.cpp 

Tambahkan IMSI yang ada di /etc/asterisk/sip.conf ke tabel smqueue.cpp

/* ==== FIXME KLUDGE ====
 * Table of IMSIs and phone numbers, for translation.
 * This is only for test-bench use.  Real life uses the Home  Location
 * Register (../HLR), currently implemented via Asterisk.
 */
static
struct imsi_phone { char imsi[4+15+1]; char phone[1+15+1]; } 
imsi_phone[] = {
        {"IMSI666410186585295", "+17074700741"},        /* Nokia 8890 */
        {"IMSI777100223456161", "+17074700746"},        /* Palm Treo */
        {"IMSI510110301694405", "2101"},        /* Bob */
        {"IMSI238209700014858", "2102"},        /* SB */
        {"IMSI310260254136340", "2103"},        /* Steve */
        {"IMSI520189606386106", "2104"},
        {{0}, {0}}
};


Compile ulang smqueue

cd /usr/local/src/openbts-2.6.0Mamou/smqueue/
make -f Makefile.standalone

Referensi

Pranala Menarik