Name | Modified | Size | Downloads / Week |
---|---|---|---|
0.0.1 | 2017-12-20 | ||
readme.md | 2017-12-24 | 2.0 kB | |
Totals: 2 Items | 2.0 kB | 0 |
- INTRODUCTION:
We are proud to announce the first release 0.0.1 version of kannel-asterisk integration project. The goal of this project is to allow asterisk users to use kannel capabilities like SMS sending and receiving. This version 0.0.1 includes an asterisk app module called app_mt.c which can be used from the dial plan to send SMS MT (mobile terminated).
- TECHNICAL DETAILS:
app_mt.c is an asterisk module (a dialplan app called mt) that uses kannel C API to connect to kannel bearerbox as an smsbox and send sms mt messages. It also integrates a thread for receiving ack's and delivery reports (dlr) from bearerbox.
- REQUIREMENTS:
- Asterisk source.
- Kannel compiled libs and header files (compilation of kannel is not covered here).
- SAMPLE CONFIG in app_mt.c:
- dflt_bb_host = 192.168.1.10
- dflt_bb_port = 13001
- dflt_bb_ssl = 0
- dflt_smsbox_id = astb
- dflt_service = csvc
- dflt_account = supacc
- dflt_from = 18555
- dflt_to = 111111111
- dflt_smsc_id = fake-smsc-1
- dflt_dlr_url = http://127.0.0.1:40001
- dflt_dlr_mask = 31
- dflt_sms = Dialplan extension 400 get executed
- COMPILING:
compilation is similar to any other asterisk module. Just copy the source file to asterisk apps folder, modify your toolchain by adding kannel header files and libs locations. Compile asterisk as usual. you will get app_mt.so generated.
- USING:
- cp app_mt.so /usr/lib/asterisk/modules
- asterisk -x "module load app_mt.so"
- modify your dialplan to add a test extension for app_mt exten => 400,1,mt() same => n,Hangup()
- call extension 400 from your device, an sms mt will be sent to the receiver number configured above.
- ROADMAP:
- read default config parameters from file.
- pass sms parameters from the dialplan.
- send sms from cli/manager/rest/...etc.
- ...etc. Any suggestion is welcome.
- CONTACT:
For any question, feedback, support request, contact me at: <mosbah.abdelkader@gmail.com> .