Re: Kannel 1.5.0 fails on Debian 9

2018-01-25 Thread Milan P. Stanic
On Wed, 2018-01-24 at 10:40, Kasper Nielsen wrote:
> Trying to install kannel_1.5.0-0_amd64.deb
> https://redmine.kannel.org/projects/kannel/files fails and reports the
> error:
> kannel depends on libssl0.9.8 (>= 0.9.8m-1); however:
> Package libssl0.9.8 is not installed.

It is quite outdated
These files for then stable Debian wheezy, IIRC. I didn't posted new
version after then to the Kannel site administrator.

> However, I've got libssl1.1 installed already:
> libssl-dev is already the newest version (1.1.0f-3+deb9u1).
> 
> I'm running Debian 9.

I have had build packages for newer Debian versions and hosted them on
the server behind my ADSL line, but because some auto download tools
started to download packages every day and few time which chokes ADSL,
I shut down APT repository.

But, build kannel from source is not hard so you can do that for
yourself very easy.



Re: daily snapshot

2017-07-01 Thread Milan P. Stanic
On Sat, 2017-07-01 at 13:28, Педченко Владимир wrote:
>   Hi Rene / Users!  
> 
>    
>  
>   Can U please make a daily snapshot. Last snapshot was made Wed Jan 
> 18 
>   06:04:23 CET 2017.   
>  
>   Thank U! 
>  

You can always download SVN snapshot:
svn co https://svn.kannel.org/gateway/trunk
or:
svn co https://svn.kannel.org/opensmppbox/trunk

It is explained on the:
http://kannel.org/download.shtml

>    
>  
>    
>  
>    
>  
>    
>  



Re: DLR of Rejected SMS

2016-10-13 Thread Milan P. Stanic
On Thu, 2016-10-13 at 15:06, vinayak mv wrote:
> You can also use sqlbox which logs all sms mo mt and dlr

I know that but I prefer to have full control of the message flow
end-to-end in my program than to rely on sqlbox (or any other box)
especially for (near to) realtime message processing.

> On Thursday 13 October 2016, Milan P. Stanic <m...@arvanta.net> wrote:
> 
> > On Thu, 2016-10-13 at 12:59, ahmed qadeer wrote:
> > > Can you please let me know how can we get DLR's of SMS being rejected due
> > > to invalid number on SMSC level as operator is rejecting the SMS by the
> > > following error
> > >
> > >
> > > SMSC returned error code 0x009b (Unknown/Reserved) in response to
> > > submit_sm PDU
> > >
> > > and due to which the sender awaits delivery of the sent message
> > >
> > > Is there any workaround to send failed delivery to the message sender
> >
> > Please, read carefully userguide and especially section about delivery
> > report. After that describe your configuration and the problem you have.
> > Then you can expect that the someone could answer your question.
> > Anyway, from my experience best way to handle SMS with Kannel is to
> > write small program in scripting languages of your preference and
> > knowledge. I wrote some simple skripts in perl ten years ago that worked
> > (and I think still works) for SMS parking payment in one country.
> >
> >
> 
> -- 
> Thanks & Regards,
> Vinayak
> 
> ==
> 
> *Confucius* once said,
> "*Life is really simple, but we insist on making it complicated.*"
> 
> *Leonardo da Vinci* once said,
> "*Simplicity is the ultimate sophistication.*"
> 
> *Albert Einstein* once said,
> "*Everything should be made as simple as possible, but not simpler.*"



Re: DLR of Rejected SMS

2016-10-13 Thread Milan P. Stanic
On Thu, 2016-10-13 at 12:59, ahmed qadeer wrote:
> Can you please let me know how can we get DLR's of SMS being rejected due
> to invalid number on SMSC level as operator is rejecting the SMS by the
> following error
> 
> 
> SMSC returned error code 0x009b (Unknown/Reserved) in response to
> submit_sm PDU
> 
> and due to which the sender awaits delivery of the sent message
> 
> Is there any workaround to send failed delivery to the message sender

Please, read carefully userguide and especially section about delivery
report. After that describe your configuration and the problem you have.
Then you can expect that the someone could answer your question.
Anyway, from my experience best way to handle SMS with Kannel is to
write small program in scripting languages of your preference and
knowledge. I wrote some simple skripts in perl ten years ago that worked
(and I think still works) for SMS parking payment in one country.



Re: TLS support in kannel

2016-08-14 Thread Milan P. Stanic
On Sat, 2016-08-13 at 21:38, Manas Mohanty wrote:
> Does kannel support TLS for smsc bind. If yes, how to do that.

Of course. 
Look at the ssl-client-certkey-file config directive in userguide.



Re: Kannel Queued SMS location

2016-08-09 Thread Milan P. Stanic
On Tue, 2016-08-09 at 16:32, Biswajit, BPL wrote:
> Thanks for your feedback. As we use sqlbox we assumed we wouldn't have to
> use store configurations, hence we have not used the store-type,
> store-location or store-dump-freq. Could you please suggest best suitable
> config for them? Thanks in advance.
 
It depends on your needs. But, if you have a lot of queued messages it
would be wise to use spool for store-type, defining directory where
kannel will store messages one per file.
 
> /Thanks & Regards,/
> Biswajit Kumar
> Sr. System Engineer, P
> Bangla Phone Ltd. <http://www.banglaphone.net.bd>
> Phone: +880 359 345 1125 <tel:+8803593451125>
> Cell: +880 18 33 10 39 09 <tel:+8801833103909>
> 
> On 2016-08-08 16:18, Milan P. Stanic wrote:
> > On Mon, 2016-08-08 at 15:22, Biswajit, BPL wrote:
> > > We are using Kannel 1.4.4 to connect with Mobile operators using SMPP 
> > > SMSC.
> > > We use SQLBox for handling SMS transaction.
> > > What we want to find out is: where is the location of storing messages 
> > > which
> > > is showed as 'Queued' in Kannel status page (attached). If and when we 
> > > need
> > > to restart Kannel after configuration change, we have to wait for the 
> > > queue
> > > to clear. If we knew which messages were being queued, we could resend 
> > > those
> > > messages manually after restart.
> > > Appreciate your suggestion.
> > You don't need to resend messages when you restart kannel if you use
> > persistent storage for queued messages. Read the userguide and look
> > configuration directives store-type, store-location and store-dump-freq.
> > If that does not solve your problem then you should ask further
> > questions here.
> > 
> > 
> 



Re: Kannel Queued SMS location

2016-08-08 Thread Milan P. Stanic
On Mon, 2016-08-08 at 15:22, Biswajit, BPL wrote:
> We are using Kannel 1.4.4 to connect with Mobile operators using SMPP SMSC.
> We use SQLBox for handling SMS transaction.
> What we want to find out is: where is the location of storing messages which
> is showed as 'Queued' in Kannel status page (attached). If and when we need
> to restart Kannel after configuration change, we have to wait for the queue
> to clear. If we knew which messages were being queued, we could resend those
> messages manually after restart.
> Appreciate your suggestion.

You don't need to resend messages when you restart kannel if you use
persistent storage for queued messages. Read the userguide and look
configuration directives store-type, store-location and store-dump-freq.
If that does not solve your problem then you should ask further
questions here.



Re: smsbox - sqlbox - bearerbox & dlr status

2016-03-23 Thread Milan P. Stanic
On Wed, 2016-03-23 at 15:27, j...@evonet.fi wrote:
> > 2016-03-23 15:46 GMT+03:00 :
> >> Thank you! I finally got things working. Few notes I hope someone fixes.
> >>
> >> 1. Documentation is bit old, for example table 7.2 is outdated.
> >> I'am using modem, so nowdays at2 smsc module. It does support dlr!
> > Did you build documentation for kannel from trunk or where did you look?
> No, I used,
> http://kannel.org/download/1.4.4/userguide-1.4.4/userguide.html#AEN2930
> 
> couse I'm using latest stable release that debian includes

Few years ago I have built kannel 1.5.0 for Debian. You can see my
announce in the mailing list here:
http://permalink.gmane.org/gmane.comp.mobile.kannel.user/34244

I can build latest SVN version and put it on the server but I cannot
test it because I don't use kannel anymore. If someone is ready to test
it and report problems to me I will build it.
Or, I can post or upload Debian build scripts and config if someone
wants to take over it.
[...]



Re: Error in kannel-monitor

2016-03-02 Thread Milan P. Stanic
On Wed, 2016-03-02 at 22:24, spameden wrote:
> 2016-03-02 21:52 GMT+03:00 Milan P. Stanic <m...@arvanta.net>:
> > On Wed, 2016-03-02 at 21:31, spameden wrote:
> > > There is nothing wrong with php kannel monitor.
> > >
> > > It works just fine. Either you're using it wrong or not providing correct
> > > password which you set in kannel.conf.
> >
> > I'm not using it at all. I just gave answer to Vladimir.
> > I don't understand why you didn't answer to original message.
> 
> Sorry, my reply was to Vladimir rather than to you.
 
Ok, no worries. :) We all make mistakes.

> > > 2016-03-02 20:31 GMT+03:00 Milan P. Stanic <m...@arvanta.net>:
> > >
> > > > On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:
> > > > > This is a standard script from Kannel
> > > > (gateway-1.5.0/contrib/kannel-monitor)
> > > > > Standard script posted /var/www/html/kannel-monitor
> > > > > If using a test script, all ok
> > > > >  > > > > $url = "http://localhost/;;
> > > > > if (($fp = fopen($url, "r"))) {
> > > > > echo "Ok";
> > > > > }
> > > > > else {
> > > > > echo "Not ok";
> > > > > }
> > > > > fclose($fp);
> > > > > ?>
> > > > >
> > > > > Perhaps the problem of access to the port 13000 (Kannel admin)
> > > >
> > > > Thanks God I didn't touched PHP in last fifteen years but from code
> > > > snippet above it seems that you are right.
> > > > Variable $url is missing port part.
> > > > I'm not sure how to set port in php but I think it should be
> > > > $url = "http://localhost:13000/;
> > > >
> > > > Few years ago I made small Perl monitor for Kannel and defined URL
> > (host
> > > > and port) in that way in the script.
> > > >
> > > > > Kannel 1.5.0, Centos 7, Kannel independently compiled
> > > > >
> > > > >
> > > > > -Original Message-
> > > > > From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P.
> > > > Stanic
> > > > > Sent: Tuesday, March 01, 2016 5:26 PM
> > > > > To: de...@kannel.org
> > > > > Subject: Re: Error in kannel-monitor
> > > > >
> > > > > Dear Vladimir,
> > > > >
> > > > > Please post your questions to users@kannel.org mailing list where
> > you
> > > > have better chances to get answer. de...@kannel.org list is for
> > > > developers discussions.
> > > > >
> > > > > On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> > > > > > $url = $config["base_url"]."/status.xml";
> > > > > > $xml_data = "";
> > > > > > /* open the file description to the URL */
> > > > > > if (($fp = fopen($url, "r"))) {
> > > > > > $bgcolor = 'green';
> > > > > > /* read the XML input */
> > > > > > while (!feof($fp)) {
> > > > > > $xml_data .= fread($fp, 20);
> > > > > > }
> > > > > > fclose($fp);
> > > > > >
> > > > > > Through the browser opens the URL
> > > > >
> > > > > It is not clear (at least to me) what you are trying to do with this
> > php
> > > > script and how do invoke it. Please try to describe what you are
> > trying to
> > > > achieve and how do you do that. Also describe your working environment
> > i.e.
> > > > your OS and how did you installed Kannel and accompanying software.
> > > > >
> > > > > > > When you open a kannel-monitor I get an error
> > > > > > >
> > > > > > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client
> > > > > > > 172.19.1.35:56951] PHP Warning:
> > > > > > > fopen(http://localhost:13000/status.xml?password=): failed to
> > open
> > > > stream:
> > > > > > > Permission denied in /var/www/html/kannel-monitor/index.php on
> > line
> > > > > > > 91
> > > > > > >
> > > > > > > What can be wrong&
> > > > > >
> > > > > > Message tells that the index.php cannot open something (file,
> > socket
> > > > or something else).
> > > > > > Look at line 91 in index.php script and see what file it is trying
> > to
> > > > open and check the permissions of that file and who is the owner of it.
> > > > > >
> > > > > > Or, post your index.php script (just few lines around line 91) so
> > > > someone could give you a hint.
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> >
> >



Re: Error in kannel-monitor

2016-03-02 Thread Milan P. Stanic
On Wed, 2016-03-02 at 21:31, spameden wrote:
> There is nothing wrong with php kannel monitor.
> 
> It works just fine. Either you're using it wrong or not providing correct
> password which you set in kannel.conf.

I'm not using it at all. I just gave answer to Vladimir.
I don't understand why you didn't answer to original message.

> 2016-03-02 20:31 GMT+03:00 Milan P. Stanic <m...@arvanta.net>:
> 
> > On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:
> > > This is a standard script from Kannel
> > (gateway-1.5.0/contrib/kannel-monitor)
> > > Standard script posted /var/www/html/kannel-monitor
> > > If using a test script, all ok
> > >  > > $url = "http://localhost/;;
> > > if (($fp = fopen($url, "r"))) {
> > > echo "Ok";
> > > }
> > > else {
> > > echo "Not ok";
> > > }
> > > fclose($fp);
> > > ?>
> > >
> > > Perhaps the problem of access to the port 13000 (Kannel admin)
> >
> > Thanks God I didn't touched PHP in last fifteen years but from code
> > snippet above it seems that you are right.
> > Variable $url is missing port part.
> > I'm not sure how to set port in php but I think it should be
> > $url = "http://localhost:13000/;
> >
> > Few years ago I made small Perl monitor for Kannel and defined URL (host
> > and port) in that way in the script.
> >
> > > Kannel 1.5.0, Centos 7, Kannel independently compiled
> > >
> > >
> > > -Original Message-
> > > From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P.
> > Stanic
> > > Sent: Tuesday, March 01, 2016 5:26 PM
> > > To: de...@kannel.org
> > > Subject: Re: Error in kannel-monitor
> > >
> > > Dear Vladimir,
> > >
> > > Please post your questions to users@kannel.org mailing list where you
> > have better chances to get answer. de...@kannel.org list is for
> > developers discussions.
> > >
> > > On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> > > > $url = $config["base_url"]."/status.xml";
> > > > $xml_data = "";
> > > > /* open the file description to the URL */
> > > > if (($fp = fopen($url, "r"))) {
> > > > $bgcolor = 'green';
> > > > /* read the XML input */
> > > > while (!feof($fp)) {
> > > > $xml_data .= fread($fp, 20);
> > > > }
> > > > fclose($fp);
> > > >
> > > > Through the browser opens the URL
> > >
> > > It is not clear (at least to me) what you are trying to do with this php
> > script and how do invoke it. Please try to describe what you are trying to
> > achieve and how do you do that. Also describe your working environment i.e.
> > your OS and how did you installed Kannel and accompanying software.
> > >
> > > > > When you open a kannel-monitor I get an error
> > > > >
> > > > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client
> > > > > 172.19.1.35:56951] PHP Warning:
> > > > > fopen(http://localhost:13000/status.xml?password=): failed to open
> > stream:
> > > > > Permission denied in /var/www/html/kannel-monitor/index.php on line
> > > > > 91
> > > > >
> > > > > What can be wrong&
> > > >
> > > > Message tells that the index.php cannot open something (file, socket
> > or something else).
> > > > Look at line 91 in index.php script and see what file it is trying to
> > open and check the permissions of that file and who is the owner of it.
> > > >
> > > > Or, post your index.php script (just few lines around line 91) so
> > someone could give you a hint.
> > > >
> > > >
> > > >
> > >
> > >
> >
> >



Re: Error in kannel-monitor

2016-03-02 Thread Milan P. Stanic
On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:
> This is a standard script from Kannel (gateway-1.5.0/contrib/kannel-monitor)
> Standard script posted /var/www/html/kannel-monitor
> If using a test script, all ok
>  $url = "http://localhost/;;
> if (($fp = fopen($url, "r"))) {
> echo "Ok";
> }
> else {
> echo "Not ok";
> }
> fclose($fp);
> ?>
> 
> Perhaps the problem of access to the port 13000 (Kannel admin)

Thanks God I didn't touched PHP in last fifteen years but from code
snippet above it seems that you are right.
Variable $url is missing port part.
I'm not sure how to set port in php but I think it should be
$url = "http://localhost:13000/;

Few years ago I made small Perl monitor for Kannel and defined URL (host
and port) in that way in the script.

> Kannel 1.5.0, Centos 7, Kannel independently compiled
> 
> 
> -Original Message-
> From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P. Stanic
> Sent: Tuesday, March 01, 2016 5:26 PM
> To: de...@kannel.org
> Subject: Re: Error in kannel-monitor
> 
> Dear Vladimir,
> 
> Please post your questions to users@kannel.org mailing list where you have 
> better chances to get answer. de...@kannel.org list is for developers 
> discussions.
> 
> On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> > $url = $config["base_url"]."/status.xml";
> > $xml_data = "";
> > /* open the file description to the URL */
> > if (($fp = fopen($url, "r"))) {
> > $bgcolor = 'green';
> > /* read the XML input */
> > while (!feof($fp)) {
> > $xml_data .= fread($fp, 20);
> > }
> > fclose($fp);
> > 
> > Through the browser opens the URL
> 
> It is not clear (at least to me) what you are trying to do with this php 
> script and how do invoke it. Please try to describe what you are trying to 
> achieve and how do you do that. Also describe your working environment i.e. 
> your OS and how did you installed Kannel and accompanying software.
> 
> > > When you open a kannel-monitor I get an error
> > > 
> > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client 
> > > 172.19.1.35:56951] PHP Warning:
> > > fopen(http://localhost:13000/status.xml?password=): failed to open stream:
> > > Permission denied in /var/www/html/kannel-monitor/index.php on line 
> > > 91
> > > 
> > > What can be wrong&
> > 
> > Message tells that the index.php cannot open something (file, socket or 
> > something else).
> > Look at line 91 in index.php script and see what file it is trying to open 
> > and check the permissions of that file and who is the owner of it.
> > 
> > Or, post your index.php script (just few lines around line 91) so someone 
> > could give you a hint.
> > 
> > 
> > 
> 
> 



Re: Kannel Debian Instalation

2016-03-01 Thread Milan P. Stanic
On Tue, 2016-03-01 at 07:52, Crystian Luís wrote:
> Hi, I am having some troubles to install Kannel with OPENSMPPBOX in Debian
> 8, Somebody has a TUTORIAL or MANUAL to help me?
> 
> There is some apt-get command to install opensmppbox? I prefer use apt-get
> in debian, I'ts easy to create OS releases to re-install sessions.

You mean apt-get repository because you have apt-get command installed
when you install Debian.
I made Kannel apt repository but it was for the Debian Wheezy and not
Jessie because I don't use Kannel anymore. But I can upload sources with
Debian build scripts if someone wants to take over to maintain it.
Of course I could build Kannel for Jessie and put it on my apt
repository but I'm hesitant to do that because I couldn't test it and I
think it would be bad to put untested package for users to use it
especially in production.



Re: Not work "priority" in settings SMSC

2016-02-10 Thread Milan P. Stanic
On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> Option does not work "priority" in settings SMSC.
> 
> I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is distributed
> evenly.
> 
> Why can this be?
 
I don't have time to look into the code but from memory I think that the
priority parameter is for setting default message priority for
particular SMSC and is not global parameter which set priorities between
SMSCs. But, I could be wrong.

> Kannel 1.5.0
> 
> Config:
> group=smsc
> smsc=smpp
> 
> smsc-id=devino_mrk
> 
> system-type=
> 
> interface-version=34
> 
> enquire-link-interval=270
> 
> source-addr-ton=5
> 
> source-addr-npi=1
> 
> dest-addr-ton=1
> 
> dest-addr-npi=1
> 
> msg-id-type=0x00
> 
> log-file="/var/log/kannel/devino_mrk.log"
> 
> log-level=0
> 
> priority=0
> 
>  
> 
> # СМС-Трафик тест
> 
> group=smsc
> 
> smsc=smpp
> 
> smsc-id=smstraffic_test
> 
> system-type=smpp
> 
> interface-version=34
> 
> enquire-link-interval=270
> 
> source-addr-ton=1
> 
> source-addr-npi=1
> 
> dest-addr-ton=1
> 
> dest-addr-npi=1
> 
> msg-id-type=0x00
> 
> log-file="/var/log/kannel/smstraffic_test.log"
> 
> log-level=0
> 
> priority=3



Re: OPEN SMPP Configuration and Working

2016-02-10 Thread Milan P. Stanic
On Wed, 2016-02-10 at 13:43, Robin C wrote:
>Anybody help me to install opensmpp to create smpp
> users.

You should describe in more details what is your problem and what you
want to achieve and then someone could help you.

Please read http://www.catb.org/esr/faqs/smart-questions.html which
explains how to ask questions in the mailing list. Understanding how to
ask gives you a better chances to get the right and helpful answer.



Re: Kannel Make issue on Debian Jessie

2015-11-26 Thread Milan P. Stanic
On Thu, 2015-11-26 at 07:33, Richard Ng wrote:
> I'm trying to install kannel 1.4.4 on Debian Jessie and running into the
> following error:
> 
> gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600
> -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl
> -I/usr/include/mysql -o wmlscript/wslexer.o -c wmlscript/wslexer.c
> 
> wmlscript/wslexer.c:221:32: error: unknown type name 'YYLTYPE'
> 
> int ws_yy_lex(YYSTYPE *yylval, YYLTYPE *yylloc, void *context)
> 
> Makefile:231: recipe for target 'wmlscript/wslexer.o' failed
> 
> make: *** [wmlscript/wslexer.o] Error 1
> 
> anyone have an idea how to fix this?

Do you have installed all needed development packages for Kannel?
Bison/Flex?



Re: Starting Kannel with systemd

2015-10-23 Thread Milan P. Stanic
On Fri, 2015-10-23 at 18:46, Luis Augusto C. Sauerbronn wrote:
> I am migrating a kannel server from an old Red Hat 5 server to a newer Red
> hat 7.
> The new server is using systemd to control its daemons, but I could not
> find a systemd script on the 1.4.4 package.
 
Look at fedora Kannel package. It should have systemd unit files for
Kannel.

> I've already searched the list but I couldn't find any reference to an
> example script.
> 
> As I am new to systemd, I'm afraid it will take too long to discover how to
> create a new script to control my instance.
> 
> Is there anyone already using systemd to control Kannel? Could you send me
> an example script?

I'm planing to upgrade Kannel to Debian Jessie which uses systemd by
default but didn't finished yet. Maybe I will do that in some weeks,
I don't know.



Re: Fastest method to insert a million MT messages to Kannel

2015-04-25 Thread Milan P. Stanic
On Sat, 2015-04-25 at 00:18, Daniel Camacho wrote:
 I have worked with bothBut SQLBox  was slower for me.If MySQL, MyISAM uses to 
 crash whe to much operation or a hardware failure.InnoDB is safest but slower 
 .

Your observation is true. Best solution for bulk messaging is custom
made application which monitors bearerbox queue and sends 'just enough'
messages to keep the queue steady and not replete it.
Of course, there are many variables which should be taken into account
when designing such application.

 Http post was my solution.But What application is handling the requests and 
 the way it does, matters a lot.As light as possible the application that does 
 the post, that will do a great difference.  .NET and Java are to much heavy 
 dutty machines for Bulk.
 Hope it helps,
  G. Daniel Camacho 
 ECE # 203135336
 Tel. +502 - 56305599
  
 
 
  On Friday, April 24, 2015 2:27 PM, ha...@aeon.pk ha...@aeon.pk wrote:

 
  SQLBOX is way faster for bulk traffic.
 On Fri, Apr 24, 2015 at 1:48 AM, Rene Kluwen rene.klu...@chimit.nl wrote:
 
 Unless your database is on another server.Sqlbox keeps a tcp connection open 
 to bearerbox.If you use smsbox, you need to connect each time you send an 
 sms.I don’t have hard figures though. It will be interesting to know them.  
 From: users [mailto:users-boun...@kannel.org] On Behalf Of Tapan Kumar Thapa
 Sent: woensdag 22 april 2015 7:43
 To: Alberto Mijares
 Cc: kannel users@kannel.org
 Subject: Re: Fastest method to insert a million MT messages to Kannel Also 
 while sqlbox is doing its operations with DB like select from send_sms,submit 
 to bearerbox and than inserting the same to sent_sms table and doing delete 
 from send_sms, it will add some time lag and will put load on server too. On 
 Wed, Apr 22, 2015 at 11:10 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com 
 wrote:My 2 cents: Adding messages to send_sms table is not an issue. We can 
 add messages to send_sms table very quickly however once sqlbox is submitting 
 those messages to bearerbox, and if beaerebox is unable to submit the same to 
 upstream smsc at desired speed (because upstream smsc is not taking messages 
 at provided speed, (Many factor involves here like hardware capacity, 
 internet bandwidth)) then we will have huge queue at beaerebox level, which 
 actually slow down the overall performance of kannel. On Wed, Apr 22, 2015 at 
 11:00 AM, Alberto Mijares amijar...@gmail.com wrote:I'd say: with the 
 propper DB and DBI (PostgrSQL + Perl DBI, ie), using
 PREPARE and COMMIT, SQLBox is your best bet by far.
 
 Regards,
 
 
 Alberto Mijares
 
 
 
 On Wed, Apr 22, 2015 at 12:50 AM, Makhanu Sinja jeysi...@gmail.com wrote:
  Well last week The same issue was raised on another thread in this
  mailing list. Let us consider the amount of time sqlbox has to do
  database CRUD for 1M messages compared to using spool or files. Is
  there anyone who has worked with both?
 
  On 4/21/15, Rene Kluwen rene.klu...@chimit.nl wrote:
  1.
  I think Kannel does support Keep-Alive connections. Not sure about the
  server side, but I think it does. Just make sure your client also supports
  it.
 
  2.
  Yes, probably SQL Box does insert 1,000,000 a lot faster than you can do by
  http. Question is if your upstream providers handle such a rate. You will
  end up with a lot of pending messages in the bearerbox queue.
 
  == Rene
 
 
  -Original Message-
  From: users [mailto:users-boun...@kannel.org] On Behalf Of Cliff Court
  Sent: dinsdag 21 april 2015 10:11
  To: users@kannel.org
  Subject: Fastest method to insert a million MT messages to Kannel
 
  Hi All
 
  I have set up Kannel with bearerbox and smsbox, which is working and I am
  writing dlr's to a mysql db.
 
  Currently I am submitting messages using a sendsms GET or xml-based POST, 
  as
  per the Kannel documentation. However, using individual http GET or POSTs
  for each message is relatively slow when needing to send a large volume of
  messages. Let's assume I have a 100 msgs/sec connection to an external SMSC
  using SMPP from bearerbox, which will take ~3 hours to send 1 million MT
  messages.
 
  So my question is what is the fastest method to submit messages to 
  bearerbox
  to send a million MT messages?
 
  I have seen that SQLbox is available and that one can insert messages into
  the send_sms table for faster submission, but I'm wondering what is the
  fastest method of submission to bearerbox?
 
  Thanks
  Cliff  
 
 
 
   



Re: throughput SMSC group variable

2015-04-08 Thread Milan P. Stanic
On Wed, 2015-04-08 at 01:21, Haris Lihovac wrote:
 I have question about throughput variable.
 
 Manual stated following:
 
 throughput - float (messages/sec)
 If SMSC requires that Kannel limits the number of messages per second, use
 this variable. This is considered as active throttling. (optional)
 
 However I have requirement to limit amount of messages per day (24 hours).
 So my question is: would it be allowed to put values between 0 and 1 for
 throughput variable for example for 1000 messages within 24 hours:
 1000/24-60-60 = 0,011574074 msg/sec ?

It is integer (as is most parameters in config) and cannot be decimal,
IIRC.



Re: How to receive messages from mobile terminal to my kannel?

2015-03-19 Thread Milan P. Stanic
On Thu, 2015-03-19 at 12:32, nilubo...@jasmine.com wrote:
 Hi,
 I have a question about kannel.
 
 How to receives message from SMSC to my Kannel. such as I send message via
 Kannel to SMSC of mobile operator. How mobile terminal reply message to
 me?
 
 Can I use Kannel to simulation a SMSC and test send messages between 2
 Kannel?

Yes, you can set one connection to SMSC (of your provider) and set GSM
modem (USB GSM dongle, connect phone over USB or serial port) as another
SMSC and send messages between them.
All this could be done with single Kannel (bearerbox and smsbox) with
appropriate configuration.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: multiple smsbox]

2015-03-19 Thread Milan P. Stanic
On Thu, 2015-03-19 at 12:33, nilubo...@jasmine.com wrote:
 How to setup 2 smsboxes that connected to the 1 bearerbox on Centos 5?

Do you need two smsboxes or two sms services?
 
 I don't have any Idea.
 
Try to define two smsbox groups in kannel.conf
[ I don't know if that will work, just an idea to try ]

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Recording SMS messages into database

2015-03-17 Thread Milan P. Stanic
On Mon, 2015-03-16 at 20:46, Drazen Kozic wrote:
 Yes, it is possible to log messages at application level. I did it several
 times in the past in situations when I am SMS Service provider and using
 kannel just to connect to mobile operator's SMSC. But, now I have demand to
 establish messaging gateway at MVNO's site. The purpose of the gateway is to
 route Premium SMS trafic from SMSC to service providers applications and to
 record billing data (for charging individual subscribers and interbilling
 between MVNO and MNO). Plain log files are not suitable for billing
 purposes.

How do you 'route [...] trafic from SMSC to service providers applications'? 
Maybe there you can log everything to DB.

 I will appreciate any further suggestions.
 On 16.03.2015 19:56, Milan P. Stanic wrote:
 On Mon, 2015-03-16 at 17:14, Drazen Kozic wrote:
 Is the kannel capable to record every MO, MT and DLR message into database?
 I was reading sqlbox doc and it seems that sms box only records MT messages?
 But, we need to record MO and DLR messages, too.
 Sqlbox could be configured to log messages but better solution is to log
 messages (and other events) at the application level.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Recording SMS messages into database

2015-03-16 Thread Milan P. Stanic
On Mon, 2015-03-16 at 17:14, Drazen Kozic wrote:
 Is the kannel capable to record every MO, MT and DLR message into database?
 I was reading sqlbox doc and it seems that sms box only records MT messages?
 But, we need to record MO and DLR messages, too.

Sqlbox could be configured to log messages but better solution is to log
messages (and other events) at the application level.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: trouble compiling latest svn

2015-02-09 Thread Milan P. Stanic
On Mon, 2015-02-09 at 10:06, Kyriacos/Netsmart wrote:
 On 06/02/2015 17:21, Milan P. Stanic wrote:
 On Wed, 2015-02-04 at 14:42, Kyriacos/Netsmart wrote:
 /usr/bin/convert doc/wtls/fig8o.png doc/wtls/fig8o.ps
 /usr/bin/convert doc/wtls/fig9o.png doc/wtls/fig9o.ps
 sed s/#FIGTYPE#/.png/;s/#VERSION#/svn-r5129M/;s/#DATE#/`date
 +%Y.%m.%d`/;s/#DRAFTS#/IGNORE/ doc/alligata/alligata.xml 
 doc/alligata/alligata.tmp
 openjade -V nochunks -t sgml -d
 /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl
 doc/alligata/alligata.tmp  doc/alligata/alligata.html
 openjade:URLhttp://docbook.org/xml/4.2/docbookx.dtd:112:17:E: X20AC is
 not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:40:19:E:
 X21B6 is not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:41:19:E:
 X21B7 is not a function name
 
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsr.ent:53:18:E:
 X227C is not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsr.ent:54:18:E:
 X22A3 is not a function name
 openjade:I: maximum number of errors (200) reached; change with -E option
 make: *** [doc/alligata/alligata.html] Error 1
 What is your build platform? How you invoke 'build process'?
 
 Please read the document at:
 http://www.catb.org/esr/faqs/smart-questions.html
 
 I'll have a read. Just a note that wit the docs disabled it compiles fine.

Did you installed all build dependency packages? I.e.
docbook-dsssl, jadetex, transfig, imagemagick, ghostscript, jade,
docbook
 
 Running this on a fresh install of debian 7.8 amd64 on a Vmware VM.
 
 Compile time options set for mysql use and alternative installation path.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: trouble compiling latest svn

2015-02-06 Thread Milan P. Stanic
On Wed, 2015-02-04 at 14:42, Kyriacos/Netsmart wrote:
 /usr/bin/convert doc/wtls/fig8o.png doc/wtls/fig8o.ps
 /usr/bin/convert doc/wtls/fig9o.png doc/wtls/fig9o.ps
 sed s/#FIGTYPE#/.png/;s/#VERSION#/svn-r5129M/;s/#DATE#/`date
 +%Y.%m.%d`/;s/#DRAFTS#/IGNORE/ doc/alligata/alligata.xml 
 doc/alligata/alligata.tmp
 openjade -V nochunks -t sgml -d
 /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl
 doc/alligata/alligata.tmp  doc/alligata/alligata.html
 openjade:URLhttp://docbook.org/xml/4.2/docbookx.dtd:112:17:E: X20AC is
 not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:40:19:E:
 X21B6 is not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsa.ent:41:19:E:
 X21B7 is not a function name
 
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsr.ent:53:18:E:
 X227C is not a function name
 openjade:/usr/share/xml/entities/xml-iso-entities-8879.1986/ISOamsr.ent:54:18:E:
 X22A3 is not a function name
 openjade:I: maximum number of errors (200) reached; change with -E option
 make: *** [doc/alligata/alligata.html] Error 1

What is your build platform? How you invoke 'build process'?

Please read the document at:
http://www.catb.org/esr/faqs/smart-questions.html




Re: Kannel Centos 7 / Kannel.service

2015-01-08 Thread Milan P. Stanic
On Wed, 2015-01-07 at 09:55, Henrik Månsson wrote:
 I have a quick question.
 
 I have a running Kannel installation on Centos 7.
 
 In Centos 7 servicestart has changed to systemctl command. So I was wondering 
 if anybody have created or looked in to creating a kannel.service file to 
 have the service startup depending on MariaDB Server.

Look here for start:
http://rpm.pbone.net/index.php3/stat/4/idpl/27065310/dir/rawhide/com/kannel-1.4.3-21.fc22.i686.rpm.html
 
-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: users Digest, Vol 101, Issue 7

2015-01-06 Thread Milan P. Stanic
On Mon, 2015-01-05 at 20:53, jaskirat bedi wrote:
 How can I check this?

You can search this mailing list history. This is explained not once.
If you can't find answer by searching list history then post your
question and include relevant information, i.e. how you installed
Kannel, how you run it, show your config file(s) etc.
When you post config files remove (or better rewrite) data which can be
security sensitive.

 Apologies for a foolish question but I am not that good at Linux.
 
 Regards
 Jaskirat
 
 On Monday, January 5, 2015, users-requ...@kannel.org wrote:
 
  Send users mailing list submissions to
  users@kannel.org javascript:;
 
  To subscribe or unsubscribe via the World Wide Web, visit
  http://www.kannel.org/mailman/listinfo/users
  or, via email, send a message with subject or body 'help' to
  users-requ...@kannel.org javascript:;
 
  You can reach the person managing the list at
  users-ow...@kannel.org javascript:;
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of users digest...
 
 
  Today's Topics:
 
 1. Re: Issue in Modem Detection (Milan P. Stanic)
 2. RE: How to Improve Performance of SQLBox (Tenorio, Leandro)
 
 
  --
 
  Message: 1
  Date: Mon, 5 Jan 2015 13:26:50 +0100
  From: Milan P. Stanic m...@arvanta.net javascript:;
  To: users@kannel.org javascript:;
  Subject: Re: Issue in Modem Detection
  Message-ID: 20150105122650.ga18...@arvanta.net javascript:;
  Content-Type: text/plain; charset=us-ascii
 
  On Mon, 2015-01-05 at 14:20, jaskirat bedi wrote:
   Please help.
   On Mon, Jan 5, 2015 at 12:47 AM, jaskirat bedi 
  jaskirat.s.b...@gmail.com javascript:;
   wrote:
I have a modem from SIMCOM and I am trying to connect the same using
kannel but I am getting the response as ERROR: AT2[/dev/ttyUSB0]:
  Wrong or
no answer to ATZ.
   
Although, if I am trying to access the same using minicom, I am able
  to do
it and get response for AT commands but if I try the same using wvdial
  than
I get no response.
   
Please help me in sorting this as I am struggling with this since last
  1
month.
 
  Does you Kannel have rights to access /dev/ttyUSB0
 
 
 
  --
 
  Message: 2
  Date: Mon, 5 Jan 2015 14:23:03 +
  From: Tenorio, Leandro lean...@fliadt.com javascript:;
  To: RK Krishnas r...@krishnasoft.in javascript:;
  Cc: Aditya Khanna aditya.khanna111...@gmail.com javascript:;, kannel
  users@kannel.org javascript:; users@kannel.org javascript:;
  Subject: RE: How to Improve Performance of SQLBox
  Message-ID:
  
  0e792a4b527dea46bc7ab0d032a7046f2e95b...@server004.simonettaorsini.com.ar
  javascript:;
 
  Content-Type: text/plain; charset=utf-8
 
  Hi, If both are on the same physical machine its not hardware nor O.S.
  have you tried MySQL community repository, you can get it from
  http://dev.mysql.com/downloads/repo/yum/
 
 
  From: RK Krishnas [mailto:r...@krishnasoft.in javascript:;]
  Sent: Monday, January 05, 2015 12:30 AM
  To: Tenorio, Leandro
  Subject: Re: How to Improve Performance of SQLBox
 
 
  Hi
 
  Virtual machine is installed on the same physical system.
  I am getting 150 tps from  virtual machine.
  So I think no question of Lan   switch.
  On Jan 5, 2015 2:24 AM, Tenorio, Leandro lean...@fliadt.com
  javascript:;mailto:lean...@fliadt.com javascript:; wrote:
 
  Change LAN board, cable and switch port.
 
  
  From:
 
  RK Krishnas r...@krishnasoft.in javascript:;mailto:r...@krishnasoft.in
  javascript:;
 
  Date:
 
  January 3, 2015 12:42:14 PM
 
  Subject:
 
  Re: How to Improve Performance of SQLBox
 
  To:
 
  Tenorio, Leandro lean...@fliadt.com javascript:;mailto:
  lean...@fliadt.com javascript:;
 
  CC:
 
  spameden spame...@gmail.com javascript:;mailto:spame...@gmail.com
  javascript:;, Aditya Khanna aditya.khanna111...@gmail.com
  javascript:;mailto:aditya.khanna111...@gmail.com javascript:;,
  kannel users@kannel.org javascript:;mailto:users@kannel.org
  javascript:; users@kannel.org javascript:;mailto:users@kannel.org
  javascript:;
 
 
  Hi Leandro,
  1. My Centos is up to date. Centos 6.5 with kernel 2.6.32-431
  2.  Regarding Tuning: I Just Installed LAMP on a virtual machine  getting
  150+ tps.
  No tuning at all. directly it is giving 150 tps. Virtual machine config:
  1ghz, 512 mb ram  8gb hdd.
  Physical server any config its just 15 tps only.
  3. Virtual machine in the same system is giving 150+ TPS so no case of LAN.
  although i am using 1Gig Ethernet cards.
  4. HDD.: i placed 3 different H.D.D.  installed kannel in 3 different
  systems.
  All physical systems giving me same 15tps.
  I am using kannel from past 2 years. In VPS data centre or local virtual
  machines I am getting 150+ tps. In physical server i am getting 15 tps.
  I am not able to sleep with this issue

Re: Issue in Modem Detection

2015-01-05 Thread Milan P. Stanic
On Mon, 2015-01-05 at 14:20, jaskirat bedi wrote:
 Please help.
 On Mon, Jan 5, 2015 at 12:47 AM, jaskirat bedi jaskirat.s.b...@gmail.com
 wrote:
  I have a modem from SIMCOM and I am trying to connect the same using
  kannel but I am getting the response as ERROR: AT2[/dev/ttyUSB0]: Wrong or
  no answer to ATZ.
 
  Although, if I am trying to access the same using minicom, I am able to do
  it and get response for AT commands but if I try the same using wvdial than
  I get no response.
 
  Please help me in sorting this as I am struggling with this since last 1
  month.

Does you Kannel have rights to access /dev/ttyUSB0



Re: Delivery DLRs not appearing in logs

2014-12-02 Thread Milan P. Stanic
On Tue, 2014-12-02 at 17:07, ha...@aeon.pk wrote:
 A good question! :-)
 
 I did use 63, as I am using it since quite some time (and it works).
 However on your alert, I checked the userguide to see that 63 should not be
 a combination at all. But I am pretty sure that I read it somewhere else,
 that's why I started using it. It would be something like 63=31+32, where I
 need to dig out what 32 status is for.

Mask is binary but dlr-mask parameter is decimal encoding of the desired
delivery reports. Decimal values for particular delivery report are:

 16 == SMSC Rejected, response would be NACK/##/SOMETEXT
  8 == SMSC Accepted, response would be ACK/
  4 == Carrier Accepted
  2 == Handset Rejected/Failed
  1 == Handset Delivered

So, if you set dlr-mask to 63 it have all five (lower) bits set to 1 and
you get the same result as with dlr-mask equal to 31. I didn't looked at
code but I presume that dlr-mask could be set to 127 or even 255 (all
lower five bits are set to 1) and you will have the reports as with mask
set to 31.

31 is 1 in binary form
63 is 11 in binary
Notice that lower five bits have all 1 values.

Kannel ignores unused bits in dlr-mask probably, I didn't checked the
source.

 Will update you as I find some info.
 
 On Tue, Dec 2, 2014 at 6:38 AM, spameden spame...@gmail.com wrote:
 
  with DLR mask 63
 
  did you mean 31 ?
 
  2014-12-01 23:34 GMT+03:00 ha...@aeon.pk ha...@aeon.pk:
 
  Resolved.
 
  In connection 'group = smsc', add line 'msg-id-type = 0x01' to fix the
  issue.
 
  On Tue, Dec 2, 2014 at 12:04 AM, ha...@aeon.pk ha...@aeon.pk wrote:
 
  Hi,
 
  I have 2 SMSC connections. I am sending the same message with DLR mask
  63 (to get all possible delivery states). One SMSC connection is giving me
  submission-to-SMSC DLR and then DELIVERED DLR, both appearing in kannel
  traffic logs. The other connection is only giving me submission-to-SMSC
  DLR, and not the DELIVERED DLR in traffic logs. I took tcpdump trace to
  discover that the DELIVERED DLR is infact coming to kannel but for some
  reason, kannel is not showing it in the traffic log.
 
  Any idea which parameter to change for this DLR to appear in the logs?
 
  Regards,
  Hamza
 
 
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Configure --with-ssl

2014-11-10 Thread Milan P. Stanic
On Mon, 2014-11-10 at 08:09, Willy Mularto wrote:
 I don't think the package is exist in Ubuntu. All I found is openssl,
 libnssl-dev, is there any other?
 
On Debian derived distribution (Ubuntu, ...) there is no openssl-devel
package.

 On Mon, 10 Nov 2014 15:03 Tapan Kumar Thapa tapan.thapa2...@gmail.com
 wrote:
  Have you also installed openssl-devel package?
  On Mon, Nov 10, 2014 at 1:27 PM, Willy Mularto sangpr...@gmail.com
  wrote:
  Just tried to install Kannel with SSL enabled on Ubuntu, already
  installed openssl and libssl-dev, the configure returns error “Unable to
  find OpenSSL libs and/or directories at yes”
  Is there any dependency I forget to install? Thanks

Maybe these:
libpam0g-dev, autoconf, automake, autotools-dev, libpcre3-dev,
debhelper ( 7.0.0), libxml2-dev

and libs for your SQL server if you use them.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Configure --with-ssl

2014-11-10 Thread Milan P. Stanic
On Mon, 2014-11-10 at 16:24, Willy Mularto wrote:
 I have checked *ssl* package that’s already installed in my Ubuntu, and found 
 libssl, libssl-dev, libssl0.9.8, libssl08-dev, libssl09-dev, libssl095a-dev, 
 libssl096-dev, openssl,  and still got this error “Configuring OpenSSL 
 support ...
 configure: error: Unable to find OpenSSL libs and/or directories at yes” is 
 there anything else we need here? Thanks.

Do you have '--with-ssl=yes' parameter in the configure command line, by
chance?

If answer is yes replace it with --enable-ssl and try again.

If answer is no then post your complete 'configure' command line here
(to list).

  On Nov 10, 2014, at 4:00 PM, Milan P. Stanic m...@arvanta.net wrote:
  
  On Mon, 2014-11-10 at 08:09, Willy Mularto wrote:
  I don't think the package is exist in Ubuntu. All I found is openssl,
  libnssl-dev, is there any other?
  
  On Debian derived distribution (Ubuntu, ...) there is no openssl-devel
  package.
  
  On Mon, 10 Nov 2014 15:03 Tapan Kumar Thapa tapan.thapa2...@gmail.com
  wrote:
  Have you also installed openssl-devel package?
  On Mon, Nov 10, 2014 at 1:27 PM, Willy Mularto sangpr...@gmail.com
  wrote:
  Just tried to install Kannel with SSL enabled on Ubuntu, already
  installed openssl and libssl-dev, the configure returns error “Unable to
  find OpenSSL libs and/or directories at yes”
  Is there any dependency I forget to install? Thanks

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Configure --with-ssl

2014-11-10 Thread Milan P. Stanic
On Mon, 2014-11-10 at 13:09, spameden wrote:
 You need to install libssl-dev on Ubuntu.
 
You answered to wrong person.

 And depends on the Ubuntu version OpenSSL will be 0.9.8 or 1.0.0 line.
 Kannel compiles fine with both 0.9.8 and 1.0.0+.

OP (Willy) wrote in his mail that he is already installed libssl-dev. 

 2014-11-10 12:43 GMT+03:00 Milan P. Stanic m...@arvanta.net:
  On Mon, 2014-11-10 at 16:24, Willy Mularto wrote:
   I have checked *ssl* package that’s already installed in my Ubuntu, and
  found libssl, libssl-dev, libssl0.9.8, libssl08-dev, libssl09-dev,
  libssl095a-dev, libssl096-dev, openssl,  and still got this error
  “Configuring OpenSSL support ...
   configure: error: Unable to find OpenSSL libs and/or directories at yes”
  is there anything else we need here? Thanks.
 
  Do you have '--with-ssl=yes' parameter in the configure command line, by
  chance?
 
  If answer is yes replace it with --enable-ssl and try again.
 
  If answer is no then post your complete 'configure' command line here
  (to list).
 
On Nov 10, 2014, at 4:00 PM, Milan P. Stanic m...@arvanta.net wrote:
   
On Mon, 2014-11-10 at 08:09, Willy Mularto wrote:
I don't think the package is exist in Ubuntu. All I found is openssl,
libnssl-dev, is there any other?
   
On Debian derived distribution (Ubuntu, ...) there is no openssl-devel
package.
   
On Mon, 10 Nov 2014 15:03 Tapan Kumar Thapa 
  tapan.thapa2...@gmail.com
wrote:
Have you also installed openssl-devel package?
On Mon, Nov 10, 2014 at 1:27 PM, Willy Mularto sangpr...@gmail.com
wrote:
Just tried to install Kannel with SSL enabled on Ubuntu, already
installed openssl and libssl-dev, the configure returns error
  “Unable to
find OpenSSL libs and/or directories at yes”
Is there any dependency I forget to install? Thanks

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: you must have the libxml2 (aka gnome-xml) library installed

2014-08-25 Thread Milan P. Stanic
On Mon, 2014-08-25 at 08:05, Willy Mularto wrote:
 install it using rpm ;)

Looks like he needs to install libxml2-dev package (and probably rest of
development packages for Kannel building).

So, your advice is quite appropriate but with small addition:
Install Kannel using rpm

And this (reworded with 'your distribution package manager' instead of
'rpm') should be written on the Kannel web site with big font in red
color. 

 
 
 Willy Mularto
 SMS Gateway, Content Provider, Mobile Solution Specialist
 M: +62811923464, +62818923464
 PIN BBM: 74924429
 
 
 
 On Aug 23, 2014, at 11:31 PM, Sandesh Pradhan merosand...@gmail.com wrote:
 
  Dear Kannel user community,
  
  I am a new bie and trying to install kannel(1.4.3) in RedHat 6.5.
  After i untar the source file and go to the source folder,when i type 
  ./configure I get 
  you must have the libxml2 (aka gnome-xml) library installed
  
  I already have libxml2 package installed verified by rpm -q libxml2,
  
  what am i missing here ?
  
  Any help would be appreciated.
  
  -- 
  Sandesh Pradhan
  Nepal
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel integration to K3565

2014-05-30 Thread Milan P. Stanic
On Thu, 2014-05-29 at 16:53, Hatem Sabrey wrote:
 Hello gentlemen
 
 for the current kannel deployment, we need to use the GSM modem of Huawei 
 K3565 to receive and send SMS,
 kindly help regarding the USM installation on the debian OS.
 or what is the alternatives i may have.   
   

Few weeks ago I posted mail explaining how to install Kannel 1.5 on
Debian and derived distributions: 

http://kannel.6189.n7.nabble.com/Upgrading-Kannel-from-version-1-4-2-to-1-5-0-td29898i20.html#a29953

N.B. I've built this packages but I didn't tested them because I do not
have SMPP connection to any provider.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: modem connection

2014-05-12 Thread Milan P. Stanic
On Sun, 2014-05-11 at 22:15, Daniel Boira wrote:
 last trial:
 
 lsusb:
 Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 Bus 001 Device 009: *ID 12d1:1003* Huawei Technologies Co., Ltd. E220 HSDPA
 Modem / E230/E270/E870 HSDPA/HSUPA Modem
 Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
 Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
 Bus 001 Device 005: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
 Bus 001 Device 006: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
 Bus 001 Device 007: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax
 TouchScreen
 
 new file 20-local.rules on /etc/udev/rules.d/
 ATTRS{idVendor}==12d1, ATTRS{idProduct}==1003, NAME==ttyHe220,
 OWNER=etq, GROUP=dialout

Why did you set owner to etq? It should be set to kannel.
 
 on kannel.conf
 
 device = dev/ttyHe220

device = /dev/ttyHe220
 ^
You are missing first slash.

Did you check if the device is created or is the symlink created and
what are permissions if the file is created.

e.g.
ls -l /dev/ttyHe220

 finally, the log of kannel:
 2014-05-11 21:58:46 [1897] [6] INFO: AT2[/dev/ttyHe220]: opening device
 2014-05-11 21:58:46 [1897] [6] ERROR: AT2[/dev/ttyHe220]: open failed!
 ERRNO=2
 2014-05-11 21:58:46 [1897] [6] ERROR: System error 2: No such file or
 directory
 2014-05-11 21:58:46 [1897] [6] INFO: AT2[/dev/ttyHe220]: cannot detect speed
 2014-05-11 21:58:46 [1897] [6] ERROR: AT2[/dev/ttyHe220]: Couldn't connect
 (retrying in 10 seconds).
 
 
 I supouse there are something wrong.
 Any help?

These questions belongs to Linux/Unix administration and not Kannel.
Internet is full of the good quality books about this and a lot of them
are free.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: modem connection

2014-05-09 Thread Milan P. Stanic
On Fri, 2014-05-09 at 11:16, Daniel Boira wrote:
 On 06/05/2014 Milan Stanic wrote:
 On Linux that can be done by setting udev rules using attributes
 (vendor and product id are enough).
 Example from one of my /etc/udev/rules.d/local.rules files:
 ATTR{idVendor}==22b8, ATTR{idProduct}==6422, SYMLINK+=razrv8,
 MODE=0660, OWNER=kannel
 ATTR{idVendor}==22b8, ATTR{idProduct}==3802, NAME=a1200, MODE=0660,
 OWNER=kannel, GROUP=dialout
 ATTR{idVendor}==0fce, ATTR{idProduct}==d0d9, SYMLINK+=sony,
 MODE=0660, OWNER=kannel
 Restart/reload udevd or machine.
 Devices becomes (and stays persistent):
 /dev/razrv8
 /dev/a1200
 /dev/sony
 
 ***
 
 Milan, is there any method or command to obtain that information (idVendor,
 dProduct, etc.)?

lsusb (list usb devices)

example:

Bus 004 Device 011: ID 046d:c714 Logitech, Inc. diNovo Edge Keyboard
Bus 004 Device 010: ID 046d:c713 Logitech, Inc.
Bus 004 Device 009: ID 046d:0b04 Logitech, Inc.
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a46:9601 Davicom Semiconductor, Inc. DM9601 Fast 
Ethernet Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 1bcf:2883 Sunplus Innovation Technology Inc.
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Look at these: 046d is Logitech (vendor) and it is repeated for every
Logitech product. Every different Logitech product have different ID
(no serial number or something else, but Product ID)

If you insert your modem/usb dongle it should be listed but you have to
to find it's name in the list.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: modem connection

2014-05-08 Thread Milan P. Stanic
On Wed, 2014-05-07 at 18:56, Alvaro Cornejo wrote:
 That is a totally different issue. That might happen if you disconnect
 your modem from the PC and reinsert it. Maybe this also happens if you
 turn it off/on. This shouldn´t happen by itself since /dev/tty is
 defined by kernel on device detection.
 
 There is a workaround predefining the /dev/xxx for the usb device but
 didn´t remember how it is done.
 

On Linux that can be done by setting udev rules using attributes
(vendor and product id are enough).
Example from one of my /etc/udev/rules.d/local.rules files:

ATTR{idVendor}==22b8, ATTR{idProduct}==6422, SYMLINK+=razrv8, 
MODE=0660, OWNER=kannel
ATTR{idVendor}==22b8, ATTR{idProduct}==3802, NAME=a1200, MODE=0660, 
OWNER=kannel, GROUP=dialout
ATTR{idVendor}==0fce, ATTR{idProduct}==d0d9, SYMLINK+=sony, MODE=0660, 
OWNER=kannel

Restart/reload udevd or machine.

Devices becomes (and stays persistent):
/dev/razrv8
/dev/a1200
/dev/sony

 Regards
 Alvaro

-- 
Kind regards
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-04 Thread Milan P. Stanic
On Sat, 2014-05-03 at 02:37, MOSES KARIUKI wrote:
 Sorry for that. The copy of config files was deleting empty lines. I
 managed to clear it. Please guide me in configuring opensmppbox on the
 kannel.

OK. Here it is:

First, remove all instances of the kannel from machine i.e. installed
using apt or compiled locally and installed using 'make install'

Remove or archive/move all config files to some place.

Then, and only then do the next:

Add repository to /etc/apt/sources.list file
deb http://www.arvanta.net/apt/ wheezy main

Download my public key and install it with:
wget -q -O- http://www.arvanta.net/apt/dists/wheezy/Release.gpg | sudo apt-key 
add -

Update apt
apt-get update

Install:
apt-get install 'package name'
example:
apt-get install kannel
apt-get install kannel-opensmppbox

Then you will have installed kannel 1.5.0 and opensmppbox which is
included with this kannel version in addons directory.

Read the documentation and then edit config files.

N.B. I didn't made opensmppbox init script because I never used
opensmppbox for anything serious, just played with it.

N.B. Download link is behind DSL so expect really slow download of the
files.

 On Sat, May 3, 2014 at 2:13 AM, MOSES KARIUKI kariuk...@gmail.com wrote:
 
  Hi Milan,
 
  You have been very helpful.
 
  I was able to install the
  However, I got the following error:
 
  root@rzpeiz52m2:/etc/kannel# sudo smsbox -v 0 /etc/kannel/kannel.conf
  2014-05-02 22:56:36 [1507] [0] INFO: Debug_lvl = 0, log_file = none,
  log_lvl = 0
  2014-05-02 22:56:36 [1507] [0] ERROR: Group 'sms-service' may not contain
  field 'log-level'.
  2014-05-02 22:56:36 [1507] [0] ERROR: Error found on line 45 of file
  `/etc/kannel/kannel.conf'.
 
  What im I doing wrong?
 
  Please share the deb package for Wheezy. Maybe it might help.
 
  Thanks,
  MT
 
 
 
 
 
  On Sat, May 3, 2014 at 12:25 AM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Sat, 2014-05-03 at 00:11, MOSES KARIUKI wrote:
   Hi,
   these are my results:
dpkg -i kannel-dev_1.5.0-0_amd64.deb
   Selecting previously unselected package kannel-dev.
   (Reading database ... 84200 files and directories currently installed.)
   Unpacking kannel-dev (from kannel-dev_1.5.0-0_amd64.deb) ...
   Setting up kannel-dev (1.5.0-0) ...
   Processing triggers for man-db ...
  
   But when i check, there is no kannel file under /etc/default
 
  Of course, because you installed just development package. It contains
  headers and libraries needed to compile/build opensmppbox (and some
  other packages which uses kannel libraries).
 
  If you want to install kannel servers (bearerbox, smsbox, wapbox) you
  have to install kannel_1.5.0-0_amd64.deb packages.
 
  Then you will find /etc/default/kannel file, /etc/kannel directory with
  config files, and /etc/init.d/kannel script which starts and stops
  kannel at the boot (but can be invoked manually, also).
 
  FYI, I just built kannel deb packages for Wheezy distro and as a bonus
  opensmppbox deb package. If someone allow me to upload them somewhere it
  would be accessible to all, not only to me.
  And, I can build complete apt-get-able repository if someone are ready
  and have resources to host that repository.
 
   On Fri, May 2, 2014 at 11:56 PM, Milan P. Stanic m...@arvanta.net
  wrote:
  
On Fri, 2014-05-02 at 23:50, MOSES KARIUKI wrote:
 Hi Milan,
 Thanks a lot for your help.

 cat /etc/debian_version
 NAME=Ubuntu
 VERSION=12.04.4 LTS, Precise Pangolin
 ID=ubuntu
 ID_LIKE=debian
 PRETTY_NAME=Ubuntu precise (12.04.4 LTS)
 VERSION_ID=12.04

 cat /etc/debian_version
 wheezy/sid

 dpkg --print-architecture
 amd64
   
I don't know much about Ubuntu but from above looks like you should
install amd64 variant and not i386 of the packages, but I'm not sure
because in your previous mail (see below) when you tried i386 variant
dpkg didn't complained about architecture.
   
 On Fri, May 2, 2014 at 11:37 PM, Milan P. Stanic m...@arvanta.net
wrote:

  On Fri, 2014-05-02 at 23:21, MOSES KARIUKI wrote:
   Hi Milan,
 
  Before we continue please give us information about your OS.
  Post the output of the next few commands. First:
  cat /etc/os-release
 
  If it says Debian or Ubuntu try next:
  cat /etc/debian_version
 
  and:
  dpkg --print-architecture
 
   Below is the error i am getting now.
  
   Unpacking kannel-dev:i386 (from kannel-dev_1.5.0-0_i386.deb) ...
   dpkg: dependency problems prevent configuration of
  kannel-dev:i386:
kannel-dev:i386 depends on libssl-dev.
kannel-dev:i386 depends on libpam0g-dev.
kannel-dev:i386 depends on libxml2-dev.
kannel-dev:i386 depends on libpcre3-dev.
kannel-dev:i386 depends on libmysqlclient-dev.
kannel-dev:i386 depends on libsqlite0-dev.
kannel-dev:i386 depends on libsqlite3-dev.
kannel-dev:i386

Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 13:07, MOSES KARIUKI wrote:
 Sorry for the error.
 I have the following statement on my installed kannel interface:
 Kannel bearerbox version `1.4.3'. Build `Nov 24 2011 09:54:00
 I need to install OpenSMPPBox so that I can support as SMPP server. I
 installed it using the apt-get command.
 Please assist me with notes/info to upgarde to Kannel 1.5.0 so that I can
 install openSMPPBox.

To install .deb packages go to:
https://redmine.kannel.org/projects/kannel/files

Files are not 'apt-get'-able (sorry, I don't have fast link where I
can put repository) but have to be installed using dpkg (man dpkg).

You have to install kannel-dev_1.5.0-0_amd64.deb and after that to
compile/install opensmppbox



Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 14:35, MOSES KARIUKI wrote:
 After purging the previous Kannel, I have been able to install using make
 install. I am using Ubuntu.
 
 The bearerbox is running fine. But Once I shut down the Terminal, it shuts
 down the Kannel. I would like to know how I can run kannel as a service
 such that when I close the terminal, kannel wont shut down.

If you download it and install from deb files (link in my original mail)
you will find file /etc/default/kannel which you have to edit to enable
or disable smsbox and wapbox.

After that you can start and stop kannel using CLI command:
/etc/init.d/kannel start
or to stop it:
/etc/init.d/kannel start

Kannel will 'run as a service' i.e. in daemon mode.

 On Fri, May 2, 2014 at 1:39 PM, Milan P. Stanic m...@arvanta.net wrote:
  On Fri, 2014-05-02 at 13:07, MOSES KARIUKI wrote:
   Sorry for the error.
   I have the following statement on my installed kannel interface:
   Kannel bearerbox version `1.4.3'. Build `Nov 24 2011 09:54:00
   I need to install OpenSMPPBox so that I can support as SMPP server. I
   installed it using the apt-get command.
   Please assist me with notes/info to upgarde to Kannel 1.5.0 so that I can
   install openSMPPBox.
 
  To install .deb packages go to:
  https://redmine.kannel.org/projects/kannel/files
 
  Files are not 'apt-get'-able (sorry, I don't have fast link where I
  can put repository) but have to be installed using dpkg (man dpkg).
 
  You have to install kannel-dev_1.5.0-0_amd64.deb and after that to
  compile/install opensmppbox

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote:
 I followed this instructions but I used gateway version 1.5.0. However, I
 cant find the kannel file under default.
 Do i have to uninstall it and Install from Milan's dpkg in the link?

If you don't have experience in compiling software yourself it would be
a lot easier for you to download files I mentioned earlier and install
them 'by hand'.

Files at: 
https://redmine.kannel.org/projects/kannel/files
are built for Debian Squeeze, but they work on Ubuntu and other
derivative distributions which are based on Squeeze release and later
Debian (wheezy). I think they should work on the last few versions of
Ubuntu, also.

First, you have to remove whatever kannel files you installed/compiled
and then install .deb files by hand. For example:

dpkg -i kannel_1.5.0-1_amd64.deb
dpkg -i kannel-dev_1.5.0-1_amd64.deb (if you want to install development
files)

dpkg will complain (probably) that dependencies are not satisfied but
ignore that and start aptitude or synaptic (or appropriate package
manager) and install missing dependencies (packages which are required
for kannel).

After that you should have to configure/edit files in /etc/kannel/
according your need.

These steps are for Debian based distributions and not for RH/Centos.


 On Fri, May 2, 2014 at 2:43 PM, Milan P. Stanic m...@arvanta.net wrote:
  On Fri, 2014-05-02 at 14:35, MOSES KARIUKI wrote:
   After purging the previous Kannel, I have been able to install using make
   install. I am using Ubuntu.
  
   The bearerbox is running fine. But Once I shut down the Terminal, it
  shuts
   down the Kannel. I would like to know how I can run kannel as a service
   such that when I close the terminal, kannel wont shut down.
 
  If you download it and install from deb files (link in my original mail)
  you will find file /etc/default/kannel which you have to edit to enable
  or disable smsbox and wapbox.
 
  After that you can start and stop kannel using CLI command:
  /etc/init.d/kannel start
  or to stop it:
  /etc/init.d/kannel start
 
  Kannel will 'run as a service' i.e. in daemon mode.
   On Fri, May 2, 2014 at 1:39 PM, Milan P. Stanic m...@arvanta.net wrote:
On Fri, 2014-05-02 at 13:07, MOSES KARIUKI wrote:
 Sorry for the error.
 I have the following statement on my installed kannel interface:
 Kannel bearerbox version `1.4.3'. Build `Nov 24 2011 09:54:00
 I need to install OpenSMPPBox so that I can support as SMPP server. I
 installed it using the apt-get command.
 Please assist me with notes/info to upgarde to Kannel 1.5.0 so that
  I can
 install openSMPPBox.
   
To install .deb packages go to:
https://redmine.kannel.org/projects/kannel/files
   
Files are not 'apt-get'-able (sorry, I don't have fast link where I
can put repository) but have to be installed using dpkg (man dpkg).
   
You have to install kannel-dev_1.5.0-0_amd64.deb and after that to
compile/install opensmppbox

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 18:23, MOSES KARIUKI wrote:
 HI Milan,
 
 This is the error I am getting:
 
 dpkg: error processing kannel-dev_1.5.0-0_amd64.deb (--install):
  kannel-dev: 1.5.0-0 (Multi-Arch: no) is not co-installable with
 kannel-dev:i386 1.5.0-0 (Multi-Arch: no) which is currently installed
 
 Please assist.

Looks like you have i386 arch installed.
Download i386 files instead of amd64 and try to install them.
But, first you must uninstall currently installed packages. 

 MT
 
 
 On Fri, May 2, 2014 at 5:19 PM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote:
   I followed this instructions but I used gateway version 1.5.0. However, I
   cant find the kannel file under default.
   Do i have to uninstall it and Install from Milan's dpkg in the link?
 
  If you don't have experience in compiling software yourself it would be
  a lot easier for you to download files I mentioned earlier and install
  them 'by hand'.
 
  Files at:
  https://redmine.kannel.org/projects/kannel/files
  are built for Debian Squeeze, but they work on Ubuntu and other
  derivative distributions which are based on Squeeze release and later
  Debian (wheezy). I think they should work on the last few versions of
  Ubuntu, also.
 
  First, you have to remove whatever kannel files you installed/compiled
  and then install .deb files by hand. For example:
 
  dpkg -i kannel_1.5.0-1_amd64.deb
  dpkg -i kannel-dev_1.5.0-1_amd64.deb (if you want to install development
  files)
 
  dpkg will complain (probably) that dependencies are not satisfied but
  ignore that and start aptitude or synaptic (or appropriate package
  manager) and install missing dependencies (packages which are required
  for kannel).
 
  After that you should have to configure/edit files in /etc/kannel/
  according your need.
 
  These steps are for Debian based distributions and not for RH/Centos.
 
 
   On Fri, May 2, 2014 at 2:43 PM, Milan P. Stanic m...@arvanta.net wrote:
On Fri, 2014-05-02 at 14:35, MOSES KARIUKI wrote:
 After purging the previous Kannel, I have been able to install using
  make
 install. I am using Ubuntu.

 The bearerbox is running fine. But Once I shut down the Terminal, it
shuts
 down the Kannel. I would like to know how I can run kannel as a
  service
 such that when I close the terminal, kannel wont shut down.
   
If you download it and install from deb files (link in my original
  mail)
you will find file /etc/default/kannel which you have to edit to enable
or disable smsbox and wapbox.
   
After that you can start and stop kannel using CLI command:
/etc/init.d/kannel start
or to stop it:
/etc/init.d/kannel start
   
Kannel will 'run as a service' i.e. in daemon mode.
 On Fri, May 2, 2014 at 1:39 PM, Milan P. Stanic m...@arvanta.net
  wrote:
  On Fri, 2014-05-02 at 13:07, MOSES KARIUKI wrote:
   Sorry for the error.
   I have the following statement on my installed kannel interface:
   Kannel bearerbox version `1.4.3'. Build `Nov 24 2011 09:54:00
   I need to install OpenSMPPBox so that I can support as SMPP
  server. I
   installed it using the apt-get command.
   Please assist me with notes/info to upgarde to Kannel 1.5.0 so
  that
I can
   install openSMPPBox.
 
  To install .deb packages go to:
  https://redmine.kannel.org/projects/kannel/files
 
  Files are not 'apt-get'-able (sorry, I don't have fast link where I
  can put repository) but have to be installed using dpkg (man dpkg).
 
  You have to install kannel-dev_1.5.0-0_amd64.deb and after that to
  compile/install opensmppbox
 
  --
  Kind regards,  Milan
  --
  Arvanta,http://www.arvanta.net
  Please do not send me e-mail containing HTML code or documents in
  proprietary format (word, excel, pps and so on)
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 23:21, MOSES KARIUKI wrote:
 Hi Milan,

Before we continue please give us information about your OS.
Post the output of the next few commands. First:
cat /etc/os-release

If it says Debian or Ubuntu try next:
cat /etc/debian_version

and:
dpkg --print-architecture

 Below is the error i am getting now.
 
 Unpacking kannel-dev:i386 (from kannel-dev_1.5.0-0_i386.deb) ...
 dpkg: dependency problems prevent configuration of kannel-dev:i386:
  kannel-dev:i386 depends on libssl-dev.
  kannel-dev:i386 depends on libpam0g-dev.
  kannel-dev:i386 depends on libxml2-dev.
  kannel-dev:i386 depends on libpcre3-dev.
  kannel-dev:i386 depends on libmysqlclient-dev.
  kannel-dev:i386 depends on libsqlite0-dev.
  kannel-dev:i386 depends on libsqlite3-dev.
  kannel-dev:i386 depends on libpq-dev.
 dpkg: error processing kannel-dev:i386 (--install):
  dependency problems - leaving unconfigured
 Processing triggers for man-db ...

It looks like you have some kind of Debian derived OS and that the
architecture is i386 i.e. 32-bit machine/CPU/

Try next:
apt-get install libssl-dev libpam0g-dev libxml2-dev libpcre3-dev 
libmysqlclient-dev libsqlite0-dev libsqlite3-dev libpq-dev

It will ask you to install additional development packages, just say Yes
i.e. press y key.

And, from the other thread I see that you trying to install .deb
packages for kannel and at the same time you are trying to build and
install kannel from the source. This is not quite wise for beginners.

Decide which method/way you want to follow: debs or source.

 On Fri, May 2, 2014 at 9:24 PM, MOSES KARIUKI kariuk...@gmail.com wrote:
 
  Thanks Milan,
 
  I tried
  and got the error:
  dpkg: error processing kannel-dev:i386 (--install):
   dependency problems - leaving unconfigured
  Processing triggers for man-db ...
  Errors were encountered while processing:
   kannel-dev:i386
 
  Moses
 
 
  On Fri, May 2, 2014 at 6:41 PM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Fri, 2014-05-02 at 18:23, MOSES KARIUKI wrote:
   HI Milan,
  
   This is the error I am getting:
  
   dpkg: error processing kannel-dev_1.5.0-0_amd64.deb (--install):
kannel-dev: 1.5.0-0 (Multi-Arch: no) is not co-installable with
   kannel-dev:i386 1.5.0-0 (Multi-Arch: no) which is currently installed
  
   Please assist.
 
  Looks like you have i386 arch installed.
  Download i386 files instead of amd64 and try to install them.
  But, first you must uninstall currently installed packages.
 
   MT
  
  
   On Fri, May 2, 2014 at 5:19 PM, Milan P. Stanic m...@arvanta.net
  wrote:
  
On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote:
 I followed this instructions but I used gateway version 1.5.0.
  However, I
 cant find the kannel file under default.
 Do i have to uninstall it and Install from Milan's dpkg in the link?
   
If you don't have experience in compiling software yourself it would
  be
a lot easier for you to download files I mentioned earlier and install
them 'by hand'.
   
Files at:
https://redmine.kannel.org/projects/kannel/files
are built for Debian Squeeze, but they work on Ubuntu and other
derivative distributions which are based on Squeeze release and later
Debian (wheezy). I think they should work on the last few versions of
Ubuntu, also.
   
First, you have to remove whatever kannel files you installed/compiled
and then install .deb files by hand. For example:
   
dpkg -i kannel_1.5.0-1_amd64.deb
dpkg -i kannel-dev_1.5.0-1_amd64.deb (if you want to install
  development
files)
   
dpkg will complain (probably) that dependencies are not satisfied but
ignore that and start aptitude or synaptic (or appropriate package
manager) and install missing dependencies (packages which are required
for kannel).
   
After that you should have to configure/edit files in /etc/kannel/
according your need.
   
These steps are for Debian based distributions and not for RH/Centos.
   
   
 On Fri, May 2, 2014 at 2:43 PM, Milan P. Stanic m...@arvanta.net
  wrote:
  On Fri, 2014-05-02 at 14:35, MOSES KARIUKI wrote:
   After purging the previous Kannel, I have been able to install
  using
make
   install. I am using Ubuntu.
  
   The bearerbox is running fine. But Once I shut down the
  Terminal, it
  shuts
   down the Kannel. I would like to know how I can run kannel as a
service
   such that when I close the terminal, kannel wont shut down.
 
  If you download it and install from deb files (link in my original
mail)
  you will find file /etc/default/kannel which you have to edit to
  enable
  or disable smsbox and wapbox.
 
  After that you can start and stop kannel using CLI command:
  /etc/init.d/kannel start
  or to stop it:
  /etc/init.d/kannel start
 
  Kannel will 'run as a service' i.e. in daemon mode.
   On Fri, May 2, 2014 at 1:39 PM, Milan P. Stanic 
  m

Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Fri, 2014-05-02 at 23:50, MOSES KARIUKI wrote:
 Hi Milan,
 Thanks a lot for your help.
 
 cat /etc/debian_version
 NAME=Ubuntu
 VERSION=12.04.4 LTS, Precise Pangolin
 ID=ubuntu
 ID_LIKE=debian
 PRETTY_NAME=Ubuntu precise (12.04.4 LTS)
 VERSION_ID=12.04
 
 cat /etc/debian_version
 wheezy/sid
 
 dpkg --print-architecture
 amd64

I don't know much about Ubuntu but from above looks like you should
install amd64 variant and not i386 of the packages, but I'm not sure
because in your previous mail (see below) when you tried i386 variant
dpkg didn't complained about architecture.

 On Fri, May 2, 2014 at 11:37 PM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Fri, 2014-05-02 at 23:21, MOSES KARIUKI wrote:
   Hi Milan,
 
  Before we continue please give us information about your OS.
  Post the output of the next few commands. First:
  cat /etc/os-release
 
  If it says Debian or Ubuntu try next:
  cat /etc/debian_version
 
  and:
  dpkg --print-architecture
 
   Below is the error i am getting now.
  
   Unpacking kannel-dev:i386 (from kannel-dev_1.5.0-0_i386.deb) ...
   dpkg: dependency problems prevent configuration of kannel-dev:i386:
kannel-dev:i386 depends on libssl-dev.
kannel-dev:i386 depends on libpam0g-dev.
kannel-dev:i386 depends on libxml2-dev.
kannel-dev:i386 depends on libpcre3-dev.
kannel-dev:i386 depends on libmysqlclient-dev.
kannel-dev:i386 depends on libsqlite0-dev.
kannel-dev:i386 depends on libsqlite3-dev.
kannel-dev:i386 depends on libpq-dev.
   dpkg: error processing kannel-dev:i386 (--install):
dependency problems - leaving unconfigured
   Processing triggers for man-db ...
 
  It looks like you have some kind of Debian derived OS and that the
  architecture is i386 i.e. 32-bit machine/CPU/
 
  Try next:
  apt-get install libssl-dev libpam0g-dev libxml2-dev libpcre3-dev
  libmysqlclient-dev libsqlite0-dev libsqlite3-dev libpq-dev
 
  It will ask you to install additional development packages, just say Yes
  i.e. press y key.
 
  And, from the other thread I see that you trying to install .deb
  packages for kannel and at the same time you are trying to build and
  install kannel from the source. This is not quite wise for beginners.
 
  Decide which method/way you want to follow: debs or source.
 
   On Fri, May 2, 2014 at 9:24 PM, MOSES KARIUKI kariuk...@gmail.com
  wrote:
  
Thanks Milan,
   
I tried
and got the error:
dpkg: error processing kannel-dev:i386 (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db ...
Errors were encountered while processing:
 kannel-dev:i386
   
Moses
   
   
On Fri, May 2, 2014 at 6:41 PM, Milan P. Stanic m...@arvanta.net
  wrote:
   
On Fri, 2014-05-02 at 18:23, MOSES KARIUKI wrote:
 HI Milan,

 This is the error I am getting:

 dpkg: error processing kannel-dev_1.5.0-0_amd64.deb (--install):
  kannel-dev: 1.5.0-0 (Multi-Arch: no) is not co-installable with
 kannel-dev:i386 1.5.0-0 (Multi-Arch: no) which is currently
  installed

 Please assist.
   
Looks like you have i386 arch installed.
Download i386 files instead of amd64 and try to install them.
But, first you must uninstall currently installed packages.
   
 MT


 On Fri, May 2, 2014 at 5:19 PM, Milan P. Stanic m...@arvanta.net
wrote:

  On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote:
   I followed this instructions but I used gateway version 1.5.0.
However, I
   cant find the kannel file under default.
   Do i have to uninstall it and Install from Milan's dpkg in the
  link?
 
  If you don't have experience in compiling software yourself it
  would
be
  a lot easier for you to download files I mentioned earlier and
  install
  them 'by hand'.
 
  Files at:
  https://redmine.kannel.org/projects/kannel/files
  are built for Debian Squeeze, but they work on Ubuntu and other
  derivative distributions which are based on Squeeze release and
  later
  Debian (wheezy). I think they should work on the last few
  versions of
  Ubuntu, also.
 
  First, you have to remove whatever kannel files you
  installed/compiled
  and then install .deb files by hand. For example:
 
  dpkg -i kannel_1.5.0-1_amd64.deb
  dpkg -i kannel-dev_1.5.0-1_amd64.deb (if you want to install
development
  files)
 
  dpkg will complain (probably) that dependencies are not satisfied
  but
  ignore that and start aptitude or synaptic (or appropriate package
  manager) and install missing dependencies (packages which are
  required
  for kannel).
 
  After that you should have to configure/edit files in /etc/kannel/
  according your need.
 
  These steps are for Debian based distributions and not for
  RH/Centos.
 
 
   On Fri, May 2, 2014 at 2:43 PM, Milan P. Stanic 
  m...@arvanta.net
wrote

Re: Upgrading Kannel from version 1.4.2 to 1.5.0

2014-05-02 Thread Milan P. Stanic
On Sat, 2014-05-03 at 00:11, MOSES KARIUKI wrote:
 Hi,
 these are my results:
  dpkg -i kannel-dev_1.5.0-0_amd64.deb
 Selecting previously unselected package kannel-dev.
 (Reading database ... 84200 files and directories currently installed.)
 Unpacking kannel-dev (from kannel-dev_1.5.0-0_amd64.deb) ...
 Setting up kannel-dev (1.5.0-0) ...
 Processing triggers for man-db ...
 
 But when i check, there is no kannel file under /etc/default
 
Of course, because you installed just development package. It contains
headers and libraries needed to compile/build opensmppbox (and some
other packages which uses kannel libraries).

If you want to install kannel servers (bearerbox, smsbox, wapbox) you
have to install kannel_1.5.0-0_amd64.deb packages.

Then you will find /etc/default/kannel file, /etc/kannel directory with
config files, and /etc/init.d/kannel script which starts and stops
kannel at the boot (but can be invoked manually, also).

FYI, I just built kannel deb packages for Wheezy distro and as a bonus 
opensmppbox deb package. If someone allow me to upload them somewhere it
would be accessible to all, not only to me.
And, I can build complete apt-get-able repository if someone are ready
and have resources to host that repository.

 On Fri, May 2, 2014 at 11:56 PM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Fri, 2014-05-02 at 23:50, MOSES KARIUKI wrote:
   Hi Milan,
   Thanks a lot for your help.
  
   cat /etc/debian_version
   NAME=Ubuntu
   VERSION=12.04.4 LTS, Precise Pangolin
   ID=ubuntu
   ID_LIKE=debian
   PRETTY_NAME=Ubuntu precise (12.04.4 LTS)
   VERSION_ID=12.04
  
   cat /etc/debian_version
   wheezy/sid
  
   dpkg --print-architecture
   amd64
 
  I don't know much about Ubuntu but from above looks like you should
  install amd64 variant and not i386 of the packages, but I'm not sure
  because in your previous mail (see below) when you tried i386 variant
  dpkg didn't complained about architecture.
 
   On Fri, May 2, 2014 at 11:37 PM, Milan P. Stanic m...@arvanta.net
  wrote:
  
On Fri, 2014-05-02 at 23:21, MOSES KARIUKI wrote:
 Hi Milan,
   
Before we continue please give us information about your OS.
Post the output of the next few commands. First:
cat /etc/os-release
   
If it says Debian or Ubuntu try next:
cat /etc/debian_version
   
and:
dpkg --print-architecture
   
 Below is the error i am getting now.

 Unpacking kannel-dev:i386 (from kannel-dev_1.5.0-0_i386.deb) ...
 dpkg: dependency problems prevent configuration of kannel-dev:i386:
  kannel-dev:i386 depends on libssl-dev.
  kannel-dev:i386 depends on libpam0g-dev.
  kannel-dev:i386 depends on libxml2-dev.
  kannel-dev:i386 depends on libpcre3-dev.
  kannel-dev:i386 depends on libmysqlclient-dev.
  kannel-dev:i386 depends on libsqlite0-dev.
  kannel-dev:i386 depends on libsqlite3-dev.
  kannel-dev:i386 depends on libpq-dev.
 dpkg: error processing kannel-dev:i386 (--install):
  dependency problems - leaving unconfigured
 Processing triggers for man-db ...
   
It looks like you have some kind of Debian derived OS and that the
architecture is i386 i.e. 32-bit machine/CPU/
   
Try next:
apt-get install libssl-dev libpam0g-dev libxml2-dev libpcre3-dev
libmysqlclient-dev libsqlite0-dev libsqlite3-dev libpq-dev
   
It will ask you to install additional development packages, just say
  Yes
i.e. press y key.
   
And, from the other thread I see that you trying to install .deb
packages for kannel and at the same time you are trying to build and
install kannel from the source. This is not quite wise for beginners.
   
Decide which method/way you want to follow: debs or source.
   
 On Fri, May 2, 2014 at 9:24 PM, MOSES KARIUKI kariuk...@gmail.com
wrote:

  Thanks Milan,
 
  I tried
  and got the error:
  dpkg: error processing kannel-dev:i386 (--install):
   dependency problems - leaving unconfigured
  Processing triggers for man-db ...
  Errors were encountered while processing:
   kannel-dev:i386
 
  Moses
 
 
  On Fri, May 2, 2014 at 6:41 PM, Milan P. Stanic m...@arvanta.net
wrote:
 
  On Fri, 2014-05-02 at 18:23, MOSES KARIUKI wrote:
   HI Milan,
  
   This is the error I am getting:
  
   dpkg: error processing kannel-dev_1.5.0-0_amd64.deb (--install):
kannel-dev: 1.5.0-0 (Multi-Arch: no) is not co-installable with
   kannel-dev:i386 1.5.0-0 (Multi-Arch: no) which is currently
installed
  
   Please assist.
 
  Looks like you have i386 arch installed.
  Download i386 files instead of amd64 and try to install them.
  But, first you must uninstall currently installed packages.
 
   MT
  
  
   On Fri, May 2, 2014 at 5:19 PM, Milan P. Stanic 
  m...@arvanta.net
  wrote:
  
On Fri, 2014-05-02 at 15:53, MOSES KARIUKI wrote

Re: Why is there no kannel google group

2014-04-29 Thread Milan P. Stanic
On Tue, 2014-04-29 at 19:23, spameden wrote:
 2014-04-29 18:46 GMT+04:00 Anil Singh Bafila anil.si...@iic.ac.in:
  Why I am asking this question
  1. It is very difficult to see the pasts questions asked by user
 Use google properly and you will find questions to frequently asked
 questions, but I'm agree with you there is definitely should be some WIKI
 or FAQ (redmine allows creating one).
  2. The mailing list archive is difficult to search
 Not really, see 1.
  3. Daily requests and problems can be seen easly on google group
 Google group is not really a solution, I'd say it's more difficult to use
 google groups instead of plain mailing lists (I don't like their UI at all).
 
Fully agree.

But want to add that the kannel lists are on the gmane.org and there is
'blog' interface. Just look to the:
http://blog.gmane.org/gmane.comp.mobile.kannel.user

  4. google group is more search-able.
 Not really, same as using google :)
  5.Kannel mailing list mails problem to every one who is subscribed
 As every other mailing list out there..
 
This is good and not bad feature of the mailing list.

  please dont take my questions in wrong way I just want to kow is there any
  specific reason of not having this, because all major projects use google
  group.
 
  If I am wrong please tell me the right way of using kannel mailing list.
  please reply

-- 
Kind regards



Re: List of cellphones as GSM modem for kannel

2014-04-16 Thread Milan P. Stanic
On Thu, 2014-03-27 at 19:46, ha...@aeon.pk wrote:
 As kannel's main environment is Linux, there are very few phones which work
 both ways (send/receive SMS) on Linux successfully. Till some time back, it
 was easy to find phones which work with kannel on Linux (my favorite ones
 being Sony Ericsson, almost every model works). But with new smartphones in
 the market, old ones are vanishing quickly, and new ones are not really
 fond of working as GSM modem.
 
 For the benefit of everyone on this list, I wish to build a list of phones
 which are working successfully (both send/receive SMS) with Kannel on
 Linux. If you have successfully used any such working phone, please add its
 make and model to this list for the benefit of all. Thanks!
 
 Sony Ericsson W810i
 Sony Ericsson K750i
 Sony Ericsson C510

Motorola A1200
Huawei E220

Maybe we should send detect-string, init-string and other important
parameters for modems if they are important for particular model.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: SMS lifetime

2014-04-08 Thread Milan P. Stanic
On Tue, 2014-04-08 at 10:29, Dorin wrote:
 I called SMSC support they have such time.
 I have read SMPP documentation there expects absolute and relative time
 format YYMMDDhhmmsstnnp
 I write validity parameter like it's write in the documentation / ...it
 should only try to send the message for this many *minutes*.../
 validity = 5; (I mean sqlbox parameter that's written in send_sms table)
 then I try smpp absolute format to send:
 validity = 140408123011000
 and relative format:
 validity = 050
 As result, all time I get +30, +40 years later.

I don't know how sqlbox handles validity parameter (never used or tested
sqlbox) but Kannel use minutes as the parameter to validity option in
HTTP interface (cgi-bin/sendsms) at least.

Kannel then calculates these minutes to the SMPP valid format (I can't
remember is it absolute or relative) and set it packet for the SMSC.

 I think there you have bugs.

Well, could be.
But you should tell which version of Kannel and sqlbox you use, how they
are built.

IIRC validity calculation is changed somewhat at the beginning of the
2013.

 some suspicions
 In code you use time stamp, but year 14 in timestamp is 1914 and not 2014.

I think this is a bug in SMPP specification because year is defined as
two number (0 - 99). But, if relative time used then the problem is
mitigated (though not solved).

 On 2 aprilie 2014 19:41, Milan P. Stanic wrote:
 On Wed, 2014-04-02 at 19:01, dorin wrote:
 I would appreciate any help or maybe some ideas.
 Or my problem is unsolvable?
 
 On 2014-03-31 18:16, dorin wrote:
 Hello all!
 I want to configure SMS validity under sqlbox. As I read in documentation
 I must set parameter validity with desired minutes.
 in my case I have validity = 5
 but on the SMSC arives  1032139564 minutes insted of 5.
 
 what I missed?
 It is absolute time in UTC, IIRC.
 Read the specification about SMPP and Kannel documentation.
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel and SDP

2014-04-04 Thread Milan P. Stanic
On Fri, 2014-04-04 at 17:04, MOSES KARIUKI wrote:
 Anyone ever used Kannel to connect to an SMSC using the SDP protocol? I
 would like to get a pointer to the links to the links that provide
 information on how to do it. I need to connect to an SMSC that uses SDP
 connectivity.
 
 Please assist.

I tried with patch Stipe posted but after some time I gave up and wrote
Perl module which I wrap in some scripts to handle SDP communication.

I'm contemplating to rewrite it in Go (golang) but I don't feel urge
because Perl works quite well.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: 2 Questions re Redis/Debian.

2014-04-04 Thread Milan P. Stanic
On Fri, 2014-04-04 at 17:33, Mashed Updata wrote:
 1. What real advantages does Redis offer to a non-commercial user of Kannel?
 
 2. Any idea when the .deb version of Kannel will catch up to the SVN
 version?

I thought about that i.e. to build  .debs from SVN.
But which revision from SVN is 'good enough' to roll into Debian
package?
I have a hope that we will see another stable Kannel release soon.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: SMS lifetime

2014-04-02 Thread Milan P. Stanic
On Wed, 2014-04-02 at 19:01, dorin wrote:
 I would appreciate any help or maybe some ideas.
 Or my problem is unsolvable?
 
 On 2014-03-31 18:16, dorin wrote:
 Hello all!
 I want to configure SMS validity under sqlbox. As I read in documentation
 I must set parameter validity with desired minutes.
 in my case I have validity = 5
 but on the SMSC arives  1032139564 minutes insted of 5.
 
 what I missed?

It is absolute time in UTC, IIRC.
Read the specification about SMPP and Kannel documentation.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: HTTP SMSC inject dlr with error code

2013-07-24 Thread Milan P. Stanic
Helo Ahmed,

Please post questions to users@kannel.org list, not to me directly.
There are many competent people which could help you.

On Mon, 2013-07-22 at 12:43, Ahmed Shabana wrote:
 Hellow Milan ,
 
 I found this issue at kannel mailing list
 http://www.kannel.org/pipermail/users/2012-February/017379.html
 
 did you able to send DLR  to http generic smsc ?

No. I don't use http smsc so I didn't tried to fiddle with the problem.

 Ahmed Shabana
 
 Mob: +20 (10) 03325373
 Email: a.shab...@cequens.commailto:a.shab...@cequens.com  |  web: 
 www.cequens.comhttp://www.cequens.com
 
 [http://www.m-styledesign.com/cequens/email-signature/logo.jpg]

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Message stored in SM memory and dont forwarded to smsbox

2013-03-21 Thread Milan P. Stanic
On Thu, 2013-03-21 at 20:03, Emmanuel CHANSON wrote:
 I am faced to an issue with the modem (Huawei E220)
 
 I have this error in smsc.log when receiving a SMS that should be forwarded
 to an application through smsbox:
 
 2013-03-21 19:51:21 [26623] [6] DEBUG: AT2[huawei_e220]: -- AT+CPMS?^M
 2013-03-21 19:51:21 [26623] [6] DEBUG: AT2[huawei_e220]: -- +CPMS:
 ME,0,255,SM,8,60,SM,8,60
 2013-03-21 19:51:21 [26623] [6] DEBUG: AT2[huawei_e220]: -- OK
 
 The SMS is stored inside SM memory, and I dont know how to configure Kannel
 to forward the message.
 
 I have configued in modem.conf:
 
 message-storage = ME
 
 and in kannel.conf in group=smsc
 sim-buffering = true
 
 Is it a correct configuration ?
 Why modem keep the SMS in SM memory ?

Here is my config for Huawei E220:

group = modems
id = huawei_e220_00
name = Huawei E220
detect-string = huawei
init-string = AT+CNMI=2,1,2,2,0
message-storage = sm
speed = 460800


It works without problem.



Re: Throughput disabling and Enableling on Code

2013-03-14 Thread Milan P. Stanic
On Thu, 2013-03-14 at 13:15, krnrd b wrote:
 Hi Team,
 
 Please Help ..
 
 On Wed, Mar 13, 2013 at 1:01 PM, krnrd b krn...@gmail.com wrote:
  Hi Team,
 
  How to disable and Eanble smsc connection throughput from code.
 
  My kannel not reading the throughput parameter even if i specify on
  configuration i am using kannel 1.4.3.

Your version of Kannel is outdated. Install 1.5.0 or SVN and see if
it solves your problem.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: SMSC moving away from SMPP

2013-03-14 Thread Milan P. Stanic
On Thu, 2013-03-14 at 00:15, Stipe Tolj wrote:
 Am 11.03.2013 12:46, schrieb Milan P. Stanic:
 On Mon, 2013-03-11 at 14:21, Ombongi Moraa Fe wrote:
 My SMSC is moving CPs away from SMPP and introducing an SDP Platform. There
 are a set of endpoints to allow me to receive messages from the SDP gateway
 that I need to implement on my end. However, from documentation shared, the
 implementation of message forwarding and sending has to be SOAP based.
 
 There is a trend to move from SMPP to SOAP. ;)
 
 which is not good at all.
 
I absolutely agree with you.

 Question:
 
 1) Is it still possible to use Kannel for this? Since the connection will
 no longer be smpp but http, and also since the messages need to forwarded
 as soap requests, how can I make the connection between Kannel and the SDP?
 
 Stipe posted patch for Kannel which adds Parlay XML (SOAP)
 http://www.kannel.org/pipermail/devel/2011-February/004339.html
 
 New patch can be downloaded from:
 
 http://www.kannel.org/~tolj/patchsets/gSOAP/gateway-gsoap.v7.diff
 
 the patchsets have been committed to SVN trunk, so the whole SOAP
 infrastructure is already inside the Kannel code base. Depending
 on the SOAP SDP dialect they use, you will need to implement your
 own module incarnation for it through.
 
 We support Ericsson's ParlayX and GMSA OneAPI at the moment. What do
 they use?

I've got specification from telco (Telekom Srbija) and they say that is
'Ericsson ParlayX' but when I read docs I have seen that their specs
differs from the Ericsson. I cannot post specification because of NDA.

Another telco (VIP Mobile) sent to me SOAP specification which is
totally different (I pressume they invented it) and a lot worse than
'ParlayX like' from above mention telco.

To me it looks like telco's doesn't like to have standardized protocols
for system integrators/developers (VASP) for some unknown reasons (at
least to me).

 2) Any additional information to help me implement this will be greatly
 appreciated.
 
 You can try this with the patch (maybe you will have to adapt it to your
 telco) and see if it works.
 
 When I had to change to that (stupid, IMO) SOAP and HTTP, I wrote HTTP
 server and SOAP parser/decoder from the scratch because that was easier
 for me.
 
 It's a mess that people think exposing SOAP to the VASP side makes
 the SMS messaging easier.

+1
 
 In fact what we want to have in Kannel is the GSMA OneAPI SOAP
 server side implementation in smsbox, so we can abstract as:
 
  SMSC -SMPP/UCP/CIMD2/..- bearerbox - smsbox -OneAPI SOAP- VASPs
 
 anyone interested in tackling this? The code base is already inside
 SVN trunk, you would simply need to make the gSOAP part for the
 server side.
 
 Stipe
 
 -- 
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany
 
 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/
 
 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 ---
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Issues with 1.4.3 version and 'stable'

2013-01-22 Thread Milan P. Stanic
On Mon, 2013-01-21 at 18:47, Rudy Matela wrote:
 On Mon, Jan 21, 2013 at 11:51 AM, Milan P. Stanic m...@arvanta.net wrote:
  On Mon, 2013-01-21 at 11:39, Rudy Matela wrote:
  On Mon, Jan 21, 2013 at 11:12 AM, Joan aseq...@gmail.com wrote:
   It took quite a lot of time to find out that the version 1.4.3 doesn't
   support a quite typical format for the DLR timestamps, so I'll document 
   it
   here for the other people that might be affected.
   kannel 1.4.3 supports without issues the format defined in the SMPP
   specification 3.4 for DLR timestamps (YYMMDDhhmm) (Appendix B), but it's
   common now to find providers using a format with seconds (YYMMDDhhmmss).
   Kannel 1.4.3 won't be able to read that timestamp and will mark all the
   replies as if there was a malformed response.
  
   There is a patch in kannel source tree to change this, but probably 
   involves
   more changes to work (simply applying the patch doesn't work)
   https://redmine.kannel.org/projects/kannel/repository/revisions/4749/diff/trunk/gw/smsc/smsc_smpp.c
  
   So the people using debian should be aware of this, a working .deb  with 
   1.5
   can be found here -  https://redmine.kannel.org/projects/kannel/files
  Nice to know that. Has anyone tried that .deb package on Ubuntu
  Server? Does it work on it out-of-the-box?
  Yes. Some people reported to me that it works quite fine on Debian and
  Ubuntu. No one reported any problem to me, yet.
  And it works for me without any problem for more than a year.
 
 Tried it on my Ubuntu, got an error. Anyone knows why does it depend
 on libmysqlclient16?

Because it is built on Debian/Squeeze in which this version of mysql
developmnet library is installed.
 
 rudy@azul:~$ sudo dpkg -i kannel_1.5.0-0_i386.deb
 (Reading database ... 92113 files and directories currently installed.)
 Preparing to replace kannel 1.4.3-2fakesync2build1 (using
 kannel_1.5.0-0_i386.deb) ...
  * Stopping WAP gateway
 
  [ OK ]
 Unpacking replacement kannel ...
 dpkg: dependency problems prevent configuration of kannel:
  kannel depends on libmysqlclient16 (= 5.1.21-1); however:
   Package libmysqlclient16 is not installed.
 dpkg: error processing kannel (--install):
  dependency problems - leaving unconfigured
 Processing triggers for man-db ...
 Processing triggers for ureadahead ...
 Errors were encountered while processing:
  kannel
[...]

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Issues with 1.4.3 version and 'stable'

2013-01-21 Thread Milan P. Stanic
On Mon, 2013-01-21 at 11:39, Rudy Matela wrote:
 Hello,
 
 On Mon, Jan 21, 2013 at 11:12 AM, Joan aseq...@gmail.com wrote:
  It took quite a lot of time to find out that the version 1.4.3 doesn't
  support a quite typical format for the DLR timestamps, so I'll document it
  here for the other people that might be affected.
  kannel 1.4.3 supports without issues the format defined in the SMPP
  specification 3.4 for DLR timestamps (YYMMDDhhmm) (Appendix B), but it's
  common now to find providers using a format with seconds (YYMMDDhhmmss).
  Kannel 1.4.3 won't be able to read that timestamp and will mark all the
  replies as if there was a malformed response.
 
  There is a patch in kannel source tree to change this, but probably involves
  more changes to work (simply applying the patch doesn't work)
  https://redmine.kannel.org/projects/kannel/repository/revisions/4749/diff/trunk/gw/smsc/smsc_smpp.c
 
  So the people using debian should be aware of this, a working .deb  with 1.5
  can be found here -  https://redmine.kannel.org/projects/kannel/files
 
 Nice to know that. Has anyone tried that .deb package on Ubuntu
 Server? Does it work on it out-of-the-box?

Yes. Some people reported to me that it works quite fine on Debian and
Ubuntu. No one reported any problem to me, yet.
And it works for me without any problem for more than a year.

These days I'm trying to move from Debian dh_make to cdbs build method.
I've built all packages except docs by cdbs. (I have to learn more
about cdbs.)

 There is also an Arch Linux PKGBUILD on AUR for version 1.5.0:
 https://aur.archlinux.org/packages/kannel/
 
  By the way, since 1.5.0 has been pretty stable for at least one year
  (according to the mailing list), are there any plans to retag the 1.5 as the
  current stable?
 
 A little contribution on the topic:
 
 I've been using the 1.5.0 on my developemnt machine for about a year,
 so far I did not run into any problems related to that version. In
 fact, it seemed more stable than the 1.4.3 version, which keeps giving
 me:
 
 2013-01-21 11:24:26 [1234] [6] ERROR: AT2[mycenter]: CMS ERROR: +CMS ERROR: 
 321
 2013-01-21 11:24:26 [1234] [6] ERROR: AT2[mycenter]: CMS ERROR:
 Invalid memory index - don't worry, just memory fragmentation. (321)
 
 That does not really cause malfunction, just mess up the log file a little.
 
 The AUR PKGBUILD has 13 votes (which on Arch Linux community indicates
 some kind of stability aprooval,
 https://aur.archlinux.org/packages/kannel/). So a lot people have been
 using and testing it for a while as just a percentage of people who
 actually use the package actually take time to vote.
 
 Regards,
 Rudy
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Issues with 1.4.3 version and 'stable'

2013-01-21 Thread Milan P. Stanic
On Mon, 2013-01-21 at 18:19, spameden wrote:
 Better use the latest from the trunk..
 
 The deb package provided on redmine.kannel.org is broken.
 
Besides that the description is wrong (I wrote about that few weeks ago)
nobody told me that it is broken. If something doesn't work or is
broken, please post the problem description to the list or to me in
private mail.

 2013/1/21 Joan aseq...@gmail.com:
  It took quite a lot of time to find out that the version 1.4.3 doesn't
  support a quite typical format for the DLR timestamps, so I'll document it
  here for the other people that might be affected.
  kannel 1.4.3 supports without issues the format defined in the SMPP
  specification 3.4 for DLR timestamps (YYMMDDhhmm) (Appendix B), but it's
  common now to find providers using a format with seconds (YYMMDDhhmmss).
  Kannel 1.4.3 won't be able to read that timestamp and will mark all the
  replies as if there was a malformed response.
 
  There is a patch in kannel source tree to change this, but probably involves
  more changes to work (simply applying the patch doesn't work)
  https://redmine.kannel.org/projects/kannel/repository/revisions/4749/diff/trunk/gw/smsc/smsc_smpp.c
 
  So the people using debian should be aware of this, a working .deb  with 1.5
  can be found here -  https://redmine.kannel.org/projects/kannel/files
 
  By the way, since 1.5.0 has been pretty stable for at least one year
  (according to the mailing list), are there any plans to retag the 1.5 as the
  current stable?
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel Start/Stop Restart Script

2013-01-12 Thread Milan P. Stanic
On Sat, 2013-01-12 at 07:04, michael osakede wrote:
 Can anyone point me in the direction of a script that can start/stop/restart 
 bearerbox/smsbox/sqlbox?

Look in the utils directory of the source archive/file.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel Start/Stop Restart Script

2013-01-12 Thread Milan P. Stanic
On Sat, 2013-01-12 at 07:21, michael osakede wrote:
 i get this :
 
 Usage: ./run_kannel_box [--pidfile PIDFILE] [--min-delay SECONDS] BOXPATH 
 [boxoptions...]
 
 
 from run_kannel_box.
 
 how do I use this to start Bearerbox/smsbox/sqlbox?

run_kannel_box is not script. You can use it in scripts to start boxes
but it is better to use kannel-init.d script for that job, IMHO.
You have to adapt this script according your needs and paths where you
installed Kannel boxes.

 
  From: Milan P. Stanic m...@arvanta.net
 To: users@kannel.org 
 Sent: Saturday, January 12, 2013 4:11 PM
 Subject: Re: Kannel Start/Stop Restart Script
  
 On Sat, 2013-01-12 at 07:04, michael osakede wrote:
  Can anyone point me in the direction of a script that can 
  start/stop/restart bearerbox/smsbox/sqlbox?
 
 Look in the utils directory of the source archive/file.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel Start/Stop Restart Script

2013-01-12 Thread Milan P. Stanic
On Sat, 2013-01-12 at 13:45, Sarfaraz Jamal wrote:
 Here is a script we use for restarting kannel:
 
 #!/bin/sh
 clear
 echo Restarting the process, please allow 15 seconds...
 kill -9 $(/sbin/pidof smsbox)
 kill -9 $(/sbin/pidof bearerbox)
 cd /opt/gw
 sleep 5
 nohup ./bearerbox -v 1  bearerbox.log 
 sleep 5
 nohup ./smsbox -v 1  smsbox.log 
 cd /root
 clear
 echo Restarted - Verify with web that both services are running.

IMHO, it is better option to use your distribution standard scripts so
you then have integration with your system init system, i.e. you can
enable/disable starting it at boot; and at which runlevel it starts.

No one wants to start Kannel in OS repair level, in normal
circumstances.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: MO type message

2012-12-24 Thread Milan P. Stanic
On Mon, 2012-12-24 at 12:59, Alex Nyika wrote:
 Working with Kannel  for the first time can be a daunting task. I usually
 find this in my  other coding work whenever I have something new to learn.
  I have come to notice that a step by step do it yourself guide always
 helps.The User manual can also be overwhelming for a newbie yet a great
 resource once you know your way round. The best way to learn kannel is to
 use a step by step guide.

There is alligata directory in Kannel doc directory with quite nice
pictures and good explanation how Kannel works, conceptually.

But, newbies likes to spam these list insted of doing their 'due
diligence', i.e. read docs, search mailing list archive (where
everything is answered many times), search Net and most importantly -
think.

  This http://blog.eucossa.org/2011/10/kannel/ blog has something you can
 use. I have also attached a pdf that may help.
 
 Cheers , Merry Christmas and good luck.
 
 On 24 December 2012 11:03, Jayanta Saha jayanta@gmail.com wrote:
  hello,
  I want to know when I send message from mobile how the message go to
  kannel which is located in server does it need any  media such as php
  script or any thing else. How does it work I studied the manual but I didnt
  find any solution of it .Please help me out
 
  Thanks


-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Receiving sms over java servlet

2012-11-29 Thread Milan P. Stanic
On Wed, 2012-11-28 at 23:53, chen yee tan wrote:
 Hi,
 
 I have configured kannel to route sms to a java servlet upon receiving it. It 
 is working, but I have 2 issues that not able to solve. I am not able to find 
 solution in kannel doc.
 
 1. If my java servlet responses a text, then sender will receive the 
 responded text. I totally understand this. However, I set my java servlet not 
 to response anything, but sender received Empty reply from service 
 provider. Why ? How to disable it if nothing responsed from servlet ?
 
 2. If I turn off apache tomcat. Sender will receive Could not fetch content, 
 sorry. Here is what I want to know how to:
    a. Disable the message to send back when not able to reach servlet.
    b. Queue the sms routing and try to route every x sec till a defined 
 timeout is reached, then send a defined message to sender. 
 
 
 Do I need to modify kannel code in order to do 2a and 2b ?
 
 3. Where to change Empty reply from service provider and Could not fetch 
 content, sorry. ?
 
 Below is part of my configuration:

max-messages = 0
in group sms-service
 
 #-
 # SEND-SMS USERS
 
 group = sendsms-user
 username = xxx
 password = xx
 
 #-
 # SERVICES
 #
 
 group = sms-service
 keyword = default
 get-url = http://10.1.1.1/SMSReceiver?sender=%ptext=%atime=%t;
 concatenation = true
 text = No service specified
 
 Chen Yee

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Receiving sms over java servlet

2012-11-29 Thread Milan P. Stanic
On Thu, 2012-11-29 at 08:26, Singularnet wrote:
 I think there's a directive in sms service omite-empty or something like
 that , to avoid send empty response

You are right.

But I found it to be more controllable by the method described in
userguide:

Redirected replies
   The basic service system always sends the answer back to original
   requester, but sometimes the content server needs to send something to
   other terminals or delay the answer. To create
   such systems, an SMS push is used.

   The idea is to get the initial request, but then send no reply.
   Instead, the reply (if any) is sent via HTTP sendsms-interface as SMS
   Push. This way the service application has full
   control of the return content, and can do all needed formatting
   beforehand.

   Note that when no reply is wanted, remember to set the variable
   max-messages to zero (0) so that no reply is sent, unless an error
   occurs. Simple sample:

   group = sms-service
   keyword = talk
   get-url = http://my.applet.machine/Servlet/talk?sender=%ptext=%r;
   max-messages = 0
 On Nov 29, 2012 2:27 AM, Milan P. Stanic m...@arvanta.net wrote:
 
  On Wed, 2012-11-28 at 23:53, chen yee tan wrote:
   Hi,
  
   I have configured kannel to route sms to a java servlet upon receiving
  it. It is working, but I have 2 issues that not able to solve. I am not
  able to find solution in kannel doc.
  
   1. If my java servlet responses a text, then sender will receive the
  responded text. I totally understand this. However, I set my java servlet
  not to response anything, but sender received Empty reply from service
  provider. Why ? How to disable it if nothing responsed from servlet ?
  
   2. If I turn off apache tomcat. Sender will receive Could not fetch
  content, sorry. Here is what I want to know how to:
  a. Disable the message to send back when not able to reach servlet.
  b. Queue the sms routing and try to route every x sec till a defined
  timeout is reached, then send a defined message to sender.
  
  
   Do I need to modify kannel code in order to do 2a and 2b ?
  
   3. Where to change Empty reply from service provider and Could not
  fetch content, sorry. ?
  
   Below is part of my configuration:
 
  max-messages = 0
  in group sms-service
 
   #-
   # SEND-SMS USERS
  
   group = sendsms-user
   username = xxx
   password = xx
  
   #-
   # SERVICES
   #
  
   group = sms-service
   keyword = default
   get-url = http://10.1.1.1/SMSReceiver?sender=%ptext=%atime=%t;
   concatenation = true
   text = No service specified
  
   Chen Yee
 
  --
  Kind regards,  Milan
  --
  Arvanta,http://www.arvanta.net
  Please do not send me e-mail containing HTML code or documents in
  proprietary format (word, excel, pps and so on)
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Udh always 0 and can not send long messages using SMPPSim

2012-11-08 Thread Milan P. Stanic
On Thu, 2012-11-08 at 11:42, techbrainless wrote:
 I am using SMPPSim selenium software and i have connected it to the kannel
 4.3 , am sending messages using the SMPPSim from the user interface
  ^^^
Please try with Kannel 1.5.0 or SVN if possible. 1.4.3 is really
outdated and lot of bugs are fixed in new versions.

 http://localhost:88 using inject message
 
 I have noticed that if i send long messages from SMPPSim to kannel , I wont
 receive those long messages and the udh=0 always either for short messages
 or long messages(multiple messages)
 
 as i know long messages should be divided into multiple messages and their
 udh should be value other then 0

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: how to install two separate Kannel instances?

2012-10-04 Thread Milan P. Stanic
On Tue, 2012-10-02 at 19:30, spameden wrote:
 Could you please share your packaging scripts for kannel / sqlbox /
 opensmppbox for debian?

Of course. I'm thinking about setting apt repository somewhere but IMHO
kannel.org would be best place for that. On the download section at
http://www.kannel.org/download.shtml there are instructions for
(outdated, 1.4.1 version) for installing debs.

If I (or anyone) can put deb files kannel.org that would be the option.

 Thanks.
 
 2012/10/2 Milan P. Stanic m...@arvanta.net
 
  On Mon, 2012-10-01 at 23:37, unbelieva...@nexus.hu wrote:
   Dear all,
  
   We'd like to test Kannel by installing two separate instances on the
  same Ubuntu box: a 1.4.3 is
   currently installed, and we'd like to have another one (v1.5.0) up and
  running to play with before
   upgrading (and in general it'd be our idea to test CVS snapshots too
  after a successful 1.5.0
   migration).
  
   (We cannot use further servers for testing since the IP is registered in
  our providers' firewalls
   and is quite
   cumbersome to change).
  
   Is there a best practice to do this without messing up everything?
  
   What we've learned so far in a virtual server while trying to simulate
  the separate install:
  
   configure --with-suffix=-1.5.0 --with-mysql --with-start-stop-daemon
  
   This approach
   - led to the new executables with the -1.5.0 suffix under /usr/local/...
   - didn't touch existing config files
   - we created /var/log/kannel-1.5.0 and /etc/kannel-1.5.0, and an init.d
  script
  
   However we don't know if there's anything that could cause any conflicts
  later, eg. header files or
   man pages or
   anything like that (or should we even care about that at all?).
  
   Please share your thought or experience with us!
   Thanks a lot!
 
  You can download 1.5.0 debs (binary only) from:
  https://redmine.kannel.org/projects/kannel/files
 
  They works on Debian/Ubuntu distros quite well and are compiled with
  sqlite3, postgresql and mysql DB support.
 
  I have in my private repository svn4981 (amd64 only) debs, so if you are
  desperate I can upload them somewhere for you.
 
  And rebuild current svn is quite easy :-)
 
  --
  Kind regards,  Milan
  --
  Arvanta,http://www.arvanta.net
  Please do not send me e-mail containing HTML code or documents in
  proprietary format (word, excel, pps and so on)
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: how to install two separate Kannel instances?

2012-10-02 Thread Milan P. Stanic
On Mon, 2012-10-01 at 23:37, unbelieva...@nexus.hu wrote:
 Dear all,
 
 We'd like to test Kannel by installing two separate instances on the same 
 Ubuntu box: a 1.4.3 is 
 currently installed, and we'd like to have another one (v1.5.0) up and 
 running to play with before 
 upgrading (and in general it'd be our idea to test CVS snapshots too after a 
 successful 1.5.0
 migration).
 
 (We cannot use further servers for testing since the IP is registered in our 
 providers' firewalls
 and is quite 
 cumbersome to change).
 
 Is there a best practice to do this without messing up everything?
 
 What we've learned so far in a virtual server while trying to simulate the 
 separate install:
 
 configure --with-suffix=-1.5.0 --with-mysql --with-start-stop-daemon 
 
 This approach 
 - led to the new executables with the -1.5.0 suffix under /usr/local/...
 - didn't touch existing config files
 - we created /var/log/kannel-1.5.0 and /etc/kannel-1.5.0, and an init.d script
 
 However we don't know if there's anything that could cause any conflicts 
 later, eg. header files or
 man pages or
 anything like that (or should we even care about that at all?).
 
 Please share your thought or experience with us!
 Thanks a lot!

You can download 1.5.0 debs (binary only) from:
https://redmine.kannel.org/projects/kannel/files

They works on Debian/Ubuntu distros quite well and are compiled with
sqlite3, postgresql and mysql DB support.

I have in my private repository svn4981 (amd64 only) debs, so if you are
desperate I can upload them somewhere for you.

And rebuild current svn is quite easy :-)

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Where do I find the gw folder after installing kannel using apt-get?

2012-09-21 Thread Milan P. Stanic
On Fri, 2012-09-21 at 16:21, Alexander Suraphel wrote:
 I have looked at /usr/include and other locations without luck.

dpkg-query -L kannel-dev
will list all installed files from kannel-dev package.

Of course, if you installed it.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: [opensmppbox] SMSC rejected login to transmit (bind failed)

2012-08-07 Thread Milan P. Stanic
On Tue, 2012-08-07 at 09:57, Christopher Burke wrote:
 Hi Guys,
 
 Just thought I'd wrap up on this issue as it's now solved.
 
 1. You can connect an OpenSMPPBox to a SQLBox

If that is true then Rene (Kluwen) should update opensmppbox
documetation with the description of SQLBox parameters and update
diagram in SMPPBox.png

 2. The reason I could not connect was because I had the vma string
 as lower case in the smpplogins file, but upper case in the
 configuration file

Could you post your config section where you define 'SQLBox' parameters,
please?

 Thanks again!
 
 Chris
 
 On 03/08/12 17:51, Milan P. Stanic wrote:
 On Fri, 2012-08-03 at 17:05, Christopher Burke wrote:
 Hi,
 
 Using the latest from SVN - perhaps I'll try to add the VMA into the
 smpplogins.txt and see if that works.
 
 Are you communicating directly to the bearerbox or to a sqlbox?
 Is it possible for opensmppbox to communicate/connect anything than
 bearerbox?
 Kind Regards and Thanks in Advance,
 
 Chris
 
 On 03/08/12 16:10, Milan P. Stanic wrote:
 On Fri, 2012-08-03 at 14:42, Christopher Burke wrote:
 Thanks for your response. My smpplogins is as follows:
 
 username internal 127.0.0.1
 Which version of the opensmppbox you use?
 
 I have next line in my smpplogings.txt file:
   vma 127.0.0.1
 where  is username and  is password.
 
 -rw-rw-rw- 1 root root   28 Aug  3 14:40 smpplogins.txt
 
 Does this look okay to you?
 
 Kind Regards,
 
 Christopher
 
 On 03/08/12 10:48, Artem Chekulaev wrote:
 Hi
 
 I had the same issue. Try to delete your smpplogins.txt (or where
 you store your logins) and create it again from emtpy and fill it
 carefully, not from example. In my case it was rights-to-read-file
 issue too - Kannel had no rights to any access that file
 
 2012/8/3 Christopher Burke christopher.bu...@simulity.com
 mailto:christopher.bu...@simulity.com
 
 Hi,
 
 I've been attempting to connect an opensmppbox to my
 configuration, however I am getting the following errors:
 
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: SMSC
 rejected login to transmit, code 0x000d (Bind Failed).
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: Couldn't
 connect to SMS center (retrying in 10 seconds).
 
 What is a likely cause of this issue? I can post my configuration
 files and detailed logs if needed.
 
 Kind Regards and Thanks in Advance,
 
 Chris
 
 -- 
 *Christopher Burke*
 Development Team Leader / Software Engineer
 http://simulity.com
 Mobile: +44 7590 571 833
 Skype:krslynx
 NOTICE: This message contains privileged  confidential information
 intended only for the use of the addressee named above. If you are
 not the intended recipient of this message, you are hereby notified
 that you must not disseminate, copy or take any action in reliance
 on it. If you have received this message in error, please notify
 Simulity Labs immediately. Any views expressed in this message are
 those of the individual sender except where the sender specifically
 states them to be the view of Simulity Labs
 
 -- 
 *Christopher Burke*
 Development Team Leader / Software Engineer
 http://simulity.com
 Mobile: +44 7590 571 833
 Skype:krslynx
 NOTICE: This message contains privileged  confidential information
 intended only for the use of the addressee named above. If you are
 not the intended recipient of this message, you are hereby notified
 that you must not disseminate, copy or take any action in reliance
 on it. If you have received this message in error, please notify
 Simulity Labs immediately. Any views expressed in this message are
 those of the individual sender except where the sender specifically
 states them to be the view of Simulity Labs

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Contents of users digest... how to set up kannel on boot start

2012-08-07 Thread Milan P. Stanic
On Tue, 2012-08-07 at 15:44, spameden wrote:
 Hi it's related to CentOS or RedHat based distributions, guy asked for
 Ubuntu setup.
 
chkconfig exists in Debian/Ubuntu also.

 2012/8/7 Ombongi Moraa Fe moraa.lovetak...@gmail.com
 
  Hello,
 
  Run
   /sbin/chkconfig --list   (I'm using ubuntu)
 
  This command allows you to see services starting at boot time.
 
  surf and read more on the linux*  chkconfig* command.
 
  For example. to make apache always start on boot time, you run;
 
   chkconfig apache on
 
  For kannel, do
 chkconfig kannel on
  when u run /sbin/chkconfig --list you'll see exactly how services have been 
  set up to start at boot time.
  A snippet of my configuration is:
 
  kannel0:off  1:off  2:on   3:on   4:on   5:on   6:off
 
 
  keyboard-setup0:off  1:off  2:off  3:off  4:off  5:off  6:off  
  S:on
  killprocs 0:off  1:on   2:off  3:off  4:off  5:off  6:off
  module-init-tools 0:off  1:off  2:off  3:off  4:off  5:off  6:off
 
 
  monit 0:off  1:off  2:on   3:on   4:on   5:on   6:off
  mysql 0:off  1:off  2:on   3:on   4:on   5:on   6:off
 
 
  those 1:off ... are run levels. And you can shoose when u want your sevice
  to run (i.e. when we run what run level)
 
  check out:
  http://manpages.ubuntu.com/manpages/natty/man8/chkconfig.8.html
 
 
  Read more on init.d also.
  Saludos
 
  Ombongi Moraa fe
 
 
 
  On 7 August 2012 14:17, users-requ...@kannel.org wrote:
 
  how to set up kannel on boot start (Dzifa David NUGLOZE)
 
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: can't install opensmppbox

2012-08-06 Thread Milan P. Stanic
On Mon, 2012-08-06 at 14:56, admin wrote:
 Good time of day.
 I have the server with Debian 6 Squeeze, x64.
 I downloaded the opensmppbox with the command
 svn co https://svn.kannel.org/opensmppbox/trunk
 and try to install it.
 Configure was completed, but when i tried Make got this error:
 
 make[2]: *** [opensmppbox] Ошибка 1
 make[2]: Leaving directory `/home/amst/opensmpp/open2/trunk/gw'
 make[1]: *** [all-recursive] Ошибка 1
 make[1]: Leaving directory `/home/amst/opensmpp/open2/trunk'
 make: *** [all] Ошибка 2
 
 I have g++ and  libxml2-dev on my server.
 Can you help me please?

You must first compile and install Kannel development environment. Then
you can configure/compile/install opensmppbox. 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: [opensmppbox] SMSC rejected login to transmit (bind failed)

2012-08-03 Thread Milan P. Stanic
On Fri, 2012-08-03 at 14:42, Christopher Burke wrote:
 Thanks for your response. My smpplogins is as follows:
 
 username internal 127.0.0.1

Which version of the opensmppbox you use?

I have next line in my smpplogings.txt file:
  vma 127.0.0.1
where  is username and  is password.

 -rw-rw-rw- 1 root root   28 Aug  3 14:40 smpplogins.txt
 
 Does this look okay to you?
 
 Kind Regards,
 
 Christopher
 
 On 03/08/12 10:48, Artem Chekulaev wrote:
 Hi
 
 I had the same issue. Try to delete your smpplogins.txt (or where
 you store your logins) and create it again from emtpy and fill it
 carefully, not from example. In my case it was rights-to-read-file
 issue too - Kannel had no rights to any access that file
 
 2012/8/3 Christopher Burke christopher.bu...@simulity.com
 mailto:christopher.bu...@simulity.com
 
 Hi,
 
 I've been attempting to connect an opensmppbox to my
 configuration, however I am getting the following errors:
 
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: SMSC
 rejected login to transmit, code 0x000d (Bind Failed).
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: Couldn't
 connect to SMS center (retrying in 10 seconds).
 
 What is a likely cause of this issue? I can post my configuration
 files and detailed logs if needed.
 
 Kind Regards and Thanks in Advance,
 
 Chris
 
 

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: [opensmppbox] SMSC rejected login to transmit (bind failed)

2012-08-03 Thread Milan P. Stanic
On Fri, 2012-08-03 at 17:05, Christopher Burke wrote:
 Hi,
 
 Using the latest from SVN - perhaps I'll try to add the VMA into the
 smpplogins.txt and see if that works.
 
 Are you communicating directly to the bearerbox or to a sqlbox?

Is it possible for opensmppbox to communicate/connect anything than
bearerbox?
 
 Kind Regards and Thanks in Advance,
 
 Chris
 
 On 03/08/12 16:10, Milan P. Stanic wrote:
 On Fri, 2012-08-03 at 14:42, Christopher Burke wrote:
 Thanks for your response. My smpplogins is as follows:
 
 username internal 127.0.0.1
 Which version of the opensmppbox you use?
 
 I have next line in my smpplogings.txt file:
   vma 127.0.0.1
 where  is username and  is password.
 
 -rw-rw-rw- 1 root root   28 Aug  3 14:40 smpplogins.txt
 
 Does this look okay to you?
 
 Kind Regards,
 
 Christopher
 
 On 03/08/12 10:48, Artem Chekulaev wrote:
 Hi
 
 I had the same issue. Try to delete your smpplogins.txt (or where
 you store your logins) and create it again from emtpy and fill it
 carefully, not from example. In my case it was rights-to-read-file
 issue too - Kannel had no rights to any access that file
 
 2012/8/3 Christopher Burke christopher.bu...@simulity.com
 mailto:christopher.bu...@simulity.com
 
 Hi,
 
 I've been attempting to connect an opensmppbox to my
 configuration, however I am getting the following errors:
 
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: SMSC
 rejected login to transmit, code 0x000d (Bind Failed).
 2012-08-03 10:19:06 [10282] [6] ERROR: SMPP[recv_smpp]: Couldn't
 connect to SMS center (retrying in 10 seconds).
 
 What is a likely cause of this issue? I can post my configuration
 files and detailed logs if needed.
 
 Kind Regards and Thanks in Advance,
 
 Chris
 
 
 -- 
 *Christopher Burke*
 Development Team Leader / Software Engineer
 http://simulity.com
 Mobile: +44 7590 571 833
 Skype:krslynx
 NOTICE: This message contains privileged  confidential information
 intended only for the use of the addressee named above. If you are
 not the intended recipient of this message, you are hereby notified
 that you must not disseminate, copy or take any action in reliance
 on it. If you have received this message in error, please notify
 Simulity Labs immediately. Any views expressed in this message are
 those of the individual sender except where the sender specifically
 states them to be the view of Simulity Labs

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: After SIGINT received SMSBOX restarts (bug or a feature)

2012-04-19 Thread Milan P. Stanic
On Thu, 2012-04-19 at 13:53, Tanja Kipreska wrote:
 Hello,
 
 I've been testing kannel 1.5.0 for some time and I've noticed that when I
 start smsbox from command line - ./smsbox -v 0
 /vas/config/kannel_tanja.conf (not as daemon) , and than try to shut it
 down by generating SIGINT signal (CTRL+C), but smsbox process restarts with
 new PID. Please see output given bellow. My question is: Is this bug in
 smsbox process or a feature (expected behavior)?

How do you start bearerbox? From command line or from some init
script?
If you start it from init script check if that script restarts smsbox.
 
 testgw:/vas/bin/kannel_1.5.0_modified/sbin # ./smsbox -v 0
 /vas/config/kannel_tanja.conf
 2012-04-19 12:01:46 [984] [0] INFO: Debug_lvl = 0, log_file = none,
 log_lvl = 0
 2012-04-19 12:01:46 [984] [0] DEBUG: Loading include file
 `/vas/config/kannel/kannel_services.conf' (on line 148 of file
 
 /vas/config/kannel_tanja.conf).
 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version `svn-r'.
 Build `Apr 10 2012 10:37:05', compiler `4.3.4 [gcc-4_3-branch revision
 152973]'.
 System Linux, release 3.0.13-0.27-default, version #1 SMP Wed Feb 15
 13:33:49 UTC 2012 (d73692b), machine
 
 x86_64.
 Hostname testgw.one.net.mk, IP 127.0.0.2.
 Libxml version 2.7.6.
 Compiled with MySQL 5.5.21, using MySQL 5.5.21.
 Using native malloc.
 
 2012-04-19 12:01:46 [984] [0] INFO: Logging accesses to
 '/vas/logs/kannel/smsboxaccess.log'.
 2012-04-19 12:01:46 [984] [0] INFO: Started access logfile
 `/vas/logs/kannel/smsboxaccess.log'.
 2012-04-19 12:01:46 [984] [0] INFO: HTTP: Opening server at port 4004.
 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
 2012-04-19 12:01:46 [984] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
 to pid 984.
 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 2
 (gwlib/http.c:server_thread)
 2012-04-19 12:01:46 [984] [0] INFO: Set up send sms service at port 4004
 2012-04-19 12:01:46 [984] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
 maps to pid 984.
 2012-04-19 12:01:46 [984] [0] DEBUG: Started thread 3
 (gw/smsbox.c:sendsms_thread)
 2012-04-19 12:01:46 [984] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread)
 maps to pid 984.
 2012-04-19 12:01:46 [984] [2] DEBUG: HTTP: Including port 4004, fd 9 for
 polling in server thread
 2012-04-19 12:01:46 [984] [0] INFO: Using HTTP request queueing with 10
 retries, 60s delay.
 2012-04-19 12:01:46 [984] [0] DEBUG:
 --
 2012-04-19 12:01:46 [984] [0] DEBUG: Kannel smsbox version svn-r starting
 2012-04-19 12:01:46 [984] [0] DEBUG:   dumping group (sendsms-user):
 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.*
 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user
 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4
 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7
 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulk
 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1
 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #!
 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulk
 2012-04-19 12:01:46 [984] [0] DEBUG:   dumping group (sendsms-user):
 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost
 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user
 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4
 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7
 2012-04-19 12:01:46 [984] [0] DEBUG: username = api
 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1
 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #!
 2012-04-19 12:01:46 [984] [0] DEBUG: password = pre456paid
 2012-04-19 12:01:46 [984] [0] DEBUG:   dumping group (sendsms-user):
 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = *.*.*.*
 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user
 2012-04-19 12:01:46 [984] [0] DEBUG: dlr-url =
 
 http://vasgw/srvKBPrvo/dlr.php?from=%pto=%Pvalue=%dreply=%A
 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4
 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7
 2012-04-19 12:01:46 [984] [0] DEBUG: username = bulkdlr
 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1
 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #!
 2012-04-19 12:01:46 [984] [0] DEBUG: password = bulkdlr
 2012-04-19 12:01:46 [984] [0] DEBUG:   dumping group (sendsms-user):
 2012-04-19 12:01:46 [984] [0] DEBUG: user-allow-ip = localhost
 2012-04-19 12:01:46 [984] [0] DEBUG: group = sendsms-user
 2012-04-19 12:01:46 [984] [0] DEBUG: max-messages = 4
 2012-04-19 12:01:46 [984] [0] DEBUG: forced-smsc = smsc4.7
 2012-04-19 12:01:46 [984] [0] DEBUG: username = om
 2012-04-19 12:01:46 [984] [0] DEBUG: concatenation = 1
 2012-04-19 12:01:46 [984] [0] DEBUG: split-chars = #!
 2012-04-19 12:01:46 [984] [0] DEBUG: password = Trmtrm
 2012-04-19 12:01:46 [984] [4] DEBUG: Thread 4
 

Re: Kannel Status

2012-03-14 Thread Milan P. Stanic
On Wed, 2012-03-14 at 15:36, Elie ... wrote:
 I have a question about the url of kannel status: as far as i know we can 
 check the kannel status using the url : http://localhost:port/status.html
 
 but this url gives us all the informations : status, uptime, SMS, box 
 connections  
 
 Is there a way to get only the status (running, suspended, isolated ...) 
 without the other info ? 

curl -s http://localhost:port/status | grep Status | cut -f 2 -d ' '

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Kannel Status

2012-03-14 Thread Milan P. Stanic
Please do not post private e-mail to me about subject which is started
in the mailing list.

On Wed, 2012-03-14 at 16:45, Elie ... wrote:
 Thank you Milan for your fast reply. 
 
 By doing that i will be transfering all the data on the page and then 
 filtring the status right ? 

Yes. That is obvious.

Another option is to make simple Perl/Python (or whatever script
language you prefer) which will filter Kannel status and display data
you want.
There are some examples in contrib directory.
I had simple perl script which parses XML status and displays what I
want to see.

 Regards, Elie 
 
  Date: Wed, 14 Mar 2012 17:15:43 +0100
  From: m...@arvanta.net
  To: users@kannel.org
  Subject: Re: Kannel Status
  
  On Wed, 2012-03-14 at 15:36, Elie ... wrote:
   I have a question about the url of kannel status: as far as i know we can 
   check the kannel status using the url : http://localhost:port/status.html
   
   but this url gives us all the informations : status, uptime, SMS, box 
   connections  
   
   Is there a way to get only the status (running, suspended, isolated ...) 
   without the other info ? 
  
  curl -s http://localhost:port/status | grep Status | cut -f 2 -d ' '

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: It takes 24hours to send 254 messages

2012-02-28 Thread Milan P. Stanic
On Mon, 2012-02-27 at 22:00, Allan N. Porras wrote:
 Hello list.
 
 I am very concerned that my performance has fallen far SMS service. It takes 
 24 hours to send 254 messages. I do not think is normal.
 
 I have been monitoring since HTTP admin. Smsbox sends 8 or 15 messages, then 
 take a long time without sending anything, and then re-send 3 or 12 more.
 
 When configuring Kannel: sim-buffering = true message-storage = SM
 
 My modem is Huwaei E153.
 
 Attached is a screenshot. Thank you all.

Please do not x-post.
Please do not send screenshots to mailing list, use pastebin (or similar
service) for that.

Your question is for users list, so send your config and logs there.

-- 
Kind regards,  Milan
--
Arvanta,http://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Deliver_SM with null fields

2012-02-17 Thread Milan P. Stanic
On Fri, 2012-02-17 at 13:07, kova...@apollo.lv wrote:
Kannel doesn’t support TLV in Response. I needed to add those TLV fields
to smpp_pdu_def file, then implement logic go parse new fields in kannel
and add a dlr for this response.  So now I have a dlr in database with all
TLV information.
 
So I get new field like: pdu-u.submit_sm_resp.my_tlv
 
and do what I want :)
 
Nice. :)

Please, post your patch to the devel mailing list (if you can) because
it could be useful for other users, too.

Regards Vit.
 
On Thu, 16 Feb 2012 13:51:02 +0100
Milan P. Stanic m...@arvanta.netwrote:
 [
 A: Because it messes up the order in which people
normally read text.
 Q: Why is top-posting such a bad thing?
 A: Maybe because some people are too annoyed by
top-posting.
 Q: Why do I not get an answer to my question(s)?
 ]

 On Thu, 2012-02-16 at 14:05, kova...@apollo.lv wrote:
 Config:
 group = sendsms-user
 username = x
 password = x
 max-messages = 1
 concatenation = true
 dlr-url =


 [1]http://xxx/cgi-bin/dlr2.pl?from=%Pto=%pmeta-data=%Dsmsc=%idlr-type=%dtext=%adcs=%Oreply=%Adlr=%Fttime=%toriginal_message=%bID=%Idlr_uri=%Rdlr_r=%AF_id=%F


 SMSbox LOG:
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Scheme:
http://
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Host: xx
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Port: xx
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Username:
(null)
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Password:
(null)
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Path:
/cgi-bin/dlr2.pl
 2012-02-16 11:11:12 [26814] [9] DEBUG:   Query:


 from=alfato=2xxxmeta-data=smsc=SMPPxxsmppdlr-type=16text=NACK%2F0x0403%2FVendor-specific+error%2C+please+refer+to+your+SMPP+providerdcs=00reply=NACK%2F0x0403%2FVendor-specific+error%2C+please+refer+to+your+SMPP+providerdlr=ttime=2012-02-16+09:11:12original_message=NACK%2F0x0403%2

 FVendor-specific+error%2C+please+refer+to+your+SMPP+providerID=cd01df65-9b97-4d54-9ce4-c7e137b86b71dlr_uri=dlr_r=NACK%2F0x0403%2FVendor-sp
 ecific+error%2C+please+refer+to+your+SMPP+providerF_id=

 Ok. meta-data is empty. Looks like problem is that the
Kannel does not
 know how to convert received PDU to meta-data value for
the given GET
 URL.

 Look bellow.

 LOG:
 2012-02-16 11:11:12 Receive DLR [SMSCxxxsmpp]
[SVC:sender] [ACT:] [BINF:]
 [FID:] [META:] [from:alfa] [to:2xxx]
[flags:-1:-1:-1:-1:16]
 [msg:73:NACK/0x0403/Vendor-specific error, please
refer to your SMPP
 provider] [udh:0:]
 2012-02-16 11:32:49 Log ends

 Regards Vit.

 On Thu, 16 Feb 2012 12:42:12 +0100
 Milan P. Stanic MPS@ARVANTA.N ETwrote:
  On Thu, 2012-02-16 at 08:56, kova...@apollo.lv
wrote:
  I use both, Database and GET method for my script.
 But I don’t see
  anywhere that TLV fields are parsed by bearbox, I
 think its logic stops on
  the command status and does not retrieve tlv
fields
 in that case. I don’t
  see it in LOG files ether.
 
  Could you post your GET URL?
 
   I’m right?
 
  So I need to make a changes to kannel if there is
no
 other way?
 
  Regards Vit.
 
  On Wed, 15 Feb 2012 21:29:26 +0100
  Milan P. Stanic m...@arvanta.netwrote:
  ;  On Wed, 2012-02-15 at 08:45, kova...@apollo.lv
 wrote:
   Hello,
  
   TLV options in config are set, example:
  
   group = smpp-tlv
  
   name = rut_addr
  
   tag = 0x1510

 Where did you found 0x1510 as tag value?
 Did you patched Kannel with that definition?

   type = octetstring
  
   length = 20
  
   About the error - I know what it means, I need
to
 get
  tlv fields for this
   response. If I get this command status I need
t o
  write all tlv information
   into database for further logic.
  
  g t; Kannel supports this function? If so, how
can I
 get
  the metadata for my
   resp onse into database?
  
   I have Bearbox , SMSbox , Sqlbox.
  
   I don’t have metadata for response, with
command
  status != 0.
  
   Sorry, I don't use databases for DLR nor MO/MT
so I
  can't help here.
  
   Regards Vit.
  
   On Tue, 14 Feb 2012 22:46:29 +0100
  ;  Milan P. Stanic m...@arvanta.netwrote:
On Tue, 2012-02-14 at 16:04,
kova...@apollo.lv
  wrote:
Hello,
   
I’ve done the changes to Kannel, it is
working.
   
 Got One more problem, when I tester error
  responses:
   
I don’t Get parsed Meta data from Negative
   Submit_SM_Resp, it isn’t parsed
by bearbox, dlr gets written to database
with
  error
   g t;code from

Re: Deliver_SM with null fields

2012-02-16 Thread Milan P. Stanic
On Thu, 2012-02-16 at 08:56, kova...@apollo.lv wrote:
I use both, Database and GET method for my script. But I don’t see
anywhere that TLV fields are parsed by bearbox, I think its logic stops on
the command status and does not retrieve tlv fields in that case. I don’t
see it in LOG files ether.

Could you post your GET URL?
 
 I’m right?
 
So I need to make a changes to kannel if there is no other way?
 
Regards Vit.
 
On Wed, 15 Feb 2012 21:29:26 +0100
Milan P. Stanic m...@arvanta.netwrote:
 On Wed, 2012-02-15 at 08:45, kova...@apollo.lv wrote:
 Hello,

 TLV options in config are set, example:

 group = smpp-tlv

 name = rut_addr

 tag = 0x1510

 type = octetstring

 length = 20

 About the error - I know what it means, I need to get
tlv fields for this
 response. If I get this command status I need to
write all tlv information
 into database for further logic.

 Kannel supports this function? If so, how can I get
the metadata for my
 resp onse into database?

 I have Bearbox , SMSbox , Sqlbox.

 I don’t have metadata for response, with command
status != 0.

 Sorry, I don't use databases for DLR nor MO/MT so I
can't help here.

 Regards Vit.

 On Tue, 14 Feb 2012 22:46:29 +0100
 Milan P. Stanic m...@arvanta.netwrote:
  On Tue, 2012-02-14 at 16:04, kova...@apollo.lv
wrote:
  Hello,
 
  I’ve done the changes to Kannel, it is working.
 
  Got One more problem, when I tester error
responses:
 
  I don’t Get parsed Meta data from Negative
 Submit_SM_Resp, it isn’t parsed
  by bearbox, dlr gets written to database with
error
 g t;code from command
  status. So if I need to receive TLV metadata from
 negative response, maybe
  there is a solution?
 
  Did you set smpp-tlv options in config file?
 
  Example of Response:
 
  OUT 2012-02-14 15:37:12
  H command_id  nb sp;  0x8004
  H command_name   SUBMIT_SM_RESP
  H sequence_number    41
  H command_status 1044
    message_id  = ''
    rut_addr_ton  n bsp; = 5 
 0x0003
    rut_subscriber_id   = '334455253/2'
    rut_addr     =
 'fserhWJKDwlqwkejf'
  
  LOG:
  2012-02-14 15:35:32 [720] [6] Got PDU:
  2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU
 0x9918ae0 dump:
  2012-02-14 15:35:32 [720] [6] DEBUG:   type_name:
 submit_sm_resp
  2012-02-14 15:35:32 [720] [6] DEBUG:   command_id:
 21474 83652 = 0x8004
  2012-02-14 15:35:32 [720] [6] DEBUG:  
 command_status: 1044 = 0x0403
  2012-02-14 15:35:32 [720] [6] DEBUG:  
 sequence_number: 42 = 0x002a
  2012-02-14 15:35:32 [720] [6] DEBUG:   message_id:
 NULL
  2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU dump
 ends.
  2012-02-14 15:35:32 [720] [6] ERROR: SMPP[]:
SMSC
 returned error code
  0x0453 (Vendor-specific error, please refer to
 your SMPP provider) in
  response to submit _sm.
 
  You should ask provider what meand 0x0453 error
 code.
  It is in the range of 'Reserved for SMSC vendor
specific
 err ors'.
 
  2012-02-14 15:35:32 [720] [6] DEBUG: SMSC[x]:
 creating DLR message
 
  Regards Vit.
 
  On Fri, 10 Fe b 2012 17:09:42 +0100
  Milan P. Stanic m...@arvanta.netwrote:
   On Fri, 2012-02-10 at 15:24, kova...@apollo.lv
 wrote:
   Hello,
  
   I’m trying to change File /gw/smsc/smsc_smpp.c
  
   Maybe anyone have stept in to such problem, and
 has
  an advice where to
   change the file will be better?
  
   I need to receive Deliver SM with 0 fields, so
I’m
   ;wondering if I catch
  gt;  Delivers With Null source address and
change the
 data
  of those fields.
   Most of time after compilation I get
segmentation
  fault..
  
   1602: dlrmsg = handle_dlr(smpp,
  pdu-u.deliver_sm.source_addr,
   pdu-u.deliver_sm.short_message,
  pdu-u.deliver_sm.message_payload,
  
   pdu-u.deliver_sm.receipted_message_id,
  pdu-u.deliver_sm.message_state ,
   pdu-u.deliver_sm.network_error_code);
  
   Here I can catch if I have an empty source
address
  like that:
  
   if ( pdu-u.deliver_sm.source_addr == NULL)   
{}
  
   Any help would be appreciated
 g t; 
   Could you send a patch with your changes and
tell
 which
  version of
   Kannel you use as a base for your modifications?
  
   And, questions about code modification/change
 should be
  posted to
   the de...@kannel.org, IMHO.
  
   Regards.  Vit
  
   On Tue, 07 Feb 2012 15

Re: Deliver_SM with null fields

2012-02-16 Thread Milan P. Stanic
[
  A: Because it messes up the order in which people normally read text.
  Q: Why is top-posting such a bad thing?
  A: Maybe because some people are too annoyed by top-posting.
  Q: Why do I not get an answer to my question(s)?
]

On Thu, 2012-02-16 at 14:05, kova...@apollo.lv wrote:
Config:
group = sendsms-user
username = x
password = x
max-messages = 1
concatenation = true
dlr-url =

 [1]http://xxx/cgi-bin/dlr2.pl?from=%Pto=%pmeta-data=%Dsmsc=%idlr-type=%dtext=%adcs=%Oreply=%Adlr=%Fttime=%toriginal_message=%bID=%Idlr_uri=%Rdlr_r=%AF_id=%F;
 
SMSbox LOG:
2012-02-16 11:11:12 [26814] [9] DEBUG:   Scheme: http://
2012-02-16 11:11:12 [26814] [9] DEBUG:   Host: xx
2012-02-16 11:11:12 [26814] [9] DEBUG:   Port: xx
2012-02-16 11:11:12 [26814] [9] DEBUG:   Username: (null)
2012-02-16 11:11:12 [26814] [9] DEBUG:   Password: (null)
2012-02-16 11:11:12 [26814] [9] DEBUG:   Path: /cgi-bin/dlr2.pl
2012-02-16 11:11:12 [26814] [9] DEBUG:   Query:

 from=alfato=2xxxmeta-data=smsc=SMPPxxsmppdlr-type=16text=NACK%2F0x0403%2FVendor-specific+error%2C+please+refer+to+your+SMPP+providerdcs=00reply=NACK%2F0x0403%2FVendor-specific+error%2C+please+refer+to+your+SMPP+providerdlr=ttime=2012-02-16+09:11:12original_message=NACK%2F0x0403%2FVendor-specific+error%2C+please+refer+to+your+SMPP+providerID=cd01df65-9b97-4d54-9ce4-c7e137b86b71dlr_uri=dlr_r=NACK%2F0x0403%2FVendor-sp
ecific+error%2C+please+refer+to+your+SMPP+providerF_id=

Ok. meta-data is empty. Looks like problem is that the Kannel does not
know how to convert received PDU to meta-data value for the given GET
URL.

Look bellow.

LOG:
2012-02-16 11:11:12 Receive DLR [SMSCxxxsmpp] [SVC:sender] [ACT:] [BINF:]
[FID:] [META:] [from:alfa] [to:2xxx] [flags:-1:-1:-1:-1:16]
[msg:73:NACK/0x0403/Vendor-specific error, please refer to your SMPP
provider] [udh:0:]
2012-02-16 11:32:49 Log ends
 
Regards Vit.
 
On Thu, 16 Feb 2012 12:42:12 +0100
Milan P. Stanic m...@arvanta.netwrote:
 On Thu, 2012-02-16 at 08:56, kova...@apollo.lv wrote:
 I use both, Database and GET method for my script.
But I don’t see
 anywhere that TLV fields are parsed by bearbox, I
think its logic stops on
 the command status and does not retrieve tlv fields
in that case. I don’t
 see it in LOG files ether.

 Could you post your GET URL?

  I’m right?

 So I need to make a changes to kannel if there is no
other way?

 Regards Vit.

 On Wed, 15 Feb 2012 21:29:26 +0100
 Milan P. Stanic m...@arvanta.netwrote:
  On Wed, 2012-02-15 at 08:45, kova...@apollo.lv
wrote:
  Hello,
 
  TLV options in config are set, example:
 
  group = smpp-tlv
 
  name = rut_addr
 
  tag = 0x1510

Where did you found 0x1510 as tag value?
Did you patched Kannel with that definition?

  type = octetstring
 
  length = 20
 
  About the error - I know what it means, I need to
get
 tlv fields for this
  response. If I get this command status I need to
 write all tlv information
  into database for further logic.
 
 g t; Kannel supports this function? If so, how can I
get
 the metadata for my
  resp onse into database?
 
  I have Bearbox , SMSbox , Sqlbox.
 
  I don’t have metadata for response, with command
 status != 0.
 
  Sorry, I don't use databases for DLR nor MO/MT so I
 can't help here.
 
  Regards Vit.
 
  On Tue, 14 Feb 2012 22:46:29 +0100
  Milan P. Stanic m...@arvanta.netwrote:
   On Tue, 2012-02-14 at 16:04, kova...@apollo.lv
 wrote:
   Hello,
  
   I’ve done the changes to Kannel, it is working.
  
Got One more problem, when I tester error
 responses:
  
   I don’t Get parsed Meta data from Negative
  Submit_SM_Resp, it isn’t parsed
   by bearbox, dlr gets written to database with
 error
  g t;code from command
   status. So if I need to receive TLV metadata
from
  negative response, maybe
   there is a solution?
  
   Did you set smpp-tlv options in config file?
  
   Example of Response:
  
   OUT 2012-02-14 15:37:12
   H command_id  nb sp;nbs p; 0x8004
   H command_name   SUBMIT_SM_RESP
   H sequence_number    41
   H command_status 1044
     message_id  = ''
     rut_addr_ton  n bsp; =
5 
  0x0003
     rut_subscriber_id   =
'334455253/2'
     rut_addr   n bsp;     =
  'fserhWJKDwlqwkejf'
   
   LOG:
   2012-02-14 15:35:32 [720] [6] Got PDU:
   2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU
  0x9918ae0 dump:
   2012-02-14 15:35:32 [720] [6] DEBUG:  
type_name:
  submit_sm_resp
   2012-02-14 15:35

Re: Deliver_SM with null fields

2012-02-15 Thread Milan P. Stanic
On Wed, 2012-02-15 at 08:45, kova...@apollo.lv wrote:
Hello,
 
TLV options in config are set, example:
 
group = smpp-tlv
 
name = rut_addr
 
tag = 0x1510
 
type = octetstring
 
length = 20
 
About the error - I know what it means, I need to get tlv fields for this
response. If I get this command status I need to write all tlv information
into database for further logic.
 
Kannel supports this function? If so, how can I get the metadata for my
response into database?
 
I have Bearbox , SMSbox , Sqlbox.
 
I don’t have metadata for response, with command status != 0.

Sorry, I don't use databases for DLR nor MO/MT so I can't help here.
 
Regards Vit.
 
On Tue, 14 Feb 2012 22:46:29 +0100
Milan P. Stanic m...@arvanta.netwrote:
 On Tue, 2012-02-14 at 16:04, kova...@apollo.lv wrote:
 Hello,

 I’ve done the changes to Kannel, it is working.

 Got One more problem, when I tester error responses:

 I don’t Get parsed Meta data from Negative
Submit_SM_Resp, it isn’t parsed
 by bearbox, dlr gets written to database with error
code from command
 status. So if I need to receive TLV metadata from
negative response, maybe
 there is a solution?

 Did you set smpp-tlv options in config file?

 Example of Response:

 OUT 2012-02-14 15:37:12
 H command_id  nb sp;  0x8004
 H command_name   SUBMIT_SM_RESP
 H sequence_number    41
 H command_status 1044
   message_id  = ''
   rut_addr_ton    = 5 
0x0003
   rut_subscriber_id   = '334455253/2'
   rut_addr     =
'fserhWJKDwlqwkejf'
 
 LOG:
 2012-02-14 15:35:32 [720] [6] Got PDU:
 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU
0x9918ae0 dump:
 2012-02-14 15:35:32 [720] [6] DEBUG:   type_name:
submit_sm_resp
 2012-02-14 15:35:32 [720] [6] DEBUG:   command_id:
2147483652 = 0x8004
 2012-02-14 15:35:32 [720] [6] DEBUG:  
command_status: 1044 = 0x0403
 2012-02-14 15:35:32 [720] [6] DEBUG:  
sequence_number: 42 = 0x002a
 2012-02-14 15:35:32 [720] [6] DEBUG:   message_id:
NULL
 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU dump
ends.
 2012-02-14 15:35:32 [720] [6] ERROR: SMPP[]: SMSC
returned error code
 0x0453 (Vendor-specific error, please refer to
your SMPP provider) in
 response to submit _sm.

 You should ask provider what meand 0x0453 error
code.
 It is in the range of 'Reserved for SMSC vendor specific
errors'.

 2012-02-14 15:35:32 [720] [6] DEBUG: SMSC[x]:
creating DLR message

 Regards Vit.

 On Fri, 10 Fe b 2012 17:09:42 +0100
 Milan P. Stanic m...@arvanta.netwrote:
  On Fri, 2012-02-10 at 15:24, kova...@apollo.lv
wrote:
  Hello,
 
  I’m trying to change File /gw/smsc/smsc_smpp.c
 
  Maybe anyone have stept in to such problem, and
has
 an advice where to
  change the file will be better?
 
  I need to receive Deliver SM with 0 fields, so I’m
 wondering if I catch
 gt;  Delivers With Null source address and change the
data
 of those fields.
  Most of time after compilation I get segmentation
 fault..
 
  1602: dlrmsg = handle_dlr(smpp,
 pdu-u.deliver_sm.source_addr,
  pdu-u.deliver_sm.short_message,
 pdu-u.deliver_sm.message_payload,
 
  pdu-u.deliver_sm.receipted_message_id,
 pdu-u.deliver_sm.message_state ,
  pdu-u.deliver_sm.network_error_code);
 
  Here I can catch if I have an empty source address
 like that:
 
  if ( pdu-u.deliver_sm.source_addr == NULL)    {}
 
  Any help would be appreciated
g t; 
  Could you send a patch with your changes and tell
which
 version of
  Kannel you use as a base for your modifications?
 
  And, questions about code modification/change
should be
 posted to
  the de...@kannel.org, IMHO.
 
  Regards.  Vit
 
  On Tue, 07 Feb 2012 15:46:04 +0200
  kova...@apollo.lvwrote:
  
   Hi,
   I’ve stept into a problem, Is it possible to
handle
  Deliver_SM with empty fields except TLV
fields?how?
   I get an Error, that its Null, here is my LOG:
 2012-02-07 15:04:40 [12259] [6] DEBUG:
Optional
   parameter tag (0x1506)
   2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
  parameter length read as 5
   2012-02-07 15:04:40 [12259] [6] DEBUG: Found
 configured
  optional parameter `rut_message_id'
   2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
  parameter tag (0x1508)
   2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
  parameter length read as 1
   2012-02-07 15:04:40 [12259] [6] DEBUG: Found
 configured
  optional

Re: Deliver_SM with null fields

2012-02-14 Thread Milan P. Stanic
On Tue, 2012-02-14 at 16:04, kova...@apollo.lv wrote:
Hello,
 
I’ve done the changes to Kannel, it is working.
 
Got One more problem, when I tester error responses:
 
I don’t Get parsed Meta data from Negative Submit_SM_Resp, it isn’t parsed
by bearbox, dlr gets written to database with error code from command
status. So if I need to receive TLV metadata from negative response, maybe
there is a solution?

Did you set smpp-tlv options in config file?
 
Example of Response:
 
OUT 2012-02-14 15:37:12
H command_id 0x8004
H command_name   SUBMIT_SM_RESP
H sequence_number    41
H command_status 1044
  message_id  = ''
  rut_addr_ton    = 5  0x0003
  rut_subscriber_id   = '334455253/2'
  rut_addr     = 'fserhWJKDwlqwkejf'
 
LOG:
2012-02-14 15:35:32 [720] [6] Got PDU:
2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU 0x9918ae0 dump:
2012-02-14 15:35:32 [720] [6] DEBUG:   type_name: submit_sm_resp
2012-02-14 15:35:32 [720] [6] DEBUG:   command_id: 2147483652 = 0x8004
2012-02-14 15:35:32 [720] [6] DEBUG:   command_status: 1044 = 0x0403
2012-02-14 15:35:32 [720] [6] DEBUG:   sequence_number: 42 = 0x002a
2012-02-14 15:35:32 [720] [6] DEBUG:   message_id: NULL
2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU dump ends.
2012-02-14 15:35:32 [720] [6] ERROR: SMPP[]: SMSC returned error code
0x0453 (Vendor-specific error, please refer to your SMPP provider) in
response to submit_sm.

You should ask provider what meand 0x0453 error code.
It is in the range of 'Reserved for SMSC vendor specific errors'.

2012-02-14 15:35:32 [720] [6] DEBUG: SMSC[x]: creating DLR message
 
Regards Vit.
 
On Fri, 10 Fe b 2012 17:09:42 +0100
Milan P. Stanic m...@arvanta.netwrote:
 On Fri, 2012-02-10 at 15:24, kova...@apollo.lv wrote:
 Hello,

 I’m trying to change File /gw/smsc/smsc_smpp.c

 Maybe anyone have stept in to such problem, and has
an advice where to
 change the file will be better?

 I need to receive Deliver SM with 0 fields, so I’m
wondering if I catch
 Delivers With Null source address and change the data
of those fields.
 Most of time after compilation I get segmentation
fault..

 1602: dlrmsg = handle_dlr(smpp,
pdu-u.deliver_sm.source_addr,
 pdu-u.deliver_sm.short_message,
pdu-u.deliver_sm.message_payload,

 pdu-u.deliver_sm.receipted_message_id,
pdu-u.deliver_sm.message_state ,
 pdu-u.deliver_sm.network_error_code);

 Here I can catch if I have an empty source address
like that:

 if ( pdu-u.deliver_sm.source_addr == NULL)    {}

 Any help would be appreciated

 Could you send a patch with your changes and tell which
version of
 Kannel you use as a base for your modifications?

 And, questions about code modification/change should be
posted to
 the de...@kannel.org, IMHO.

 Regards.  Vit

 On Tue, 07 Feb 2012 15:46:04 +0200
 kova...@apollo.lvwrote:
 
  Hi,
  I’ve stept into a problem, Is it possible to handle
 Deliver_SM with empty fields except TLV fields?how?
  I get an Error, that its Null, here is my LOG:
2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter tag (0x1506)
  2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter length read as 5
  2012-02-07 15:04:40 [12259] [6] DEBUG: Found
configured
 optional parameter `rut_message_id'
  2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter tag (0x1508)
  2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter length read as 1
  2012-02-07 15:04:40 [12259] [6] DEBUG: Found
configured
 optional parameter `rut _report_type'
  2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter tag (0x1500)
  2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
 parameter length read as 14
  2012-02-07 15:04:40 [12259] [6] DEBUG: Found
configured
 optional parameter `rut_created_ts'
  2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP[]:
Got
 PDU:
  2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP PDU
0x850eb1
  0 dump:
  2012-02-07 15:04:40 [12259] [6] DEBUG: type_name:
 deliver_sm
  2012-02-07 15:04:40 [12259] [6] DEBUG: command_id:
5 =
 0x0005
  2012-02-07 15:04:40 [12259] [6] DEBUG:
command_status:
 0 = 0x
  2012-02-07 15:04:40 [12259] [6] DEBUG:
  sequence_number: 1 = 0x0001
  2012-02-07 15:04:40 [12259] [6] DEBUG:
service_type:
 NULL
  2012-02-07 15:04:40 [12259] [6] DEBUG:
  source_addr_ton: 0 = 0x
  2012-02-07 15:0 4:40 [12259] [6] DEBUG:
  source_addr_npi: 0 = 0x
  2012-02-07 15:04:40 [12259] [6] DEBUG

Re: Fwd: HTTP SMSC inject dlr with error code

2012-02-10 Thread Milan P. Stanic
On Fri, 2012-02-10 at 20:23, Ashish Agarwal wrote:
 I am trying to work on http dlr inject. I managed to send dlr on port 13015
 with SUCCESS(DELIVRD)/UNDELIV status but I am not able to change the
 err:XXX and status:XXX value.

Where did you read it can be done at all?
 
 http smsc configuration
 
 group = smsc
 smsc = http
 smsc-id = http
 system-type = generic
 port = 13015
 connect-allow-ip = *.*.*.*
 send-url = http://172.16.1.130/smppbox/receive.php;
 #send-url = http://localhost/vm/receive.php?send=%Pmsg=%bdest=%p;
 status-success-regex = ok
 status-permfail-regex = failure
 status-tempfail-regex = retry later
 generic-foreign-id-regex = id(.+)/id
 generic-param-from = senderID
 generic-param-to = to
 generic-param-text = text
 generic-param-dlr-mask = DLRStatus
 generic-param-dlr-mid = msgID
 generic-param-dlr-url = DLRUrl
 generic-param-flash = flash
 generic-param-mclass = mclass
 generic-param-mwi = mwi
 generic-param-coding = coding
 generic-param-validity = validity
 generic-param-deferred = deferred
 generic-param-foreign-id = foreignID
 #generic-message-sent = Message sent with ID: %I
 generic-status-sent = 200
 generic-status-error = 404
 
 wherein I am trying to inject dlr in the following format
 
 http://XXX.XXX.XXX.XXX:13015/?DLRStatus=2msgID=e3989a62-e72d-cded-9b29-9ca98f820a11to=91990147text=id%3Ae3989a62-e72d-cded-9b29-9ca98f820a11+sub%3A001+dlvrd%3A000+submit+date%3A1202101816+done+date%3A1202101821+stat%3AUNDELIV+err%3A051+text%3A
 
 Though I have mentioned the err value as 051 but the esme receives in the
 following format
 
 2012-02-10 18:29:01 Receive DLR [SMSC:XXX] [SVC:] [ACT:test] [BINF:]
 [FID:0b3404f5] [META:?smpp?dlr_err=000] [from:BULKSMS] [to:X]
 [flags:-1:-1:-1:-1:2] [msg:112:id:0b3404f5 sub:001 dlvrd:000 submit
 date:1202101827 done date:1202101829 stat:UNDELIV err:000 text:
  ] [udh:0:]
 
 Please help me with this.
 
 -- 
 Regards,
 
 Ashish

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Deliver_SM with null fields

2012-02-10 Thread Milan P. Stanic
On Fri, 2012-02-10 at 15:24, kova...@apollo.lv wrote:
Hello,
 
I’m trying to change File /gw/smsc/smsc_smpp.c
 
Maybe anyone have stept in to such problem, and has an advice where to
change the file will be better?
 
I need to receive Deliver SM with 0 fields, so I’m wondering if I catch
Delivers With Null source address and change the data of those fields.
Most of time after compilation I get segmentation fault..
 
1602: dlrmsg = handle_dlr(smpp, pdu-u.deliver_sm.source_addr,
pdu-u.deliver_sm.short_message, pdu-u.deliver_sm.message_payload,
 
pdu-u.deliver_sm.receipted_message_id, pdu-u.deliver_sm.message_state,
pdu-u.deliver_sm.network_error_code);
 
Here I can catch if I have an empty source address like that:
 
if ( pdu-u.deliver_sm.source_addr == NULL)    {}
 
Any help would be appreciated

Could you send a patch with your changes and tell which version of
Kannel you use as a base for your modifications?

And, questions about code modification/change should be posted to
the de...@kannel.org, IMHO.
 
Regards.  Vit
 
On Tue, 07 Feb 2012 15:46:04 +0200
kova...@apollo.lvwrote:

 Hi,
 I’ve stept into a problem, Is it possible to handle
Deliver_SM with empty fields except TLV fields?how?
 I get an Error, that its Null, here is my LOG:

 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter tag (0x1506)
 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter length read as 5
 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configured
optional parameter `rut_message_id'
 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter tag (0x1508)
 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter length read as 1
 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configured
optional parameter `rut _report_type'
 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter tag (0x1500)
 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional
parameter length read as 14
 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configured
optional parameter `rut_created_ts'
 2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP[]: Got
PDU:
 2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP PDU 0x850eb1
 0 dump:
 2012-02-07 15:04:40 [12259] [6] DEBUG: type_name:
deliver_sm
 2012-02-07 15:04:40 [12259] [6] DEBUG: command_id: 5 =
0x0005
 2012-02-07 15:04:40 [12259] [6] DEBUG: command_status:
0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 sequence_number: 1 = 0x0001
 2012-02-07 15:04:40 [12259] [6] DEBUG: service_type:
NULL
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 source_addr_ton: 0 = 0x
 2012-02-07 15:0 4:40 [12259] [6] DEBUG:
 source_addr_npi: 0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG: source_addr:
NULL
 2012-02-07 15:04:40 [12259] [6] DEBUG: dest_addr_ton:
0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG: dest_addr_npi:
0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 destination_addr: NULL
 2012-02-07 15:04:40 [12259] [6] DEBUG: esm_class: 4 =
0x0004
 2012-02- 07 15:04:40 [12259] [6] DEBUG: protocol_id:
0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG: priority_flag:
0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 schedule_delivery_time: NULL
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 validity_period: NULL
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 registered_delivery: 0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 replace_if_present_flag: 0 = 0 x
 2012-02-07 15:04:40 [12259] [6] DEBUG: data_coding: 0
= 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG:
 sm_default_msg_id: 0 = 0x
 2012-02-07 15:04:40 [12259] [6] DEBUG: sm_length: 0 =
0x
 2012-02-07 15:04:40 [12259] [6] DEBUG: short_message:

 2012-02-07 15:04:40 [12259] [6] DEBUG: rut_message_id:
48024
 2012-02-07 15:04:40 [12259] [6] DEBUG: rut_created_ts:
20120207150639
 2 012-02-07 15:04:40 [12259] [6] DEBUG:
 rut_report_type: 0
 2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP PDU dump
ends.
 2012-02-07 15:04:40 [12259] [6] DEBUG: SMPP[]
handle_pdu, got DLR
 2012-02-07 15:04:40 [12259] [6] ERROR: SMPP[xxx]: got
DLR but could not find message or was not interested in
it id dst(null), type-1


 Regards.
 WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-CLI2Mn/pkcs11: No 
 such file or directory

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: DLR table is empty - Why?

2012-02-10 Thread Milan P. Stanic
On Fri, 2012-02-10 at 00:02, aco.s wrote:
 At the moment my Kannel configuration is:
 modem as smsc-bearebox-sqlbox-smsbox
 
 This playing with modem as smsc is just temporatily. What I need is
 solution that will have in-depth log files and stored messages in any
 status. Can I have it with Kannel and how to set it up??

Read userguide. Search the Net. Search this mailing list archive.
By doing that you will learn what Kannel can do for you and how you can
integrate it into your system.

Kannel is SMS gateway (and really god one) and not the application
server/system for everyone particular needs.

For your questions bellow, you will have to write application in your
programming language/environment or hire someone with enough skills to do
that.

 To explain...
 
 I already have smpp client (from other vendor) connected to SMSC using
 SMPP and trying to find alternative since it is just communication
 channel with no possibility to force sending sms again or never to send
 it--- I cannot play/change anything.
 
 Now, I am trying to find out if Kannel can help me. 
 
 1) I need this because if my system fails in some moment I need to force
 sending messages later, when system get online, but sometimes I what
 to select those messages - let's say that some messages are become old
 and not neccessarily to be send after some time. I have found this
 difficult because this system after I use send-sms url message is stored
 to sent-sms table and commes to kannel.store file. If it comes to
 kannel.store and system fails, after systems got UP those messages will
 be send regardless if some of them are technologically absolete
 (irelevant for the sender or receiver). So it something is in system it
 will be delivered sometime  no matter what...
 
 2) Is there, any chance to keep all messages in senD-sms table after
 sent successfully but with status (you should add one field in table
 talking about status of message)
 
 Let's say ...
 
 status 0 - a message is send successfully and recorded in senT-sms
 status 1 - a message is not yet sent and pending
 status 2 - a message sending failed, will be sent in XX seconds (defined
 on level of smsc)
 status 3 - permanently failed and will not be sent again
 
 
 3) If you have above, It can be developed web admin to manage single or
 multiple messages to force sending it again (if neccessary), sending it
 in XX seconds (to be configurable on level of Kannel or on level of
 single smsc) or to force never to send...
 
 4) Is there a way to have one send-sms and sent-sms table per smsc
 connection ?
 
 5) As an alternative - is there any chance to make kannel.store file
 readable, OR to have some tool to just open it as readable, edit it,
 and save it in same format as it was?
 
 6) kannel.store is file that can be configured to have it one per
 message or one for all. Can it be set to have one file per day??? One
 per smsc connection ???
 
 A.
 
 
 On Thu, 2012-02-09 at 16:23 +0100, Milan P. Stanic wrote:
  On Thu, 2012-02-09 at 16:05, aco.s wrote:
   Hi there!
   I have Bearerbox-Sqlbox-Smsbox system that is working (can send and
   receive messages and reply on them), but records in db are very poor.
  
  Read userguide carefully. And read mailing list archive. Search for
  answers on the Net. Two days ago I and Alvaro answered such question
  in this mailing list.
  
  
 
  dlr-storage is temporary 'place' where Kannel keeps DLR's until it  
  
 
  process them. After Kannel finishes with them it then deletes them from 
  
 
  temporary storage, be it xxSQL or memory.
  
   I have a few questions regarding this:
   
   1) In configuration Bearerbox - Smsbox (no sqlbox)
   ..in kannel.conf I have...
   dlr-storage = mysql
   include = dlr-mysql.conf
   ..
   I made two tests with MO+MT and MT message. Messages are delivered
   successfully.
   Nothing is inserted in dlr table in my kannel db. Why?
   
   
   2) In configuration Bearerbox - Sqlbox - Smsbox
..in kannel.conf I have...
   dlr-storage = mysql
   include = dlr-mysql.conf
   ...
   I made two tests, one with MO+MT and another with MT message. Messages
   are delivered successfully, but nothing recorded in dlr table. In
   sent-sms table I have all recorded. Why nothing recorded in dlr table?
   
   
   3) Configuration as in 2), but sending messages by inserting sql record
   in send-sms table.
   In this case I have message delivered successfully and recorded in
   sent-sms table, but nothing in dlr table. Also, dlr- fields in sent-sms
   table are empty

Re: DLR table is empty - Why?

2012-02-09 Thread Milan P. Stanic
On Thu, 2012-02-09 at 16:05, aco.s wrote:
 Hi there!
 I have Bearerbox-Sqlbox-Smsbox system that is working (can send and
 receive messages and reply on them), but records in db are very poor.

Read userguide carefully. And read mailing list archive. Search for
answers on the Net. Two days ago I and Alvaro answered such question
in this mailing list.


   
dlr-storage is temporary 'place' where Kannel keeps DLR's until it  

   
process them. After Kannel finishes with them it then deletes them from 

   
temporary storage, be it xxSQL or memory.

 I have a few questions regarding this:
 
 1) In configuration Bearerbox - Smsbox (no sqlbox)
 ..in kannel.conf I have...
 dlr-storage = mysql
 include = dlr-mysql.conf
 ..
 I made two tests with MO+MT and MT message. Messages are delivered
 successfully.
 Nothing is inserted in dlr table in my kannel db. Why?
 
 
 2) In configuration Bearerbox - Sqlbox - Smsbox
  ..in kannel.conf I have...
 dlr-storage = mysql
 include = dlr-mysql.conf
 ...
 I made two tests, one with MO+MT and another with MT message. Messages
 are delivered successfully, but nothing recorded in dlr table. In
 sent-sms table I have all recorded. Why nothing recorded in dlr table?
 
 
 3) Configuration as in 2), but sending messages by inserting sql record
 in send-sms table.
 In this case I have message delivered successfully and recorded in
 sent-sms table, but nothing in dlr table. Also, dlr- fields in sent-sms
 table are empty.
 
 
 4) During those tests, only few fields are filled in sent-sql table. How
 to force sqlbox to fill all or most of fields ???
 
 
 I have read SQLBOX User's Guide but there are no details about this...
 Where to look for details ???
 
 Thank you.
 
 
 

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: query with regards kannel.store and kannel.stor.bak

2012-02-08 Thread Milan P. Stanic
On Wed, 2012-02-08 at 05:23, Burke Sean wrote:
 Is it possible to clear out the above two files? I've tried emptying them by 
 using  kannel.store and  kannel.store.bak, but as soon as another messages 
 goes through the system, they re-create themselves with their original 
 content.
 
 Any thoughts?

These file exist for good reason and they are re/created by Kannel to
track message handling.

Read userguide carefully and you will understand why you shouldn't
clean it 'by hand' except in specific cases.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: query with regards kannel.store and kannel.stor.bak

2012-02-08 Thread Milan P. Stanic
On Wed, 2012-02-08 at 05:51, Burke Sean wrote:
 Hi Milan,
 
 Thanks for the prompt reply.
 
 I understand the reasoning for the files.
 
 The reason why I am asking is that our kannel server was restarted yesterday 
 and a lot of old messages were sent that should not have been due to the date 
 difference from when they were first created and this caused a lot of issues 
 and I'm trying to avoid that again by clearing out the messages that still 
 exist in that file.

Ah, that is specific case.
You should stop kannel, clear (empty, delete or whatever) these files
and then start kannel again.
Something what could be called 'clean start'.
 
 Cheers
 
 Sean
 
 -Original Message-
 From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
 Milan P. Stanic
 Sent: 08 February 2012 11:47
 To: users@kannel.org
 Subject: Re: query with regards kannel.store and kannel.stor.bak
 
 On Wed, 2012-02-08 at 05:23, Burke Sean wrote:
  Is it possible to clear out the above two files? I've tried emptying them 
  by using  kannel.store and  kannel.store.bak, but as soon as another 
  messages goes through the system, they re-create themselves with their 
  original content.
 
  Any thoughts?
 
 These file exist for good reason and they are re/created by Kannel to
 track message handling.
 
 Read userguide carefully and you will understand why you shouldn't
 clean it 'by hand' except in specific cases.
 
 --
 Kind regards,  Milan
 --
 Arvanta, IT Securityhttp://www.arvanta.net
 Please do not send me e-mail containing HTML code or documents in
 proprietary format (word, excel, pps and so on)
 
 
 Stryker SA / Registered number: CH-550-0054924-4 / Registered office: 
 Cité-Centre, Grand rue 90, 1820 Montreux / VAT number: . 291987
 
 Les informations contenues dans ce courriel ainsi que les éventuelles pièces 
 jointes sont exclusivement destinées à l’usage du ou des destinataires 
 prévus. Ce courriel peut contenir des informations privilégiées ou 
 confidentielles aux yeux de la loi ou le produit d’un travail soumis au 
 secret professionnel de l’avocat ou autrement protégé contre la divulgation. 
 Aucune renonciation à un quelconque privilège n’est envisagée. Si vous n’êtes 
 pas le destinataire prévu, toute interception, communication, diffusion ou 
 copie est strictement interdite et pourra donner lieu à des poursuites 
 pénales ou civiles à votre encontre. Si vous avez reçu ce courriel par 
 erreur, veuillez en avertir l’expéditeur par téléphone ou par retour de 
 courriel et confirmer que vous détruirez ou effacerez de votre système toutes 
 les exemplaires de ce message et des éventuelles pièces jointes.
 
 The information contained in this email message and any attachments is 
 exclusively for the use of the intended recipient(s).  It may contain legally 
 privileged, confidential information or work product subject to 
 attorney-client privilege or otherwise protected from disclosure.  No waiver 
 of any privilege is intended.  If you are not the intended recipient, any 
 interception, dissemination, distribution or copying is strictly prohibited, 
 and may subject you to criminal and/or civil penalties.  If you have received 
 this email message in error, please notify the sender by telephone or by 
 email reply and confirm that you will destroy or delete all copies of the 
 message and any attachments from your system.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: MySQL Save from smpp

2012-02-07 Thread Milan P. Stanic
On Tue, 2012-02-07 at 20:08, Aleksandar Smolovic wrote:
 you have it in addons dir...
 Prior that you need to install openssl-devel package and libxml2 package

That depends on distribution and OS version.

OP wrote that he uses Ubuntu (which is Debian derivative) so he have to
install libssl-dev and libxml-dev and some other development packages.

But becasue he runs SVN version he probably knows that already ;-)

 -original message-
 Subject: Re: MySQL Save from smpp
 From: Trevor Benedict mre...@gmail.com
 Date: 07/02/2012 8:04 pm
 
 Is that not in the svn?
 Where is that located?
 
 Thanks,
 - Trevor
 
 On Tue, Feb 7, 2012 at 10:54 AM, Alvaro Cornejo
 cornejo.alv...@gmail.com wrote:
  Hi
 
  bearerbox DOES NOT permanently save any to mysql. You need to use
  sqlbox for that --or your own app--.
 
  Bearerbos uses mysql only to track dlr. Once it receives a final
  status, it removes the entry from db. That is why that table is
  -almost- always empty.
 
  Regards
 
  Alvaro
 
  On 2/7/12, Trevor Benedict mre...@gmail.com wrote:
  I am having a hell of a hard time trying to get bearerbox to save
  incoming smpp pdu's into the database.
  What am I doing wrong? Ive spent the last 3 days trying to get this 
  working.
 
  Ver: SVN Build `Feb  3 2012 10:44:12'
  Libxml version 2.7.8
  Ubuntu 11.10
 
  DEBUG: SMPP PDU 0x2624740 dump:
  DEBUG:   type_name: deliver_sm
  DEBUG:   command_id: 5 = 0x0005
  DEBUG:   command_status: 0 = 0x
  DEBUG:   sequence_number: 92 = 0x005c
  DEBUG:   service_type: NULL
  DEBUG:   source_addr_ton: 1 = 0x0001
  DEBUG:   source_addr_npi: 1 = 0x0001
  DEBUG:   source_addr: 119784068219
  DEBUG:   dest_addr_ton: 0 = 0x
  DEBUG:   dest_addr_npi: 1 = 0x0001
  DEBUG:   destination_addr: 41080197
  DEBUG:   esm_class: 4 = 0x0004
  DEBUG:   protocol_id: 0 = 0x
  DEBUG:   priority_flag: 0 = 0x
  DEBUG:   schedule_delivery_time: NULL
  DEBUG:   validity_period: NULL
  DEBUG:   registered_delivery: 2 = 0x0002
  DEBUG:   replace_if_present_flag: 0 = 0x
  DEBUG:   data_coding: 0 = 0x
  DEBUG:   sm_default_msg_id: 0 = 0x
  DEBUG:   sm_length: 119 = 0x0077
  DEBUG:   short_message:
  DEBUG:Octet string at 0x2625680:
  DEBUG:  len:  119
  DEBUG:  size: 120
  DEBUG:  immutable: 0
  DEBUG:  data: 69 64 3a 34 37 37 31 44 46 36 39 20 73 75 62 3a
  id:4771DF69 sub:
  DEBUG:  data: 30 30 31 20 64 6c 76 72 64 3a 30 30 30 20 73 75
  001 dlvrd:000 su
  DEBUG:  data: 62 6d 69 74 20 64 61 74 65 3a 31 30 30 35 31 30
  bmit date:100510
  DEBUG:  data: 31 36 34 39 20 64 6f 6e 65 20 64 61 74 65 3a 31
  1649 done date:1
  DEBUG:  data: 30 30 35 31 30 31 36 34 39 20 73 74 61 74 3a 52
  005101649 stat:R
  DEBUG:  data: 45 4a 45 43 54 44 20 65 72 72 3a 30 30 42 20 74
  EJECTD err:00B t
  DEBUG:  data: 65 78 74 3a 2b 58 54 3a 31 30 31 30 2c 31 30 35
  ext:+XT:1010,105
  DEBUG:  data: 31 32 2c 32 30 39 2e  12,209.
  DEBUG:Octet string dump ends.
  DEBUG:   message_state: 5 = 0x0005
  DEBUG:   receipted_message_id: 4771DF69
  DEBUG: SMPP PDU dump ends.
  DEBUG: SMPP['kore_smsc'] handle_pdu, got DLR
  DEBUG: DLR[mysql]: Looking for DLR smsc='kore_smsc', ts=1198645097,
  dst=119784068219, type=2
  DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`,
  `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 1
  DEBUG: column=mask buffer_type=3 max_length=0 length=10
  DEBUG: column=service buffer_type=253 max_length=0 length=40
  DEBUG: column=url buffer_type=253 max_length=0 length=255
  DEBUG: column=source buffer_type=253 max_length=0 length=40
  DEBUG: column=destination buffer_type=253 max_length=0 length=40
  DEBUG: column=boxc buffer_type=253 max_length=0 length=40
  WARNING: DLR[mysql]: DLR from SMSC'kore_smsc' for DST119784068219 not
  found.
  ERROR: SMPP['kore_smsc']: got DLR but could not find message or was
  not interested in it id1198645097 dst119784068219, type2
 
  group = smsc
  smsc = smpp
  host = xxx.com
  port = 2777
  receive-port = 2777
  smsc-username = xxxuser
  smsc-password = xxxpass
  keepalive = 55
  system-type = 'VMA'
  interface-version = 34
  transceiver-mode = 0
  wait-ack = 60
  smsc-id = 'kore_smsc'
  my-number= '89014104'
  source-addr-ton = 0
  source-addr-npi = 1
  dest-addr-ton = 1
  dest-addr-npi = 1
  bind-addr-ton = 0
  bind-addr-npi = 0
  connection-timeout = 60
  throughput = 1
  msg-id-type = 0x02
 
  group = core
  admin-port = 13000
  admin-password = bar
  #admin-deny-ip = *.*.*.*
  admin-allow-ip = *.*.*.*
  wapbox-port = 13002
  wdp-interface-name = *
  log-file = /var/log/kannel/bearerbox.log
  #box-deny-ip = *.*.*.*
  box-allow-ip = *.*.*.*
  smsbox-port = 13003
  dlr-storage = mysql
  store-type = file
  store-location = /tmp/kannel.store
 
  group = sms-service
  accepted-smsc = kore_smsc
  #tried a few things here
  keyword = id:
  catch-all = true
  omit-empty = true
  #doesnt 

Re: Fw: SQLBOX - make error - ssl/nossl

2012-02-01 Thread Milan P. Stanic
[ don't post to me, I'm subscribed to list and don't top-post in mailing
 list (it is rude at least) ]

On Wed, 2012-02-01 at 09:59, aco.s wrote:
 Hello,
 
 I have installed openssl-0.9.8s installed from distribution package !
 
 Need development version ???

Of course, you must have development (openssl-dev or however it is named
in Suse).

 What about this issue with ./configure command (output is the same
 regardless with/without ssl)???

If you didn't installed development in /usr/local/ssl you shouldn't have  
--with-ssl=/usr/local/ssl
as ./configure parameter. 

Distribution package manager usually install all files under /usr
Check if you have /usr/include/openssl directory and header files there,
and libssl.a somewhere under /usr/lib
 
 thank you.
 
 
 
 On Wed, 2012-02-01 at 09:28 +0100, Aleksandar SMOLOVIC wrote:
  
  --
  From: Milan P. Stanic m...@arvanta.net
  Sent: Wednesday, February 01, 2012 12:43 AM
  To: users@kannel.org
  Subject: Re: SQLBOX - make error - ssl/nossl
  
   On Tue, 2012-01-31 at 23:26, aco.s wrote:
   Dear all,
   
   I am trying to install SQLBOX but have no success. 
   
   I am trying to do it with SSL support or without SSL support BUT result
   is almost the same. As far as other installations are concern OpenSSL
   0.9.8s is working fine, only SQLBOX is having problem... Correct me if I
   am wrong!??! ./configure command is doing the same regardless of my
   choice with-ssl or without-ssl. How come?
   
   One more thing, please, have a look at the bottom of this post for just
   one more question
   
   Here are details from installation WITH SSL:
   #
   openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk
   # ./configure --prefix=/usr/local/sqlbox
   --with-kannel-dir=/usr/local/kannel --enable-ssl
   --with-ssl=/usr/local/ssl
   
   You enabled ssl (enable-ssl) and you don't have openssl development
   installed where Kannel build system expect.
   
   Do you install openssl in /usr/local/ssl by hand or your distribution
   package manager installed it there?
   
   ..
   ..
   Configuring OpenSSL support ...
   checking whether to compile with SSL support...
   trying /usr/local/ssl/lib /usr/local/ssl/include
   checking for openssl... /usr/local/bin/openssl
   checking for CRYPTO_lock in -lcrypto... yes
   checking for SSL_library_init in -lssl... no
   ..
   and it is done !
   #
   openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk #
   make
   ...
   ..
   /usr/local/ssl/lib/libssl.a(t1_lib.o): In function `tls_decrypt_ticket':
   t1_lib.c:(.text+0x80): undefined reference to `HMAC_CTX_init'
   t1_lib.c:(.text+0x10b): undefined reference to `HMAC_Update'
   t1_lib.c:(.text+0x12e): undefined reference to `HMAC_Final'
   t1_lib.c:(.text+0x13a): undefined reference to `HMAC_CTX_cleanup'
   
   
   /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function `dtls1_read_bytes':
   d1_pkt.c:(.text+0xfb3): undefined reference to `pqueue_pop'
   d1_pkt.c:(.text+0xfd6): undefined reference to `pitem_free'
   d1_pkt.c:(.text+0x102e): undefined reference to `pqueue_size'
   collect2: ld returned 1 exit status
   make[2]: *** [sqlbox] Error 1
   make[2]: Leaving directory
   `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk/gw'
   make[1]: *** [all-recursive] Error 1
   make[1]: Leaving directory
   `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk'
   make: *** [all] Error 2
   openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk # 
   ###
   ###
   ###
   Here are details from installation WITHOUT SSL:
   
   openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk
   # ./configure --prefix=/usr/local/sqlbox
   --with-kannel-dir=/usr/local/kannel
   ..
   ..
   Configuring OpenSSL support ...
   checking whether to compile with SSL support...
   trying /usr/local/ssl/lib /usr/local/ssl/include/openssl
   checking for openssl... /usr/local/bin/openssl
   checking for CRYPTO_lock in -lcrypto... yes
   checking for SSL_library_init in -lssl... no
   ...
   and it is done!
   ###
   openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk #
   make
   ...
   ...
   /usr/local/ssl/lib/libssl.a(t1_lib.o): In function `tls_decrypt_ticket':
   t1_lib.c:(.text+0x80): undefined reference to `HMAC_CTX_init'
   t1_lib.c:(.text+0x10b): undefined reference to `HMAC_Update'
   t1_lib.c

Re: SQLBOX - make error - ssl/nossl

2012-01-31 Thread Milan P. Stanic
On Tue, 2012-01-31 at 23:26, aco.s wrote:
 Dear all,
 
 I am trying to install SQLBOX but have no success. 
 
 I am trying to do it with SSL support or without SSL support BUT result
 is almost the same. As far as other installations are concern OpenSSL
 0.9.8s is working fine, only SQLBOX is having problem... Correct me if I
 am wrong!??! ./configure command is doing the same regardless of my
 choice with-ssl or without-ssl. How come?
 
 One more thing, please, have a look at the bottom of this post for just
 one more question
 
 Here are details from installation WITH SSL:
 #
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk
 # ./configure --prefix=/usr/local/sqlbox
 --with-kannel-dir=/usr/local/kannel --enable-ssl
 --with-ssl=/usr/local/ssl

You enabled ssl (enable-ssl) and you don't have openssl development
installed where Kannel build system expect.

Do you install openssl in /usr/local/ssl by hand or your distribution
package manager installed it there?

 ..
 ..
 Configuring OpenSSL support ...
 checking whether to compile with SSL support...
 trying /usr/local/ssl/lib /usr/local/ssl/include
 checking for openssl... /usr/local/bin/openssl
 checking for CRYPTO_lock in -lcrypto... yes
 checking for SSL_library_init in -lssl... no
 ..
 and it is done !
 #
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk #
 make
 ...
 ..
 /usr/local/ssl/lib/libssl.a(t1_lib.o): In function `tls_decrypt_ticket':
 t1_lib.c:(.text+0x80): undefined reference to `HMAC_CTX_init'
 t1_lib.c:(.text+0x10b): undefined reference to `HMAC_Update'
 t1_lib.c:(.text+0x12e): undefined reference to `HMAC_Final'
 t1_lib.c:(.text+0x13a): undefined reference to `HMAC_CTX_cleanup'
 
 
 /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function `dtls1_read_bytes':
 d1_pkt.c:(.text+0xfb3): undefined reference to `pqueue_pop'
 d1_pkt.c:(.text+0xfd6): undefined reference to `pitem_free'
 d1_pkt.c:(.text+0x102e): undefined reference to `pqueue_size'
 collect2: ld returned 1 exit status
 make[2]: *** [sqlbox] Error 1
 make[2]: Leaving directory
 `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk/gw'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk'
 make: *** [all] Error 2
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk # 
 ###
 ###
 ###
 Here are details from installation WITHOUT SSL:
 
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk
 # ./configure --prefix=/usr/local/sqlbox
 --with-kannel-dir=/usr/local/kannel
 ..
 ..
 Configuring OpenSSL support ...
 checking whether to compile with SSL support...
 trying /usr/local/ssl/lib /usr/local/ssl/include/openssl
 checking for openssl... /usr/local/bin/openssl
 checking for CRYPTO_lock in -lcrypto... yes
 checking for SSL_library_init in -lssl... no
 ...
 and it is done!
 ###
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk #
 make
 ...
 ...
 /usr/local/ssl/lib/libssl.a(t1_lib.o): In function `tls_decrypt_ticket':
 t1_lib.c:(.text+0x80): undefined reference to `HMAC_CTX_init'
 t1_lib.c:(.text+0x10b): undefined reference to `HMAC_Update'
 t1_lib.c:(.text+0x12e): undefined reference to `HMAC_Final'
 t1_lib.c:(.text+0x13a): undefined reference to `HMAC_CTX_cleanup'
 t1_lib.c:(.text+0x1dd): undefined reference to `EVP_DecryptUpdate'
 t1_lib.c:(.text+0x204): undefined reference to `EVP_DecryptFinal'
 .
 .
 /usr/local/ssl/lib/libssl.a(d1_pkt.o): In function `dtls1_read_bytes':
 d1_pkt.c:(.text+0xfb3): undefined reference to `pqueue_pop'
 d1_pkt.c:(.text+0xfd6): undefined reference to `pitem_free'
 d1_pkt.c:(.text+0x102e): undefined reference to `pqueue_size'
 collect2: ld returned 1 exit status
 make[2]: *** [sqlbox] Error 1
 make[2]: Leaving directory
 `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk/gw'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory
 `/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk'
 make: *** [all] Error 2
 openSUSE-acer:/usr/local/src/www.kannel.org/Kannel/svn/sqlbox/trunk # 
 ###
 ###
 ###
 
 As you can see from output of make command you can find (among other
 errors) line starting with:
 /usr/local/ssl/lib/libssl.a(t1_lib.o)

Re: Help store DLR REPORTS

2011-12-21 Thread Milan P. Stanic
On Wed, 2011-12-21 at 10:21, Jorge Raimundo wrote:
 On Tue, Dec 20, 2011 at 1:00 PM, Milan P. Stanic m...@arvanta.net wrote:
   This is temporary storage for DLRs and not permanent.
 
  Read userguide section 'External delivery report (DLR) storage'
  carefully.
 I'm sorry, but I can't find on the userguide's section *External delivery
 report (DLR) storage* any mention that this is a temporary storage.
 
 Here's the text:
 Delivery reports are supported by default internally, which means all DLRs
 are stored in the memory of the bearerbox process. This is problematic if
 bearerbox crashes or you take the process down in a controlled way, but
 there are still DLRs open. Therefore you may use external DLR storage
 places, i.e. a MySQL database.
 
 The rest of the section is about specific configurations on the different
 types of databases and the configuration groups needed on the config file.
 
 Maybe the paragraph above should be revised to make the temporary storage
 clear and avoid such confusions.

You are right. Userguide could be improved but keep in mind that the
Kannel project does not have money so everything is done when someone
have enough time and goodwill to contribute code or documentation.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Sending SMS to multiple destinations via SMPP

2011-12-21 Thread Milan P. Stanic
On Wed, 2011-12-21 at 10:45, Jorge Raimundo wrote:
 I've successfully managed to send an SMS via SMPP using kannel, but the
 reason why I started using SMPP in the first place is because I was told it
 is the best way to send large amounts of messages.
 
 I want to send a bulk SMS with the same text to, let's say, 3000
 destinations. Do I need to make 3000 http requests to the kannel smsbox? If
 not, how is it done? And how is dlr going to address these messages?

You can use sqlbox for bulk SMS.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Help store DLR REPORTS

2011-12-21 Thread Milan P. Stanic
On Wed, 2011-12-21 at 11:17, Jorge Raimundo wrote:
 Yes, I know, please don't get me wrong.
 
 In fact I'm really pleased and surprised by the amount and quality of the
 documentation available.
 
 What I said before was just to say that *read the userguide carefully*
 doesn't always apply as a useful answer.

Well, sentence '*read the userguide carefully*' is there because it must
be done that way if anyone want to understand it. And that is because is
not complete or perfect.

There are a lot of users questions on this mailing list from the people
who are lazy to even read userguide once, at least.
 
 In my case I managed to download, compile, configure and send an SMS using
 the userguide.
 Only when I reached the point of handling DLR and bulk messages I needed
 extra help from the mailing list. This is already very good.
 
 If you allow me to give a suggestion, I would recommend to have the
 documentation also in a wiki where users could edit, change, correct and
 improve the documentation.
 If this was possible, I would gladly have edited the wiki to include these
 little changes I've found necessary on the DLR sections.

Personally, I don't think the wiki with open access is good method for
maintaining any documentation but it could be better than nothing.

Best method to help (IMO) is to send patches for code or documentation
to development mailing list where developers can review and (if all is
ok) apply patches.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Cross-connecting kannel modules

2011-12-20 Thread Milan P. Stanic
On Tue, 2011-12-20 at 13:43, ha...@aeon.pk wrote:
 I am connecting SMSBOX running on machine 2 to BEARERBOX running on machine
 1. Since BEARERBOX of machine 1 cannot see configuration of SMSBOX of
 machine 2 when BEARERBOX is started, its GUI is not listing the LAs
 included in SMSBOX-2 configuration.
 
 My question is that, how to see those LAs connectivity? Also, is there a
 method to configure BBOX-1 to include SMSBOX config files from other
 machines while initiating?

NFS, or some other file sharing system.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: dlr-mask not on the url

2011-12-20 Thread Milan P. Stanic
On Tue, 2011-12-20 at 11:02, Jorge Raimundo wrote:
 On Mon, Dec 19, 2011 at 6:51 PM, Milan P. Stanic m...@arvanta.net
 wrote:
  In URL as userguide tells, not in config file.
 Well, then the user guide should be more explicit on that. When you
 say *IFyou specify dlr-mask on the URL
 * you're giving the reader the feeling that there might be another
 way to
 specify the dlr-mask.

 It should read *To enable the reports you must specify dlr-mask and
 dlr-url on the URL you pass on to kannel*.

Well, that is just part of the puzzle.

You can set 'dlr-url' in sendsms-user block/section but you must specify
dlr-mask as CGI parameter, if you want DLR at all, of course.

Or, you can set both (dlr-url and dlr-mask) as CGI parameters.

Read the 'SendSMS-user configurations' in userguide, carefully.

 But this leaves me with another question:
 The userguide describes a process that needs a server-side script
 (dlr-url)
 that processes the report info, but then I do not know what is the
 purpose
 of having the mysql-connection and dlr-db groups.

Read the 'External delivery report (DLR) storage' section in userguide,
carefully, of course.

If you don't understand that section, feel free to ask aditional
questions here.

 I've sent a message and the table defined on the dlr-db remains empty.

dlr db is temporary storage for DLRs. When the DLR is processed it is
removed from DB table or internal storage.

 My
 configuration for these groups is below:
 *group = mysql-connection
 id = mydlr
 host = localhost
 username = kannel
 password = kannel
 database = kannel
 max-connections = 1
 
 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc*
 
 I am clearly missing something here. Could you enlighten me, please?
 
 Best regards,
 Jorge
 
 -- 
 
   [image: Multivision] *Jorge Raimundo
 *  RAN Consultant | jorge.raimu...@multivision.pt  .  Rua António Albino
 Machado, Nº33, 2ºB.  S. Domingos de Benfica, 1600 - 870 Lisboa  Fixed PT: +351
 21 155 20 53 | Mobile PT: +351 91 933 13 67  www.multivision.pt

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: dlr-mask not on the url

2011-12-20 Thread Milan P. Stanic
On Tue, 2011-12-20 at 12:35, Jorge Raimundo wrote:
 Hi Milan!
 
 Thanks for your reply! It got clearer now.
 
 You can set 'dlr-url' in sendsms-user block/section but you must specify
  dlr-mask as CGI parameter, if you want DLR at all, of course.
 
  Or, you can set both (dlr-url and dlr-mask) as CGI parameters.
 
 
 If I want to set dynamic parameters, like my own message ID, then it must
 be a CGI parameter, correct?

Yes.
 
 How can I pass the message's destination number to the dlr-url? Can I do
 something like dlr-url=
 http://www.xyz.com/cgi/dlr.php?myId=123456type=%ddestination=%d ?
 Will kannel be able to know what to insert in the second parameter?

Yes. But it must be url-encoded.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: Help store DLR REPORTS

2011-12-20 Thread Milan P. Stanic
On Tue, 2011-12-20 at 13:08, mohamed keita wrote:
 
 Hello
 I managed to send and receive sms through kannel .
 Now, I  want to store delivery reports files in  mysql .

 I set up my file kannel.conf then create my database, but I can not
 see datas.

This is temporary storage for DLRs and not permanent.

Read userguide section 'External delivery report (DLR) storage'
carefully.

Few hours ago I answered that question in _this_ mailing list.
Did you read it?

 Here , is my configuration file kannel.conf:

 
 group = core
 admin-port = 13000
 admin-password = 
 status-password = 
 admin-allow-ip = 127.0.0.1,192.168.2.12
 smsbox-port= 13001
 wdp-interface-name = *
 log-file = /var/log/kannel/bearerbox.log
 #box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 
 
 # Configuration wapbox
 #group = wapbox
 #bearerbox-host = localhost
 #log-file = /var/log/kannel/wapbox.log
 #log-level=4
 
 
 #Configuration smsbox
 group =smsbox
 bearerbox-host = localhost
 global-sender=13003
 sendsms-port=13003
 log-level=4
 log-file=/var/log/kannel/smsbox.log
 
 
 # Configuration send-sms user(Parametres de connexion avec le navigateur)
 
 group= sendsms-user
 username=fyle
 password=fyle
 #concatenation=true
 
 
 # Configuration sms-service
 
 group=sms-service
 keyword=test
 text=ok c'est bon
 
 
  # Smsc (telephone portable)
 
 group = smsc
 smsc = at
 modemtype = samsung
 device =/dev/ttyACM0
 log-level=1
 host=192.168.2.12
 
 
 #Configuration Modem Samsung
 
 group = modems
 id = samsung
 name =  SAMSUNG Mobile USB Modem
 detect-string = samsung
 init-string = AT+CNMI=2,1,0,0,0
 speed=9600
 
 
 # Configuration connection mysql
 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = fyle
 database = kannel
 max-connections =1
 
 # Groupe dlr-db(stocker les informations sur les sms envoyés)
 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc
 
 Thank
 
 
 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-destination = destination
 field-source = source
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc
 

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: dlr-mask not on the url

2011-12-19 Thread Milan P. Stanic
On Mon, 2011-12-19 at 18:26, Jorge Raimundo wrote:
 Hi all!
 
 I'm reading the Userguide Chapter 10 that talks about SMS Delivery reports.
 
 In a given paragraph I find this:
 *If you specify *dlr-mask *on the URL you pass on to Kannel you also need
 to specify *dlr-url*.*
 
 If I understood correctly, there is the possibility to specify the *dlr-mask
 * somewhere else than the URL. If so, where is it?
 
 I've tried to insert it in any of the groups I have on the
 *kannel.conf*file, but the bearerbox always ends on PANIC saying that
 the
 *dlr-mask* directive shouldn't be there.
 
 If I can't place it on the *kannel.conf* file, where should it be?

In URL as userguide tells, not in config file.

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: I am receiving..

2011-12-12 Thread Milan P. Stanic
On Sun, 2011-12-11 at 13:37, techbrainless wrote:
 Are you using phone , gsm modem or short code ?

Rene says 'via SMPP'.

 Please share the kannel.conf
 
 Rene Kluwen wrote:
  .MO messages via SMPP and are forwarding to a get-url.
  
  Everything seems to go fine, except the %P (to-number) parameter seems to
  be
  empty.
  
  I can see the number in the deliver_sm pdu and also in my access log (I
  use
  the same %P parameter for that) but it doesn't appear in the get-url.

Did you tried %Q just to see if something is wrong with %P ?

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



Re: I am receiving..

2011-12-12 Thread Milan P. Stanic
On Mon, 2011-12-12 at 12:18, Rene Kluwen wrote:
 Yes, I tried %Q and got the same results.

In my servers %Q works for years without any problem
with different versions of Kannel (stable, unstable and SVN).
 
 - Oorspronkelijk bericht -
 Van: Milan P. Stanic m...@arvanta.net
 Verzonden: maandag 12 december 2011 10:48
 Aan: users@kannel.org
 Onderwerp: Re: I am receiving..
 
 On Sun, 2011-12-11 at 13:37, techbrainless wrote:
  Are you using phone , gsm modem or short code ?
 
 Rene says 'via SMPP'.
 
  Please share the kannel.conf
  
  Rene Kluwen wrote:
   .MO messages via SMPP and are forwarding to a get-url.
   
   Everything seems to go fine, except the %P (to-number) parameter seems to
   be
   empty.
   
   I can see the number in the deliver_sm pdu and also in my access log (I
   use
   the same %P parameter for that) but it doesn't appear in the get-url.
 
 Did you tried %Q just to see if something is wrong with %P ?

-- 
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code or documents in
proprietary format (word, excel, pps and so on)



  1   2   3   >