Re: Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread mosbah abdelkader
Hello Alex,

Thank you for your feedback.

May be I havn't understood exactly your meaning by http url call in
asterisk and its relation to the project. But, the main idea behind
this project is to give asterisk users another way to send sms from
dialplan. Because, the actual implementation within asterisk to send
sms is by using app_sms which only sends sms using an external modem
(no smpp and other protocols that kannel supports).

BR.

On 12/21/17, amal...@kannel.org  wrote:
> Hi,
>
> thanks for interest on kannel project!
> Does Asterisk doesn’t support HTTP URL call ? I just ask because with this
> module you will use Kannel internal structs, what is not a preferred method
> to
> communicate with Kannel.
>
> Thanks,
> Alex
>
>
>> Am 21.12.2017 um 09:00 schrieb mosbah abdelkader
>> :
>>
>> Hello,
>>
>> 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 https://asterisk-kannel.sourceforge.io/
>>  for more information. You can
>> download the release files at:
>> https://sourceforge.net/projects/asterisk-kannel/files/
>> 
>>
>> 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).
>>
>> ---config:
>> -actually the config is done in the source code itself. Adjust the
>> following parameters to fit your setup before compiling and linking the
>> app:
>> static char* dflt_bb_host = "#";//default kannel bearerbox IP
>> address
>> static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
>> static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let
>> it 0 if you don't want to use ssl
>> static char* dflt_smsbox_id = "astb";//default smsbox id
>> static char* dflt_service = "csvc";//default service name
>> static char* dflt_account = "supacc";//default account name
>> static char* dflt_from = "18555";//default sender number
>> static char* dflt_to = "1";//default receiver number
>> static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route
>> the sms
>> static char* dflt_dlr_url = "http://127.0.0.1:40001
>> ";//default dlr url
>> static int dflt_dlr_mask = 31;//default dlr mask
>> static char* dflt_sms = "Dialplan extension 400 get executed!";//default
>> sms text
>>
>> ---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.
>>
>> Any feedback is welcome.
>>
>> Best regards.
>>
>
>



Re: Multipart sms sending behaviour - Sending all the parts of a multipart 1 after the other

2017-12-21 Thread amalysh
Hi Grant,

as far as I see 1.4.4 already using prio queue and Kannel does it best to send 
all messages/parts in the right order but it’s impossible to do
in all the cases. What you can do, as a workaround, to add a delay between 
sending, e.g. 20 longs msgs then min 1 sec delay and other 20 msgs.

Thanks,
Alex


> Am 20.12.2017 um 08:25 schrieb Grant Saicom :
> 
> Hi Alex
> 
> Thank you for your reply and time. Kannel is splitting the messages before 
> sending them down the bind to the SMSC. The whole messages arrives via smsbox 
> and is then passed to bearerbox for delivery to SMSC via smpp.
> 
> The problem is that if I have more than 40 multipart messages in the queue, 
> the sending will stop as bearerbox submits one part of each queued message as 
> described. Because of the way the server works, it locks up all the available 
> max pending sessions.
> 
> I need kannel to send each multipart of the whole sequentially. Borrowing 
> from printing jargon, I need the multipart sending to be collated: a1, a2, a3 
> ; b1, b2, b3 ; c1, c2 ; d1, d2, d3
> 
> Thanks,
> Grant
>> On 20 Dec 2017, at 00:37, amal...@kannel.org wrote:
>> 
>> Hi,
>> 
>> who is responsible for splitting long messages? you should let Kannel do it 
>> for you, then Kannel take care to send
>> all parts via the same SMSC and in the right order.
>> 
>> Thanks,
>> Alex
>> 
>> 
>>> Am 19.12.2017 um 14:32 schrieb Grant Saicom :
>>> 
>>> Hi Kannel Users
>>> 
>>> I have an issue which I need to address with respect to how kannel(1.44) 
>>> sends multipart messages to a SMSC.
>>> 
>>> Let me explain the situation/limitations:
>>> 
>>> -I have a server which manages and distributes smses to my modems.
>>> -I communicate to this server via smpp using bearerbox.
>>> -These modems are hosted on gateways at various locations linked via IP.
>>> -The server sends the messages to the gateways which then send to the 
>>> modems via serial.
>>> -The server requires that it has the entire message (all multiparts) before 
>>> it can send it to the gateway and ultimately the modem for sending via GSM.
>>> -I have a max pending sms limit of 40 on the server. This is the licensing 
>>> model.
>>> 
>>> Example Scenario of the issue:
>>> If I have 100 messages with 200 characters in them, kannel sends the first 
>>> part of the first 40 messages i.e.
>>> 
>>> message1 : 1 of 2
>>> message2 : 1 of 2
>>> message3 : 1 of 2
>>> message4 : 1 of 2
>>> …
>>> message39 : 1 of 2
>>> message40 : 1 of 2
>>> 
>>> The server acks these messages, but it starts rejecting any further 
>>> messages because its max pending queue is now full. None of these messages 
>>> will go out. The client side will eventually time-out these messages and 
>>> fail them.
>>> 
>>> How do I get bearerbox to send the messages like this:
>>> 
>>> message1 : 1 of 2
>>> message1 : 1 of 2
>>> message2 : 1 of 2
>>> message2 : 2 of 2
>>> …
>>> 
>>> message39 : 1 of 2
>>> message39 : 2 of 2
>>> message40 : 1 of 2
>>> message40 : 2 of 2
>>> 
>>> I have not found anything in the documentation that indicates how I could 
>>> do this.
>>> 
>>> Kind regards
>>> Grant
>>> 
>>> 
>> 
> 




Re: Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread amalysh
Hi,

thanks for interest on kannel project!
Does Asterisk doesn’t support HTTP URL call ? I just ask because with this 
module you will use Kannel internal structs, what is not a preferred method to
communicate with Kannel.

Thanks,
Alex


> Am 21.12.2017 um 09:00 schrieb mosbah abdelkader 
> :
> 
> Hello,
> 
> 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 
> https://asterisk-kannel.sourceforge.io/ 
>  for more information. You can 
> download the release files at: 
> https://sourceforge.net/projects/asterisk-kannel/files/ 
> 
> 
> 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).
> 
> ---config:
> -actually the config is done in the source code itself. Adjust the following 
> parameters to fit your setup before compiling and linking the app:
> static char* dflt_bb_host = "#";//default kannel bearerbox IP 
> address
> static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
> static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let it 
> 0 if you don't want to use ssl
> static char* dflt_smsbox_id = "astb";//default smsbox id
> static char* dflt_service = "csvc";//default service name
> static char* dflt_account = "supacc";//default account name
> static char* dflt_from = "18555";//default sender number
> static char* dflt_to = "1";//default receiver number
> static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route the 
> sms
> static char* dflt_dlr_url = "http://127.0.0.1:40001 
> ";//default dlr url
> static int dflt_dlr_mask = 31;//default dlr mask
> static char* dflt_sms = "Dialplan extension 400 get executed!";//default sms 
> text
> 
> ---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.
> 
> Any feedback is welcome.
> 
> Best regards.
> 



Re: Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread Leonardo Sena
Ok, I will check.

Em 21 de dez de 2017 07:23, "mosbah abdelkader" 
escreveu:

> It has been tested with Asterisk 13 but it should work with any version.
>
> Thank you for your feedback.
>
> BR.
>
> On Thu, Dec 21, 2017 at 10:16 AM, Leonardo Sena  wrote:
>
>> Hi
>>
>> This new module work with any asterisk version?
>>
>> This is a good initiative congratulations
>>
>> Best regards
>>
>>
>> Leonardo Sena
>>
>>
>> Em 21 de dez de 2017 06:26, "mosbah abdelkader" <
>> mosbah.abdelka...@gmail.com> escreveu:
>>
>> Hello,
>>
>> 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 https://asterisk-kannel.sourceforge.io/ for more
>> information. You can download the release files at:
>> https://sourceforge.net/projects/asterisk-kannel/files/
>>
>> 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).
>>
>> ---config:
>> -actually the config is done in the source code itself. Adjust the
>> following parameters to fit your setup before compiling and linking the app:
>> static char* dflt_bb_host = "#";//default kannel bearerbox IP
>> address
>> static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
>> static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let
>> it 0 if you don't want to use ssl
>> static char* dflt_smsbox_id = "astb";//default smsbox id
>> static char* dflt_service = "csvc";//default service name
>> static char* dflt_account = "supacc";//default account name
>> static char* dflt_from = "18555";//default sender number
>> static char* dflt_to = "1";//default receiver number
>> static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route
>> the sms
>> static char* dflt_dlr_url = "http://127.0.0.1:40001";//default dlr url
>> static int dflt_dlr_mask = 31;//default dlr mask
>> static char* dflt_sms = "Dialplan extension 400 get executed!";//default
>> sms text
>>
>> ---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.
>>
>> Any feedback is welcome.
>>
>> Best regards.
>>
>>
>>
>


Re: Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread mosbah abdelkader
It has been tested with Asterisk 13 but it should work with any version.

Thank you for your feedback.

BR.

On Thu, Dec 21, 2017 at 10:16 AM, Leonardo Sena  wrote:

> Hi
>
> This new module work with any asterisk version?
>
> This is a good initiative congratulations
>
> Best regards
>
>
> Leonardo Sena
>
>
> Em 21 de dez de 2017 06:26, "mosbah abdelkader" <
> mosbah.abdelka...@gmail.com> escreveu:
>
> Hello,
>
> 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 https://asterisk-kannel.sourceforge.io/ for more
> information. You can download the release files at:
> https://sourceforge.net/projects/asterisk-kannel/files/
>
> 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).
>
> ---config:
> -actually the config is done in the source code itself. Adjust the
> following parameters to fit your setup before compiling and linking the app:
> static char* dflt_bb_host = "#";//default kannel bearerbox IP
> address
> static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
> static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let
> it 0 if you don't want to use ssl
> static char* dflt_smsbox_id = "astb";//default smsbox id
> static char* dflt_service = "csvc";//default service name
> static char* dflt_account = "supacc";//default account name
> static char* dflt_from = "18555";//default sender number
> static char* dflt_to = "1";//default receiver number
> static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route
> the sms
> static char* dflt_dlr_url = "http://127.0.0.1:40001";//default dlr url
> static int dflt_dlr_mask = 31;//default dlr mask
> static char* dflt_sms = "Dialplan extension 400 get executed!";//default
> sms text
>
> ---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.
>
> Any feedback is welcome.
>
> Best regards.
>
>
>


Re: Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread Leonardo Sena
Hi

This new module work with any asterisk version?

This is a good initiative congratulations

Best regards


Leonardo Sena


Em 21 de dez de 2017 06:26, "mosbah abdelkader" 
escreveu:

Hello,

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
https://asterisk-kannel.sourceforge.io/ for more information. You can
download the release files at: https://sourceforge.net/projec
ts/asterisk-kannel/files/

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

---config:
-actually the config is done in the source code itself. Adjust the
following parameters to fit your setup before compiling and linking the app:
static char* dflt_bb_host = "#";//default kannel bearerbox IP
address
static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let
it 0 if you don't want to use ssl
static char* dflt_smsbox_id = "astb";//default smsbox id
static char* dflt_service = "csvc";//default service name
static char* dflt_account = "supacc";//default account name
static char* dflt_from = "18555";//default sender number
static char* dflt_to = "1";//default receiver number
static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route
the sms
static char* dflt_dlr_url = "http://127.0.0.1:40001";//default dlr url
static int dflt_dlr_mask = 31;//default dlr mask
static char* dflt_sms = "Dialplan extension 400 get executed!";//default
sms text

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

Any feedback is welcome.

Best regards.


unsubscribe

2017-12-21 Thread Francisco Javier Arenales CASTRODEZA



Asterisk-Kannel integration project version 0.0.1 release notes

2017-12-21 Thread mosbah abdelkader
Hello,

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
https://asterisk-kannel.sourceforge.io/ for more information. You can
download the release files at: https://sourceforge.net/
projects/asterisk-kannel/files/

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

---config:
-actually the config is done in the source code itself. Adjust the
following parameters to fit your setup before compiling and linking the app:
static char* dflt_bb_host = "#";//default kannel bearerbox IP
address
static long dflt_bb_port = 13001;//kannel bearerbox smsbox-port port
static int dflt_bb_ssl = 0;//default kannel bearerbox smsbox-port ssl let
it 0 if you don't want to use ssl
static char* dflt_smsbox_id = "astb";//default smsbox id
static char* dflt_service = "csvc";//default service name
static char* dflt_account = "supacc";//default account name
static char* dflt_from = "18555";//default sender number
static char* dflt_to = "1";//default receiver number
static char* dflt_smsc_id = "fake-smsc-1";//default smsc-id used to route
the sms
static char* dflt_dlr_url = "http://127.0.0.1:40001";//default dlr url
static int dflt_dlr_mask = 31;//default dlr mask
static char* dflt_sms = "Dialplan extension 400 get executed!";//default
sms text

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

Any feedback is welcome.

Best regards.