Hi, *First Question :
*I want to stored message text with delivery report. Currently I am using dlr.php to store delivery report. So please tell me how can I do it? *Second Question : *When I stored delivery reports, kannel gives status as "smsc submit" always in mysql database. But on delivery of message, status is not updated automatically. What will be the problem? Please reply me as soon as possible. Thank You! On Thu, Dec 11, 2008 at 4:30 PM, <[EMAIL PROTECTED]> wrote: > Send devel mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.kannel.org/mailman/listinfo/devel > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of devel digest..." > > > Today's Topics: > > 1. Re: How to our client connect to kannel using SMPP 3.4 > connection (Alvaro Cornejo) > 2. Re: Kannel memory leak? (Alexander Malysh) > 3. Re: [PATCH] get the "foreign" (smsc-provided) message_id > (Alexander Malysh) > 4. Re: How to our client connect to kannel using SMPP 3.4 > connection (Stipe Tolj) > 5. Re: Kannel memory leak? (Nikos Balkanas) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 10 Dec 2008 08:20:05 -0500 > From: "Alvaro Cornejo" <[EMAIL PROTECTED]> > Subject: Re: How to our client connect to kannel using SMPP 3.4 > connection > To: "Avinash Pawar // Viva" <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > you can't kannel is only SMPP Client. > > However there is a commercial add-on for having kannel work as an SMPP > server. > > Throw a message to Stipe -his email should be arround the > mailinglists- he provides one among others I think > > Regards > > > > |-----------------------------------------------------------------------------------------------------------------| > Env?e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Per?, M?xico y en mas de 180 paises. Use aplicaciones 2 vias via > SMS y GPRS online > Visitenos en www.perusms.NET www.smsglobal.com.mx y > www.pravcom.com > > > > On Wed, Dec 10, 2008 at 12:34 AM, Avinash Pawar // Viva > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I completely developed my kannel which sends sms when client request > kannel > > using HTTP url. > > > > I want my client can send sms through kannel using smpp client. > > > > So can you tell me how my client can connect to kannel using smpp 3.4 > > connection? > > > > Please tell me solution as soon as possible. > > > > Thank You! > > > > ------------------------------ > > Message: 2 > Date: Wed, 10 Dec 2008 18:35:44 +0100 > From: Alexander Malysh <[EMAIL PROTECTED]> > Subject: Re: Kannel memory leak? > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=windows-1253; format=flowed > > Hi, > > memory leak fixed in CVS. > > Thanks, > Alex > > P.S. Thanks for the test case :) > > Nikos Balkanas schrieb: > > Sure. Here it goes. If you are trying to recreate the problem please > > change ppg-url. > > > > BR, > > Nikos > > ----- Original Message ----- From: "Alexander Malysh" < > [EMAIL PROTECTED]> > > To: <[email protected]> > > Sent: Wednesday, December 03, 2008 10:28 AM > > Subject: Re: Kannel memory leak? > > > > > >> Hi Nikos, > >> > >> could you please also provide si.txt and pap.txt you used for this test. > >> > >> Thanks, > >> Alex > >> > >> P.S. Please don't crospost to @devel and @user. > >> > >> Nikos Balkanas schrieb: > >>> Hi, > >>> During my PPG benchmarks (through fake smsc) with 2 different > >>> clients, bearerbox excibited an increasing memory allocation profile > >>> starting from 9MB till 2.2GB at the end of the test run. Upon > >>> finishing the test and all queue cleared, memory wasn't released. > >>> Additionally by running the same test again, memory kept increasing > >>> until bearerbox reached 2.9 GB at which point it exhausted my > >>> server's RAM (4GB) and started using swap. At this point I > >>> interrupted tests worrying about my server. Again bearerbox didn't > >>> release resources. Had to kill it to reclaim RAM. > >>> Fortunately the problem is very reproducible. OS: Intel Solaris > >>> 10.5, 4GB RAM. Steps to reproduce: > >>> Clear logs, stores, etc. Start bearerbox, wapbox, smsbox in daemon > >>> mode (-d -P). Start fakemsmc in interactive mode. Fire test_ppg: > >>> test/test_ppg -v 5 -r 1000000 -t 1000 > >>> http://212.205.200.120:13007/feedme ~/etc/si.txt ~/etc/pap.txt > >>> Open top and watch bearerbox's size grow and grow... > >>> P.S. I have been working on a patch for smsc_fake.c, but these > >>> results are from the cvs version. > >>> Configuration file: > >>> group = core > >>> admin-port = 13001 > >>> wapbox-port = 13002 > >>> smsbox-port = 13003 > >>> admin-password = bar > >>> #status-password = foo > >>> #admin-deny-ip = "" > >>> #admin-allow-ip = "" > >>> wdp-interface-name = "*" > >>> log-file = "/tmp/bearerbox.log" > >>> log-level = 4 > >>> #box-deny-ip = "*.*.*.*" > >>> box-allow-ip = "*.*.*.*" > >>> access-log = "/tmp/access.log" > >>> #access-log-format = "%l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] > >>> [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%I] [udh:%U:%u]" > >>> access-log-clean = true > >>> access-log-format = "%T %l [msg:%L:%I]" > >>> store-location = "/export/home/nbal/kannel.store" > >>> store-type = file > >>> dlr-storage = internal > >>> #ssl-server-cert-file = "cert.pem" > >>> #ssl-server-key-file = "key.pem" > >>> #ssl-certkey-file = "mycertandprivkeyfile.pem" > >>> group = wapbox > >>> bearerbox-host = 212.205.200.120 > >>> log-file = "/tmp/wapbox.log" > >>> log-level = 4 > >>> syslog-level = none > >>> #access-log = "/tmp/wapaccess.log" > >>> access-log = "/dev/null" > >>> # SMSC CONNECTIONS, for pushing SI, SL, MMS notifications or > >>> whatever over SMS > >>> group = smsc > >>> smsc = http > >>> smsc-id = HTTP > >>> allowed-smsc-id = "HTTP" > >>> port = 13004 > >>> system-type = kannel > >>> connect-allow-ip = "*.*.*.*" > >>> smsc-username = foo > >>> smsc-password = bar > >>> no-sender = true > >>> no-coding = true > >>> send-url = "http://www.kannel.gr:9200/pap.cgi" > >>> group = smsc > >>> smsc = fake > >>> smsc-id = FAKE > >>> denied-smsc-id = "HTTP" > >>> port = 13005 > >>> #dlr-url = > >>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>> > >>> dlr-url = "http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T" > >>> connect-allow-ip = "*.*.*.*" > >>> # SMSBOX SETUP (a kludge!) > >>> group = smsbox > >>> bearerbox-host = 212.205.200.120 > >>> sendsms-port = 13006 > >>> smsbox-id = dlrbox > >>> group = smsbox-route > >>> smsbox-id = dlrbox > >>> smsc-id = "FAKE;HTTP" > >>> group = sendsms-user > >>> username = simple > >>> password = elpmis > >>> default-smsc = FAKE > >>> #dlr-url = > >>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>> > >>> # SERVICES > >>> group = sms-service > >>> keyword = nop > >>> text = "You asked nothing and I did it!" > >>> # this service is for Kannel www testing > >>> group = sms-service > >>> keyword = www > >>> get-url = > >>> " > http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r > >>> < > http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r>" > >>> > >>> #max-messages = 0 > >>> # there should be default always > >>> group = sms-service > >>> keyword = default > >>> catch-all = true > >>> #max-messages = 10 > >>> text = "Thanx for using IAN test bed" > >>> # PPG CORE SETUP, for defining the push request interface > >>> group = ppg > >>> ppg-url = "http://212.205.200.120:13007/feedme" > >>> ppg-port = 13007 > >>> #ppg-ssl-port = 8081 > >>> default-smsc = FAKE > >>> concurrent-pushes = 1000 > >>> trusted-pi = true > >>> users = 1024 > >>> service-name = ppg > >>> ppg-smsbox-id = dlrbox > >>> #default-dlr-url = > >>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>> > >>> default-dlr-url = "http://www.kannel.gr:9200/dlr.html" > >>> #ppg-deny-ip = "*.*.*.*" > >>> ppg-allow-ip = "*.*.*.*" > >>> #ssl-server-cert-file = "cert.pem" > >>> #ssl-server-key-file = "key.pem" > >>> # PPG USER SETUP, for authorizing a specific push user > >>> group = wap-push-user > >>> wap-push-user = foo > >>> ppg-username = foo > >>> ppg-password = bar > >>> #dlr-url = > >>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>> > >>> default-smsc = FAKE > >>> #country-prefix = +358 > >>> #allowed-prefix = "40;60;70" > >>> #denied-prefix = 50 > >>> #white-list = http://localhost:8082/whitelist > >>> #black-list = http://localhost:8082/blacklist > >>> #deny-ip = "*.*.*.*" > >>> #allow-ip = "127.0.0.1" > >>> > >>> > >> > >> > > > > > ------------------------------ > > Message: 3 > Date: Wed, 10 Dec 2008 18:57:48 +0100 > From: Alexander Malysh <[EMAIL PROTECTED]> > Subject: Re: [PATCH] get the "foreign" (smsc-provided) message_id > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > patch commited to CVS. > > P.S. I changed access log format to be [BINFO:] [FID:] because we break > access log format anyway and it's better to have msg and udh things at > the end. > > P.P.S. Alex please add next time escape sequences to the urltrans.c in > alphabetical. > > Alejandro Guerrieri schrieb: > > Hi, > > > > Attached is the patch to provide the SMSC's message_id as %F. > > > > As Alex suggested, the parameter is now added into dlr_add(), thus this > > should work for all SMSC's supporting the parameter. > > > > I had to modify dlr_add()'s prototype and remove msg's "const" attribute > > to be able to modify it inside the function of course. > > > > > > > > > > > > > > Regards, > > -- > > Alejandro Guerrieri > > [EMAIL PROTECTED] > > > > > > > > > > > ------------------------------ > > Message: 4 > Date: Thu, 11 Dec 2008 00:26:51 +0100 > From: Stipe Tolj <[EMAIL PROTECTED]> > Subject: Re: How to our client connect to kannel using SMPP 3.4 > connection > To: Avinash Pawar // Viva <[EMAIL PROTECTED]> > Cc: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Avinash Pawar // Viva schrieb: > > > > I completely developed my kannel which sends sms when client request > > kannel using HTTP url. > > > > I want my client can send sms through kannel using smpp client. > > > > So can you tell me how my client can connect to kannel using smpp 3.4 > > connection? > > > > Please tell me solution as soon as possible. > > Hi Avinash, > > yep, as Alvaro stated already, there is a commercial add-on product, the > Kannel > SMPP v3.4 server (smppbox) which allows connecting clients via SMPP, and > hence > operate a vSMSC solution. > > Please let me know if you need more information on it. > > Best Regards, > 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 <st_%7Bat%7D_tolj.org> mailto: > stolj_{at}_kannel.org <stolj_%7Bat%7D_kannel.org> > ------------------------------------------------------------------- > > > > ------------------------------ > > Message: 5 > Date: Thu, 11 Dec 2008 03:19:26 +0200 > From: "Nikos Balkanas" <[EMAIL PROTECTED]> > Subject: Re: Kannel memory leak? > To: "Alexander Malysh" <[EMAIL PROTECTED]> > Cc: [email protected], [EMAIL PROTECTED] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; format=flowed; charset="windows-1253"; > reply-type=response > > Dear Alex, > > I have also tested it OK. > > Would you mind giving a bit more info about the leak? Unfortunately I > patched the files before examining them. Did it affect fake smsc > specifically or was it a more general ppg issue? > > Thanx, > Nikos > > P.S. Since the original bug was xposted, I only find it fitting that the > solution is, too. After all, IMHO, memory issues affect both production and > development and people using ppg would be affected. > > > ----- Original Message ----- > From: "Alexander Malysh" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, December 10, 2008 7:35 PM > Subject: Re: Kannel memory leak? > > > > Hi, > > > > memory leak fixed in CVS. > > > > Thanks, > > Alex > > > > P.S. Thanks for the test case :) > > > > Nikos Balkanas schrieb: > >> Sure. Here it goes. If you are trying to recreate the problem please > >> change ppg-url. > >> > >> BR, > >> Nikos > >> ----- Original Message ----- From: "Alexander Malysh" > >> <[EMAIL PROTECTED]> > >> To: <[email protected]> > >> Sent: Wednesday, December 03, 2008 10:28 AM > >> Subject: Re: Kannel memory leak? > >> > >> > >>> Hi Nikos, > >>> > >>> could you please also provide si.txt and pap.txt you used for this > test. > >>> > >>> Thanks, > >>> Alex > >>> > >>> P.S. Please don't crospost to @devel and @user. > >>> > >>> Nikos Balkanas schrieb: > >>>> Hi, > >>>> During my PPG benchmarks (through fake smsc) with 2 different > clients, > >>>> bearerbox excibited an increasing memory allocation profile starting > >>>> from 9MB till 2.2GB at the end of the test run. Upon finishing the > test > >>>> and all queue cleared, memory wasn't released. Additionally by running > >>>> the same test again, memory kept increasing until bearerbox reached > 2.9 > >>>> GB at which point it exhausted my server's RAM (4GB) and started using > >>>> swap. At this point I interrupted tests worrying about my server. > Again > >>>> bearerbox didn't release resources. Had to kill it to reclaim RAM. > >>>> Fortunately the problem is very reproducible. OS: Intel Solaris 10.5, > >>>> 4GB RAM. Steps to reproduce: > >>>> Clear logs, stores, etc. Start bearerbox, wapbox, smsbox in daemon > >>>> mode (-d -P). Start fakemsmc in interactive mode. Fire test_ppg: > >>>> test/test_ppg -v 5 -r 1000000 -t 1000 > >>>> http://212.205.200.120:13007/feedme ~/etc/si.txt ~/etc/pap.txt > >>>> Open top and watch bearerbox's size grow and grow... > >>>> P.S. I have been working on a patch for smsc_fake.c, but these > results > >>>> are from the cvs version. > >>>> Configuration file: > >>>> group = core > >>>> admin-port = 13001 > >>>> wapbox-port = 13002 > >>>> smsbox-port = 13003 > >>>> admin-password = bar > >>>> #status-password = foo > >>>> #admin-deny-ip = "" > >>>> #admin-allow-ip = "" > >>>> wdp-interface-name = "*" > >>>> log-file = "/tmp/bearerbox.log" > >>>> log-level = 4 > >>>> #box-deny-ip = "*.*.*.*" > >>>> box-allow-ip = "*.*.*.*" > >>>> access-log = "/tmp/access.log" > >>>> #access-log-format = "%l [SMSC:%i] [SVC:%n] [ACT:%A] [BINF:%B] > >>>> [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%I] [udh:%U:%u]" > >>>> access-log-clean = true > >>>> access-log-format = "%T %l [msg:%L:%I]" > >>>> store-location = "/export/home/nbal/kannel.store" > >>>> store-type = file > >>>> dlr-storage = internal > >>>> #ssl-server-cert-file = "cert.pem" > >>>> #ssl-server-key-file = "key.pem" > >>>> #ssl-certkey-file = "mycertandprivkeyfile.pem" > >>>> group = wapbox > >>>> bearerbox-host = 212.205.200.120 > >>>> log-file = "/tmp/wapbox.log" > >>>> log-level = 4 > >>>> syslog-level = none > >>>> #access-log = "/tmp/wapaccess.log" > >>>> access-log = "/dev/null" > >>>> # SMSC CONNECTIONS, for pushing SI, SL, MMS notifications or whatever > >>>> over SMS > >>>> group = smsc > >>>> smsc = http > >>>> smsc-id = HTTP > >>>> allowed-smsc-id = "HTTP" > >>>> port = 13004 > >>>> system-type = kannel > >>>> connect-allow-ip = "*.*.*.*" > >>>> smsc-username = foo > >>>> smsc-password = bar > >>>> no-sender = true > >>>> no-coding = true > >>>> send-url = "http://www.kannel.gr:9200/pap.cgi" > >>>> group = smsc > >>>> smsc = fake > >>>> smsc-id = FAKE > >>>> denied-smsc-id = "HTTP" > >>>> port = 13005 > >>>> #dlr-url = > >>>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>>> dlr-url = "http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T" > >>>> connect-allow-ip = "*.*.*.*" > >>>> # SMSBOX SETUP (a kludge!) > >>>> group = smsbox > >>>> bearerbox-host = 212.205.200.120 > >>>> sendsms-port = 13006 > >>>> smsbox-id = dlrbox > >>>> group = smsbox-route > >>>> smsbox-id = dlrbox > >>>> smsc-id = "FAKE;HTTP" > >>>> group = sendsms-user > >>>> username = simple > >>>> password = elpmis > >>>> default-smsc = FAKE > >>>> #dlr-url = > >>>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>>> # SERVICES > >>>> group = sms-service > >>>> keyword = nop > >>>> text = "You asked nothing and I did it!" > >>>> # this service is for Kannel www testing > >>>> group = sms-service > >>>> keyword = www > >>>> get-url = > >>>> " > http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r > >>>> < > http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r>" > >>>> #max-messages = 0 > >>>> # there should be default always > >>>> group = sms-service > >>>> keyword = default > >>>> catch-all = true > >>>> #max-messages = 10 > >>>> text = "Thanx for using IAN test bed" > >>>> # PPG CORE SETUP, for defining the push request interface > >>>> group = ppg > >>>> ppg-url = "http://212.205.200.120:13007/feedme" > >>>> ppg-port = 13007 > >>>> #ppg-ssl-port = 8081 > >>>> default-smsc = FAKE > >>>> concurrent-pushes = 1000 > >>>> trusted-pi = true > >>>> users = 1024 > >>>> service-name = ppg > >>>> ppg-smsbox-id = dlrbox > >>>> #default-dlr-url = > >>>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>>> default-dlr-url = "http://www.kannel.gr:9200/dlr.html" > >>>> #ppg-deny-ip = "*.*.*.*" > >>>> ppg-allow-ip = "*.*.*.*" > >>>> #ssl-server-cert-file = "cert.pem" > >>>> #ssl-server-key-file = "key.pem" > >>>> # PPG USER SETUP, for authorizing a specific push user > >>>> group = wap-push-user > >>>> wap-push-user = foo > >>>> ppg-username = foo > >>>> ppg-password = bar > >>>> #dlr-url = > >>>> " > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >>>> < > http://www.kannel.gr:9200/cgi/dlr.cgi?ts=%T&smsID=%I&smscID=%i&dlr=%d&answer=%A&from=%p&to=%P > >" > >>>> default-smsc = FAKE > >>>> #country-prefix = +358 > >>>> #allowed-prefix = "40;60;70" > >>>> #denied-prefix = 50 > >>>> #white-list = http://localhost:8082/whitelist > >>>> #black-list = http://localhost:8082/blacklist > >>>> #deny-ip = "*.*.*.*" > >>>> #allow-ip = "127.0.0.1" > >>>> > >>>> > >>> > >>> > > > > > > > > > ------------------------------ > > _______________________________________________ > devel mailing list > [email protected] > http://www.kannel.org/mailman/listinfo/devel > > > End of devel Digest, Vol 31, Issue 13 > ************************************* >
