Re: Proposal: Kannel Wiki

2008-03-08 Thread Anand Gupta
I had proposed something like this a long time, even wanted to host the same. 
However didn't get much of feedback on it.

It would surely be nice to have it.

If everyone is interested and is ready I would like to take the oppurtunity and 
setup the same. Please let me know if that is ok.

Regards,
Anand

-Original Message-
From: seikath [EMAIL PROTECTED]

Date: Sat, 8 Mar 2008 09:34:30 
To:Kannel Users users@kannel.org
Subject: Re: Proposal: Kannel Wiki


good idea

and the time is precious for most of us ..


-Original Message-
From: Kannel Users [EMAIL PROTECTED]
Sent: 08  2008 ?.
To: seikath
Subject:Proposal: Kannel Wiki 

 There are many things that are asked and asked and asked all the time
 on the list, and it's quite annoying...

 I think the bigger example is how to send a Wap Push

 Wouldn't it be a good idea, to setup a Kannel Wiki, where people can
 post articles and how to do this, and how to do that, example confs,
 etc?
 This way people can first check on the Wiki and find lots of useful
 info there...

 and if someone does not check the Wiki and asks again, it will just be
 replying Check it at http://wiki.kannel.org;

 What do you think?

 Juan







Re: Kannel on CentOS with Plesk

2007-08-03 Thread Anand Gupta

Dear Peter,

There should not be able problem with kannel/ centos/ plesk. We have 
used kannel with centos+cpanel and it works flawlessly.


Peter Lum wrote:

Hi
 
I am about to set up a new server to be hosted.
 
My hosting company provides and support CentOS 4.5 and Plesk as standard.

I wonder if Kannel will have problems with the above setup.
Currently, I am testing Kannel with ubuntu 7.04 and so far so good but 
the hosting company does not support ubuntu.
 
I will need to compile kannel in CentOS 4.5 and I know Plesk controls 
every aspects of the server from IP tables, Apache to MySQL.
 
Will Kannel work? Will it break Plesk?
 
Please advise.
 
Thank you very much!
 
Peter


--
regards,

Anand Gupta


Re: smsc name inside mysql dlr

2007-06-23 Thread Anand Gupta

Hi Seik,

Thanks for the reply.

Here is the output as you asked.

seik wrote:

whats the output of
mysql show create table your_mysql_dlr_table
  

+---++
| Table | Create Table |
+---++
| dlr | CREATE TABLE `dlr` (
`smsc` varchar(100) default NULL,
`ts` varchar(100) default NULL,
`destination` varchar(100) default NULL,
`source` varchar(100) default NULL,
`service` varchar(100) default NULL,
`url` varchar(255) default NULL,
`mask` int(10) default NULL,
`status` int(10) default NULL,
`boxc` varchar(40) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
+---++
1 row in set (0.00 sec)


i am using pgsql storage atm, but used to have mysql based as well
can you paste several lines from that:
fgrep -i insert path_to_logs/kannel.log

  

My Provider is called ABCDEF inside smsc-id option of kannel.conf

2007-06-23 21:18:35 [3454] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, 
source, destination, service, url, mask, boxc, status) VALUES ('BCDEF', 
'5802', 'x', 'xx', 'x', 
'http://www.x?type=%dslid=25uid=1', '31', '', '0');
2007-06-23 21:18:35 [3454] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, 
source, destination, service, url, mask, boxc, status) VALUES ('CDEF', 
'5803', 'xx', 'x', 'xx', 
'http://www.xxx?type=%dslid=26uid=1', '31', '', '0');
2007-06-23 21:18:35 [3454] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, 
source, destination, service, url, mask, boxc, status) VALUES ('DEF', 
'5804', 'xx', 'xx', 'x', 
'http://www.xxx?type=%dslid=27uid=1', '31', '', '0');
2007-06-23 21:18:35 [3454] [6] DEBUG: sql: INSERT INTO dlr (smsc, ts, 
source, destination, service, url, mask, boxc, status) VALUES ('EF', 
'5805', 'x', 'xx', '', 
'http://www.?type=%dslid=28uid=1', '31', '', '0');


I also plan to move to postgresql, but would prefer to first resolve the 
above problem.


--
regards,

Anand Gupta


Re: smsc name inside mysql dlr

2007-06-22 Thread Anand Gupta

Does no one have any idea / solution on this ?

Anand Gupta wrote:

Hi!

I am using mysql dlr with kannel. Now inside mysql, kannel stores the 
smsc-id inside smsc column. It seems that kannel is truncating first 
few chars of the smsc-id at random. When the deliver_sm_resp comes, 
kannel again truncates at random and then gets confused about the 
delivery report.


Example

smsc-id = MY_PROVIDER

While submitting message, kannel inserts _PROVIDER inside smsc 
column. When getting deliver_sm, kannel searches for Y_PROVIDER.


Is there any setting i need to do for getting kannel to insert proper 
smsc name inside mysql ?


Here is my kannel config

**
snipped
**
Thanks.



--
regards,

Anand Gupta



smsc name inside mysql dlr

2007-06-21 Thread Anand Gupta

Hi!

I am using mysql dlr with kannel. Now inside mysql, kannel stores the 
smsc-id inside smsc column. It seems that kannel is truncating first few 
chars of the smsc-id at random. When the deliver_sm_resp comes, kannel 
again truncates at random and then gets confused about the delivery report.


Example

smsc-id = MY_PROVIDER

While submitting message, kannel inserts _PROVIDER inside smsc column. 
When getting deliver_sm, kannel searches for Y_PROVIDER.


Is there any setting i need to do for getting kannel to insert proper 
smsc name inside mysql ?


Here is my kannel config

**
# CORE
group = core
admin-port = 13000
admin-password = xxx
status-password = xxx
dlr-storage = mysql
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store

group = smsc
smsc = smpp
host = xx
port = xxx
smsc-username = 
smsc-password = 
system-type = 
keepalive = 30
transceiver-mode =yes
smsc-id = MY_PROVIDER

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = x
password = x


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
#text = No service specified
exec = /usr/local/bin/kannel_incoming %t %q %a

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = xx
password = xx
database = x

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

**
Thanks.

--
regards,

Anand Gupta



load balance smsc

2007-06-20 Thread Anand Gupta

Hi!

I am getting 2 smpp connections from my smsc for load balancing. Can i 
use it inside kannel to automatically do load balance between messages ? 
And incase one is down, shift to another smpp link ?


Is above possible ? Any suggestions / comments would be appreciated.

--
regards,

Anand Gupta



Re: load balance smsc

2007-06-20 Thread Anand Gupta

Thanks for the pointer Rodrigo. I will test it out.

Rodrigo Cremaschi wrote:

Yes, check this thread:

http://www.kannel.org/pipermail/devel/2007-May/001040.html


On 6/20/07, Anand Gupta [EMAIL PROTECTED] wrote:

Hi!

I am getting 2 smpp connections from my smsc for load balancing. Can i
use it inside kannel to automatically do load balance between messages ?
And incase one is down, shift to another smpp link ?

Is above possible ? Any suggestions / comments would be appreciated.

--
regards,

Anand Gupta




--
regards,

Anand Gupta



Re: dlr url and message id

2007-06-15 Thread Anand Gupta
Thanks for the response Fred. Sorry i missed it before sending another 
mail to the list.


I tried to use the below line in the code, however it didn't compile

octstr_delete(u.submit_sm_resp.message_id, 0, 1);

Is it possible for you to tell me if the above is correct, and where 
exactly should i insert this ?


Thanks for all the help.

fred wrote:

 there is nothing you can configure to handle this - it's a another special
case.
Your have the source code, smsc/smsc_smpp.c is the file you need to look at.
Look for code 'case submit_sm_resp:'
  remove the 'S' from the message_id being extracted to the tmp variable,
  look at using function.
/*
 * Delete part of an octet string.
 */
void octstr_delete(Octstr *ostr1, long pos, long len);

Hope this helps.






-Original Message-
From: Anand Gupta [mailto:[EMAIL PROTECTED] 
Sent: 13 June 2007 21:45

To: users@kannel.org
Subject: dlr url and message id

I am using kannel with an smpp smsc. Now when the smsc is sending me
submit_sm_resp, it sends the message_id as S375. However when the deliver_sm
is being send, it only sends back 375. This way kannel is not able to register
the message delivery since both message ids don't match. I checked with my smsc
and they have asked me to either insert the S char when deliver_sm is being
send at my end, alternatively remove S when submit_sm_resp is send.

Is there a way to do this ? For now i am using standard kannel deb files on
debian.

Here is my kannel.conf

# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
dlr-storage = mysql
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store

group = smsc
smsc = smpp
host = x.x.x.x
port = Y
smsc-username = user
smsc-password = password
system-type = VMA
keepalive = 50
transceiver-mode =yes

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
#text = No service specified
exec = /usr/local/bin/kannel_incoming %t %q %a

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = XX
database = kannel

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc


--
regards,

Anand Gupta



  


--
regards,

Anand Gupta



dlr url and message id

2007-06-13 Thread Anand Gupta
I am using kannel with an smpp smsc. Now when the smsc is sending me 
submit_sm_resp, it sends the message_id as S375. However when the 
deliver_sm is being send, it only sends back 375. This way kannel is 
not able to register the message delivery since both message ids don't 
match. I checked with my smsc and they have asked me to either insert 
the S char when deliver_sm is being send at my end, alternatively 
remove S when submit_sm_resp is send.


Is there a way to do this ? For now i am using standard kannel deb files 
on debian.


Here is my kannel.conf

# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
dlr-storage = mysql
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store

group = smsc
smsc = smpp
host = x.x.x.x
port = Y
smsc-username = user
smsc-password = password
system-type = VMA
keepalive = 50
transceiver-mode =yes

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
#text = No service specified
exec = /usr/local/bin/kannel_incoming %t %q %a

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = XX
database = kannel

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc


--
regards,

Anand Gupta



Re: kannel, store messages

2007-06-13 Thread Anand Gupta

Thanks for the help Heru.

Heru Tjatur wrote:


On Jun 11, 2007, at 7:20 PM, Anand Gupta wrote:


Dear Tjatur,

Thanks for the response.

Heru Tjatur wrote:

2  3. Absoultely yes, you could do that. You just have to write down
script to store messages in or out of kannel. Kannel won't do that for
you. Your script could store message out before or after invoking
sendsms url. Fordelivery receipt, you could use url-dlr parameter to
trigger the script that will handle the incomming DR. You could find
url-dlr info on Kannel User Guide
http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#DELIVERY-REPORTS 


Hope this could help you...

  
Can you please give me some example or something on how to store the 
messages ?


In your post 
 exec = /usr/local/bin/kannel_incoming %t %q %a
in your conf. You could add one or two lines of command that insert 
incoming messages to a database or file  in your kannel_incoming 
script or executable.


--tjatur


--tjatur

On Thu, 2007-06-07 at 01:15 +0530, Anand Gupta wrote:
  

Hi Everyone!

I am trying to setup kannel on debian using standard deb packages.

My smsc is basically providing me an smpp connectivity.

Here is what i have in kannel.conf right now

# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store


# SMSC
group = smsc
smsc = smpp
host = x.x.x.x
port = 1234
smsc-username = user
smsc-password = pass
system-type = SMS
keepalive = 50

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
exec = /usr/local/bin/kannel_incoming %t %q %a


With the above, my kannel starts up properly and log files show that
the connection to the smsc has been made.

I have tested that kannel is sending the message also to the smsc and
the message is getting delivered to my handset also.

lynx --dump
http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=pwdto=NUMBERtext=hellofrom=anandmclass=1;


Now what i wanted to know is

1. Is it ok to use the deb packages, or should i compile kannel ?
2. Can i store all messages being send out by kannel inside a
database ? mysql / postgresql (will prefer later)
3. Can kannel store the delivery receipts of all messages ? If yes
then can it be stored in the same mysql/ postgresql database ?

I tried to look up in the mailing list and googled and the only thing
i can find is kannel stores the message only temporarily in mysql and
not permanent.

Any help on this will be appreciated.


--
regards,

Anand Gupta


  


--
regards,

Anand Gupta




--
regards,

Anand Gupta


Re: kannel, store messages

2007-06-11 Thread Anand Gupta

Dear Tjatur,

Thanks for the response.

Heru Tjatur wrote:

2  3. Absoultely yes, you could do that. You just have to write down
script to store messages in or out of kannel. Kannel won't do that for
you. Your script could store message out before or after invoking
sendsms url. Fordelivery receipt, you could use url-dlr parameter to
trigger the script that will handle the incomming DR. You could find
url-dlr info on Kannel User Guide
http://www.kannel.org/download/1.4.1/userguide-1.4.1/userguide.html#DELIVERY-REPORTS 


Hope this could help you...

  
Can you please give me some example or something on how to store the 
messages ?

--tjatur

On Thu, 2007-06-07 at 01:15 +0530, Anand Gupta wrote:
  

Hi Everyone!

I am trying to setup kannel on debian using standard deb packages.

My smsc is basically providing me an smpp connectivity.

Here is what i have in kannel.conf right now

# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store


# SMSC
group = smsc
smsc = smpp
host = x.x.x.x
port = 1234
smsc-username = user
smsc-password = pass
system-type = SMS
keepalive = 50

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
exec = /usr/local/bin/kannel_incoming %t %q %a


With the above, my kannel starts up properly and log files show that
the connection to the smsc has been made.

I have tested that kannel is sending the message also to the smsc and
the message is getting delivered to my handset also.

lynx --dump
http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=pwdto=NUMBERtext=hellofrom=anandmclass=1;


Now what i wanted to know is

1. Is it ok to use the deb packages, or should i compile kannel ?
2. Can i store all messages being send out by kannel inside a
database ? mysql / postgresql (will prefer later)
3. Can kannel store the delivery receipts of all messages ? If yes
then can it be stored in the same mysql/ postgresql database ?

I tried to look up in the mailing list and googled and the only thing
i can find is kannel stores the message only temporarily in mysql and
not permanent.

Any help on this will be appreciated.


--
regards,

Anand Gupta




  


--
regards,

Anand Gupta


kannel, store messages

2007-06-06 Thread Anand Gupta

Hi Everyone!

I am trying to setup kannel on debian using standard deb packages.

My smsc is basically providing me an smpp connectivity.

Here is what i have in kannel.conf right now

# CORE
group = core
admin-port = 13000
admin-password = pwd
status-password = pwd
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store


# SMSC
group = smsc
smsc = smpp
host = x.x.x.x
port = 1234
smsc-username = user
smsc-password = pass
system-type = SMS
keepalive = 50

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = sms
password = pwd


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
exec = /usr/local/bin/kannel_incoming %t %q %a


With the above, my kannel starts up properly and log files show that the 
connection to the smsc has been made.


I have tested that kannel is sending the message also to the smsc and 
the message is getting delivered to my handset also.


lynx --dump
http://127.0.0.1:13013/cgi-bin/sendsms?username=smspassword=pwdto=NUMBERtext=hellofrom=anandmclass=1;


Now what i wanted to know is

1. Is it ok to use the deb packages, or should i compile kannel ?
2. Can i store all messages being send out by kannel inside a database ? 
mysql / postgresql (will prefer later)
3. Can kannel store the delivery receipts of all messages ? If yes then 
can it be stored in the same mysql/ postgresql database ?


I tried to look up in the mailing list and googled and the only thing i 
can find is kannel stores the message only temporarily in mysql and not 
permanent.


Any help on this will be appreciated.


--
regards,

Anand Gupta


smpp server

2006-07-21 Thread Anand Gupta



Hi Everyone!

I know probably this is the wrong question, but can 
anyone tell me that if i want to run a smpp server, what software is available 
which i can use ? I saw the logica site, and the smpp library, but what i am 
looking for is a complete software which i can use. I would prefer open 
source...

Thanks.

Anand Gupta


Re: smpp server

2006-07-21 Thread Anand Gupta

Hi! Stipe!

Can i know the cost of this smppbox?

- Original Message - 
From: Stipe Tolj [EMAIL PROTECTED]

To: Anand Gupta [EMAIL PROTECTED]
Cc: users@kannel.org; devel@kannel.org
Sent: Friday, July 21, 2006 7:18 PM
Subject: Re: smpp server


Anand Gupta wrote:


Hi Everyone!

I know probably this is the wrong question, but can anyone tell me that if 
i want to run a smpp server, what software is available which i can use ? 
I saw the logica site, and the smpp library, but what i am looking for is 
a complete software which i can use. I would prefer open source...


Hi Anand,

the SMPP v3.4 server market is usually not open source, as CMG/Logica, 
NowSMS
and other vendors value their products and don't share such server side 
software.


Nevertheless some of Kannel developers, including Rene and me (Alex maybe 
too?;)

offer server side extentions to Kannel.

In my case this beast is called smppbox that is able to act as a full-blown 
SMPP
v3.4 server. Hence allowing you to connect own customers via SMPP and 
leaverage

all MT traffic via Kannel's bearerbox to any of the supported protocolls.

But even those servers from the Kannel developers are NOT open source. They 
are

subject to a commercial license agreement.

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   mailto:stolj_{at}_kannel.org
---




Re: smpp server

2006-07-21 Thread Anand Gupta

Hi Iain

anand gupta... didn't i meet you at university of sydney?

Sorry you are mistaking me for someone else ;)

regards,

Anand Gupta



Re: newbie - bulk sms

2005-11-14 Thread Anand Gupta



Here is my own code 
(GPL)

http://fluorine.vps.kotisivut.com/code/

Hopefully you can use parts of 
it to send bulk-sms.

Any chance of getting the 
source ? These are php files.

regards,

Anand


Re: newbie - bulk sms

2005-11-14 Thread Anand Gupta



Thanks.

regards,Anand

  Sorry!
  
  Now 
  in
  http://fluorine.vps.kotisivut.com/code/
  
  as 
  zip-file.
  
  It’s a mobile learning environment 
  using sms and www.
  There is not yet documentation 
  :(
  but I think that it is quite easy 
  to find main parts there 
  
  This is part of my research 
  work.
  I am now working with WAP (Kannel) 
   MMS (Mbuni) …


Re: Log File Analyzers

2005-09-04 Thread Anand Gupta
 May someone point me towards any known good logfile analyzers for
 kannel. I am especially looking for a tool to process my WAP gateway's
 log files.

Not sure whether one exists. I would love one myself.

-- 
regards,

Anand



Re: esm_class

2005-08-02 Thread Anand Gupta
Thx a lot.

 That is because kannel makes a transformation to GSM charset and the
 character
 ' does not exist in GSM charset.


 On Saturday 30 July 2005 08:37, Anand Gupta wrote:
 Anyone ?

 Here is what i am using to kannel
 
 lynx --dump
 http://127.0.0.1:13030/cgi-bin/sendsms?username=testpassword=footo=
 11text=%60Hi%60from=anandcoding=0
 
 The message shown in kannel logs is ?Hi? :((

 I am really stuck here.



-- 
regards,

Anand Gupta




esm_class

2005-07-28 Thread Anand Gupta
I see that kannel sets esm_class as 3 by default, however my smsc requires
it to be 0. How can i set it as 0 ?


-- 
regards,

Anand Gupta




Re: esm_class

2005-07-28 Thread Anand Gupta
Apart from the esm_class to be set as 0, there are more parameters which i
want to change for kannel. These are specific to the smpp protocol.

SERVICE_TYPE (This is send as null by kannel, however i need to set this
as CMT)

Any help would be appreciated.

-- 
regards,

Anand Gupta




Re: esm_class

2005-07-28 Thread Anand Gupta
Thx will check on this.

Any ideas on SERVICE_TYPE ?

 Available modes are on gw/smsc/smpp_pdu.h about line 134
  It is set to ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE (0x0003) by
 default. You need to set it to ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE
 (0x).
  To do that, go to gw/smsc/smsc_smpp.c and change it there. It should be
 on
 (or nearby) line 638.
  Hope it helps,
  Alejandro.
  On 7/28/05, Anand Gupta [EMAIL PROTECTED] wrote:

 Apart from the esm_class to be set as 0, there are more parameters which
 i
 want to change for kannel. These are specific to the smpp protocol.

 SERVICE_TYPE (This is send as null by kannel, however i need to set this
 as CMT)

 Any help would be appreciated.


-- 
regards,

Anand Gupta



Re: esm_class

2005-07-28 Thread Anand Gupta
Thx this worked for me. I specified service-type=CMT and kannel took it

 Try

 service-type=TYPE

 in your configuration file.


-- 
regards,

Anand Gupta




Re: esm_class

2005-07-28 Thread Anand Gupta

 Available modes are on gw/smsc/smpp_pdu.h about line 134
  It is set to ESM_CLASS_SUBMIT_STORE_AND_FORWARD_MODE (0x0003) by
 default. You need to set it to ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE
 (0x).
  To do that, go to gw/smsc/smsc_smpp.c and change it there. It should be
 on
 (or nearby) line 638.

Thx, i found the line and changed it to the
ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE. Would have liked it better if this was
a configuration setting rather than making change in the code.

However there is some problem i am facing while sending certain characters
to kannel. Slightly confused on where to start debuging.

I am sending the following message to kannel

`Hi`

However in the log file kannel shows the incoming message as

?Hi?

Basically there is a character replacement happening, any ideas ?

Here is the PDU for the message:

2005-07-28 17:04:07 [23003] [7] DEBUG: SMPP PDU 0x9fa88c0 dump:
2005-07-28 17:04:07 [23003] [7] DEBUG:   type_name: submit_sm
2005-07-28 17:04:07 [23003] [7] DEBUG:   command_id: 4 = 0x0004
2005-07-28 17:04:07 [23003] [7] DEBUG:   command_status: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   sequence_number: 11 = 0x000b
2005-07-28 17:04:07 [23003] [7] DEBUG:   service_type: CMT
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr_ton: 5 = 0x0005
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr_npi: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   source_addr: Anand
2005-07-28 17:04:07 [23003] [7] DEBUG:   dest_addr_ton: 1 = 0x0001
2005-07-28 17:04:07 [23003] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
2005-07-28 17:04:07 [23003] [7] DEBUG:   destination_addr: xx
2005-07-28 17:04:07 [23003] [7] DEBUG:   esm_class: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   protocol_id: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   priority_flag: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   schedule_delivery_time: NULL
2005-07-28 17:04:07 [23003] [7] DEBUG:   validity_period: NULL
2005-07-28 17:04:07 [23003] [7] DEBUG:   registered_delivery: 1 = 0x0001
2005-07-28 17:04:07 [23003] [7] DEBUG:   replace_if_present_flag: 0 =
0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   data_coding: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   sm_default_msg_id: 0 = 0x
2005-07-28 17:04:07 [23003] [7] DEBUG:   sm_length: 4 = 0x0004
2005-07-28 17:04:07 [23003] [7] DEBUG:   short_message: ?Hi?
2005-07-28 17:04:07 [23003] [7] DEBUG: SMPP PDU dump ends.

-- 
regards,

Anand Gupta



Re: esm_class

2005-07-28 Thread Anand Gupta

 I am sending the following message to kannel

 `Hi`

 However in the log file kannel shows the incoming message as

 ?Hi?

I did some debugging and the text i am sending to kannel is

%60Hi%60

%60 is ` char, then how come kannel is interpreting it as ? symbol which
infact is %3F.

Any clues ?

-- 
regards,

Anand Gupta




Re: esm_class

2005-07-28 Thread Anand Gupta
Here is what i am using to kannel

lynx --dump
http://127.0.0.1:13030/cgi-bin/sendsms?username=testpassword=footo=11text=%60Hi%60from=anandcoding=0;

The message shown in kannel logs is ?Hi? :((

-- 
regards,

Anand Gupta



Re: SMSC DLR Takes long time to arrive

2005-07-28 Thread Anand Gupta


 Is it normal that the dlr that came from smsc takes quite long to deliver
 back to kannel?I was thinking the DLR should be returned a couple of
 seconds after it was sent. I'm getting DLR of type 1 and sometime type 2.
 Is it an indication that the dlr came from smsc and not from kannel?

Not much idea though isn't the dlr dependent on the smsc ? Since its
suppose to send it to kannel. There are smsc's (like mine) who don't
provide instant dlr for the messages send to them.

-- 
regards,

Anand Gupta



Problems with DATA_CODING

2005-07-21 Thread Anand Gupta
I seem to be facing some problems with the DATA_CODING part in the smpp
protocol. It seems that kannel is sending 241 as the DATA_CODING to the
smsc whereas my smsc needs it to be 0. Now due to this many chars are
getting replaced at the smsc.

Can anyone tell me how i can change the DATA_CODING ?

-- 
regards,

Anand Gupta




Re: Kannel Message Boards?

2005-07-18 Thread Anand Gupta
I am ready to register and host the forums if members here can recommend a 
domain for the same. I posted earlier also however no commented till now.


-- 
regards,
 
Anand Gupta


 Original message 
Subject:Re: Kannel Message Boards?
Author: Gareth Reakes [EMAIL PROTECTED]
Date:   18th July 2005 10:34:28 

Hey,

I think it would be a good idea. Who is going to take the lead on this?

Gareth

Bill Brigden wrote:
 Just a short note to say I would be willing to help in any ways (within
 reason!) necessary..
 
 Bill.
 
 
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
Sent: 15 July 2005 17:28
To: [EMAIL PROTECTED]
Cc: users@kannel.org
Subject: Re: Kannel Message Boards?

I don't think that they will be too resource intensive form 
hosting point of 
view, so It should not be a problem for anyone to set them up.
Yeah I will be willing to help :)

-Cheers

Yasser


From: Gareth Reakes [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED]
Subject: Re: Kannel Message Boards?
Date: Fri, 15 Jul 2005 17:15:54 +0100

Hey Yasser,


Yasser Sultan wrote:

Why doesn't kannel has its forums or online discussion boards?

Don't you think that with them it will be easier to keep 

track of the 

things
and help can be provided in a better way, considering the 

features and 

options present in the modern bulletin board systems


Thank You


 Probably because no one has set one up yet :) You offering?


Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com




 
 
 
 

-- 
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com





RE: Kannel Message Boards?

2005-07-18 Thread Anand Gupta
How about forum.kannel.org if you ask for a record
In their DNS ? That's probably the best thing to do.

But will they provide the record in their dns ? i thought abt that however 
kannel.org maintainers need to agree on this. If they do i can set it up 
immediatly.

-- 
regards,
 
Anand Gupta


 Original message 
Subject:RE: Kannel Message Boards?
Author: Stephane Rosa [EMAIL PROTECTED]
Date:   18th July 2005 2:33:31 

How about forum.kannel.org if you ask for a record
In their DNS ? That's probably the best thing to do.

Clipper 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
 Sent: Monday, July 18, 2005 13:58
 To: Gareth Reakes
 Cc: [EMAIL PROTECTED]; users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I am ready to register and host the forums if members here 
 can recommend a domain for the same. I posted earlier also 
 however no commented till now.
 
 
 --
 regards,
  
 Anand Gupta
 
 
  Original message 
 Subject:  Re: Kannel Message Boards?
 Author:   Gareth Reakes [EMAIL PROTECTED]
 Date: 18th July 2005 10:34:28 
 
 Hey,
 
   I think it would be a good idea. Who is going to take 
 the lead on this?
 
 Gareth
 
 Bill Brigden wrote:
  Just a short note to say I would be willing to help in any ways 
  (within
  reason!) necessary..
  
  Bill.
  
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
 Sent: 15 July 2005 17:28
 To: [EMAIL PROTECTED]
 Cc: users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I don't think that they will be too resource intensive form hosting 
 point of view, so It should not be a problem for anyone to set them 
 up.
 Yeah I will be willing to help :)
 
 -Cheers
 
 Yasser
 
 
 From: Gareth Reakes [EMAIL PROTECTED]
 To: Yasser Sultan [EMAIL PROTECTED]
 Subject: Re: Kannel Message Boards?
 Date: Fri, 15 Jul 2005 17:15:54 +0100
 
 Hey Yasser,
 
 
 Yasser Sultan wrote:
 
 Why doesn't kannel has its forums or online discussion boards?
 
 Don't you think that with them it will be easier to keep
 
 track of the
 
 things
 and help can be provided in a better way, considering the
 
 features and
 
 options present in the modern bulletin board systems
 
 
 Thank You
 
 
Probably because no one has set one up yet :) You offering?
 
 
 Gareth
 
 
 --
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 
  
  
  
  
 
 -- 
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 




RE: Kannel Message Boards?

2005-07-18 Thread Anand Gupta
Would people see the mailing lists as redundant if there were web based 
forums?

well both can serve the purpose, at times mailing lists are better and 
sometimes forums.

-- 
regards,
 
Anand Gupta


 Original message 
Subject:RE: Kannel Message Boards?
Author: Bill Brigden [EMAIL PROTECTED]
Date:   18th July 2005 1:32:16 

What do other people think about the possibility of having a web forum?
Would people see the mailing lists as redundant if there were web based
forums?

As far as the name / location - could it be put under kannel.org, either as
being hosted there, or using a sub domain (forums.kannel.org?) pointing
elsewhere?

Regards,
Bill. 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
 Sent: 18 July 2005 12:58
 To: Gareth Reakes
 Cc: Bill Brigden; users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I am ready to register and host the forums if members here 
 can recommend a domain for the same. I posted earlier also 
 however no commented till now.
 
 
 -- 
 regards,
  
 Anand Gupta
 
 
  Original message 
 Subject:  Re: Kannel Message Boards?
 Author:   Gareth Reakes [EMAIL PROTECTED]
 Date: 18th July 2005 10:34:28 
 
 Hey,
 
   I think it would be a good idea. Who is going to take 
 the lead on this?
 
 Gareth
 
 Bill Brigden wrote:
  Just a short note to say I would be willing to help in any 
 ways (within
  reason!) necessary..
  
  Bill.
  
  
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
 Sent: 15 July 2005 17:28
 To: [EMAIL PROTECTED]
 Cc: users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I don't think that they will be too resource intensive form 
 hosting point of 
 view, so It should not be a problem for anyone to set them up.
 Yeah I will be willing to help :)
 
 -Cheers
 
 Yasser
 
 
 From: Gareth Reakes [EMAIL PROTECTED]
 To: Yasser Sultan [EMAIL PROTECTED]
 Subject: Re: Kannel Message Boards?
 Date: Fri, 15 Jul 2005 17:15:54 +0100
 
 Hey Yasser,
 
 
 Yasser Sultan wrote:
 
 Why doesn't kannel has its forums or online discussion boards?
 
 Don't you think that with them it will be easier to keep 
 
 track of the 
 
 things
 and help can be provided in a better way, considering the 
 
 features and 
 
 options present in the modern bulletin board systems
 
 
 Thank You
 
 
Probably because no one has set one up yet :) You offering?
 
 
 Gareth
 
 
 --
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 
  
  
  
  
 
 -- 
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 







Re: Kannel Message Boards?

2005-07-18 Thread Anand Gupta
very true
-- 
regards,
 
Anand Gupta


 Original message 
Subject:Re: Kannel Message Boards?
Author: Christian Vandrei [EMAIL PROTECTED]
Date:   18th July 2005 4:9:6 

I think we should have just one communication platform. For sure 
mailinglists serve their purpose, but thinking about myself using this 
list it would be way more comfortable having a forum. And that's not 
just because I'm some kind of lazy person. It's mainly about, as 
mentioned before, having all the features a forum already provides. 
Besides, if the forum software available at the time when this list 
started had all the possibilities that we can have today, I'm pretty 
damn sure a forum would have been everybody's choice=).
But there's one major issue: any possibilities that posts from the 
mailinglist can be imported to a forum?

Have nice day,
Christian.

Anand Gupta wrote:

Would people see the mailing lists as redundant if there were web based 
forums?



well both can serve the purpose, at times mailing lists are better and 
sometimes forums.
  





RE: Kannel Message Boards?

2005-07-18 Thread Anand Gupta
you have my vote on all those points ;)

-- 
regards,
 
Anand Gupta


 Original message 
Subject:RE: Kannel Message Boards?
Author: Stephane Rosa [EMAIL PROTECTED]
Date:   18th July 2005 6:21:59 

Well, I think that forums can easily (and should) replace mailing lists. I
see several reasons for this :

1) Search. Searching mailing lists archives is painful, and I'm sure most
people will just post the same question again without trying to search
first. Forums are much more efficient in searching by subject, body,
poster, date, etc.

2) Organisation. Beside major groups like bugs, devel, user, most forums
provide sub-groups allowing to segregate a group in several major areas
(e.g. Development-Web Interface, Development-Core, etc)

3) Traffic. I'm an Internet Ecologist(tm) and I strongly see the mailing
list traffic as a totally useless bandwidth nuisance, mostly because when
someone subscribes to a mailing list he reads everything the first week,
the second week he deletes without reading, the third week he creates an
automatic folder rule and never reads most of the content ever again.

Spam moderation is not so much of an issue, as long as you have to be
authenticated to post, and being part of  several dozens of forums I never
seen any spam in them.

That's my 0.02$ advocacy, hope it helps :-D

Cheers
Clipper

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
 Sent: Monday, July 18, 2005 16:03
 To: users@kannel.org
 Subject: RE: Kannel Message Boards?
 
 IMO It would be great if you consult the Kannel project 
 maintainers and have their views about it, so that you can 
 have official forums just like the mailing list
 
 yes, I agree that the they should be on the kannel site 
 hosted on a subdomain or something like kannel.org/forums
 
 The only problem with forums is that they also need to 
 closely moderated because of spam and other useless messages 
 that people often post
 
 Regards
 Yasser
 
 --
 Talk about Love  Friendship at Latestngreatest Forums 
 http://www.latestngreatest.net/cgi-bin/Blah/Blah.pl
 
 
 From: Anand Gupta [EMAIL PROTECTED]
 Reply-To: Anand Gupta [EMAIL PROTECTED]
 To: Bill Brigden [EMAIL PROTECTED]
 CC: users@kannel.org
 Subject: RE: Kannel Message Boards?
 Date: Mon, 18 Jul 2005 18:51:40 +0530
 
  Would people see the mailing lists as redundant if there were web 
  based
 forums?
 
 well both can serve the purpose, at times mailing lists are 
 better and 
 sometimes forums.
 
 --
 regards,
 
 Anand Gupta
 
 
  Original message 
 Subject: RE: Kannel Message Boards?
 Author:  Bill Brigden [EMAIL PROTECTED]
 Date:18th July 2005 1:32:16
 
 What do other people think about the possibility of having a 
 web forum?
 Would people see the mailing lists as redundant if there 
 were web based 
 forums?
 
 As far as the name / location - could it be put under kannel.org, 
 either as being hosted there, or using a sub domain 
 (forums.kannel.org?) pointing elsewhere?
 
 Regards,
 Bill.
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
   Sent: 18 July 2005 12:58
   To: Gareth Reakes
   Cc: Bill Brigden; users@kannel.org
   Subject: Re: Kannel Message Boards?
  
   I am ready to register and host the forums if members here can 
   recommend a domain for the same. I posted earlier also however no 
   commented till now.
  
  
   --
   regards,
  
   Anand Gupta
  
  
    Original message 
   Subject:  Re: Kannel Message Boards?
   Author:   Gareth Reakes [EMAIL PROTECTED]
   Date: 18th July 2005 10:34:28
  
   Hey,
  
 I think it would be a good idea. Who is going to take 
 the lead on 
   this?
  
   Gareth
  
   Bill Brigden wrote:
Just a short note to say I would be willing to help in any
   ways (within
reason!) necessary..
   
Bill.
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
   Sent: 15 July 2005 17:28
   To: [EMAIL PROTECTED]
   Cc: users@kannel.org
   Subject: Re: Kannel Message Boards?
   
   I don't think that they will be too resource intensive form 
   hosting point of view, so It should not be a problem 
 for anyone to 
   set them up.
   Yeah I will be willing to help :)
   
   -Cheers
   
   Yasser
   
   
   From: Gareth Reakes [EMAIL PROTECTED]
   To: Yasser Sultan [EMAIL PROTECTED]
   Subject: Re: Kannel Message Boards?
   Date: Fri, 15 Jul 2005 17:15:54 +0100
   
   Hey Yasser,
   
   
   Yasser Sultan wrote:
   
   Why doesn't kannel has its forums or online discussion boards?
   
   Don't you think that with them it will be easier to keep
   
   track of the
   
   things
   and help can be provided in a better way, considering the
   
   features and
   
   options present in the modern bulletin board systems

Re: kannel installation

2005-07-17 Thread Anand Gupta
 sorry if am asking a question that has already been addresses.
 If i am hosted by another webhosting company, can i install kannel on my
 host space and have it running there?

 will be glad if am helped

Sure you can however you will need shell access on your hosting account in
order to compile kannel and run it as your own user. Haven't tried it
ever, but it should work. No one stops you from giving it a shot ;)

P.S. If its one of those cpanel based servers (which i happen to use a
lot), take a look around on it, many times access to compilers is
restricted to users, due to chances of people compiling backdoors etc.

-- 
regards,

Anand Gupta




Re: Kannel Message Boards?

2005-07-16 Thread Anand Gupta

 Why doesn't kannel has its forums or online discussion boards?

 Don't you think that with them it will be easier to keep track of the
 things
 and help can be provided in a better way, considering the features and
 options present in the modern bulletin board systems

I have thought about this many times myself. Can anyone suggest a domain
name ? I will register it and put up the forums on one of my server. I
would like to volunteer to host the forums for kannel.


-- 
regards,

Anand Gupta




Re: sending binary data

2005-04-20 Thread Anand Gupta
Look in the kannel/contrib folder, there are examples for sending all
sorts of messages. For sending binary content you need to specify the UDH
header for each type of message, whether its logo or tone etc.

-- 
regards,

Anand

 Hi all, how can I send binary data over SMS? right now i can sen plain
 text
 messages like this:

 http://smsbox.host.name:13013/cgi-bin/sendsms?
 username=foopassword=barto=0123456text=Hello+world

 but how can i send binary data, like a logo image or a tone


 regards






Re: [Kannel-Users] Re: dlr mysql entries

2005-04-18 Thread Anand Gupta
Dear Naren,

 I have been following this thread (regarding DLR) for a
 while. I just want to know if i can get a sample script for
 handling the DLRs (the one u have mentioned above).
 I have started using kannel recently, i would be very
 much grateful if get this favour. From ur discussion
 i gained a good knowlege of that a DLR actually is and for
 what it is used.

When calling sendsms, use the dlr-url to call any php/asp/perl/cf
(basically any language you use to code) with the escape codes mentioned
in the kannel docs
(http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html,
Table 6-9. Parameters). You can pass all those escape codes to the script,
make the script send you a mail with the values of those parameters. Send
a sms using the sendsms and call the script using dlr-url, see the
response from the script and you will understand which all escape code is
returning what values.

Example:

lynx --dump
http://127.0.0.1:13013/cgi-bin/sendsms?username=foopassword=barto=NUMBERtext=hellofrom=ananddlr-mask=31dlr-url=http://x.x.x.x/dlr.php?type=%dslid=8k=%ks=%ss1=%Sr=%ra=%ab=%bt=%tt1=%Tp=%pp1=%Pq=%qq1=%Qi=%ii1=%Ia1=%An=%nc=%cc1=%Cu=%ub1=%Bo=%omclass=1;

I just typed all the escape codes in the above link (please do check
before using it as it is).

Hope it helps.

-- 
regards,

Anand


 --
 K Naren,MeTel Team.
 http://www.midascomm.com/








Re: [Kannel-Users] Re: [Kannel-Users] Re: dlr mysql entries

2005-04-18 Thread Anand Gupta
Thx for mentioning that Beckman. I missed that part.

-- 
regards,

Anand

 You need to urlencode your dlr-url.

 That will change all of the  to %65 or something (can't remember what) so
 the sendsms script doesn't try and take slid=8 as a parameter to itself.

 see http://php.net/urlencode

 Beckman

 On Mon, 18 Apr 2005, Anand Gupta wrote:

 Dear Naren,

 I have been following this thread (regarding DLR) for a
 while. I just want to know if i can get a sample script for
 handling the DLRs (the one u have mentioned above).
 I have started using kannel recently, i would be very
 much grateful if get this favour. From ur discussion
 i gained a good knowlege of that a DLR actually is and for
 what it is used.

 When calling sendsms, use the dlr-url to call any php/asp/perl/cf
 (basically any language you use to code) with the escape codes mentioned
 in the kannel docs
 (http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html,
 Table 6-9. Parameters). You can pass all those escape codes to the
 script,
 make the script send you a mail with the values of those parameters.
 Send
 a sms using the sendsms and call the script using dlr-url, see the
 response from the script and you will understand which all escape code
 is
 returning what values.

 Example:

 lynx --dump
 http://127.0.0.1:13013/cgi-bin/sendsms?username=foopassword=barto=NUMBERtext=hellofrom=ananddlr-mask=31dlr-url=http://x.x.x.x/dlr.php?type=%dslid=8k=%ks=%ss1=%Sr=%ra=%ab=%bt=%tt1=%Tp=%pp1=%Pq=%qq1=%Qi=%ii1=%Ia1=%An=%nc=%cc1=%Cu=%ub1=%Bo=%omclass=1;

 I just typed all the escape codes in the above link (please do check
 before using it as it is).

 Hope it helps.

 --
 regards,

 Anand


 --
 K Naren,MeTel Team.
 http://www.midascomm.com/






 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





Re: [Kannel-Users] Re: Link DLR - SMS

2005-04-15 Thread Anand Gupta
   What most people do in this situation is use a database to store
   information about a message with a unique ID (primary key, auto
   incremented).  This way when they send the message to kannel with a DLR
   URL, they can include this in the DLR URL, ie:

  insert into log values (NULL, 2125551212, now(), this is a test
 message);
  get the insert_id

  dlr url:

  http://host/dlr.cgi?id=1234t=%tu=%ui=%i

   This way your URL already has your internal tracking ID associated with
   it, so when it is called you can do whatever you need.

I understand inside kannel.conf when mysql is defined as the storage area
for dlr, they are all stored there. But how does one issue the insert like
you mention above ? Is it inside the dlr.cgi we do this ?

-- 
Thx and regards,

Anand

 On Fri, 15 Apr 2005, Julien Buratto wrote:

 Or is there a ready-to-use solution in Kannel that would permit to make
 a
 link between a sent SMS and the reception of a delivery report? And how
 should I proceed? Is there anyone who still resolved this problem?

 Did u set the DLR-URL ?
 In the URL you can include any id you want.



 Beckman
 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---






dlr mysql entries

2005-04-15 Thread Anand Gupta
hello everyone

stupid question probably.

when i use mysql with kannel to store the dlr, after kannel recieves the
dlr from the smsc are the entries removed from the mysql db ?

-- 
regards,

Anand



Re: dlr mysql entries

2005-04-15 Thread Anand Gupta
Dear Yanik,

thx for the reply.

is it possible (it should be actually for a kannel hacker) that when the
mysql inserts are made, a second insert is made in another db which will
probably be a clone of the dlr db of kannel except certain parameters will
be kept in for further use ?

I guess i should start looking for some kannel hacker or someone who could
help in changing code inside ./gw/dlr_mysql.c where all this happens.
Anyone ?

-- 
regards,

Anand

 hello everyone

 Hi!

 stupid question probably.

 There's no stupid questions, only stupid aswers ;o)

 when i use mysql with kannel to store the dlr, after kannel recieves the
 dlr from the smsc are the entries removed from the mysql db ?

 The entries in MySQL are deleted just after a successful delivery report.
 It keeps important informations like the DLR URL when a message is
 buffered for example, which would be lost if Kannel process break down
 accidentaly or voluntary because this is stored un the RAM... In this
 case, if a delivery report arrives, Kannel will not know the DLR URL
 anymore...

 Yanik

 --
 regards,

 Anand









Re: [Kannel-Users] Re: dlr mysql entries

2005-04-15 Thread Anand Gupta
Dear Beckman,

Thx for the nice explanation. I was trying to out ways to get to the ts
field ;) If you recall my earlier message in which i mentioned about the
script which is called in using dlr-url to check for the unique id in
kannel table to get to the ts field ? There is one problem to it, if the
message is delivered before my script gets to it then the script has no
way to get the ts field hence i was trying to get something on that.
Getting another insert was basically to get those values in another table
for the same work and then remove them at leisure, says once a day or
something.

-- 
regards,

Anand

 On Fri, 15 Apr 2005, Anand Gupta wrote:

 is it possible (it should be actually for a kannel hacker) that when the
 mysql inserts are made, a second insert is made in another db which will
 probably be a clone of the dlr db of kannel except certain parameters
 will
 be kept in for further use ?

 I guess i should start looking for some kannel hacker or someone who
 could
 help in changing code inside ./gw/dlr_mysql.c where all this happens.
 Anyone ?

   The DLR store, either internal or mysql, is not intended for your use,
   only for kannel.

   The purpose is to keep an entry in the store until the message is either
   reported as successfully delivered OR absolutely failed (I believe).
 Once
   they are delivered or failed, the need for the entry in the store is no
   longer needed (no more calls to the DLR URL will occur, etc).

   The DLR URL has a purpose -- to give you as much information about the
   delivery of a message to a script you write.  That script can do all
 sorts
   of things, like make an entry in a DB table that is a clone of the
 Kannel
   MYSQL Store table.

   That's why the script you write to handle DLRs is so important, IF you
   want to keep that information.

   So make your dlr url a script, and write it to do what you asked.  I
   highly doubt the kannel code will ever do this natively, because it
 isn't
   really a core function of kannel, it's just a feature which can be
   implemented by you.

 Beckman
 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





Re: [Kannel-Users] message id

2005-04-14 Thread Anand Gupta
 You can't get it, except from the log file, or via DLR.

can you please explain what do you mean by via DLR ? I am using the url to
grab all those values, can i use some variable to pass that value ?
something like that ?

-- 
regards,

Anand


 There was a big fight over it a few months back, about protecting the code
 and not making the code too specific; I don't know if anyone ever made a
 patch.

 Beckman

 On Thu, 14 Apr 2005, Anand Gupta wrote:

 Here is the response from my smsc while sending a message

 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP[smsc11]: Got PDU:
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU 0x87a7a18 dump:
 2005-04-14 14:16:41 [15081] [7] DEBUG:   type_name: submit_sm_resp
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_id: 2147483652 =
 0x8004
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_status: 0 = 0x
 2005-04-14 14:16:41 [15081] [7] DEBUG:   sequence_number: 5 = 0x0005
 2005-04-14 14:16:41 [15081] [7] DEBUG:   message_id: GFN1421584
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU dump ends.
 2005-04-14 14:16:41 [15081] [7] DEBUG: DLR[internal]: Adding DLR
 smsc=smsc1, ts=GFN1421584, src=gldf, dst=+x, mask=31, boxc=
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: creating DLR message
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: DLR =
 http://xxx.xxx.xxx/dlr.php?type=%dslid=54uid=1dlr-rep=%Aothers=%t%i%I%u

 Now i am trying to get the message_id GFN1421584 which is being
 returned
 in response to the submit_sm_resp. This is the message id i need to
 track
 messages from my smsc. What should i use to pass that to the url so i
 can
 track it.

 I see 049ddeb5-64fb-44ec-b0af-3adc094f91d1 as the id inside access.log.
 I
 guess this is some internal message id. What i want is the message id
 from
 the smsc.

 Any help would be highly appreciated.

 --
 regards,

 Anand


 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





Re: [Kannel-Users] message id

2005-04-14 Thread Anand Gupta
I just setup kannel to log DLR to mysql and i see the message id inside it.

2005-04-14 15:14:10 [25810] [7] DEBUG: sql: INSERT INTO dlr (smsc, ts,
source, destination, service, url, mask, boxc, status) VALUES ('smsc1',
'GFN2618104', 'gldfs', '+xxx', 'tedfw',
'http://xxx.xxx.xxx/dlr.php?type=%dslid=56uid=1dlr-rep=%Aothers=%t%i%I%u%o',
'31', '', '0');

Any ideas on what is the variable which stores the ts value ? since its
being passed to the mysql db i guess it can also be passed to my http url
as well.

-- 
regards,

Anand

 You can't get it, except from the log file, or via DLR.

 There was a big fight over it a few months back, about protecting the code
 and not making the code too specific; I don't know if anyone ever made a
 patch.

 Beckman

 On Thu, 14 Apr 2005, Anand Gupta wrote:

 Here is the response from my smsc while sending a message

 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP[smsc11]: Got PDU:
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU 0x87a7a18 dump:
 2005-04-14 14:16:41 [15081] [7] DEBUG:   type_name: submit_sm_resp
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_id: 2147483652 =
 0x8004
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_status: 0 = 0x
 2005-04-14 14:16:41 [15081] [7] DEBUG:   sequence_number: 5 = 0x0005
 2005-04-14 14:16:41 [15081] [7] DEBUG:   message_id: GFN1421584
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU dump ends.
 2005-04-14 14:16:41 [15081] [7] DEBUG: DLR[internal]: Adding DLR
 smsc=smsc1, ts=GFN1421584, src=gldf, dst=+x, mask=31, boxc=
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: creating DLR message
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: DLR =
 http://xxx.xxx.xxx/dlr.php?type=%dslid=54uid=1dlr-rep=%Aothers=%t%i%I%u

 Now i am trying to get the message_id GFN1421584 which is being
 returned
 in response to the submit_sm_resp. This is the message id i need to
 track
 messages from my smsc. What should i use to pass that to the url so i
 can
 track it.

 I see 049ddeb5-64fb-44ec-b0af-3adc094f91d1 as the id inside access.log.
 I
 guess this is some internal message id. What i want is the message id
 from
 the smsc.

 Any help would be highly appreciated.

 --
 regards,

 Anand


 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





Re: [Kannel-Users] message id

2005-04-14 Thread Anand Gupta
Thx Beckman for taking time to reply.

Well the whole reason for which i want to track the message_id is based on
that only. My smsc has the reports available in csv format after 24hrs.
Now when the reports come in, how will i know which report is for which
message ? There can be multiple sender id, multiple messages to same
numbers... This is the reason i was looking for getting the message_id.
When kannel sends the message id to mysql db, its strange why it can't
send it to the dlr url as well.

I thought about a small hack on this, not perfect though.

The mysql db stores the dlr-url as well which has a unique sequence number
called slid. If inside my url php file i search the db using regex with
the slid number (since the same number is available inside the php file
also as one of the parameters) and then copy the message id from there.

The above is not perfect and nor is efficient for when the messages volume
increase, so will the db.

I hope someone else on this list has a better solution.

-- 
regards,

Anand

 Sorry, it's a little confusing.

 There are two types of DLR reports -- the one kannel fakes and the one
 from your SMSC.

 Once your sms message makes it to the SMSC, kannel generates an ACK/
 message and calls your DLR URL with the appropriate information.  THIS DLR
 DOES NOT CONTAIN THE MESSAGE ID YOU SEEK.  The box that calls the URL
 does not know what the message_id is.

 However, when a Delivery Report text message comes in from your smsc...

  id:GFN1421584 sub:001 dlvrd:001 submit date:0504142010 done
 date:0504142010 stat:UNDELIV err:PBD text:Thank you for your p

 Then you have the message ID in the response.  You'll have to write a
 regex
 or something to grab the ID itself out of the message.

 Beckman

 On Thu, 14 Apr 2005, Anand Gupta wrote:

 I just setup kannel to log DLR to mysql and i see the message id inside
 it.

 2005-04-14 15:14:10 [25810] [7] DEBUG: sql: INSERT INTO dlr (smsc, ts,
 source, destination, service, url, mask, boxc, status) VALUES ('smsc1',
 'GFN2618104', 'gldfs', '+xxx', 'tedfw',
 'http://xxx.xxx.xxx/dlr.php?type=%dslid=56uid=1dlr-rep=%Aothers=%t%i%I%u%o',
 '31', '', '0');

 Any ideas on what is the variable which stores the ts value ? since its
 being passed to the mysql db i guess it can also be passed to my http
 url
 as well.

 --
 regards,

 Anand

 You can't get it, except from the log file, or via DLR.

 There was a big fight over it a few months back, about protecting the
 code
 and not making the code too specific; I don't know if anyone ever made
 a
 patch.

 Beckman

 On Thu, 14 Apr 2005, Anand Gupta wrote:

 Here is the response from my smsc while sending a message

 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP[smsc11]: Got PDU:
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU 0x87a7a18 dump:
 2005-04-14 14:16:41 [15081] [7] DEBUG:   type_name: submit_sm_resp
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_id: 2147483652 =
 0x8004
 2005-04-14 14:16:41 [15081] [7] DEBUG:   command_status: 0 =
 0x
 2005-04-14 14:16:41 [15081] [7] DEBUG:   sequence_number: 5 =
 0x0005
 2005-04-14 14:16:41 [15081] [7] DEBUG:   message_id: GFN1421584
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMPP PDU dump ends.
 2005-04-14 14:16:41 [15081] [7] DEBUG: DLR[internal]: Adding DLR
 smsc=smsc1, ts=GFN1421584, src=gldf, dst=+x, mask=31, boxc=
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: creating DLR
 message
 2005-04-14 14:16:41 [15081] [7] DEBUG: SMSC[smsc1]: DLR =
 http://xxx.xxx.xxx/dlr.php?type=%dslid=54uid=1dlr-rep=%Aothers=%t%i%I%u

 Now i am trying to get the message_id GFN1421584 which is being
 returned
 in response to the submit_sm_resp. This is the message id i need to
 track
 messages from my smsc. What should i use to pass that to the url so i
 can
 track it.

 I see 049ddeb5-64fb-44ec-b0af-3adc094f91d1 as the id inside
 access.log.
 I
 guess this is some internal message id. What i want is the message id
 from
 the smsc.

 Any help would be highly appreciated.

 --
 regards,

 Anand


 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---



 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





logs

2005-04-14 Thread Anand Gupta
i start the bearerbox and smsbox with the following command

gw/bearerbox /etc/kannel.conf

gw/smsbox /etc/kannel.conf

Both of them are started in different screens. Now both of them show lot
of messages etc on the screen, when i looked at the /var/log/kannel log
files i don't find those log entries there. I have all the log variables
defined in kannel.conf however why does these entries only show up on the
screen and no entry is made in any log file ?

Whats the best way to start bearerbox and smsbox ? using Screen ? Since
this is a remote box i can't let the ssh sessions open always.

-- 
regards,

Anand




Re: [Kannel-Users] message id

2005-04-14 Thread Anand Gupta
My smsc returns unique number always in the ts value. Thats where they
have asked me to grab the message id from.

-- 
regards,

Anand

 Also depends on the type of connection you have with your provider/smsc.
 Using EMI/UCP protocol is know not to have a unique id to any message.
 Infact if your kannel will send more than one message in a single
 second, ts will confuse the DLR and the reply is not unique.

 J

 Anand Gupta wrote:

Thx Beckman for taking time to reply.

Well the whole reason for which i want to track the message_id is based
 on
that only. My smsc has the reports available in csv format after 24hrs.
Now when the reports come in, how will i know which report is for which
message ? There can be multiple sender id, multiple messages to same
numbers... This is the reason i was looking for getting the message_id.
When kannel sends the message id to mysql db, its strange why it can't
send it to the dlr url as well.

I thought about a small hack on this, not perfect though.

The mysql db stores the dlr-url as well which has a unique sequence
 number
called slid. If inside my url php file i search the db using regex with
the slid number (since the same number is available inside the php file
also as one of the parameters) and then copy the message id from there.

The above is not perfect and nor is efficient for when the messages
 volume
increase, so will the db.

I hope someone else on this list has a better solution.









Re: MessageID

2005-04-14 Thread Anand Gupta
Dear Hillel,

Thx for the reply.

Looks like there are people after the same feature as i am ;)

I hope someone really finishes this feature and submits it.

-- 
regards,

Anand

 Dear Anand,

 This is a feature I also require and would ideally like it to be in the
 Kannel CVS so everyone can try it.

 The closest someone got to the feature, such that if fits with the Kannel
 philosophy and everyone was happy was Davy Chan.

 http://www.mail-archive.com/devel@kannel.org/msg04342.html
 http://www.mail-archive.com/devel@kannel.org/msg04401.html

 Unfortunately he first proposed finishing the fluctuating between
 XXX_UNDEF
 and '-1' in Kannel code
 http://www.mail-archive.com/devel@kannel.org/msg04407.html
 http://www.mail-archive.com/devel@kannel.org/msg04414.html

 and since then I don't know if or when he will complete either of the two
 patches he proposed.

 So if you know someone who knows the Kannel internals well, maybe he can
 be
 encouraged to finish it off.

 Regards







Re: [Kannel-Users] logs

2005-04-14 Thread Anand Gupta
Dear Beckman,

 You need to specify the log level in your config and/or your command line

I have log level set to 0 (debug) for all log files inside kannel.conf.

Still when i parse the log files, i don't see the entire messages i see on
the screen. I thought i was missing something, hence my question.

Here is my kannel.conf

group = core
admin-port = 1
smsbox-port = 10001
admin-password = x
status-password = 
dlr-storage = mysql
#admin-deny-ip = 
#admin-allow-ip = 
log-file = /var/log/kannel/kannel.log
log-level = 0
#box-deny-ip = *.*.*.*
#box-allow-ip = 127.0.0.1
#unified-prefix = +358,00358,0;+,00
access-log = /var/log/kannel/access.log
sms-incoming-queue-limit = -1
access-log-format = %t %l [SMSC:%i] [SMS ID:%I] [SVC:%n] [ACT:%A]
[BINF:%B] [from:%p] [to:%P] [flags:%m:%c:%M:%C:%d] [msg:%L:%b] [udh:%U:%u]
[Delivery Report Value:%d] [SMSC Reply:%A] [SMS User:%n]
store-file = /var/log/kannel/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem

# SMSC CONNECTIONS

group = smsc
smsc = smpp
smsc-id = smsc1
host = x.x.x.x
port = 5000
smsc-username = user
smsc-password = password
system-type = syste01
address-range = 
keepalive = 10
log-file = /var/log/kannel/smsc-spice1.log
log-level = 0
reconnect-delay = 10
#enquire-link-interval = 30

# SMSBOX SETUP

group = smsbox
bearerbox-host = x.x.x.x
sendsms-port = 10013
global-sender = 10013
#sendsms-chars = 0123456789 +-
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
user-allow-ip = x.x.x.x

# SERVICES

group = sms-service
keyword = nop
text = You asked nothing and I did it!

# there should be default always

group = sms-service
keyword = default
#text = No service specified
get-url = http://x.x.x.x/geturl.php?t=%tq=%qa=%a;

include = /etc/kannel-dlr-mysql.conf

contents for /etc/kannel-dlr-mysql.conf

group = mysql-connection
id = mydlr
host = localhost
mysql-username = usmy
mysql-password = usmy
database = usmy
max-connections = 5

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

Please advise if i have something missing/wrong in it.

Thx again for all the help.

-- 
regards,

Anand

 You need to specify the log level in your config and/or your command line

 Look at the command line switches and make sure the log level you are
 using
 in your config is the most lenient so you see ALL messages, not just the
 panics or errors.

 Beckman

 On Thu, 14 Apr 2005, Anand Gupta wrote:

 i start the bearerbox and smsbox with the following command

 gw/bearerbox /etc/kannel.conf

 gw/smsbox /etc/kannel.conf

 Both of them are started in different screens. Now both of them show lot
 of messages etc on the screen, when i looked at the /var/log/kannel log
 files i don't find those log entries there. I have all the log variables
 defined in kannel.conf however why does these entries only show up on
 the
 screen and no entry is made in any log file ?

 Whats the best way to start bearerbox and smsbox ? using Screen ? Since
 this is a remote box i can't let the ssh sessions open always.

 --
 regards,

 Anand



 ---
 Peter Beckman  Internet
 Guy
 [EMAIL PROTECTED]
 http://www.purplecow.com/
 ---





Re: [Kannel-Users] Re: [Kannel-Users] logs

2005-04-14 Thread Anand Gupta
Thx for the quick response.

 Step 1.  Check to see if /var/log/kannel exists

yes it does

 Step 2.  Check to see if /var/log/kannel/kannel.log is being written to.

yes

 Step 4.  Check to see if user you are running kannel as can write to
kannel.log (did you run it as root the first time, and as
yourself later?)

Right now kannel runs as root, thats another question i had. Is it safe to
run as root ? which user should i run it as ? Any commandlines for doing
so ? Should it be run as root first and then switched to run as another
user ?

 Step 5.  Is kannel writing to the log file at all?

yes

I greped through the files and after log level was changed to 0 from then
onwards i can see all the logs inside those files. Thx.

One more question, bearerbox and smsbox print everything on the screen,
any ways to avoid it ? so i can send both bearerbox and smsbox in
background and just exit ssh.

-- 
regards,

Anand



Re: [Kannel-Users] logs

2005-04-14 Thread Anand Gupta
Thx David. I got it running under a user :) I had missed the commandline
parameters section of the guide which Beckman pointed out and helped me do
it.

-- 
regards,

Anand

 Anand Gupta wrote:

Step 4.  Check to see if user you are running kannel as can write to
   kannel.log (did you run it as root the first time, and as
   yourself later?)



Right now kannel runs as root, thats another question i had. Is it safe
 to
run as root ? which user should i run it as ? Any commandlines for doing
so ? Should it be run as root first and then switched to run as another
user ?


 No daemon that runs as a network server is guaranteed to be safe when
 running as root. In kannel's case, there is no need to run as root as it
 does not require (in a standard configuration) socket access to
 priviledged ports; just make sure group memberships or file permissions
 are fixed for device nodes in /dev that bearerbox might need access to
 (e.g. serial ports for GSM modems etc).

 Create a new user (and group) with a no-shell login, change ownership of
 any directories and files according to need, then start the daemon via
 an init/rc script with su or sudo, whatever your OS supports, no doubt
 there are plenty of working examples on your system already. It is very
 simple and straight-forward with no hidden gotchas.






Re: Kannel on RH EL3/4

2005-04-12 Thread Anand Gupta
I am thinking of purchasing a new box (HP DL360 G4, Xeon, SCSI) for
kannel and DB purposes.
So, here comes the question:
Has anybody compiled and tested kannel successfully on a box running RH EL 3/4?
I compiled it on Centos 3.4 which is actually a rebuild of RHEL 3. Its 
working without any problems.
--
regards,
Anand