<div dir="ltr"><div><div><div><div><div><div><div><div><div><span style="font-family:monospace,monospace">Hello,<br><br>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. Please visit <a href="https://asterisk-kannel.sourceforge.io/" target="_blank">https://asterisk-kannel.source<wbr>forge.io/</a> for more information. You can download the release files at: <a href="https://sourceforge.net/projects/asterisk-kannel/files/">https://sourceforge.net/projects/asterisk-kannel/files/</a><br><br>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).<br><br>---technical details:<br></span></div><span style="font-family:monospace,monospace">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.</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">---requirements:</span></div><div><span style="font-family:monospace,monospace">-Asterisk source.</span></div><div><span style="font-family:monospace,monospace">-Kannel compiled libs and header files (compilation of kannel is not covered here).<br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">---config:</span></div><div><span style="font-family:monospace,monospace">-actually
the config is done in the source code itself. Adjust the following
parameters to fit your setup before compiling and linking the app:</span></div><div><span style="font-family:monospace,monospace">static char* dflt_bb_host = "#############";//default kannel bearerbox IP address<br>static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port<br>static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let it 0 if you don't want to use ssl<br>static char* dflt_smsbox_id = "astb";//default smsbox id<br>static char* dflt_service = "csvc";//default service name<br>static char* dflt_account = "supacc";//default account name<br>static char* dflt_from = "18555";//default sender number<br>static char* dflt_to = "111111111";//default receiver number<br>static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route the sms<br>static char* dflt_dlr_url = "<a href="http://127.0.0.1:40001" target="_blank">http://127.0.0.1:40001</a>";//def<wbr>ault dlr url<br>static int dflt_dlr_mask = 31;//default dlr mask<br>static char* dflt_sms = "Dialplan extension 400 get executed!";//default sms text<br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><span style="font-family:monospace,monospace">---compiling:<br></span></div><div><span style="font-family:monospace,monospace">compilation is similar to any other asterisk module. Just</span><span style="font-family:monospace,monospace">
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.<br></span></div></div><div><span style="font-family:monospace,monospace"><br></span></div><span style="font-family:monospace,monospace">---using:<br></span></div><span style="font-family:monospace,monospace">-# cp app_mt.so /usr/lib/asterisk/modules<br></span></div><span style="font-family:monospace,monospace">-# asterisk -x "module load app_mt.so"<br></span></div><span style="font-family:monospace,monospace">-modify your dialplan to add a test extension for app_mt: <br>exten => 400,1,mt()<br> same => n,Hangup()<br></span></div><span style="font-family:monospace,monospace">-call extension 400 from your device, an sms mt will be sent to the receiver number configured above.</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">---roadmap:</span></div><div><span style="font-family:monospace,monospace">-read default config parameters from file.</span></div><div><span style="font-family:monospace,monospace">-pass sms parameters from the dialplan.</span></div><div><span style="font-family:monospace,monospace">-send sms from cli/manager/rest/...etc.</span></div><div><span style="font-family:monospace,monospace">-...etc. Any suggestion is welcome.<br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">Any feedback is welcome.</span></div><div><span style="font-family:monospace,monospace"><br></span></div><span style="font-family:monospace,monospace">Best regards.<br></span><div><div><span style="font-family:monospace,monospace"><br></span></div></div></div>