Re: Compatibility

2010-02-27 Thread Iain Dooley
I ordered a USB/power of USB GSM modem unit from KLS electronic in China 
off alibaba.com and it works really well. I've been using them 
consistently with Kannel, and using custom scripts that I wrote using the 
command line utility cu and they've been very solid.


Cheers,
Iain

On Sat, 27 Feb 2010, LoLoVioLo wrote:


Hi all,

Sorry it is another compatibility request. The compatibility list appears 
poor concerning devices that work as SMSC.


The fact is that I am actually using a siemens s35 which is really perfect to 
send sms but hardly manage both receive and send on heavy traffic situation. 
After a while, incoming SMS are stored into internal memory instead of 
passing to kannel then refuse incoming SMS as memory is full.
I tried siemens s45, sony ericsson t600 but can't find a real stable way 
(phone power down, phone freeze, etc.)


So I am thinking about using a dedicated GSM modem instead of a mobile phone 
to avoid this problems (the simpler the best).
The 3 models in compatibility list (nokia premicell, siemens m20, wavecom 
wm02) appears quite old and hard to find.


My aim is to have a dual band rs232 GSM modem as stable as possible able to 
send and receive SMS without discard any of them.

Wavecom appears still very active on the GSM modem business.
Especially do you have any experience with wavecom Fastrack M1206B ?

For those who have system running at 10 SMS/min (send and receive) for months 
- please share your experience.


Thanks.

LoLoVioLo








Re: Special characters @$_

2010-03-07 Thread Iain Dooley

Using PHP, I do this in order to make @ appear correctly:

$new_sms = strtr($msg,'@',chr(64));

I think it may be depending on your provider, though. that snippet above 
is for sending through my outbound provider. However, for inbound I have 
to do the following:


$msg = str_replace(chr(161),'@',$msg);
$msg = str_replace(chr(164),'$',$msg);
$msg = str_replace(chr(139),'^',$msg);
$msg = str_replace(chr(167),'_',$msg);

I just found this out through trial and error.

Cheers,
Iain

On Mon, 8 Mar 2010, Sandesh Waman // Viva wrote:


Dear Users,

I am using kannel-1.4.3  for bulk sms.

I am not getting Special Characters like @$_ on handset.

Is there any parameter needs to be include so I can get it ??


Kannel Conf file.
group = core
admin-port = 
smsbox-port = 
admin-password =xxx
status-password =
#admin-deny-ip = "*.*.*.*"
#admin-allow-ip = "127.0.0.1"
log-file = "/var/log/kannel/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,"
access-log = "/var/log/kannel/kannel_access.log"
#store-type = "kannel.store"
#store-location = "/home/kannel/kannel.store"
#ssl-server-cert-file = ""
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
sms-combine-concatenated-mo = true
smsbox-max-pending=1024
dlr-storage=mysql

#-
# SMSC CONNECTIONS

group = smsc
smsc = smpp
smsc-id = demo
host=x.x.x.x
smsc-username=demo
smsc-password=
port = 
receive-port= 0
connect-allow-ip = 127.0.0.1
system-type=""
address-range=""
#alt-dcs= 0
source-addr-ton=1
source-addr-npi=1
source-addr-autodetect=""
dest-addr-ton=1
dest-addr-npi=1
#msg-id-type=0x00
allowed-smsc-id=demo
transceiver-mode=1
throughput=10


#-
# SMSBOX SETUP
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for
delivery
group = smsbox
smsbox-id=asmsbox
bearerbox-host = 127.0.0.1
sendsms-port = 
global-sender = SMS
sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/home/kannel/smsbox01.log"
http-request-retry=5
http-queue-delay=50

#-
# SEND-SMS USERS
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013
/cgi-bin/sendsms?username=tester&password=foobar...
group = sendsms-user
username = 
password = x
#user-deny-ip = ""
#user-allow-ip = ""
#default-smsc=xy
#default-smsc=
max-messages = 5
concatenation=true
#dlr-url="http://localhost/sms/dlr.php?";
#-
# SERVICES
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
is
# applied, using the first one to match.
group = sms-service
keyword = nop
#text = "You asked nothing and I did it!"
concatenation=true
max-messages=5
text=<480 Characters with spaces>

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
#text = "No service specified"
text=<480 Characters with spaces>
concatenation=true
max-messages=5

Appreciate for Quick reply.

Thanks in advance.

WR,
Sandesh





Re: getting MO and MT data into a database

2010-06-14 Thread Iain Dooley

Hi Scott,


Maybe I'm under false assumptions... What I'm trying to capture is all
the data into a database. I need a few fields: phone number,
date/time, message content


MT messages are sent by you, using kannel. The solution here is simple: 
write the details to a database before you send them to kannel.


MO messages are delivered to the get-url parameter specified in your 
sms-service group.


I use the following sms service with the keyword-regex .* as I handle all 
my message switching in my app outside of kannel (I simply use kannel as 
an SMPP transport and nothing more):


# SERVICES
group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
accept-x-kannel-headers=1
get-url = 
"http://myserver.com/concatenate_mo.php?from=%p&to=%Q&msg=%a&udh=%u&id=%I";


The reason I use the id=%I parameter there is because the "to" parameter 
doesn't work (it's possibly been fixed in a later version of kannel but 
there's no way I'm upgrading the software on a production machine when I 
already have a workaround :)


I've attached the concatenate_mo.php script I have written which deals 
with the UDH to stick long messages back together (again, this may be 
present in later versions of kannel but I haven't bothered checking since 
I've got no problems with my present solution).


The real hack is in the function getDestination which uses the "id" 
parameter obtained from %I in the get-url parameter to find out what the 
destination number, ie. the number that this message came in on, was by 
grepping the kannel log file. Ugly as hell, but it's worked 100% reliably 
for me for the past 3 years so I'm not about to go changing it.


Your mileage may vary though :)

Cheers,
Iain


On 6/13/10, Nikos Balkanas  wrote:

Hi,

Your problem is that you mix up MOs with MTs. The reply to an MO is not an
MT, just an MO reply. MTs are push SMS such as those sent through your
/sendsms HTTP interface. MTs get DLRs according to their specified DLR-mask.
MOs don't.

Be aware, some SMScs do not send DLRs even in the case of MTs to modems,
especially if they are mobile phones.

BR,
Nikos
  - Original Message -
  From: Scott Geller
  To: Nikos Balkanas
  Cc: users@kannel.org
  Sent: Sunday, June 13, 2010 6:59 PM
  Subject: Re: getting MO and MT data into a database




  Thanks Nikos!


  Below are new logs, which include start up, one MO (which has an MT reply
from kannel) and shutdown.  Only thing I pulled was the phone numbers


  I have the logs all set to level zero (debug level).


  Really appreciate your help!!


  Thanks


  Scott


  #
  bearerbox_access.log
  #
  2010-06-13 11:08:28 Log begins
  2010-06-13 11:14:03 Receive SMS [SMSC:AT2[/dev/rfcomm0]] [SVC:] [ACT:]
[BINF:] [FID:] [from:+1443xxx] [to:1234] [flags:-1:0:-1:0:-1]
[msg:4:Test] [udh:0:]
  2010-06-13 11:14:09 Sent SMS [SMSC:AT2[/dev/rfcomm0]] [SVC:] [ACT:]
[BINF:] [FID:] [from:1234] [to:+1443xxx] [flags:-1:0:-1:-1:-1]
[msg:14:testing 123455] [udh:0:]
  2010-06-13 11:28:56 Log ends


  
  bearerbox.log
  
  2010-06-13 11:08:28 [4663] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `0'.
  2010-06-13 11:08:28 [4663] [0] INFO: Started access logfile
`/var/log/kannel/bearerbox_access.log'.
  2010-06-13 11:08:28 [4663] [0] INFO: SSL not supported, no SSL
initialization done.
  2010-06-13 11:08:28 [4663] [0] INFO: HTTP: Opening server at port 13000.
  2010-06-13 11:08:28 [4663] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
  2010-06-13 11:08:28 [4663] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
  2010-06-13 11:08:28 [4663] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 4663.
  2010-06-13 11:08:28 [4663] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps to pid 4663.
  2010-06-13 11:08:28 [4663] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
  2010-06-13 11:08:28 [4663] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 4663.
  2010-06-13 11:08:28 [4663] [0] DEBUG: starting smsbox connection module
  2010-06-13 11:08:28 [4663] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
  2010-06-13 11:08:28 [4663] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
  2010-06-13 11:08:28 [4663] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 4663.
  2010-06-13 11:08:28 [4663] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 4663.
  2010-06-13 11:08:28 [4663] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
  2010-06-13 11:08:28 [4663] [0] INFO: Set SMS resend frequency to 60
seconds.
  2010-06-13 11:08:28 [4663] [0] INFO: SMS resend retry set to unlimited.
  2010-06-13 11:08:28 [4663] [0] DEBUG: smsbox MO concatenated message
handling enabled
  2010-06-13 11:08:28 [4663] [0] INFO: DLR rerouting for smsc id <(null)>
disabled.
  2010-06-13 11:08:28 [4663] [0] INFO: AT2[/dev/rfcomm0]: configuration
doesn't show modemtype. will autodetect
  2010-06-13 11:08:28 [4663] [0

Re: Stop sms coming with what is displaying in web explorer

2010-07-15 Thread Iain Dooley



Can you help me to stop sms from Kannel ?
In fact when I send an http request to Kannel I don't want to receive  what is 
displayed in the web explorer.


urrr ... que?

Re: Re : Stop sms coming with what is displaying in web explorer

2010-07-15 Thread Iain Dooley
How to not receive by sms what could be displayed  on in web browser 
whan i use the url put on get-url.


AHA!! I think what you're referring to is the auto-reply. Like, you send a 
message into kannel, then you receive a message back which contains the 
response from your web page, is that right?


Cheers,
Iain

Re: Re : Re : Stop sms coming with what is displaying in web explorer

2010-07-15 Thread Iain Dooley



Yes, you understand very well. Can you help me?


the max-messages tip sent in an earlier message should help you out :)


___
De : Iain Dooley 
? : Marc ANDREAS 
Cc : us...@vm1.kannel.org
Envoy? le : Jeu 15 juillet 2010, 9h 31min 48s
Objet : Re: Re : Stop sms coming with what is displaying in web explorer

> How to not receive by sms what could be displayed  on in web browser whan i 
use the url put on get-url.

AHA!! I think what you're referring to is the auto-reply. Like, you send a 
message into kannel, then you receive a message back which contains the 
response from your web page,
is that right?

Cheers,
Iain




Re: Re : Re : Re : Stop sms coming with what is displaying in web explorer

2010-07-15 Thread Iain Dooley



Working fine. Thank you.
Do you have any idea on french characters ?


i don't, but there has been a lot of discussion in the past on this list 
regarding greek characters and a few very vocal and helpful members of the 
list and dev team (if i'm mistaken, sorry!) are greek so you might try 
googling around a bit more because all the mailing lists are publicly 
available.


Cheers,
Iain


___
De : Iain Dooley 
? : Marc ANDREAS 
Cc : us...@vm1.kannel.org
Envoy? le : Jeu 15 juillet 2010, 9h 58min 26s
Objet : Re: Re : Re : Stop sms coming with what is displaying in web explorer


> Yes, you understand very well. Can you help me?

the max-messages tip sent in an earlier message should help you out :)

>__
_
> De : Iain Dooley 
> ? : Marc ANDREAS 
> Cc : us...@vm1.kannel.org
> Envoy? le : Jeu 15 juillet 2010, 9h 31min 48s
> Objet : Re: Re : Stop sms coming with what is displaying in web explorer
>
> > How to not receive by sms what could be displayed  on in web browser whan i 
use the url put on get-url.
>
> AHA!! I think what you're referring to is the auto-reply. Like, you send a 
message into kannel, then you receive a message back which contains the response 
from your web
page,
> is that right?
>
> Cheers,
> Iain
>
>
>




Re: Asterisk voicemail SMS alert through SMSC gateway using kannel

2010-07-20 Thread Iain Dooley



This is my first post here.
Has any one implemented this?
If yes, please share your experience.

We use asterisk as voicemail server for our Cellular network.
and do have access to SMSC gateway.

So how can use kannel to send SMS as voicemail alert?


asterisk sends an email by default right? so you need to setup something 
like procmail to receive these and provide email2sms functionality via 
kannel.


the key will be providing some mapping between asterisk user and their 
mobile number, so that the email2sms gateway knows which number to send 
the alert to.


cheers
iain



Re: Reading received sms

2010-08-31 Thread Iain Dooley

Hi Alex,

I am developing an sms app in php using this wonderful gateway. I need 
to receive an sms process it and then send an auto reply but i am a bit 
stuck. I been reading the sms-service section of the user guide but 
Imust admit I am yet to understand it. Does any one have an exaple 
implemenation for exaple a service that listens for sms and just dumps 
them in a mysql database. Thanks.


Here is my answer to the exact same question from a few months ago:

http://www.mail-archive.com/users@kannel.org/msg20081.html

Cheers,
Iain



Re: troubles with sending an '@' symbol through kannel

2010-09-07 Thread Iain Dooley

Hi Davit,


I have an smppbox that is connected to the gateway. I am using a simple smpp 
client to send messages. The system works fine in general.
However, I have been trying to send the symbol "@" to a mobile phone but I did not manage 
to receive the sms eventually. After the "@"
symbol and including it there is no text received by the phone. I don't know 
what the problem is but it seems Kannel has some issues with
forwarding Symbols like "@" or "=" in texts. Anybody has any idea why this 
could happen?


Here's my answer to a similar question a little while ago:

http://www.mail-archive.com/users@kannel.org/msg09523.html

which I found by searching "iain dooley @ symbol kannel" in google

HIH

Iain



DLR SMS coming into the wrong smsc group

2010-09-20 Thread Iain Dooley

Hi All,

I have 4 sms groups in my config below which are for connecting to 2 
different servers using 2 different mblox profile ids (included as the 
service-type parameter)


# SMSC CONNECTIONS
# MBLOX PROFILE 1
group = smsc
smsc = smpp
host = smpp5.mblox.com
port = 3217
system-type = "VMA"
connect-allow-ip = 127.0.0.1
smsc-username = "MYUSERNAME"
smsc-password = MYPASSWORD
throughput = 10
service-type = 11986
smsc-id = mblox
transceiver-mode = 1
msg-id-type = 0x01
validityperiod = 480
preferred-smsc-id="mblox"
denied-smsc-id="smsglobal;mblox2"

group = smsc
smsc = smpp
host = smpp6.mblox.com
port = 3217
system-type = "VMA"
connect-allow-ip = 127.0.0.1
smsc-username = "MYUSERNAME"
smsc-password = MYPASSWORD
throughput = 10
service-type = 11986
smsc-id = mblox
transceiver-mode = 1
msg-id-type = 0x01
validityperiod = 480
preferred-smsc-id="mblox"
denied-smsc-id="smsglobal;mblox2"

# MBLOX PROFILE 2
group = smsc
smsc = smpp
host = smpp5.mblox.com
port = 3217
system-type = "VMA"
connect-allow-ip = 127.0.0.1
smsc-username = "MYUSERNAME"
smsc-password = MYPASSWORD
throughput = 10
service-type = 11985
smsc-id = mblox2
transceiver-mode = 1
msg-id-type = 0x01
validityperiod = 480
preferred-smsc-id="mblox2"
denied-smsc-id="smsglobal;mblox"

group = smsc
smsc = smpp
host = smpp6.mblox.com
port = 3217
system-type = "VMA"
connect-allow-ip = 127.0.0.1
smsc-username = "MYUSERNAME"
smsc-password = MYPASSWORD
throughput = 10
service-type = 11985
smsc-id = mblox2
transceiver-mode = 1
msg-id-type = 0x01
validityperiod = 480
preferred-smsc-id="mblox2"
denied-smsc-id="smsglobal;mblox"

If I send through the "mblox" smsc-id, the initial DLR with state 4 
(buffered) comes back with into the correct "mblox" profile, however when 
the final DLR with state 1 (success) comes back it is going into the 
second mblox profile "mblox2" and being discarded.


Is this something that I have to fix in my configuration or is it 
something I have to get in touch with mBlox about?


Cheers,
Iain



Re: @ sign issue

2010-10-07 Thread Iain Dooley

Hi Hamza,


I am unable to send email address over sms correctly via kannel. Apparently, 
kannel is converting '@' sign in the email address sms to inverted question 
mark '?' (e.g.
hamza?aeon.pk). Can someone help about how to fix this?


Here is a previous answer I gave to a similar question:

http://www.mail-archive.com/users@kannel.org/msg09523.html

Cheers,
Iain



redundancy

2008-11-03 Thread Iain Dooley

hi, this is a bit off topic, but i have the following setup:

server1 <<<=== SMPP  INBOUND SUPPLIER

server2  SMPP ===>>> (outbound1/outbound2)

if i wanted to have:

(server1/server3) <<<=== SMPP  INBOUND SUPPLIER
(server2/server4)  SMPP ===>>> (outbound1/outbound2)

so that i had two servers at any one time bound via SMPP to my inbound 
supplier, and two servers at any one time bound via SMPP to the two 
outbound servers (failover of which is already handled beautifully by 
kannel), then how could i go about ensuring that delivery receipts came 
back to the correct machine and, more importantly, that multipart inbound 
messages all came to the same machine?


has anyone gone through a similar setup?

cheers
iain



Re: DLR help

2008-11-21 Thread Iain Dooley

Hi Nikos,


Guys, any help or any leads on this?

P.S. Where is dlr-mask used?


I've never used dlr's with fake smsc, is that all you're enquiring about 
or do you need help with dlr's in general?


cheers
iain



Re: Is kannel's "exec" receiver method insecure?

2008-12-13 Thread Iain Dooley

wouldn't it be possible to send in an SMS that had:

"here is the content of my sms; echo "SOME MALICIOUS CODE" > /tmp/"

for example to poison a web server's session cache?

or are the arguments escaped for shell args prior to exec being called?

cheers
iain

On Sun, 14 Dec 2008, Nikos Balkanas wrote:


Dear shaded,

I cannot give you the example that you request, except to show you that your 
fears are unfounded:


1) kannel runs as a different user (i.e. kannel). No root access.
2) Unless the someprogram.sh is:

#!/bin/bash

exec $3

you have nothing to worry about. But in this case your script is responsible, 
not?? A script like:


#!/bin/bash

echo "$1 $2 $3"

cannot do any harm under any circumstances. Of course it doesn' do anything 
useful either. You just need to send $1 $2 $3, not exeute them. If a C 
executable is involved you just have to watch for buffer overuns in the 
argument list. Your responsibility again, right? Therefore no harm in sending 
a message like "rm -rf *".


3) Your script is only locally accessible, i.e. you have to have local access 
to your server, or through kannel. And kannel usage is logged, accounted and 
billed for.  So no DOS sendsms either. Just make sure that you set the right 
permissions (100) to the script w/ owner kannel.


4) You cannot buffer overun kannel with a very long $3. It is not using 
strcpy. Just malloc. Try it if you wish.


In conclusion responsibility is up to you and the script you provide. Now if 
someone cracks your server and replaces your script w/ something bad (he 
needs kannel access to do it), you could get into all sorts of trouble that 
kannel could cause. But if the cracker has already kannel access, why bother 
with the script? He can already cause all the harm by himself.


BR,
Nikos

- Original Message - From: "shaded 4" 
To: 
Sent: Sunday, December 14, 2008 5:12 AM
Subject: Is kannel's "exec" receiver method insecure?



When kannel receives an SMS message from a mobile phone,
as far as I know it can do one of four things:
a) Give back a simple text response.
b) Give back the contents of a file.
c) Fetch a URL.
d) Execute a given shell command/script.

I really want to use d) for the flexibility offered, but
is there *any* way to use d) completely securely? Can someone
show an example of an "exec" line where it is impossible
for someone that to craft an evil SMS message that
could execute dangerous commands on my system?

The kannel user guide of course gives this warning:
 BEWARE: You may harm your system if you use this
 sms-service type without serious caution! Make sure
 anyone who is allowed to use these kind of services
 is checked using white/black-list mechanisms for
 security reasons.
But I wish it would show an example of safe usage
(if it exists).

For example, my sms-service group might have an obvious
'exec' entry like this:
   group = sms-service
   keyword = whatever
   exec = "someprogram.sh %p %P %r"
(where %r is of course most of the SMS message),

I would think that someone could send a malicious SMS message
like this for example:
   ; rm -rf *
or any arbitrary other command.

The only "saving grace" appears to be that kannel seems
to automatically URL-encode many of the characters in the above
parameters like %r, and replaces spaces with '+" .
So for example, the above "; rm -rf *" actually gets changed by
kannel to
   %3B+rm+-rf+*
which reduces the chances of a malicious SMS message doing damage.

Even if it "secure", it could also be possible that an SMS sender
inadvertently sends some character which might trip up the shell.
E.g. if I write the exec in this way, surrounding the parameters
with single quotes:
   exec = "someprogram.sh '%p' '%P' '%r'"
then *maybe* it could be possible for the shell to trip up if
the SMS sender innocently sends a single quote as part of the message.
(I'm not saying it will - I actually haven't tested this scenario,
  but you get the point.
)
Kannel will then presumably lose the SMS message, and the
customer will be none the wiser.

Unfortuntely, I need this particular SMS receiver service to be open
to anyone, i.e. I can't whitelist or blacklist anybody.

So does anyone have an "exec" entry which is perfectly secure
and will not trip up no matter which characters are in the
SMS message?









Re: anyone here from Pakistan and can guide me regarding GSM modem ... which is cheap and reliable ?

2008-12-28 Thread Iain Dooley
hi wahib, i've dealt with kls electronic in china to get a good, compact 
power over usb gsm modem. i live in australia and including shipping they 
were still reasonably priced.


i've run them both with kannel, and also just using a direct terminal 
connection from a script, on freebsd, and have no problems so far (been 
running them for about 8 months).


cheers
iain

On Sun, 28 Dec 2008, wahib wrote:



Hi. I have worked on kannel regarding sms applications for some time using
W700i as smsc. But my project advisor wants to buy a GSM modem once and for
all coz its a much better option. I have searched on reliable GSM modems and
found many. But i need to know that is there any GSM modem available in
pakistan ?  and which one and of how much ???

Regards,
wahib
--
View this message in context: 
http://www.nabble.com/anyone-here-from-Pakistan-and-can-guide-me-regarding-GSM-modem-...-which-is-cheap-and-reliable---tp21190836p21190836.html
Sent from the Kannel - User mailing list archive at Nabble.com.







Re: use ipone as smsc

2008-12-29 Thread Iain Dooley

you'll have to ask steve jobs

On Mon, 29 Dec 2008, Clarence Carino wrote:


good day!

i would like to ask if its possible to use my iphone as an SMSC? because my
k800i is broken as of now

thanks!





Re: problem with get-url or encoding

2009-03-30 Thread Iain Dooley



The problem here is when we are sending back the message with session ID
from the mBlox which is "AptyrB+v+LkAABkA+ncgAUaIPk807E800QQ$"... the
SMSC return the error code...  0x0435 (Vendor-specific error, please
refer to your SMPP provider).. Using the Portal we have from MBlox we
came to know that Session ID has not been delivered


when i've got this error back from mblox in the past it's been due to 
attempting to use an alphanumeric sender id greater than 11 characters.


cheers
iain




Updated Ghana numbering

2009-05-10 Thread Iain Dooley

Hi All,

Mark Davies, from Ghana (not sure if he's on the Kannel lists, if so, 
thanks Mark!) has sent me updated Ghana numbering which has been added to 
the mobile numbering format file:


http://203.190.233.9/mobile_numbering.txt

Don't forget that you can add your own numbering formats via anonymous 
CVS, instructions are here:


http://www.workingsoftware.com.au/index.php?h=WebLog&author_id=1&entry_id=75

Cheers,
Iain



Re: missing report if message discarded..

2009-05-15 Thread Iain Dooley

Hi Beatrice,

Try setting a very low message validity. Search on this page:

http://kannel.org/download/1.4.3/userguide-1.4.3/userguide.html

for "validityperiod".

You should be able to test this yourself by setting a very low validity, 
turning off your phone, sending yourself a message then waiting 10 minutes 
or so, turning your phone on and ensuring you do not receive the message.


Cheers,
Iain

On Fri, 15 May 2009, Beatrice Tamburrino wrote:


Hi,

thanks for your input..

My application handles the delivery status as follow:

- if dlr == 1:  executed
- if dlr == 2:  error
- if dlr == 4:  sending...
- if dlr == 8:  sending...
- if dlr == 16: error

(using mask 31)

This application will be used in a fire departmenet. They send the alarms via 
short messages. So, if somebody is not reachable at the moment, the SMSC will 
try to resend the SMS (how often? ). In this case, I'm getting the right dlr 
status 4.

Because the application is used in a fire departement, it doesnt make sens, if 
a fireman receives the SMS too late, so I have to show very quick, that the SMS 
has been queued (status: sending.. ) and after 2-3min. if the receiver is still 
unreachable, that the SMSC discarded.

Is there a way to get a notification of the discarded SMS?? Is this a matter of 
the provider? or can the Kannel server get the information?

Jovan? do you have some tips?

thx

xox bea

 Original-Nachricht 

Datum: Thu, 14 May 2009 18:21:28 +0200
Von: Jovan Kostovski 
An: Beatrice Tamburrino 
CC: users@kannel.org
Betreff: Re: missing report if message discarded..



On Thu, May 14, 2009 at 3:09 PM, Beatrice Tamburrino
 wrote:


I'm facing one problem  with the status 4 (queued on SMSC ). My extern

application shows "sending..." while  the dlr-status is 4.

The message reaches the SMSC but it can not be delivered because the
recipient is offline (phone turned off, or out of network reach). The
SMSC will retry to deliver it in predefined time interval (SMSC
parameter you can not change it) until it is sent or
the message validity period is expired when the message will be
deleted from the SMSC.


 On the kannel server I've set the parameter:
sms-resend-retry = 2
sms-resend-retry = 120

this means, kannel tries only two time and then discards the SMS.


No. You've messed the things with this parameter.
In case when kannel can not deliver the message to the SMSC (can not
reach the SMSC because of network problem for example)
or the bearerbox can not deliver the message to the GSM modem or phone
connected to your box (bad config, init string or so), the failed
messages are queued for later delivery (you get reply message "3:
Queued for later delivery" if you use http interface to send the
messages).
The sms-resend-freq defines the frequency in seconds when kannel will
retry to send these queued messages which were not delivered to the
SMSC (defaults to  60 seconds) and the sms-resend-retry defines how
many times it will retry for each messages (defaults to -1 which means
unlimited number of retries)
Don't touch these parameters if you don't really need them ;)

In your case the message is delivered to the SMSC and the recipient
can not be reached.
Check your logs to see if this dlr-status appears only for some mobile
numbers. If that is the case
you can call your mobile provider and ask them what's the problem with
these subscribers.


But my application is still showing "sending..." even the message has

been discarded.

I don't know how your application handles the message states I guess
you are reading
the message states from the dlr reports ;)
If that is so, showing "sending..." is ok.
If the message has arrived to the SMSC, message is not discarded until
you get delivery report for that.

Ask your self one question, do you really need to get a delivery
report when the SMSC queues the message?

From my personal experience, I worked  for a mobile operator, nobody

didn't use delivery statuses
different then message delivered / not delivered, but its your choice ;)

BR, Jovan


--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a



Re: missing report if message discarded..

2009-05-15 Thread Iain Dooley

Hi Beatrice,


Now I have to figure out how to get the discard-notification...

ideas?


Well, the way I figure this out is if the FAILED dlr comes back and it's 
the same as the validity period, then it's obviously failed due to an 
expired delivery period. If the message fails straight away it's failed 
for some other (and usually more problematic) reason.


My provider simply provides a FAILED dlr for expired messages.

Cheers,
Iain



Re: missing report if message discarded..

2009-05-15 Thread Iain Dooley

or switch to smpp?

On Fri, 15 May 2009, Beatrice Tamburrino wrote:


Well, apparently for EMI the validity parameter should be sent as a cgi - 
variable. (validity = 3 min ) I guess I have to synchronize the kannel boxes 
with the SMSC.. ahrrrgg...

Does anybody have some experience in that??

xox bea

 Original-Nachricht 

Datum: Fri, 15 May 2009 11:26:58 +0200
Von: Alejandro Guerrieri 
An: Beatrice Tamburrino 
CC: i...@workingsoftware.com.au, us...@vm1.kannel.org
Betreff: Re: missing report if message discarded..



I can confirm it works on SMPP, no idea on EMI.
Regards,

Alejandro

On Fri, May 15, 2009 at 11:19 AM, Beatrice Tamburrino
 wrote:


I'm using EMI... :)


 Original-Nachricht 

Datum: Fri, 15 May 2009 11:07:06 +0200
Von: "Beatrice Tamburrino" 
An: Iain Dooley 
CC: us...@vm1.kannel.org
Betreff: Re: missing report if message discarded..



so I guess I have to ask the provider..

by the way.. does kannel 1.4.1 support validityperiod? I just tested

it

and it doesn't seem to work? I set validityperiod = 2 and after

restarting

the MObile (after 5min) I still get the message, but i didn't get the

dlr

=

1??


 Original-Nachricht 

Datum: Fri, 15 May 2009 18:39:10 +1000 (EST)
Von: Iain Dooley 
An: Beatrice Tamburrino 
CC: us...@vm1.kannel.org
Betreff: Re: missing report if message discarded..



Hi Beatrice,


Now I have to figure out how to get the discard-notification...

ideas?


Well, the way I figure this out is if the FAILED dlr comes back and

it's

the same as the validity period, then it's obviously failed due to

an

expired delivery period. If the message fails straight away it's

failed

for some other (and usually more problematic) reason.

My provider simply provides a FAILED dlr for expired messages.

Cheers,
Iain


--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
Telefonanschluss für nur 17,95 Euro/mtl.!*
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate +
Telefonanschluss für nur 17,95 Euro/mtl.!*
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a




--
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a


Re: http authentication with the character '@' in the post-url

2009-05-31 Thread Iain Dooley

i think it's %40 :)

iain

On Mon, 1 Jun 2009, Low Weng Kin wrote:



Hi everyone,

I am currently configuring Kannel to receive sms. However, the server to 
receive my sms which is in my LAN require authentication to view the page.
Therefore I include the following line in my smsbox configuration.


group = sms-service
keyword = default
omit-empty = true
text = ""
post-url = 
"http://myusername:m...@ssword@192.168.0.31:80/IncomingSMS.aspx?phone=%p&text=%b";


My question is:

the password of the server contains a '@' character. How can I escape it?

Thank you in advance

_
See all the ways you can stay connected to friends and family
http://www.microsoft.com/windows/windowslive/default.aspx




Re: Right O.S for Kannel

2009-06-05 Thread Iain Dooley

i run kannel on freebsd 6.x and 7.x with no problems.

cheers
iain

On Fri, 5 Jun 2009, Alejandro Guerrieri wrote:


Without the intention of starting a flame war about "my distro is better
than yours", please add "in my opinion" to your statements ;)
There's a lot of people that will disagree with you (me included), though
I'll leave it at that, arguing about it here would be extremely off-topic.

Regards,

Alejandro

On Fri, Jun 5, 2009 at 10:44 AM, mugisha moses  wrote:


for servers, debian based linux distributions are the best. though
CentOs works fine depending on what you what to use it for

On 6/4/09, Donald Jackson  wrote:

CentOS is fine for Kannel, no problems.

2009/6/4 Suresh Vemparala 


Hi,

Can i use CentO.S 5.2 for production ?? if not pls suggest me a perfect
O.S

Thanks in advance,
Suresh Vemparala






--
Donald Jackson
http://www.ddj.co.za/
donaldjster(a)gmail.com




--

Mugisha Moses
P.O. Box 1420 Kampala, Uganda
http://appfrica.org
skype name :  mossplix
twitter: @mugisha








Re: Right O.S for Kannel

2009-06-05 Thread Iain Dooley

hi suresh, just install it from ports:

whereis kannel
cd /usr/ports/KANNELDIR
sudo make install clean

configuration instructions:

http://www.kannel.org/userguide/

cheers
iain

On Fri, 5 Jun 2009, Suresh Vemparala wrote:


That's cool. I have Free BSD 7.1. Pls send me the installation procedure
for Free BSD 7.1.

Thanx in advance
S

On Fri, 2009-06-05 at 19:55 +1000, Iain Dooley wrote:

i run kannel on freebsd 6.x and 7.x with no problems.

cheers
iain

On Fri, 5 Jun 2009, Alejandro Guerrieri wrote:


Without the intention of starting a flame war about "my distro is better
than yours", please add "in my opinion" to your statements ;)
There's a lot of people that will disagree with you (me included), though
I'll leave it at that, arguing about it here would be extremely off-topic.

Regards,

Alejandro

On Fri, Jun 5, 2009 at 10:44 AM, mugisha moses  wrote:


for servers, debian based linux distributions are the best. though
CentOs works fine depending on what you what to use it for

On 6/4/09, Donald Jackson  wrote:

CentOS is fine for Kannel, no problems.

2009/6/4 Suresh Vemparala 


Hi,

Can i use CentO.S 5.2 for production ?? if not pls suggest me a perfect
O.S

Thanks in advance,
Suresh Vemparala






--
Donald Jackson
http://www.ddj.co.za/
donaldjster(a)gmail.com




--

Mugisha Moses
P.O. Box 1420 Kampala, Uganda
http://appfrica.org
skype name :  mossplix
twitter: @mugisha













registered delivery

2009-06-11 Thread Iain Dooley

hi there,

i've just received a report back from my aggregator that some of my 
requests are coming through with "registered_delivery=0" in them which is 
(alledgedly) causing droppage of large numbers of DLR messages.


i can't see anything about this in the userguide and what's most strange 
is that i've changed nothing in my setup recently that would have caused 
this to start happening (perhaps the aggregator changed something? who 
knows).


anyway, has anyone dealt with this parameter before?

cheers
iain



registered_delivery - clarification

2009-06-11 Thread Iain Dooley
hi all, i received some clarification back from the carrier: it was only 
the first of a multipart message that got registered_delivery = 1, then 
any subsequent parts of the multipart message had registered_delivery = 0. 
this seems pretty sensible seeing as, from my perspective, a concatenated 
message is really only 1 message.


cheers
iain



Re: registered_delivery - clarification

2009-06-11 Thread Iain Dooley

Hi Alejandro,


present.
Assuming that you're in fact setting those parameters, I see your point. I'm
not sure what the regular behaviour should be, when a message is being split
by kannel?

Let's analyze the facts further:

I assume the behaviour now is only to set registered_delivery = 1 on the
first part of the split message, and subsequent parts get set to zero. This
causes kannel to only care about the first part of the message regarding
dlrs.


Yes, this appears to be the behaviour currently.


On the other hand, if all parts go as registered_delivery = 1, a dlr entry
for all those parts would be needed (to match the incoming dlr later). Those
dlr entries would share the same dlr-url, thus causing kannel to hit the
same url again and again with confusing results (e.g., a "delivered" entry
after a permanent "failed" on the same "id").

So, a possible solution would be to modify kannel to handle two extra
parameters on the dlr-url:

* part number
* number of parts

That way, the dlr-url's would have different part numbers (and you would
know how many parts to expect), so your application layer would know where a
message was completely delivered.

I can think of an alternate approach where kannel holds hitting the dlr-url
until all parts have arrived, but since there's so many possible
intermediate statuses (that could happen on each separate parta at the same
time) and the process itself it's asynchronous by nature... I don't see it
like a viable solution.

Opinions?


From the perspective of someone implementing an application that sits on 
top of kannel, certainly the desired behaviour is that multipart messages 
should just behave like single part messages, which is how it operates 
now.


The only problem is that if the first part gets delivered, and subsequent 
parts do not get delivered, and the SMSc behaves in such a way that they 
treat each individual message part as it's own identity that should either 
receive a DLR or not based on the registered_delivery parameter, that we 
could get the impression that a multipart message has been successfully 
delivered when in fact delivery of all parts except the initial message 
failed.


One course of action that occurs to me as viable at least where mysql is 
being used as DLR storage, is that you have 2 tables: 1 for message and 
one for message part. The dlr-url is stored in the message table, and 
these have a 1-to-many relationship.


The DLRs received from the SMSc should operate on the message_part table. 
Once all message parts are marked as finalised the dlr-url is hit. If any 
part of the message failed the status should be FAIL (alternatively we 
could include a new status PARTIAL FAIL).


This seems desirable to me because otherwise you're at the mercy of the 
SMSc behaving sensibly which will not always be the case.


Cheers,
Iain


Alejandro


On Fri, Jun 12, 2009 at 7:28 AM, Iain Dooley wrote:


hi all, i received some clarification back from the carrier: it was only
the first of a multipart message that got registered_delivery = 1, then any
subsequent parts of the multipart message had registered_delivery = 0. this
seems pretty sensible seeing as, from my perspective, a concatenated message
is really only 1 message.

cheers
iain








Re: registered_delivery - clarification

2009-06-11 Thread Iain Dooley
I should add to my last email that I think that all messages (even single 
part messages) should have entries in both message and message_part; ie. 
the system treats a single part message as a special kind of multipart 
message rather than the other way around.


cheers
iain

On Fri, 12 Jun 2009, Alejandro Guerrieri wrote:


registered_delivery gets set to nonzero when dlr-mask and dlr-url are
present.
Assuming that you're in fact setting those parameters, I see your point. I'm
not sure what the regular behaviour should be, when a message is being split
by kannel?

Let's analyze the facts further:

I assume the behaviour now is only to set registered_delivery = 1 on the
first part of the split message, and subsequent parts get set to zero. This
causes kannel to only care about the first part of the message regarding
dlrs.

On the other hand, if all parts go as registered_delivery = 1, a dlr entry
for all those parts would be needed (to match the incoming dlr later). Those
dlr entries would share the same dlr-url, thus causing kannel to hit the
same url again and again with confusing results (e.g., a "delivered" entry
after a permanent "failed" on the same "id").

So, a possible solution would be to modify kannel to handle two extra
parameters on the dlr-url:

* part number
* number of parts

That way, the dlr-url's would have different part numbers (and you would
know how many parts to expect), so your application layer would know where a
message was completely delivered.

I can think of an alternate approach where kannel holds hitting the dlr-url
until all parts have arrived, but since there's so many possible
intermediate statuses (that could happen on each separate parta at the same
time) and the process itself it's asynchronous by nature... I don't see it
like a viable solution.

Opinions?

Alejandro


On Fri, Jun 12, 2009 at 7:28 AM, Iain Dooley wrote:


hi all, i received some clarification back from the carrier: it was only
the first of a multipart message that got registered_delivery = 1, then any
subsequent parts of the multipart message had registered_delivery = 0. this
seems pretty sensible seeing as, from my perspective, a concatenated message
is really only 1 message.

cheers
iain








load problems

2009-06-17 Thread Iain Dooley

hi all,

i have two problems that i'm hoping someone will be able to help me 
investigate:


1) the other day during a period of heavy activity, kannel died and was 
unable to be restarted by daemontools (which i use to monitor kannel and 
restart if it happens to die - usually works fine). however if i 
de-activated daemontools then i was able to start kannel myself from the 
command line. there was nothing appearing in the log files to indicate 
what the error preventing restart may have been. i also can't figure out 
why it would have died; i have my logrotate set to rotate when the logfile 
reaches a certain size. is it possible that a logrotate event being 
triggered and sending a hangup signal to the bearerbox pid file during a 
period of heavy activity could have caused it to die for some reason?


2) i've recently noticed a tremendous increase in dropped DLR messages. 
i've received a report from my aggregator which clearly shows that my 
kannel install is acknowledging almost all DLR messages that are being 
submitted back by my aggregator (see below). I ran a PHP script which 
looped through 10,000 socket connections to write data to my server that 
holds the DLR URL, and it ran in about 6 seconds without dropping any (the 
DLR script on my server simply writes the information to a file for later 
processing by a daemon which writes the information to the database, so as 
to avoid the potential for high load to affect other areas of operation). 
so it appears that, somehow, DLR messages are being dropped between my 
kannel server and the web server received the DLR messages; how is that 
possible? is there some way i can find out if that is what's happening?


here are the reports from the aggregator indicating that we're 
acknowledging the majority of DLR messages correctly:


FIRST SMPP SERVER:
less 2009-06-16.txt | grep -ai 'submit_sm,' | wc -l
4163

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:ACKED' | wc 
-l

4225

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:FAILED' | wc 
-l

683

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:DELIVRD' | 
wc -l

3497

less 2009-06-16.txt | grep -ai 'deliver_sm_resp' | wc -l
8444



SECOND SMPP SERVER:
less 2009-06-16.txt | grep -ai 'submit_sm,' | wc -l
4251

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:ACKED' | wc 
-l

4176

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:FAILED' | wc 
-l

629

less 2009-06-16.txt | grep -ai 'deliver_sm,' | grep -ai 'stat:DELIVRD' | 
wc -l

3519

less 2009-06-16.txt | grep -ai 'deliver_sm_resp' | wc -l
8401

cheers
iain



Re: how to start kannel as a deamon?

2009-07-16 Thread Iain Dooley

I use daemontools

On Thu, 16 Jul 2009, FADILI Hanae wrote:


Hi,

I searched for the list but i didn't find some examples. I found on the web 
some script examples for bearerbox+smsbox but not for bearerbox+wapbox.


Could someone send me an init script for starting the wapbox automatically 
please?


Hanae

Alvaro Cornejo  a écrit :


You need an init script

There are some examples in the source code. Search the list, there are
several examples.

the init script has to be copied to /etc/rc.d/init.d (fior redhat) or
into similar dir on other distros. also you need to tell your os to
start it at boot with something like #chkconfig FileName on

Regards

Alvaro
|-|
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 Thu, Jul 9, 2009 at 2:24 AM, FADILI  Hanae 
wrote:

Hi,

configue --enable-start-stop-daemon just allows kannel to start as a 
daemon

independently from the terminal. But i'm searching if kannel can start by
itself when the PC starts...
I'm not good in linux, it's the first time i'm working with it so i don't
know which script to use and how to use it...

Thank you for the help:)


Nikos Balkanas  a écrit :


Hi,

That + you might try:

configure --enable_start_stop_daemon

BR,
Nikos
 - Original Message -
 From: Alejandro Guerrieri
 To: FADILI Hanae
 Cc: us...@vm1.kannel.org
 Sent: Wednesday, July 08, 2009 5:01 PM
 Subject: Re: how to start kannel as a deamon?


 You need an init script for that, it's not kannel's fault.


 There's some examples lying around, google a little bit for one  for 
your

particular linux distro.


 Regards,


 Alejandro


 On Wed, Jul 8, 2009 at 3:54 PM, FADILI Hanae 
 

wrote:


   Thank you but I used it. it just started kannel as a deamon
 independatly from a terminal.
   I want to know if there is a solution that makes kannel start 
 directly

when the pc starts, without a command line?

   Alejandro Guerrieri  a écrit :



     --daemonize rings any bells? ;)
     Please read the userguide again and check that part.

     Regards,

     Alejandro

     On Wed, Jul 8, 2009 at 3:31 PM, FADILI Hanae
wrote:


       Hi,

       I've instaled kannel (bearerbox+wapbox). It works well as a  wap
proxy. but
       i have to start it with the command lines
       ./usr/local/sbin/bearerbox kannel.conf
       .:usr/local/sbin/wapbox kannel.conf

       I want to know if there is a solution to start kannel as a 
 deamon?

I need
       it o start when I start the PC? is it possible?

       I read the user guide but i didn't really understand.

       Regards

       
       This message was sent using IMP, the Internet Messaging Program.









   
   This message was sent using IMP, the Internet Messaging Program.









This message was sent using IMP, the Internet Messaging Program.











This message was sent using IMP, the Internet Messaging Program.



Re: Where to start

2009-07-17 Thread Iain Dooley

Hi Michael,

Trey googling for SMPP providers in your are.

Cheers,
Iain

On Fri, 17 Jul 2009, Michael A. Lewis wrote:


I am new to Kannel and I am not sure where to start. Briefly, I want to
be able to send SMS messages under program control (PHP on a Linux
server) to any mobile phone in the world. I would also like to receive
SMS messages from mobile phones. To this end I have a Linux box (set up
with Fedora 9) and Kannel. I have successfully compiled, started and
tested the installation (using testsmsc). The problem is where do I go
from here?



Specifically, how do I define the smsc groups for the various mobile
providers (or even do I)? Where do I get the login information? Etc. Do
I even need to?



Do I require an GSM modem? If so, I have an Option GT MAX 3.6 express
aircard with an AT&T sim with an unlimited text plan. Everything I read
about using the modem seems to be that they are limited in speed.
Therefore if there is another way (such as using an internet connection
to the SMS Centers, I would prefer to use that. But I don't know how to
find the connection/configuration information. I have been googling for
the last several hours and have been unable to find the information.



I would be most grateful for a roadmap or any information to move me
further forward.



Thanks,



Michael








Re: how to start kannel as a deamon?

2009-07-21 Thread Iain Dooley

Hi Fadili,

It's best to reply to the whole list. daemontools was first developed for 
Linux and has been ported to other *NIX platforms:


http://cr.yp.to/daemontools.html

Cheers,
Iain



On Thu, 16 Jul 2009, FADILI Hanae wrote:


But i'm working on Linux...
Iain Dooley  a écrit :


I use daemontools

On Thu, 16 Jul 2009, FADILI Hanae wrote:


Hi,

I searched for the list but i didn't find some examples. I found on  the 
web some script examples for bearerbox+smsbox but not for 
bearerbox+wapbox.


Could someone send me an init script for starting the wapbox 
automatically please?


Hanae

Alvaro Cornejo  a écrit :


You need an init script

There are some examples in the source code. Search the list, there are
several examples.

the init script has to be copied to /etc/rc.d/init.d (fior redhat) or
into similar dir on other distros. also you need to tell your os to
start it at boot with something like #chkconfig FileName on

Regards

Alvaro
|-|
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 Thu, Jul 9, 2009 at 2:24 AM, FADILI   Hanae 
wrote:

Hi,

configue --enable-start-stop-daemon just allows kannel to start  as a 
daemon
independently from the terminal. But i'm searching if kannel can start 
by

itself when the PC starts...
I'm not good in linux, it's the first time i'm working with it so i 
don't

know which script to use and how to use it...

Thank you for the help:)


Nikos Balkanas  a écrit :


Hi,

That + you might try:

configure --enable_start_stop_daemon

BR,
Nikos
 - Original Message -
 From: Alejandro Guerrieri
 To: FADILI Hanae
 Cc: us...@vm1.kannel.org
 Sent: Wednesday, July 08, 2009 5:01 PM
 Subject: Re: how to start kannel as a deamon?


 You need an init script for that, it's not kannel's fault.


 There's some examples lying around, google a little bit for one  for 
your

particular linux distro.


 Regards,


 Alejandro


 On Wed, Jul 8, 2009 at 3:54 PM, FADILI Hanae 
 

wrote:


   Thank you but I used it. it just started kannel as a deamon
 independatly from a terminal.
   I want to know if there is a solution that makes kannel start 
 directly

when the pc starts, without a command line?

   Alejandro Guerrieri  a écrit :



     --daemonize rings any bells? ;)
     Please read the userguide again and check that part.

     Regards,

     Alejandro

     On Wed, Jul 8, 2009 at 3:31 PM, FADILI Hanae
wrote:


       Hi,

       I've instaled kannel (bearerbox+wapbox). It works well as a  wap
proxy. but
       i have to start it with the command lines
       ./usr/local/sbin/bearerbox kannel.conf
       .:usr/local/sbin/wapbox kannel.conf

       I want to know if there is a solution to start kannel as a 
 deamon?

I need
       it o start when I start the PC? is it possible?

       I read the user guide but i didn't really understand.

       Regards

       
       This message was sent using IMP, the Internet Messaging Program.









   
   This message was sent using IMP, the Internet Messaging Program.









This message was sent using IMP, the Internet Messaging Program.











This message was sent using IMP, the Internet Messaging Program.







This message was sent using IMP, the Internet Messaging Program.



Re: What is the operational benefit of DLR storage?

2009-08-20 Thread Iain Dooley

Hi Stuart,

There is always some form of DLR storage in Kannel. The choice is whether 
you use internal or external storage. The only difference here is that, 
when you restart the Kannel process, you lose all internal DLR storage 
whereas if you use external storage it persists across separate process 
executions.


As the developer you would generally not interact with the DLR storage be 
it internal or external. I'm surprised you don't request DLR's for all 
messages though!


Cheers,
Iain

On Fri, 21 Aug 2009, Stuart Beck wrote:

I'd like to know what is the operational benefit of using DLR storage within 
Kannel?


We are currently using an external postgresql store for DLRs and once the 
data is stored we are not doing anything with it.
We use a single kannel instance most of the time so there is no requirement 
to have DLR's stored for other instances to pick up.
Our application may or may not request DLR's from the carriers as we desire 
and processes them internally when they come in so the kannel dlr storage is 
from this perspective a wasted effort on our part.


Is there any operational reason internal to kannel that I might want to have 
DLR storage enabled?
If I disabled dlr storage / processing, would this impact the DLR messages 
getting to our application to be processed?


--
Stuart Beck
---
Systems Administrator
m.Net Corporation

No one knows Mobile like m.Net
Tel. No. +61 8 8210 2049

Web: http://www.mnetcorporation.com

Try our new online mobile marketing system
www.campaignmobile.com

ADMA MMA Promotional Campaign of the Year, 2008 Winner .
BRW. FAST 100 Awards, 2008.  Number 5.
Deloitte Technology Fast 50 Australia 2008 Winner.







Re: What is the operational benefit of DLR storage?

2009-08-20 Thread Iain Dooley

Hi Stuart,

Basically you won't be able to retrieve those DLRs. ie. you'll lose the 
ability to report on any messages who's DLRs were still inn the queue when 
you restarted Kannel.


Cheers,
Iain

On Fri, 21 Aug 2009, Stuart Beck wrote:


Hi Ian,

I'm happy with the internal / external DLR storage 
differences. As it stands we currently have 201810 DLRs 
stored in the postgres database and most of these references 
are out of date and so will not be cleaned up so I'm trying 
to work out if there is a compelling reason for me to 
continue using the external DLR storage.


I suppose what I am trying to ask is, what impact will there 
be on message processing by kannel if I configure the system 
to use internal DLR storage instead of external.
As you mention, during standard operations there will be no 
impact (message sent, dlr processed, all ok), however what 
,if any, impact will there be to message processing / retries 
/ ??? when the dlr storage is cleaned due to a restart.


Iain Dooley wrote:

Hi Stuart,

There is always some form of DLR storage in Kannel. The 
choice is whether you use internal or external storage. The 
only difference here is that, when you restart the Kannel 
process, you lose all internal DLR storage whereas if you 
use external storage it persists across separate process 
executions.


As the developer you would generally not interact with the 
DLR storage be it internal or external. I'm surprised you 
don't request DLR's for all messages though!


Cheers,
Iain

On Fri, 21 Aug 2009, Stuart Beck wrote:

I'd like to know what is the operational benefit of using 
DLR storage within Kannel?


We are currently using an external postgresql store for 
DLRs and once the data is stored we are not doing anything 
with it.
We use a single kannel instance most of the time so there 
is no requirement to have DLR's stored for other instances 
to pick up.
Our application may or may not request DLR's from the 
carriers as we desire and processes them internally when 
they come in so the kannel dlr storage is from this 
perspective a wasted effort on our part.


Is there any operational reason internal to kannel that I 
might want to have DLR storage enabled?
If I disabled dlr storage / processing, would this impact 
the DLR messages getting to our application to be 
processed?


--
Stuart Beck
---
Systems Administrator
m.Net Corporation

No one knows Mobile like m.Net
Tel. No. +61 8 8210 2049

Web: http://www.mnetcorporation.com

Try our new online mobile marketing system
www.campaignmobile.com

ADMA MMA Promotional Campaign of the Year, 2008 Winner .
BRW. FAST 100 Awards, 2008. Number 5.
Deloitte Technology Fast 50 Australia 2008 Winner.








--
Stuart Beck
---
Systems Administrator
m.Net Corporation

No one knows Mobile like m.Net
Tel. No. +61 8 8210 2049

Web: http://www.mnetcorporation.com

Try our new online mobile marketing system
www.campaignmobile.com

ADMA MMA Promotional Campaign of the Year, 2008 Winner .
BRW. FAST 100 Awards, 2008.  Number 5.
Deloitte Technology Fast 50 Australia 2008 Winner.







Re: Throttling

2009-09-11 Thread Iain Dooley

hahaha yes ... well ... this is FREE software ... community supported.

i don't think i'd react particularly well if even my best and highest 
paying client talked to me like that.


but because your abruptness may be due to a language barrier rather than 
you being necessarily a rude person i shall suggest you go here:


http://kannel.org/download/1.4.3/userguide-1.4.3/userguide.html

and search for the word "throughput"

cheers
iain

On Fri, 11 Sep 2009, Nikos Balkanas wrote:


Yes, master. Immediately. As soon as i gaze in my crystal sphere :-)

Nikos
 - Original Message -
 From: sapna singh
 To: users@kannel.org ; users-requ...@kannel.org
 Sent: Friday, September 11, 2009 3:39 PM
 Subject: Throttling


 Dear Team,

 I'm using kannel-1.4.3 for SMPP connectivity.



 I'm facing throttling error last 2 month.
 Plz resolve my issue.

 URGENT.


 --
 Regards
 Sapna





Re: How to set the registered_delivery

2009-10-09 Thread Iain Dooley

Are you also setting the dlr-url parameter?

Cheers,
Iain

On Sat, 10 Oct 2009, Abe mobME wrote:


aa

Hi,
 I need to set the registered-delivery to x x x 1 x x x x  as specified by
the operator. Im currently using dlr-mask 31, but still the
registered-delivery has not changed. Please provide some help here.
Thanks

Regards
Abe





Re: How to set the registered_delivery

2009-10-09 Thread Iain Dooley



kannel-url= "'
http://localhost:14001/cgi-bin/sendsms?username=%s&password=%s&to=%s&text=%s&smsc=SampleSMPP&from=mobme&dlr-mask=31&pid=64&validity=1440&dlr-url=%s
"

dlr-url="http://localhost:4568/?log_id=%s&dlr_value=%%d&dlr_reply=%%A";


i'm not sure where this dlr-url and kannel-url are being defined ... but 
when i do an HTTP request to kannel, i include the full dlr-url in my 
request as a urlencoded parameter. so for example i use PHP:


$dlr_url = 'http://myhost.com/dlr.php?status=%s&id=MYID';
$request = $kannel_host.$other_params.'&dlr-url='.urlencode($dlr_url);

so the dlr-url passed in the HTTP request to kannel has the entire dlr-url 
in it. in your request above you're only putting dlr-url=%s which looks 
incorrect to me.


cheers
iain


r
Regards
Abe
On Sat, Oct 10, 2009 at 8:53 AM, Iain Dooley wrote:


Are you also setting the dlr-url parameter?

Cheers,
Iain


On Sat, 10 Oct 2009, Abe mobME wrote:

 aa


Hi,
 I need to set the registered-delivery to x x x 1 x x x x  as specified by
the operator. Im currently using dlr-mask 31, but still the
registered-delivery has not changed. Please provide some help here.
Thanks

Regards
Abe








Re: [URGENT]Connection Timeout to My Kannel

2009-11-14 Thread Iain Dooley
I need to solve this problem. Currently my Kannel is 
servicing a huge traffic (more than 100 requests per second). 
My telco complains that they receive many connection timeout. 
Let's suppose there is no network issue here. Is there any 
options to increase Kannel's thread? So it can serves more 
requests? TIA.


you can add more machinery. bearerbox and smsblox can run on seperate 
servers.


i find it hard to believ that 100 requests per second is causing kannel to 
choke though ...


cheers
iain



Re: I just uploaded a photo that I want you to see!

2009-12-08 Thread Iain Dooley



This is shameless promotion for mydailyflog. This list is not a place to push 
products or sites unrelated to SMS and kannel.


i don't think meenakshi thakur is doing this intentionally. my guess is, 
the kannel users list is in his gmail contacts, and he gave his gmail 
login details to my daily whatever, which is now spamming us 
automatically.


cheers
iain


BR,
Nikos
- Original Message - From: "meenakshi thakur" 


To: 
Sent: Wednesday, December 09, 2009 8:35 AM
Subject: I just uploaded a photo that I want you to see!



Hello!

I just uploaded a photo on meenaxithakur's DailyFlog page that I want you 
to see.


Please come and see: 
http://www.mydailyflog.com/go/invite_register/meenaxithakur/55389950&stc=18



Thanks!

meenakshi thakur



Got a digital camera?

MyDailyFlog is a personal photo-blogging space where you can easily post
your latest and greatest photos, and share them with your friends and 
family.


Create your own DailyFlog at www.MyDailyFlog.com





...
Unsubscribe: to opt out of further invitations from your friends to see 
their DailyFlogs, please click below:


http://www.mydailyflog.com/go/system/euns=us...@kannel.org&md5=d71da0100e4ca7b2c19a4ba47bd6c028&bl=18

Please do not reply directly to this email. Questions? Contact us -
http://www.mydailyflog.com/go/contact_us

MyDailyFlog, Refriendz Ltd. PO BOX 1184, Luton, Bedfordshire, LU1 9AT.










Re: Telnet device

2010-02-17 Thread Iain Dooley
Interesting side note, if you're using vim and need to generate ^M, you 
don't type ^ and then M, ie. shift + 6, then shift + M, you have to type:


ctrl + v ctrl + m

then you see ^M ... you can also type ctrl + v ctrl + enter which produces 
^@


cheers
iain

On Thu, 18 Feb 2010, Nikos Balkanas wrote:


Please post configuration.

BR,
Nikos
- Original Message - From: "info.ubichip" 
To: "'Alvaro Cornejo'" ; 
Sent: Thursday, February 18, 2010 8:07 AM
Subject: RE: Telnet device


Hello all,

Just to make an update, I still got my two issues. It appears the modem
generated a carriage return before the login string 'username:', it should
disturb the login process. If someone got any clue or idea to make
modification ?

The ^M looks not working as well to insert a carriage return in the
different init-string. Does anyone have been got similar need to integrate
with telnet device or so ?

Thanks in advance

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of info.ubichip
Sent: mardi 16 février 2010 22:00
To: 'Alvaro Cornejo'
Cc: users@kannel.org
Subject: RE: Telnet device

Yes, I tried it but it looks I got issue before because the login/password
is not filled in the protocol. I was wondering if something is not well
implemented in the telnet dialogue. Do you have any clue on this before ?


2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device
2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to <192.168.1.121>
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened.
Telnet mode = 1
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: --> ^M
2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: <-- username: AT
2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- password: **
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- bad username


The 'username:' string is not recognize, I took a look on hte source code in
smsc_at.c but there is nothing that could explain that.




-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 février 2010 20:57
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

Did you tried "^M"  carret char plus M char ?? This is a sort of character
representation of a carriage return...

Regards

Alvaro

On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip  wrote:

In this modem, you could have both in the same telnet session, you
just have to tell to the modem to go in the AT mode, which is done by
entering the command 'module' and then we are in full AT command.

So I got two issues :
- first to tell kannel to connect to it with the correct
login/password which looks to be not the cas
- second, I have to tell the modem to go in the AT mode, which
I assume I could do it by passing the command in the init-string of
the modem (as soon as the init-string accept the carriage return).

If you have any tricks to help me for the first point ?

Thanks in advance

-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 février 2010 11:02
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

I don´t know your modem, but in the cases I know, port 23 is for
managing the modem configs and such.

For using AT interface they usually use a different port. with the
same Telnet protocol... something like Telnet host:2100

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 Tue, Feb 16, 2010 at 1:06 PM, info.ubichip 

wrote:

Hello,

Does someone got similar issue ?

Regards


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
Behalf Of info.ubichip
Sent: lundi 15 février 2010 13:49
To: users@kannel.org
Subject: Using Portech modem

Hello All,

I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3
version, I'm able to send basic sms by hand using telnet as the
following

example :


Telnet 192.168.1.121

username:voip
password:
User level = admin

Command : logout,module,module1,module2

module

Getting module 1..
Got!! Press 'ctrl-x' to release module 1.

at+cmgf=1
OK
At+cmgs="1122334455"

test

+CMGS:30


So I make a configuration in kannel as follow :
group = smsc
smsc = at
smsc-id = portech
allowed-smsc-id = portech
log-level = 0
log-file = "/var/log/kannel/portech.log"
device = telnet
host = 192.168.1.121
port = 23
login-prompt = "username:"
password-prompt = "password:"
smsc-username = "voip"
smsc-password = "1234"
modemtype = portech
validityperiod = 172
keepalive = 10
my-number = 0012345678
sim-buffer

Re: Telnet device

2010-02-18 Thread Iain Dooley

vim 4 eva!

On Thu, 18 Feb 2010, Nikos Balkanas wrote:

Yeap. That was my original observation to Alvaro who originally proposed it. 
However, this is a modem, not vim, and Alvaro is one of the most experienced 
with it in the group ;-)


Coincidence or just staying with tradition in vim?

BR,
Nikos
- Original Message - From: "Iain Dooley" 


To: "Nikos Balkanas" 
Cc: "info.ubichip" ; 
Sent: Thursday, February 18, 2010 8:46 AM
Subject: Re: Telnet device


Interesting side note, if you're using vim and need to generate ^M, you
don't type ^ and then M, ie. shift + 6, then shift + M, you have to type:

ctrl + v ctrl + m

then you see ^M ... you can also type ctrl + v ctrl + enter which produces
^@

cheers
iain

On Thu, 18 Feb 2010, Nikos Balkanas wrote:


Please post configuration.

BR,
Nikos
- Original Message - From: "info.ubichip" 
To: "'Alvaro Cornejo'" ; 
Sent: Thursday, February 18, 2010 8:07 AM
Subject: RE: Telnet device


Hello all,

Just to make an update, I still got my two issues. It appears the modem
generated a carriage return before the login string 'username:', it should
disturb the login process. If someone got any clue or idea to make
modification ?

The ^M looks not working as well to insert a carriage return in the
different init-string. Does anyone have been got similar need to integrate
with telnet device or so ?

Thanks in advance

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of info.ubichip
Sent: mardi 16 février 2010 22:00
To: 'Alvaro Cornejo'
Cc: users@kannel.org
Subject: RE: Telnet device

Yes, I tried it but it looks I got issue before because the login/password
is not filled in the protocol. I was wondering if something is not well
implemented in the telnet dialogue. Do you have any clue on this before ?


2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device
2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to <192.168.1.121>
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened.
Telnet mode = 1
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: --> ^M
2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: <-- username: AT
2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- password: **
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- bad username


The 'username:' string is not recognize, I took a look on hte source code 
in

smsc_at.c but there is nothing that could explain that.




-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 février 2010 20:57
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

Did you tried "^M"  carret char plus M char ?? This is a sort of character
representation of a carriage return...

Regards

Alvaro

On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip  wrote:

In this modem, you could have both in the same telnet session, you
just have to tell to the modem to go in the AT mode, which is done by
entering the command 'module' and then we are in full AT command.

So I got two issues :
- first to tell kannel to connect to it with the correct
login/password which looks to be not the cas
- second, I have to tell the modem to go in the AT mode, which
I assume I could do it by passing the command in the init-string of
the modem (as soon as the init-string accept the carriage return).

If you have any tricks to help me for the first point ?

Thanks in advance

-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 février 2010 11:02
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

I don´t know your modem, but in the cases I know, port 23 is for
managing the modem configs and such.

For using AT interface they usually use a different port. with the
same Telnet protocol... something like Telnet host:2100

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 Tue, Feb 16, 2010 at 1:06 PM, info.ubichip 

wrote:

Hello,

Does someone got similar issue ?

Regards


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
Behalf Of info.ubichip
Sent: lundi 15 février 2010 13:49
To: users@kannel.org
Subject: Using Portech modem

Hello All,

I would like to use a portech GSM gateway MV-370 on a kannel 1.4.3
version, I'm able to send basic sms by hand using telnet as the
following

example :


Telnet 192.168.1.121

Re: Telnet device

2010-02-18 Thread Iain Dooley
actually, on reading this full thread (i had only glanced at the most 
recent message before) it looks to me like the portech code is using 
different line endings ... like it's programmed to use only a dos line 
ending or something.


interesting experiment: compile kannel on windows and see if you get the 
same problem.


cheers
iain

PS: KLS electronic in china make an excellent and cost effect usb/power 
over usb unit. i found them on alibaba.com and have used several of their 
units both directly from custom code i wrote using PHP and from kannel on 
freebsd (haven't tried with other OS')


On Thu, 18 Feb 2010, Iain Dooley wrote:


vim 4 eva!

On Thu, 18 Feb 2010, Nikos Balkanas wrote:

Yeap. That was my original observation to Alvaro who originally proposed 
it. However, this is a modem, not vim, and Alvaro is one of the most 
experienced with it in the group ;-)


Coincidence or just staying with tradition in vim?

BR,
Nikos
- Original Message ----- From: "Iain Dooley" 


To: "Nikos Balkanas" 
Cc: "info.ubichip" ; 
Sent: Thursday, February 18, 2010 8:46 AM
Subject: Re: Telnet device


Interesting side note, if you're using vim and need to generate ^M, you
don't type ^ and then M, ie. shift + 6, then shift + M, you have to type:

ctrl + v ctrl + m

then you see ^M ... you can also type ctrl + v ctrl + enter which produces
^@

cheers
iain

On Thu, 18 Feb 2010, Nikos Balkanas wrote:


Please post configuration.

BR,
Nikos
- Original Message - From: "info.ubichip" 
To: "'Alvaro Cornejo'" ; 
Sent: Thursday, February 18, 2010 8:07 AM
Subject: RE: Telnet device


Hello all,

Just to make an update, I still got my two issues. It appears the modem
generated a carriage return before the login string 'username:', it should
disturb the login process. If someone got any clue or idea to make
modification ?

The ^M looks not working as well to insert a carriage return in the
different init-string. Does anyone have been got similar need to integrate
with telnet device or so ?

Thanks in advance

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of info.ubichip
Sent: mardi 16 f?vrier 2010 22:00
To: 'Alvaro Cornejo'
Cc: users@kannel.org
Subject: RE: Telnet device

Yes, I tried it but it looks I got issue before because the login/password
is not filled in the protocol. I was wondering if something is not well
implemented in the telnet dialogue. Do you have any clue on this before ?


2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device
2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to <192.168.1.121>
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened.
Telnet mode = 1
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: --> ^M
2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: <-- username: AT
2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- password: **
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- bad username


The 'username:' string is not recognize, I took a look on hte source code 
in

smsc_at.c but there is nothing that could explain that.




-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 f?vrier 2010 20:57
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

Did you tried "^M"  carret char plus M char ?? This is a sort of character
representation of a carriage return...

Regards

Alvaro

On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip  
wrote:

In this modem, you could have both in the same telnet session, you
just have to tell to the modem to go in the AT mode, which is done by
entering the command 'module' and then we are in full AT command.

So I got two issues :
- first to tell kannel to connect to it with the correct
login/password which looks to be not the cas
- second, I have to tell the modem to go in the AT mode, which
I assume I could do it by passing the command in the init-string of
the modem (as soon as the init-string accept the carriage return).

If you have any tricks to help me for the first point ?

Thanks in advance

-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 f?vrier 2010 11:02
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

I don?t know your modem, but in the cases I know, port 23 is for
managing the modem configs and such.

For using AT interface they usually use a different port. with the
same Telnet protocol... something like Telnet host:2100

Regards

|-
|--
--|
Env?e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel en el P

Re: Telnet device

2010-02-18 Thread Iain Dooley
well, my motivation there was if you open a DOS line ending file in NVI 
(not vim :) then you see ^M at the end of each line ... ie. if you take a 
UNIX line ending away from a DOS line ending, you see ^M? just a thought 
...


cheers
iain

On Thu, 18 Feb 2010, Nikos Balkanas wrote:

I dunno. If you actually see the logs, portech doesn't seem to send "^M"s 
back. Maybe just needs a line feed?  "^J"?


PS: Definitely Windows is not the way to go. Aside from using an inflexible 
lining scheme, they do not allow you to experiment with it.


Nikos
- Original Message - From: "Iain Dooley" 


To: "Nikos Balkanas" 
Cc: 
Sent: Thursday, February 18, 2010 10:09 AM
Subject: Re: Telnet device


actually, on reading this full thread (i had only glanced at the most
recent message before) it looks to me like the portech code is using
different line endings ... like it's programmed to use only a dos line
ending or something.

interesting experiment: compile kannel on windows and see if you get the
same problem.

cheers
iain

PS: KLS electronic in china make an excellent and cost effect usb/power
over usb unit. i found them on alibaba.com and have used several of their
units both directly from custom code i wrote using PHP and from kannel on
freebsd (haven't tried with other OS')

On Thu, 18 Feb 2010, Iain Dooley wrote:


vim 4 eva!

On Thu, 18 Feb 2010, Nikos Balkanas wrote:


Yeap. That was my original observation to Alvaro who originally proposed
it. However, this is a modem, not vim, and Alvaro is one of the most
experienced with it in the group ;-)

Coincidence or just staying with tradition in vim?

BR,
Nikos
- Original Message - From: "Iain Dooley"

To: "Nikos Balkanas" 
Cc: "info.ubichip" ; 
Sent: Thursday, February 18, 2010 8:46 AM
Subject: Re: Telnet device


Interesting side note, if you're using vim and need to generate ^M, you
don't type ^ and then M, ie. shift + 6, then shift + M, you have to type:

ctrl + v ctrl + m

then you see ^M ... you can also type ctrl + v ctrl + enter which produces
^@

cheers
iain

On Thu, 18 Feb 2010, Nikos Balkanas wrote:


Please post configuration.

BR,
Nikos
- Original Message - From: "info.ubichip" 
To: "'Alvaro Cornejo'" ; 
Sent: Thursday, February 18, 2010 8:07 AM
Subject: RE: Telnet device


Hello all,

Just to make an update, I still got my two issues. It appears the modem
generated a carriage return before the login string 'username:', it 
should

disturb the login process. If someone got any clue or idea to make
modification ?

The ^M looks not working as well to insert a carriage return in the
different init-string. Does anyone have been got similar need to 
integrate

with telnet device or so ?

Thanks in advance

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On 
Behalf

Of info.ubichip
Sent: mardi 16 fιvrier 2010 22:00
To: 'Alvaro Cornejo'
Cc: users@kannel.org
Subject: RE: Telnet device

Yes, I tried it but it looks I got issue before because the 
login/password

is not filled in the protocol. I was wondering if something is not well
implemented in the telnet dialogue. Do you have any clue on this before ?


2010-02-15 13:43:50 [32013] [8] INFO: AT2[portech]: opening device
2010-02-15 13:43:50 [32013] [8] DEBUG: Connecting to <192.168.1.121>
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: device opened.
Telnet mode = 1
2010-02-15 13:43:50 [32013] [8] DEBUG: AT2[portech]: --> ^M
2010-02-15 13:43:52 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:43:57 [32013] [8] DEBUG: AT2[portech]: <-- username: AT
2010-02-15 13:44:03 [32013] [8] DEBUG: AT2[portech]: --> AT^M
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- password: **
2010-02-15 13:44:08 [32013] [8] DEBUG: AT2[portech]: <-- bad username


The 'username:' string is not recognize, I took a look on hte source code
in
smsc_at.c but there is nothing that could explain that.




-Original Message-
From: Alvaro Cornejo [mailto:cornejo.alv...@gmail.com]
Sent: mardi 16 fιvrier 2010 20:57
To: info.ubichip
Cc: users@kannel.org
Subject: Re: Telnet device

Did you tried "^M"  carret char plus M char ?? This is a sort of 
character

representation of a carriage return...

Regards

Alvaro

On Tue, Feb 16, 2010 at 5:01 PM, info.ubichip 
wrote:

In this modem, you could have both in the same telnet session, you
just have to tell to the modem to go in the AT mode, which is done by
entering the command 'module' and then we are in full AT command.

So I got two issues :
- first to tell kannel to connect to it with the correct
login/password which looks to be not the cas
- second, I have to tell the modem to go in the AT mode, which
I assume I could do it by passing the command in the init-string of
the modem (as soon as the init-strin

RE: Help Needed

2010-02-18 Thread Iain Dooley
really, you're better off just finding an sms api supplier and focussing 
on building the rest of your application well. once you have a need for 
high volume bulk sms that is not being met by your supplier, think about 
kannel.


cheers
iain

On Thu, 18 Feb 2010, Abbas Qaizar wrote:


Hi All,
Ok. Thanks for your swift reply.

I will go for LINUX in that case but just let me know how to check the
compatibility of TELTONIKA GSM Modem  with Kannel ??? Or Should I use any
Mobile phone with USB cable as I don't have any SERIAL PORT in my computer.

Warmest Regards,

Abbas Qaizar

From: Nikos Balkanas [mailto:n...@amdtelecom.net]
Sent: Thursday, February 18, 2010 1:35 PM
To: Abbas Qaizar; users@kannel.org
Subject: Re: Help Needed

Hi,

I don't know if it will find it easier in windows. The only way to run it in

windows is through Cygwin - you have to download and install it. However,
cygwin is just as tricky as Linux, plus is slower (emulation) and less
stable. After you setup cygwin, just follow the installation instructions in

User's manual. They are the same for both Unix and Cygwin.

BR,
Nikos
- Original Message -
From: "Abbas Qaizar" 
To: 
Sent: Thursday, February 18, 2010 10:28 AM
Subject: Help Needed



February 18, 2010.

Dear All,

I am a newbie in a LINUX environment and learning it everyday through
tutorials. I know it would take some time so I have no complaints.
I intend to develop a SMS (sending and receiving) system for our community
members (around 2000 people). I have gone through the installation and
user
guides of KANNEL and have even installed it but I find it quite difficult
to
manage in a LINUX environment till I complete my tutorials.

Can someone advise me how to setup KANNEL in any WINDOWS OS ? Which type
of
Modem or Mobile phone can be used ? Has anyone used TELTONIKA brand of GSM
(USB Based) Modems in Kannel application because these are the only brand
easily available in our local market ?

Is there any step - by - step guidelines available from any list member
???

I would greatly appreciate a swift and positive reply from the members.

Have a nice day 

Regards

A NEWBIE









%T parameter

2011-05-19 Thread Iain Dooley

Hi All,

If I put the %T parameter into the DLR URL I get back a timestamp. The 
description in the users guide says "The date the message was sent" - does 
this mean that the %T parameter is the date the message was successfully 
delivered to the handset or is it just the date at which the SMSC received 
the send request.


Cheers,
Iain




Re: Wrong setting on Kannel Mailing List?

2011-08-21 Thread Iain Dooley
We've been through this before :) I think a few times (once in my memory 
but I'm a relative newbie).


Anyway, just reply all - people's mail clients will deduplicate the 
messages as they'll all have the same message id.


For example, Juan, you only received this once right?

Cheers,
Iain

On Sun, 21 Aug 2011, Juan Nin wrote:


The "good" or "not good" depends on each person...

There's always debate on this topic on every mailing-list, where some people 
claim one way is the "correct" or "better" one, and some people claim it's 
the other one, and each of them have their good reasons... Search on google 
and you'll find tons of topics on this matter, and you will be able to see 
the different opinions about it.


At the end of the day, it's the decision of the list owners, and I'm sure 
that they have already thought about this and that they won't change their 
mind.   :)


Regards.


On 8/21/11 7:54 AM, Milan P. Stanic wrote:

On Sun, 2011-08-21 at 18:10, Wendy William wrote:

When I do reply any Kannel mail then "To" field filled by sender, not by
users@kannel.org. This is not good since we must use Reply All that caused
double messages.

Check your e-mail client software and see if it have "reply to list" (or
something similar) option.

Kannel mailing lists works quite well with "normal" e-mail clients.








Re: Free Libya

2011-08-23 Thread Iain Dooley
Congratulations from the land downunder. I've been hearing so many 
horrible stories from Libya recently it's good to know you finally have 
some hope for peace.


On Tue, 23 Aug 2011, Benaiad wrote:


Dear Kannel Users,
I'm proud to announce that my country became free from the  control of the 
dictator Moammar Gaddaf.

I hope that I will be back to my VAS business very soon.


Regards
--
Abdulmnem Benaiad
Almontaha CTO
Tripoli-Libya
www.almontaha.ly
about.me




Re: Where did I save incoming messages?

2011-10-25 Thread Iain Dooley

Hi Chun Li,

Are you refering to "mysql storage" for DLRs? This is a temporary storage 
system for only deliver receipts.


The advantage is that you can restart your bearerbox process without 
losing any delivery receipts.


If you want to store the actual messages persistently then you need to 
specify a get-url parameter which will hand the SMS off to an application 
(something you need to write).


Cheers,
Iain

On Tue, 25 Oct 2011, Chun Li wrote:



Hi team,

I got confused about where I saved my incoming messages. It's supposed to be
mysql database. But nothing found in mysql when Kannel knows new message
received. It seems Kannel does talk to mysql because when I send messages
they are inserted into mysql. Anyone can share some ideas?

My configure file:

group = core
admin-port = 13070
smsbox-port = 13071
admin-password = a
status-password = a
log-file = "/home//SMSconf.log"
log-level = 0
store-type = file
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
http-proxy-host = "127.0.0.1"
http-proxy-port = 80
access-log = "//access.log"
store-location = "//kannel.store"
#store-location = "//etc/"
store-type = file
dlr-storage = mysql

group = mysql-connection
id = mydlr
host = localhost
username = root
password = a
database = dlr_db
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

group = modems
id = ZTE
name = "ZTE"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0;+CNMI=1,2,0,1,0;+CMGF=1"
init-string = "AT+CSCA="+6421600600""
detect-string = "ZTE INCORPORATED"
message-storage = "SM"
no-smsc = false

group = smsc
smsc = at
smsc-id = mlte
modemtype = auto
device= /dev/ttyUSB2
my-number = +6
sms-center = +606
log-level = 0
sim-buffering = false
allowed-prefix = "+6;+42;+6;1;02;;+"
reroute = no

group = smsbox
bearerbox-host = localhost
bearerbox-port = 13071
sendsms-port = 13073
log-file = "/h.log"
log-level=0

group = sms-service
keyword = default
#keyword-regex = .*
max-messages = 0
catch-all = true
omit-empty = true
accept-x-kannel-headers = false
get-url = "http://localhost/kannel/sendsms.php?mobile=%p&text=%a";

group = sendsms-user
username = a
password = a
concatenation= true
max-messages = 4

After I started bearerbox and smsbox, I sent a SMS to the GSM modem and got
log:


2011-10-26 15:30:45 [22704] [6] INFO: AT2[mlte]: AT SMSC successfully
opened.
2011-10-26 15:31:08 [22704] [5] INFO: Client connected from <127.0.0.1>
2011-10-26 15:31:08 [22704] [5] DEBUG: Started thread 9
(gw/bb_boxc.c:function)
2011-10-26 15:31:08 [22704] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function) maps
to pid 22704.
2011-10-26 15:31:08 [22704] [9] DEBUG: Started thread 10
(gw/bb_boxc.c:boxc_sender)
2011-10-26 15:31:08 [22704] [10] DEBUG: Thread 10 (gw/bb_boxc.c:boxc_sender)
maps to pid 22704.
2011-10-26 15:31:33 [22704] [6] DEBUG: AT2[mlte]: <-- +CMTI: "ME",2
2011-10-26 15:31:33 [22704] [6] DEBUG: AT2[mlte]: +CMTI incoming SMS
indication: +CMTI: "ME",2
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: --> AT+CPMS="ME"^M
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- +CPMS:
3,100,0,20,3,100
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- OK
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: --> AT+CMGR=2^M
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- +CMGR: 0,,24
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <--
06914612061107040B914612124293F11101625113132505F7B77C3D07
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: received message from
SMSC: +64**1170
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: Numeric sender
(international) <+64**>
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: User data length read as
(5)
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: Udh decoding done len=5
udhi=0 udhlen=0 udh=''
2011-10-26 15:31:35 [22704] [10] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-10-26 15:31:35 [22704] [10] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2011-10-26 15:31:35 [22704] [9] DEBUG: boxc_receiver: got ack
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- OK
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: --> AT+CMGD=2^M
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- OK
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: --> AT+CPMS="SM"^M
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- +CPMS: 0,20,0,20,2,100
2011-10-26 15:31:35 [22704] [6] DEBUG: AT2[mlte]: <-- OK
2011-10-26 15:31:38 [22704] [9] DEBUG: boxc_receiver: heartbeat with load
value 0 received
2011-10-26 15:31:47 [22704] [8] DEBUG: Dumping 0 messages to store

and:

2011-10-26 15:31:35 [22782] [4] INFO: Starting to service  from
<+64212124391> to <+64212439798>
2011-10-26 15:31:35 [22782] [4] DEBUG: Started thread 8
(gwlib/fdset.c:poller)
2011-10-26 15:31:35 [22782] [8] DEBUG: Thread 8 (gwlib/fdset.c:po

RE: users Digest, Vol 66, Issue 41

2012-02-18 Thread Iain Dooley

Hey Michael,

In order do this, you need to define a service which "receives" the 
messages. This is done by creating a script that is located at a URL (eg. 
http://localhost/my_receiver.php) that will take the inbound message and 
do all the processing for you.


You can look at how to configure a service in the kannel user guide:

http://kannel.org/userguide

Cheers,
Iain

On Sun, 19 Feb 2012, Michael Farouk wrote:


Dears,

Kindly, I need kannel to insert the sms traffic in data base MYsql how can I do 
that? Anyone can help me ...


Best Regards
Michael Farouk







Re: Unable to send '@' via kannel

2012-04-21 Thread Iain Dooley

Hey Anshu,

Check out this thread:

http://www.mail-archive.com/users@kannel.org/msg09523.html

Cheers,
Iain

On Sat, 21 Apr 2012, Anshu Sah wrote:


Hi,
I have set alt-charset = "utf-8" and also sending charset = 'utf-8' via sqlbox. 
But '@' is shown as '!' to my customers.

Please suggest.


Regards
Anshu Sah







Re: Empty %P (phone number of the receiver) when receiving SMS-MO through SMPP

2013-04-11 Thread Iain Dooley

Hey Olivier,

Here is the ridiculous workaround I have for this problem in my receiving 
script:


http://pastie.org/pastes/7452351/text?key=htasifwopjjidtyqgoig

this is in PHP but it's just a shell command to extract the destination 
from the access log based on the id.


Cheers,
Iain

On Thu, 11 Apr 2013, Olivier PELLEGRINO wrote:


Kannel bearerbox version `1.4.3'.
Build `Sep 19 2012 19:19:48', compiler `4.4.5'.
System Linux, release 3.2.13-grsec--grs-ipv6-64, version #1 SMP Thu Mar 
29 09:48:59 UTC 2012, machine x86_64.

Libxml version 2.7.8.
Using OpenSSL 0.9.8o 01 Jun 2010.
Compiled with MySQL 5.1.61, using MySQL 5.1.61.
Using native malloc.

Hello all,

I am having issue with empty ?%P? variable when receiving SMS-MO through SMPP 
connections with Kannel.


Here is my config file for sms-service :

group = sms-service
keyword = default
omit-empty = true
catch-all = true
max-messages = 0
get-url = 
http://my-url/my-file.php?msisdn=%p&keyword=%k&text=%a&otext=%b&smsc=%i&smsid=%I&receiver=%P&bident=%B&date=%t&ts=%T&coding=%c&class=%m&charset=%C&udh=%u


Here is a received SMS-MO :

2013-04-11 12:04:42 Receive SMS [SMSC:supplier] [SVC:] [ACT:] [BINF:146] 
[FID:] [from:336] [to:36312] [flags:-1:0:-1:0:-1] [msg:4:stop] 
[udh:0:]
2013-04-11 12:04:42 SMS HTTP-request sender:336 request: 'OK' url: 
'http://my-url/my-file.php?msisdn=336&keyword=stop&text=stop&otext=stop&smsc=supplier&smsid=588621a2-e6ab-449a-ad8d-e04c486d8504&receiver=&bident=146&date=2013-04-11+10:04:42&ts=1365674682&coding=0&class=-1&charset=UTF-8&udh=' 
reply: 200 '<< successful >>'


2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP[supplier]: Got PDU:
2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP PDU 0x7f5bf43a0a00 dump:
2013-04-11 12:04:50 [24461] [9] DEBUG:   type_name: deliver_sm
2013-04-11 12:04:50 [24461] [9] DEBUG:   command_id: 5 = 0x0005
2013-04-11 12:04:50 [24461] [9] DEBUG:   command_status: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   sequence_number: 17202 = 0x4332
2013-04-11 12:04:50 [24461] [9] DEBUG:   service_type: "1304"
2013-04-11 12:04:50 [24461] [9] DEBUG:   source_addr_ton: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   source_addr_npi: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   source_addr: "3360001"
2013-04-11 12:04:50 [24461] [9] DEBUG:   dest_addr_ton: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   dest_addr_npi: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   destination_addr: "36312"
2013-04-11 12:04:50 [24461] [9] DEBUG:   esm_class: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   protocol_id: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   priority_flag: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   schedule_delivery_time: NULL
2013-04-11 12:04:50 [24461] [9] DEBUG:   validity_period: NULL
2013-04-11 12:04:50 [24461] [9] DEBUG:   registered_delivery: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   replace_if_present_flag: 0 = 
0x

2013-04-11 12:04:50 [24461] [9] DEBUG:   data_coding: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   sm_default_msg_id: 0 = 0x
2013-04-11 12:04:50 [24461] [9] DEBUG:   sm_length: 4 = 0x0004
2013-04-11 12:04:50 [24461] [9] DEBUG:   short_message: "stop"
2013-04-11 12:04:50 [24461] [9] DEBUG: SMPP PDU dump ends.

and a second one :

2013-04-11 12:04:50 Receive SMS [SMSC:supplier] [SVC:] [ACT:] [BINF:1304] 
[FID:] [from:3360001] [to:36312] [flags:-1:0:-1:0:-1] [msg:4:stop] 
[udh:0:]
2013-04-11 12:04:50 SMS HTTP-request sender:3360001 request: 'OK' url: 
'http://my-url/my-file.php?msisdn=3360001&keyword=stop&text=stop&otext=stop&smsc=supplier&smsid=3b6010d7-6120-460a-b396-2a928f23a73d&receiver=&bident=1304&date=2013-04-11+10:04:50&ts=1365674690&coding=0&class=-1&charset=UTF-8&udh=' 
reply: 200 '<< successful >>'


2013-04-11 12:04:42 [24461] [9] DEBUG: SMPP[supplier]: Got PDU:
2013-04-11 12:04:42 [24461] [9] DEBUG: SMPP PDU 0x7f5bf43a0a00 dump:
2013-04-11 12:04:42 [24461] [9] DEBUG:   type_name: deliver_sm
2013-04-11 12:04:42 [24461] [9] DEBUG:   command_id: 5 = 0x0005
2013-04-11 12:04:42 [24461] [9] DEBUG:   command_status: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   sequence_number: 17201 = 0x4331
2013-04-11 12:04:42 [24461] [9] DEBUG:   service_type: "146"
2013-04-11 12:04:42 [24461] [9] DEBUG:   source_addr_ton: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   source_addr_npi: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   source_addr: "336"
2013-04-11 12:04:42 [24461] [9] DEBUG:   dest_addr_ton: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   dest_addr_npi: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   destination_addr: "36312"
2013-04-11 12:04:42 [24461] [9] DEBUG:   esm_class: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   protocol_id: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DEBUG:   priority_flag: 0 = 0x
2013-04-11 12:04:42 [24461] [9] DE

list of kannel error numbers

2006-07-14 Thread Iain Dooley
hi all, i'm trying to use kannel with a mozat m2u gsm modem. in smsc.log i 
get the error:


open failed! ERRNO=16
System error 16: Device busy

is there a more detailed list of what these errors mean and common trouble 
shooting suggestions?


cheers

iain



Couldnot write to device

2006-07-14 Thread Iain Dooley
i have made some progress this morning. first of all i discovered the 
correct device to use on my freebsd box and how to test it. i can now do:


cu -s 115200 -l /dev/ttyU0

i then get connect and can type in commands:

Connected
at
OK

so it speaka my language. so i changed smskannel.conf to:

group = smsc
smsc = at
smsc-id = WT
modemtype = auto
dev = /dev/ttyU0
speed = 115200
port = 1
connect-allow-ip = 127.0.0.1
log-file = "/var/log/smsc.log"
log-level = 0

tail -f /var/log/smsc.log shows (i'm rewriting this by hand so some 
formatting omitted):


opening device
speed set to 115200
Couldnot write to device
System error 35: Resource temporarily unavailable

Do i need to configure my modem type differently? i read in Appendix A 
that module at has been dropped and module at2 is now called at. if i type 
at2 when connected to the device via cu, then i get ERROR. does this mean 
that i should install a version of kannel prior to 1.2.x in order to use 
the at module?


cheers

iain




mozat m2u reported as working

2006-07-15 Thread Iain Dooley

hi, i managed to get the mozat m2u gsm modem working with kannel. i used:

speed = 115200
modemtype = wavecom
device = /dev/cuaU0 (on freebsd 6.0... ttyU0 also works)

in order to find this stuff out i did:

cu -s 115200 -l /dev/cuaU0
ae1 #set echo responses to true so you can see what you type
ati1 #display the modem type

this showed 'WAVECOM MODEM' so i copied modems.conf from the gateway 
directory into /usr/local/etc/ and put the line:


include = "modems.conf"

into smskannel.conf. also for all your freebsd users out there, the mozat 
m2u usb modem will show up as device ugen0 when you plug it in. it needs 
to show up as a ucom device when you plug it in (which will create the 
device nodes /dev/ttyU0 and /dev/cuaU0 for you, that you can 'cu' in to, 
man cu for more details).


in order to get the mozat m2u to register as a ucom device, type the 
following (as root):


kldload uplcom

now unplug the device and plug it back in again and you should see 
'ucom0'.


once you've confirmed this works, add this to your kernel.

cheers

iain



Re: GSM Modem phones

2006-07-18 Thread Iain Dooley



On Tue, 18 Jul 2006, Vaibhav Solanki wrote:


Hello all,

When i went through the faq of the kannel site, got the
info that
  * Nokia Premicell
  * Siemens M20
  * Wavecom WM02-G1800 modem
will support Kannel.

Can anyone suggest any other devices for the same purpose.
Awaiting replies...



hi, i recently got a mozat m2u working, which is a wavecome modem type. i 
sent a message to the list with some instructions on using 'cu' on a unix 
system to determine modem type. search the archives for 'mozat' and you 
should find it.


cheers

iain



Re: smpp server

2006-07-21 Thread Iain Dooley

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

On Fri, 21 Jul 2006, Anand Gupta wrote:


Hi! Stipe!

Can i know the cost of this smppbox?

- Original Message - From: "Stipe Tolj" <[EMAIL PROTECTED]>
To: "Anand Gupta" <[EMAIL PROTECTED]>
Cc: ; 
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: How to trigger multiple get-urls with one keyword

2006-08-02 Thread Iain Dooley
why not just trigger one url with a keyword and then make subsequent 
requests from the url at that location?


On Wed, 2 Aug 2006, Lars-Hendrik Schneider wrote:


Hi everyone,

I am looking for a way to trigger more than one URL with a keyword. Can this 
be done? And where do I have to set this?


Example: My keyword "blog" is used, and I have s.th. like this in my 
kannel.conf:


group = sms-service
keyword = blog
get-url = "http://www.myserver.com/blog.php?blog=%r&gsm=%p";
strip-keyword = true
max-messages = 1

Working, no problem. But how can I do s.th. like this?

group = sms-service
keyword = blog
get-url = "http://www.myserver.com/blog.php?blog=%r&gsm=%p";
get-url = "http://www.anotherserver.com/blog.php?blog=%r&gsm=%p";
strip-keyword = true
max-messages = 1

Currently only the second get-url request works, the first is ignored. But I 
am looking for a way to address both...


Any hints? I think I remember that this was on the ML once, but I don't find 
the mail anymore :-(.


Regards,
Lars-Hendrik






faked-sender configuration

2006-08-03 Thread Iain Dooley
hi, i've seen faked-sender, default-sender and my-number in the user 
guide. none of them seem to actually set the number which the sms is 
coming from.


is there a way to do this? do i have to have a special agreement with my 
provider?


cheers

iain



Re: how to configuratio sonyercsson t230

2006-08-07 Thread Iain Dooley
hi, have you ever used cu before? the first thing to check is what device 
is the correct one to use. for example, on freebsd when i plugin a usb gsm 
modem, it first comes up with device ugen0. this is not the correct device 
however. i have to type:


kldload uplcom

or have this module compiled into the kernel in order to use this device. 
when i have this setup, then the device shows up as ucom0 when i plug it 
into the usb. i can then type:


cu -s 115200 -l /dev/cuaU0

this connects me to the modem directly. i can then type:

at

and hit enter, and i see OK. then i can type:

atdMY_NUMBER

where MY_NUMBER is my phone number, and my phone rings. if i type:

ati0

it tells me what modem type it is. this is how i discovered that it is a 
WAVECOM modem, so i followed the instructions for a WAVECOM modem found on 
the kannel home page. don't also forget to 'include' modems.conf in your 
smskannel.conf file


cheers

iain

On Mon, 7 Aug 2006, zainuddin ngaddi wrote:


dear,

 i use gateway-1.4.0 use the sonyericsson t230. how to configuration 
smskannel.conf. for information i used system operation Suse 10 and usb data 
cable DCU-11 from sonyericsson.

 Thank's.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




Re: Connecting USB GSM phones

2006-08-10 Thread Iain Dooley



On Thu, 10 Aug 2006, Alvaro Cornejo wrote:


Hi

I?m newbie into kannel.

So far I was unable to make it work and user guide does not say anithing
about USB connections Unless I miss something ;-(

I would like to know if there is a way to connect GSM phones to Kannel using
USB cables instead of serial cables. Here in Mexico we can not find serial
cables to connect phones to PC but USB cables. Is there a way we can use an
USB connection ?


you have to find out what device file you moden uses. what operating 
system are you running?


cheers

 iain



Regards

Alvaro


RE: Connecting USB GSM phones

2006-08-10 Thread Iain Dooley



On Thu, 10 Aug 2006, Alvaro Cornejo wrote:


Hi

I´m using fedora 5


okay, so you juast need to find out what device you usb uses for fc5 and 
put that in youir conf file. on my freebsd box the device shows up in 
dmesg as ucom0 and creayes the device nodes cuaU0 so in the device 
directive for my modem i put /dev/cuaU0


you can check you have the correct device by using 'cu' to connect to it. 
if you type at and hit wnter and it returns ok then chances are you can 
use it with kannel


cheers

iain


Regards

Alvaro

-Mensaje original-
De: Iain Dooley [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 10 de Agosto de 2006 15:57
Para: Alvaro Cornejo
CC: users@kannel.org
Asunto: Re: Connecting USB GSM phones




On Thu, 10 Aug 2006, Alvaro Cornejo wrote:


Hi

I´m newbie into kannel.

So far I was unable to make it work and user guide does not say
anithing about USB connections Unless I miss something ;-(

I would like to know if there is a way to connect GSM phones to Kannel
using USB cables instead of serial cables. Here in Mexico we can not
find serial cables to connect phones to PC but USB cables. Is there a
way we can use an USB connection ?


you have to find out what device file you moden uses. what operating
system are you running?

cheers

 iain



Regards

Alvaro






RE: Connecting USB GSM phones

2006-08-10 Thread Iain Dooley



On Thu, 10 Aug 2006, Alvaro Cornejo wrote:


Hi

I think I´m not getting it right.

The cable I´ve for my GSM phone is an USB cable. Kannel needs serial. So I
need to connect the Serial port of my PC to the USB cable of the phone.

I was looking for those serial2USB adapters but I found converters from
USB2Serial but not serial2usb. Thus they are not the same thing right?

Do you know where can I found those serial2uSB cables?


usb is serial, it's just faster than a standard db9 connection. you can 
use kannel to drive a mode, connected to a usb port.


cheers

iain


Regards

Alvaro

-Mensaje original-
De: Lars-Hendrik Schneider [mailto:[EMAIL PROTECTED]
Enviado el: Jueves, 10 de Agosto de 2006 09:17
Para: users@kannel.org
Asunto: Re: Connecting USB GSM phones


Hi Alvaro,

Alvaro Cornejo schrieb:

Hi

I´m newbie into kannel.

So far I was unable to make it work and user guide does not say
anithing about USB connections Unless I miss something ;-(



I would like to know if there is a way to connect GSM phones to Kannel
using USB cables instead of serial cables. Here in Mexico we can not
find serial cables to connect phones to PC but USB cables. Is there a
way we can use an USB connection ?


I wrote something a longer time ago (see below). First of all, you can
connect a serial device using a Serial2USB converter. Afterwards you can
address the device using sth. like /dev/ttyUSB0 or whatever your system
assigns the device to. The snippet below might help you to understand
what happens here:

++ !EOF

Hi everyone,
I have written a small and simple script which I use here to assign my
three modems that are connected using USB to the different kannel instances.

The problem in short:

- I need 3 gsm modems (because there is no routing between the
provider's networks in the destination country :-(.)
- Therefore I use USB to serial converters to connect my modems to the
computer running kannel (on Ubuntu 5.10 Breezy).
- The USB devices are managed by the hotplug daemon assigning a
"/dev/ttyUSBxxx" to every found device, BUT:
- You cannot be sure about the order in which these devices are assigned
(especially when you plugout and plugin again.) So /dev/ttyUSB*** changes...
This led me to a few headaches.
- Solution: Fight the multiheaded USB monster!
(http://www.linuxjournal.com/article/6518)

NOTE: All modems are connected to ONE USB hub using a PL-2303-USB-Serial
converter. (By understanding the syntax of /proc/tty/driver/usbserial
you can add more switches of course!)

Step by step through my tiny script:

- The hotplug daemon needs to be restarted by root. Therefor simple
check for root first.
- Then: Kill all kannel stuff the hard way (easy, just to make sure,
normally the script is run at boot time)
- Now restart the hotplug daemon so that it reads the devices again and
from scratch and automatically assigns them to /dev/ttyUSB0 -> /dev/ttyUSBn
- These information are now stored in /proc/tty/driver/usbserial, hooray!:


usbserinfo:1.0 driver:v2.0
0: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1
port:1 path:usb-:00:1d.7-4.1
1: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1
port:1 path:usb-:00:1d.7-4.2
2: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1
port:1 path:usb-:00:1d.7-4.3


This reads like:
"0:" -> this is the device /dev/ttyUSB0 (the 0 at the end) that hotplug
found. Wonderful, but normally you can't rely on that this is always the
same modem. Argl.

"module:pl2303 name:"PL-2303" vendor:067b product:2303" -> some
information about the converter, because I use three the same it was not
very helpful to identify every modem by this (but can be if you have
more than 3 modems)...

"path:usb-:00:1d.7-4.1" -> here comes the important stuff. Just read
it from the back, so the "1" stands for the physical port 1 of the USB
hub, the "7-4" has something to do with the hub itself, then follows the
 physical address of the USB port to which the hub is connected to.
Read the website above to find more about it.

Well the idea is now: I always connect the modem that uses e.g.
kannel1.conf to the the physical(!) port 1 of the hub, but cannot be
sure that the hotplug will assign it to /dev/ttyUSB0 always (as it mixes
it up). Thats why, have look afterwards and make a symlink to the final
destination and change kannel1.conf e.g. to the symlink /dev/gsm1


Example: So if it is like

3: module:pl2303 name:"PL-2303" vendor:067b product:2303 num_ports:1
port:1 path:usb-:00:1d.7-4.1

The system knows my modem on port 1 (physical port of the hub) as
/dev/ttyUSB3 - normally a problem, but with a ln -s /dev/ttyUSB3
/dev/gsm1 I can add /dev/gsm1 as fixed device in my kannel.conf, no
matter which device hotplug finds first.

/dev/gsm1 -> /dev/ttyUSB3

I just need 3 modems, and therefore I made only 3 simple if/elif to find
whether my modems are found or not.

As it works for me (as simple as this) - perhaps it puts so

setting sender number

2006-08-10 Thread Iain Dooley
has anyone managed to actually come to an arrangement with their telco 
about setting the sender number on text messages? i'm finding it difficult 
to get anywhere. on thing i was thinking is that i could feasibly relay 
messages through a foreign provider if anyone knows of one that will do 
this.


cheers

iain



Re: Could not fetch content

2006-08-20 Thread Iain Dooley



On Sun, 20 Aug 2006, Yaswanth Narvaneni wrote:


Hi!

I am facing a strange problem. I have kannel installed to work as AT
SMSC. Its working fine. But my application requires kannel to contact
a HTTP page and the page in return gives a Redirect request. Kannel is
able to call the page, but its not being redirected. The message in
log is as follows:

SMS HTTP-request sender: request: 'Could not fetch content,
sorry.' url: '' reply: -1 ''

Now, the strange part is, its working fine if the script is on LAN but
not on the Internet. If its on internet, it gives the above error. The
PHP code for redirect script is as follows:

 $value)
{
  fwrite($fp_handle, "$key :: $value; ");
}

fwrite($fp_handle, "\n");

fclose($fp_handle);

$message = urlencode($_GET['fullsms']);

header("Location: http://localhost/recieve2.php?message=$message";);


header outputs a header to the client which in this case is kannel


The script notes down the content in GET and sends a redirect request.

Can anyone tell me why this is happening (pls dont quote alternative
solutions of doing the same).


you got it :)

cheers

iain


Regards,
Yaswanth

--
"In theory there is no difference between theory and practice.
In practice there is." -- Fortune Cookie






Re: sending messages via sql

2006-08-31 Thread Iain Dooley



On Thu, 31 Aug 2006, Bogdan Lucaciu wrote:


Hello

I need a way to:
- insert a message into a table and be sure kannel will send it


you could put a job in cron to run periodically a script which will format 
an HTTP request to kannel based on the contents of a db



- once the message is sent , kannel should update the table accordingly


likewise, your script would do this


- when the DLR arives , kannel should update the table accordingly

I found on the list some discussion about sqlbox.

Reading the user guide (for 1.4.0) I came across "DBPool". Also, the
release notes for 1.3.1 say "PostgreSQL support added for database
pools."

I don't know how these two features relate to my problem, but I wasn't
able to find further information, can you please direct me to some
reading material?

(I'm using kannel 1.4.0 and I prefer using postgresql if possible)


i haven't used sqlbox, but when a message arrives you define a service, 
which is just a url to a script which can also do any work updating the 
database


cheers

iain


Thanks!

--
Bogdan Lucaciu <[EMAIL PROTECTED]>







Re: (Asking right question now!) AT command to DIAL & RING once only

2006-09-01 Thread Iain Dooley



On Fri, 1 Sep 2006, Eric Carlson wrote:


Does anyone know a way in Kannel, or have links to, a way to issue
modem AT commands to make a call then drop the line after the first
RING please?


you could do this by using cu.

cu -s 115200 -l /dev/cuaaU0

if you type at you should see 'OK'. if you type:

atdNUMBER

you will dial NUMBER. you can then use further AT commands to inspect the 
dial status (not sure which ones). then use:


ath0

to hang up. this could be scripted.

cheres

iain



Re: Modem device owner

2006-09-10 Thread Iain Dooley



On Sun, 10 Sep 2006, Alvaro Cornejo wrote:


Hi

I?ve the following problem

I?ve an usb modem that is correctly recognized by the OS (Fed5) and works
fine.

However, when the machine reboots and or I need to disconnect the modem,
when reconecting it or after booting, bearbox can not open the connection.
I?ve a permision denied eror. After some debug I found that the kannel
init.d script that came with the fed5 rpm uses the parameter --chuid
kannel:kannel as an argument for starting kannel; however, at boot or when
reconnecting the usb device,  /dev/ttyACM0, the mapped usb device belong to
root; so I have to either run chown kannel before starting kannel in order
to allow bearerbox write to the modem or I?ve to edit the kannel init.d
script and take out the chuid parameter.

My questions are:

1) Is there a problem running kannel as root; other than a security issue?
2) Is there a way to make the device belong or be write enabled to kannel
user/group at the moment the usb device is recognized by the system?


this may be a little naive of me but can't you chgrp /dev/YOURDEVICE 
kannel and make it's permissions 664?


cheers

iain



Regards

Alvaro


RE: Modem device owner

2006-09-11 Thread Iain Dooley



On Mon, 11 Sep 2006, Alvaro Cornejo wrote:


Hi

Yes, that is one of things I do, but when rebooting or un-plug /re-plug the
device, the device ownership is again root...


i'm not sure about your operating system, but on freebsd there is a system 
to run scripts as root at boot time which is where i would put such a 
chgrp command.


cheers

iain


Alvaro

-Mensaje original-
De: Iain Dooley [mailto:[EMAIL PROTECTED]
Enviado el: Domingo, 10 de Septiembre de 2006 23:27
Para: Alvaro Cornejo
CC: users@kannel.org
Asunto: Re: Modem device owner




On Sun, 10 Sep 2006, Alvaro Cornejo wrote:


Hi

I´ve the following problem

I´ve an usb modem that is correctly recognized by the OS (Fed5) and
works fine.

However, when the machine reboots and or I need to disconnect the
modem, when reconecting it or after booting, bearbox can not open the
connection. I´ve a permision denied eror. After some debug I found
that the kannel init.d script that came with the fed5 rpm uses the
parameter --chuid kannel:kannel as an argument for starting kannel;
however, at boot or when reconnecting the usb device,  /dev/ttyACM0,
the mapped usb device belong to root; so I have to either run chown
kannel before starting kannel in order to allow bearerbox write to the
modem or I´ve to edit the kannel init.d script and take out the chuid
parameter.

My questions are:

1) Is there a problem running kannel as root; other than a security
issue?
2) Is there a way to make the device belong or be write enabled to kannel
user/group at the moment the usb device is recognized by the system?


this may be a little naive of me but can't you chgrp /dev/YOURDEVICE
kannel and make it's permissions 664?

cheers

iain



Regards

Alvaro






Re: GSM phone compatibility

2006-09-11 Thread Iain Dooley



On Tue, 12 Sep 2006, Rami Ayyad wrote:


Hello All,

I was wondering if the T68i with a serial datacable works well with
Kannel. On a similiar note, can someones write up a list of phones
which have worked with Kannel? Has anyone been successful in using the
irDA gsm modems in linux&kannel?


there's a list on the kannel website. 
http://www.kannel.org/compatibility.shtml


cheers

iain


Thanks,
--
Rami Ayyad






Re: problem in configuration in kannel

2006-09-12 Thread Iain Dooley



On Mon, 11 Sep 2006, kaveri wrote:



hi,

i am using SonyEricsson T230 as gsm modem through USB (/dev/ttyUSB0)
but when i am starting the bearerbox i am getting the message
2006-09-11 18:28:50 [3137] [6] WARNING: AT2[/dev/ttyS1]: trying to open
device with not closed device!!! Please report!!!
can any body help me on this


looks like it's trying to open ttyS1 ...

cheers

iain




--
View this message in context: 
http://www.nabble.com/problem-in-configuration-in-kannel-tf2252231.html#a6246164
Sent from the Kannel - User forum at Nabble.com.







Re: SMS Server

2006-09-22 Thread Iain Dooley

well... that's what kannel does

On Fri, 22 Sep 2006, Hemant Talwelkar wrote:


Hello,
  I've just joined Kannel.
I want to develope a sms server that can automatically reply to sms coming
on mobile connected to that pc depending upon contents of sms.
I want to develope it as a college project.
Can any one help me?





Re: aplhanunmeric sender in kannel

2006-10-02 Thread Iain Dooley

do you have an agreement with your smsc provider?

On Tue, 3 Oct 2006, sokha wrote:


I have setup as the following

# --
# Source Address TON/NPI
# --
source-addr-ton=5
source-addr-npi=0
but when i send sms with alpanumeric in sender i can not recieved sms why?

help plz

sokha


- Original Message - From: <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 5:00 PM
Subject: users Digest, Vol 4, Issue 38


Message: 1
Date: Mon, 25 Sep 2006 16:10:51 +0700
From: "Ady Wicaksono" <[EMAIL PROTECTED]>
Subject: Re: aplhanunmeric sender in kannel ?
To: users@kannel.org
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

# --
# Source Address TON/NPI
# --
source-addr-ton=5
source-addr-npi=0


On 9/25/06, Huber, Gottfried <[EMAIL PROTECTED]> wrote:




hi

how can i configure kannel with alphanumeric sender ?

when i send a SMS (smpp)  the global-sender-number  of  the 
Kannel-GSM-Modem

appears .
is it possible to cinfigure kannel as an alphanumeric sender ?


THX






--
Regards,

Ady Wicaksono
Email:
adiwicaksono   at yahoo.com
ady.wicaksono at
{yahoo.com/gmail.com/switchlab.com/beasiswamagelang.net/cbn.net.id}



--

___
users mailing list
users@kannel.org
http://www.kannel.org/mailman/listinfo/users









bearerbox panic on fc3

2006-10-05 Thread Iain Dooley
hi, i'm running kannel 1.4 on fc3. things were previously okay but seem to 
be awry now.


both bearer and sms boxes start up okay, but when an sms is received the 
bearer box crashes. the output for bearerbox is:


2006-10-05 12:20:09 [23215] [10] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>
2006-10-05 12:20:09 [23215] [10] DEBUG: boxc_sender: sent message to 
<127.0.0.1>

2006-10-05 12:20:09 [23215] [9] DEBUG: boxc_receiver: got ack
2006-10-05 12:20:10 [23215] [9] DEBUG: boxc_receiver: sms received
2006-10-05 12:20:10 [23215] [9] DEBUG: send_msg: sending msg to box: 
<127.0.0.1>

2006-10-05 12:20:11 [23215] [8] DEBUG: sms_router: list_len = 4
2006-10-05 12:20:18 [23215] [1] DEBUG: Dumping 3 messages and 0 acks to 
store
2006-10-05 12:20:23 [23215] [7] PANIC: gwlib/octstr.c:1423: 
octstr_append_char: Assertion `ch <= UCHAR_MAX' failed.
2006-10-05 12:20:23 [23215] [7] PANIC: bearerbox(gw_panic+0xcc) 
[0x80beb4c]
2006-10-05 12:20:23 [23215] [7] PANIC: bearerbox(octstr_append_char+0x89) 
[0x80c34d9]

2006-10-05 12:20:23 [23215] [7] PANIC: bearerbox [0x8066f37]
2006-10-05 12:20:23 [23215] [7] PANIC: bearerbox [0x8068234]
2006-10-05 12:20:23 [23215] [7] PANIC: bearerbox [0x80b5fa9]
2006-10-05 12:20:23 [23215] [7] PANIC: /lib/tls/libpthread.so.0 [0xd791d5]
2006-10-05 12:20:23 [23215] [7] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0xcc32da]


the output for smsbox is:

2006-10-05 12:20:10 [23230] [5] DEBUG: message length 44, sending 1 
messages

2006-10-05 12:20:23 [23230] [0] INFO: Connection closed by the bearerbox.
2006-10-05 12:20:23 [23230] [0] INFO: Received (and handled?) 1 requests 
in 14 seconds (0.07 per second)

2006-10-05 12:20:23 [23230] [0] INFO: Kannel smsbox terminating.
2006-10-05 12:20:23 [23230] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) terminates.
2006-10-05 12:20:23 [23230] [0] DEBUG: Waiting for 2 
(gwlib/http.c:server_thread) to terminate
2006-10-05 12:20:23 [23230] [3] DEBUG: HTTP: No clients with requests, 
quitting.
2006-10-05 12:20:23 [23230] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) terminates.
2006-10-05 12:20:23 [23230] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) terminates.
2006-10-05 12:20:23 [23230] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
terminates.
2006-10-05 12:20:23 [23230] [0] DEBUG: Waiting for 4 
(gw/smsbox.c:obey_request_thread) to terminate
2006-10-05 12:20:23 [23230] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) terminates.
2006-10-05 12:20:23 [23230] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) terminates.
2006-10-05 12:20:23 [23230] [0] DEBUG: Waiting for 5 
(gw/smsbox.c:url_result_thread) to terminate
2006-10-05 12:20:23 [23230] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) terminates.
2006-10-05 12:20:23 [23230] [0] DEBUG: Waiting for 9 
(gwlib/http.c:write_request_thread) to terminate
2006-10-05 12:20:23 [23230] [9] DEBUG: Thread 9 
(gwlib/http.c:write_request_thread) terminates.
2006-10-05 12:20:23 [23230] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) 
terminates.

2006-10-05 12:20:23 [23230] [0] DEBUG: Immutable octet strings: 225.

does anyone know why this might be occuring?

cheers

iain



site down

2006-10-05 Thread Iain Dooley
i can get to the site to download the latest tarball, you can't get to 
kannel.org?


cheers

iain



Re: site down

2006-10-05 Thread Iain Dooley



On Fri, 6 Oct 2006, Stipe Tolj wrote:


Iain Dooley wrote:

i can get to the site to download the latest tarball, you can't get to 
kannel.org?


we had kernel panics on the primary kannel.org machine for HDD RAID failures. 
The site is up again, but may be unreliable.


A backup download site for the 1.4.1 stable release is available at:

 http://www.backup.kannel.org/


i was saying that i could get to it :)



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



bearerbox panic: update

2006-10-05 Thread Iain Dooley
hi, i just updated from the latest source tarball from kannel.org and my 
bearerbox panic has magically disappeared :)


cheers

iain



Re: One last try: System error 35 connecting to Wavecom modem

2006-10-06 Thread Iain Dooley

are you able to connect manually using tip or cu?

cheers

iain

On Thu, 5 Oct 2006, Adam Block wrote:


Hi. I posted this a couple times -- I compiled Kannel with minimal problems
but can't get bearerbox to come up properly. It gets into a failure loop,
logging: "System error 35: Resource
temporarily unavailable". Details below. Any thoughts on solving this would
be much appreciated!

/afb




On 9/24/06, Adam Block <[EMAIL PROTECTED]> wrote:
>
> I'm running Kannel 1.4.0 on Mac OS X 10.4.7.
>
> I have a Wavecom WMOD2 connected to the computer with a Keyspan
> USB-Serial converter at /dev/tty.KeySerial1. The serial connection
> works fine with minicom, serial APIs for Ruby and Perl, etc. I can
> manually send SMS using minicom (and an AT command reference guide :)
> ).
>
> My configuration file looks like this:
>
> group = core
> admin-port = 13000
> admin-password = XX
> status-password = XX
> log-file = "/tmp/kannel.log"
> log-level = 0
> access-log = "access.log"
> smsbox-port = 13001
>
> include = "modems.conf"
>
> # SMSC GSM
> group = smsc
> smsc = at
> modemtype = wavecom
> device = "/dev/tty.KeySerial1"
> speed = 9600
>
> # SMSBOX SETUP
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> log-file = "/tmp/smsbox.log"
> log-level = 0
>
> Modems.conf is unchanged from the default that ships with the distro.
>
> When I start bearerbox, I get the following debug output:
>
> 2006-09-24 14:05:18 [5523] [0] INFO: Debug_lvl = -1, log_file =
> , log_lvl = 0
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Loading include file
> `modems.conf' (on line 10 of file kannel.conf).
> 2006-09-24 14:05:18 [5523] [0] WARNING: DLR: using default 'internal'
> for storage type.
> 2006-09-24 14:05:18 [5523] [0] INFO: DLR using storage type: internal
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Kannel bearerbox version `1.4.0'.
> Build `Sep 24 2006 13:16:14', compiler `4.0.1 (Apple Computer, Inc.
> build 5250)'.
> System Darwin, release 8.7.3, version Darwin Kernel Version 8.7.3: Wed
> Aug 16 18:54:06 PDT 2006; root:xnu-792.11.5.obj~1/RELEASE_I386,
> machine i386.
> Hostname XX
> Libxml version 2.6.16.
> Using native malloc.
>
> 2006-09-24 14:05:18 [5523] [0] INFO: Added logfile `/tmp/kannel.log'
> with level `0'.
> 2006-09-24 14:05:18 [5523] [0] INFO: Started access logfile
> `access.log'.
> 2006-09-24 14:05:18 [5523] [0] INFO: SSL not supported, no SSL
> initialization done.
> 2006-09-24 14:05:18 [5523] [0] INFO: HTTP: Opening server at port 13000.
>
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2006-09-24 14:05:18 [5523] [0] DEBUG: starting smsbox connection module
> 2006-09-24 14:05:18 [5523] [0] INFO: BOXC: 'smsbox-max-pending' not
> set, using default (100).
> 2006-09-24 14:05:18 [5523] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
> maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:sms_to_smsboxes)
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 5
> (gw/bb_boxc.c:smsboxc_run)
> 2006-09-24 14:05:18 [5523] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [0] INFO: DLR rerouting for smsc id
> <(null)> disabled.
> 2006-09-24 14:05:18 [5523] [5] DEBUG: Thread 5
> (gw/bb_boxc.c:smsboxc_run) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [0] INFO: AT2[/dev/tty.KeySerial1]:
> configuration shows modemtype 
> 2006-09-24 14:05:18 [5523] [0] DEBUG: AT2[/dev/tty.KeySerial1]:
> Reading modem definitions from 
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Loading include file
> `modems.conf' (on line 10 of file kannel.conf).
> 2006-09-24 14:05:18 [5523] [0] DEBUG: AT2[/dev/tty.KeySerial1]: Found
> <11> modems in config
> 2006-09-24 14:05:18 [5523] [0] INFO: AT2[/dev/tty.KeySerial1]: read
> modem definition for 
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 6
> (gw/smsc/smsc_at.c:at2_device_thread)
> 2006-09-24 14:05:18 [5523] [6] DEBUG: Thread 6
> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [6] INFO: AT2[/dev/tty.KeySerial1]: opening
> device
> 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2006-09-24 14:05:18 [5523] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 5523.
> 2006-09-24 14:05:18 [5523] [0] INFO:
> 
> 2006-09-24 14:05:18 [5523] [7] DEBUG: sms_router: time to sleep
> 2006-09-24 14:05:18 [5523] [0] INFO: Kannel bearerbox II version 
1.4.0starting

> 2006-09-24 14:05:18 [5523] [0] INFO: MAIN: Start-up done, entering
> mainloop
> 2006-09-24 14:05:18 [5523] [0] DEBUG: AT

Re: Compiling upon mysql 4

2006-10-06 Thread Iain Dooley



On Fri, 6 Oct 2006, Julien Buratto wrote:


Enver ALTIN ha scritto:

On Fri, 2006-10-06 at 09:05 -0400, Marcelo Aguila wrote:

I had the same problem using version 1.4.0. The solution is to rename the
function list_delete for gw_list_delete (there is a patch for that) or you
can start using cvs version of kannel, what is periodically actualized.


1.4.1 is out, this is not needed.


You are right, thank you.
1.4.1 compiles on fedora core 4

does anyone interested in a vmware virtual appliance with precompiled
kannel ? :D


just to mention it i successfully compiled 1.4.1 on fc3 (fedora core 3) 
today with no problems after initially using yum to install 1.4.0 from an 
rpm and it fixed a bug with the bearerbox crashing when it received an sms 
with the error:


ch < UCHARMAX failed

i thought i would put this on the list so that google would find it :)

cheers

iain


Julien






Re: One last try: System error 35 connecting to Wavecom modem

2006-10-06 Thread Iain Dooley



On Fri, 6 Oct 2006, Adam Block wrote:


Tip and cu are serial connection applications? I don't have those ports on
my mac but I have no problem with serial communication to the modem. Minicom
works fine. Gnokii can send/receive SMS, etc.


what speed are you connecting at with Gnokii? are you sure that 9600 is 
correct?


see, the thing is that i had a similar problem. this is for using a mozat 
m2u usb modem on freebsd:


kldload uplcom [get the module to see modem as ucomm rather than ugen]
cu -s 115200 -l /dev/ttyU0 [test out connection]
at -> OK
set modemtype to wavecom [see below]
set speed to 115200
make sure mms is enabled by the network(mozat m2u doesn't recognise non 
mms sim)


to find out the modem type:
cu -s 115200 -l /dev/ttyU0
ati0 
if you can't see what you are typing do:

ate1 
for more details on AT strings see: http://www.computerhope.com/atcom.htm

beyond this, i don't know. maybe this will help with your debugging.

cheers

iain


Thanks!

On 10/6/06, Iain Dooley <[EMAIL PROTECTED]> wrote:


are you able to connect manually using tip or cu?

cheers

iain

On Thu, 5 Oct 2006, Adam Block wrote:

> Hi. I posted this a couple times -- I compiled Kannel with minimal
problems
> but can't get bearerbox to come up properly. It gets into a failure
loop,
> logging: "System error 35: Resource
> temporarily unavailable". Details below. Any thoughts on solving this
would
> be much appreciated!
>
> /afb
>
>>
>>
>> On 9/24/06, Adam Block <[EMAIL PROTECTED]> wrote:
>> >
>> > I'm running Kannel 1.4.0 on Mac OS X 10.4.7.
>> >
>> > I have a Wavecom WMOD2 connected to the computer with a Keyspan
>> > USB-Serial converter at /dev/tty.KeySerial1. The serial connection
>> > works fine with minicom, serial APIs for Ruby and Perl, etc. I can
>> > manually send SMS using minicom (and an AT command reference guide :)
>> > ).
>> >
>> > My configuration file looks like this:
>> >
>> > group = core
>> > admin-port = 13000
>> > admin-password = XX
>> > status-password = XX
>> > log-file = "/tmp/kannel.log"
>> > log-level = 0
>> > access-log = "access.log"
>> > smsbox-port = 13001
>> >
>> > include = "modems.conf"
>> >
>> > # SMSC GSM
>> > group = smsc
>> > smsc = at
>> > modemtype = wavecom
>> > device = "/dev/tty.KeySerial1"
>> > speed = 9600
>> >
>> > # SMSBOX SETUP
>> > group = smsbox
>> > bearerbox-host = localhost
>> > sendsms-port = 13013
>> > log-file = "/tmp/smsbox.log"
>> > log-level = 0
>> >
>> > Modems.conf is unchanged from the default that ships with the distro.
>> >
>> > When I start bearerbox, I get the following debug output:
>> >
>> > 2006-09-24 14:05:18 [5523] [0] INFO: Debug_lvl = -1, log_file =
>> > , log_lvl = 0
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: Loading include file
>> > `modems.conf' (on line 10 of file kannel.conf).
>> > 2006-09-24 14:05:18 [5523] [0] WARNING: DLR: using default 'internal'
>> > for storage type.
>> > 2006-09-24 14:05:18 [5523] [0] INFO: DLR using storage type: internal
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: Kannel bearerbox version
`1.4.0'.
>> > Build `Sep 24 2006 13:16:14', compiler `4.0.1 (Apple Computer, Inc.
>> > build 5250)'.
>> > System Darwin, release 8.7.3, version Darwin Kernel Version 8.7.3:
Wed
>> > Aug 16 18:54:06 PDT 2006; root:xnu-792.11.5.obj~1/RELEASE_I386,
>> > machine i386.
>> > Hostname XX
>> > Libxml version 2.6.16.
>> > Using native malloc.
>> >
>> > 2006-09-24 14:05:18 [5523] [0] INFO: Added logfile `/tmp/kannel.log'
>> > with level `0'.
>> > 2006-09-24 14:05:18 [5523] [0] INFO: Started access logfile
>> > `access.log'.
>> > 2006-09-24 14:05:18 [5523] [0] INFO: SSL not supported, no SSL
>> > initialization done.
>> > 2006-09-24 14:05:18 [5523] [0] INFO: HTTP: Opening server at port
13000.
>> >
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 1
>> > (gwlib/fdset.c:poller)
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 2
>> > (gwlib/http.c:server_thread)
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: Started thread 3
>> > (gw/bb_http.c:httpadmin_run)
>> > 2006-09-24 14:05:18 [5523] [0] DEBUG: starting smsbox connection
module
>> > 2006-09-24 14:05:18 [5523] [0] INFO: BOXC:

Re: RE : Re: RE : Re: RE : Re: Kannel cannot access to SMSC SMPP --> System type

2006-10-24 Thread Iain Dooley

log level -v 1 is more verbose than 0 isn't it?

On Tue, 24 Oct 2006, Alejandro Guerrieri wrote:


Gerard,

System-ID equals to "username" on Kannel. You know that isn't it? ;)

Most of the other parameters have their Kannel counterparts. Check the
Kannel docs for all available parameters, the names are pretty close
most of the time.

Please also check the logs (set log-level to 0 to make it more verbose
if you want) for the error # you get. I/O error could mean a lot of
things, from a misconfigured firewall to almost anything.

Hope it helps,

On 10/24/06, P. Gerard MBOUYAP <[EMAIL PROTECTED]> wrote:

Hello Alejandro

I asked to my operator and he provided me these
information:

SMPP.systemid=

SMPP.smpp17.password=x

SMPP.smpp17.group=17

SMPP.smpp17.source_addr=1,1,[0-9]*

SMPP.smpp17.bhsm=6

SMPP.smpp17.duration=1

SMPP.smpp17.smpp_connection_trx.ka_delay=60

SMPP.smpp17.smpp_connection_trx.ka_timeout=15

SMPP.smpp17.smpp_connection_tx.ka_delay=60

SMPP.smpp17.smpp_connection_tx.ka_timeout=15

SMPP.smpp17.smpp_connection_rx.ka_delay=60

SMPP.smpp17.smpp_connection_rx.ka_timeout=15

SMPP.smpp17.default_priority=1000

SMPP.smpp17.default_validity_period=60

SMPP.smpp17.default_source_addr=131

SMPP.smpp17.default_source_addr_ton=1

SMPP.smpp17.default_source_addr_npi=1

SMPP.smpp17.bind_mode=0

SMPP.smpp17.version_number=52

SMPP.smpp17.default_dcs_to_language=0,1;17,2;16,4

SMPP.smpp17.invalid_bind_error_code=8

SMPP.smpp17.allow_duplicate_binding=yes

The password was not correct. But now, i have I/O
ERROR (System error)
Couldn't connect to sms center


The SMSC is Converse


Please HELP



--- Alejandro Guerrieri
<[EMAIL PROTECTED]> a écrit :

> Gerald,
>
> That's like asking "My ISP's mail server it's QMAIL,
> so what's my
> email account's password?" ;)
>
> You'll have to ask your SMSC operator for those
> settings.
>
> Hope it helps,
>
> On 10/23/06, P. Gerard MBOUYAP <[EMAIL PROTECTED]>
> wrote:
> > Hi guys
> > my operator's SMSC is COMVERSE SMPP 3.4
> > What system-type can i use? did somebody already
> use
> > this type of SMSC?
> >
> > Thank you
> >
> >
> > --- Tuomas Koski <[EMAIL PROTECTED]> a écrit:
> >
> > > Hi Gerard,
> > >
> > > Do you know if the the SMSC is provided by
> > > LogicaCMG?
> > >
> > > BR,
> > > --
> > > tuomas
> > >
> > >
> > > On 10/22/06, Stipe Tolj <[EMAIL PROTECTED]> wrote:
> > > >
> > > > P. Gerard MBOUYAP wrote:
> > > >
> > > > > Hi
> > > > > Thank you for your responses.
> > > > > Please can you provide me the list of all
> > > system-type
> > > > > which exist?
> > > >
> > > > no, we can't :) ... since it's a "string"
> actually
> > > that can be freely
> > > > used.
> > > > Please contact you'r SMSC operator to request
> what
> > > value should be used
> > > > for this.
> > > >
> > > > In worst case, you said the "other" software
> > > worked, you can sniff the
> > > > SMPP PDU
> > > > packets using ethereal and look what that
> other
> > > software sends.
> > > >
> > > > 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
> > > >
> > >
> >
>
---
> > > >
> > > >
> > >
> >
> >
> >
> >
> >
> >
> >
> >
>
___
> > Découvrez une nouvelle façon d'obtenir des
> réponses à toutes vos questions !
> > Demandez à ceux qui savent sur Yahoo!
> Questions/Réponses
> > http://fr.answers.yahoo.com
> >
> >
>
>
> --
> Alejandro Guerrieri
> Magicom
> http://www.magicom-bcn.net/
> LinkedIn: http://www.linkedin.com/in/aguerrieri
>
>







___
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions 
!
Profitez des connaissances, des opinions et des expériences des internautes 
sur Yahoo! Questions/Réponses

http://fr.answers.yahoo.com





--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/
LinkedIn: http://www.linkedin.com/in/aguerrieri




Re: mysql dlr storage

2006-10-27 Thread Iain Dooley

you might try uncommenting your username and password in the mysql group

cheers

ian

On Fri, 27 Oct 2006, Eric Magutu wrote:


Hi,
I am running kannel on Ubuntu. I am trying to store DLR information into a
MySQL database. I get the following error when checking the status:

While trying to retrieve the URL: http://192.168.16.191:13000/status

The following error was encountered:

 - * Connection Failed *

The system returned:

*(61) Connection refused*

The remote host or network may be down. Please try the request again.

my kannel. conf file is:

#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "*.*.*.*"
wapbox-port = 13002
smsbox-port = 13003
dlr-storage = mysql
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"


group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"

group = smsbox
bearerbox-host = localhost
log-file = "/var/log/kannel/smsbox.log"

group = smsc
smsc = fake
smsc-id = test
port = 13005
allowed-prefix = 07
log-file = "/var/log/kannel/smsc.log"
connect-allow-ip = 127.0.0.1

group = mysql-connection
id = mydlr
host = localhost
username = kannel
password = kannel
database = kannel
max-connections = 1

group = dlr-db
id = mdlr
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

When I comment out the following lines:

#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13000
admin-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "*.*.*.*"
wapbox-port = 13002
smsbox-port = 13003
#dlr-storage = mysql
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"


group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"

group = smsbox
bearerbox-host = localhost
log-file = "/var/log/kannel/smsbox.log"

group = smsc
smsc = fake
smsc-id = test
port = 13005
allowed-prefix = 07
log-file = "/var/log/kannel/smsc.log"
connect-allow-ip = 127.0.0.1

group = mysql-connection
id = mydlr
host = localhost
#username = kannel
#password = kannel
database = kannel
max-connections = 1

group = dlr-db
id = mdlr
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

My status is ok. Please let me know what I'm doing wrong.

Eric





Re: Kannel start up

2006-10-27 Thread Iain Dooley

try putting a sleep 30 in between starting the bearer and the smsbox

cheers

iain

On Wed, 27 Oct 2010, sokha wrote:


Hello everyone,
I have setuped and running kannel (using binary rpm) but when 
I reboot my machine ,sometime , smsbox does not start. why? 
plz help me .

My machine is
OS: Linux Red Hat Enterprise Linux 4
. 







Re: -d or --daemonize option

2006-10-31 Thread Iain Dooley

i run it with & at the end of the line in rc.local :)

On Tue, 31 Oct 2006, sprinkle wrote:




sprinkle wrote:


I have installed the latest kannel (1.4.1) - everything is fine. I
could run bearerbox in normal mode (with no argument) but it refuses
to run when I tried daemonize it. ie bearbox -d or bearbox --daemonize

This is also the case with kannel 1.4.0 but it works on previouse
version of kannel.

any idea?

Thanks in advance




Anyone, please? A clue? A discussion? Anything?
--
View this message in context: 
http://www.nabble.com/-d-or---daemonize-option-tf2507622.html#a7092935
Sent from the Kannel - User mailing list archive at Nabble.com.







Re: Bulk SMS sending

2006-11-06 Thread Iain Dooley



On Mon, 6 Nov 2006, Shanavaz E A wrote:


Hi,

I know that SMS can be send to multiple recipients by specifying
to=123456, 23456, 34567 etc. But is their any limitation in the no.
of recipients specified in this way. Also is their any advantage for this method
than sending one by one.
Also I like to know if I submit bulk message like this can I stop sending in 
between.


there's a character limitation (1024?) in the http protocol on the length 
allowed in a GET query string. not sure if it applies here


cheers

iain


Pls help me

Thanks
Shanavaz.




-
Check out the all-new Yahoo! Mail - Fire up a more powerful email and get 
things done faster.




RE: Mail2SMS with Kannel

2006-11-06 Thread Iain Dooley



On Tue, 7 Nov 2006, Divyesh Amipara wrote:


Hi,



Is there anything...when user receives and mail, MTA will run a script
or contact kannel at sendsms port to send sms (kind of forwarding
mechanism)?


if i were doing this i'd have a script to receive the mail then just 
format the appropriate call to the kannel HTTP gateway.


cheers

iain




And how it can be achieved?



Thanks,


Divyesh A.






From: Ady Wicaksono [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 6:58 AM
To: Lars-Hendrik Schneider
Cc: users@kannel.org
Subject: Re: Mail2SMS with Kannel



Another approach is

Mail (Anything which accessible through IMAP/POP3) --> new mail -->
[create session id] --> send URL over WAP Push --> User click on WAP
Push SMS --> email opened through web/wap

:)

On 11/6/06, Lars-Hendrik Schneider <[EMAIL PROTECTED]> wrote:

HI Gottfried,

Huber, Gottfried schrieb:


Hi to all kannel-professionals

Does anybody have expierience or solution for  MAIL2SMS using  kannel

?

are you looking for something like:

Linux -> fetchmail -> procmail -> php -> kannel?

I used this to get processed information from a sensor device that sent
its data as email when I was in the field.


This is where I started,

Lars-Hendrik







--
Regards,

Ady Wicaksono
Email:
adiwicaksono   at yahoo.com
ady.wicaksono at {
yahoo.com/gmail.com/switchlab.com/beasiswamagelang.net/cbn.net.id
 }






Re: can u suggest smsbox can be used to check the credit of users in tables

2006-11-09 Thread Iain Dooley



On Thu, 9 Nov 2006, manoj raul wrote:


Hi

as per my knowledge smsbox is postpaid arcitecture


as far as i understand, smsbox makes no attempt at being a billing system 
of any type



can anybody suggest me how can i use it with users
credit
check

what configuration is required for that?


you send sms via HTTP, so the script that sends the sms needs to check 
your billing system for available credit.


cheers

iain


Regards
Manoj





Sponsored Link

Get a free Motorola Razr! Today Only!
Choose Cingular, Sprint, Verizon, Alltel, or T-Mobile.
http://www.letstalk.com/inlink.htm?to=592913






Re: Sms (or URL) on RING

2006-11-09 Thread Iain Dooley
i'm developing something similar, i need a script that accepts phone 
calls, finds the number, drops the call then initiates a callback.


would your system require caller line identification? the bit about acting 
on a ring seems pretty trivial to me. i was planning on a php script 
(simply because that's what i'm most comfortable with) that opens a socket 
to the command:


cu -s 115200 -l /dev/ttyUSB0

when the modem receives a call, the the output goes RING RING RING, and 
you can enter AT strings to pick up the call etc. (you can try it 
manually, just plug your modem in, issue that command and then call it, 
you'll see RING RING RING on the screen, then type ath1 to pickup, ath0 to 
hangup ... etc. etc.)


i'm pretty sure you can use AT strings to access CLI information 
(obviously not for international numbers).


cheers

iain

On Thu, 9 Nov 2006, Julien Buratto wrote:


If any of you is interested in developing with me a kind of "ring
service on demand", please contact me.

This should work like you have a smsc modem connected to kannel, when
that modem receives a call from a phone, it sends and SMS or better call
a service URL

Anyone ?
Cheers
Julien






Re[2]: Sms (or URL) on RING

2006-11-09 Thread Iain Dooley



On Thu, 9 Nov 2006, Thomas G?ttgens wrote:


Hello Iain,

we use a similar setup to accept requests for sending out alert
SMS batches. Caller calls an extension on our pbx from a registered
phone and triggers the sending of a couple of SMS to a predefined
list. Clients use this predominantly to trigger alert sms by dialup
devices.

don't even try to fiddle with modems or direct serial scripting here,
use an asterisk server for the call processing like we did. In our
case the calls are not even sent in via ISDN cards, but via SIP
directly from the phone company, although ISDN would work as well.
We simply pick up the ring, compare with our CLI-Database and
trigger Kannel to send the SMS. For details in the setup, you can
contact me.


the big issue here is that my client needs to be able to deploy a server 
in a large number of geographically disparate locations, so it cannot be 
assumed that he has call termination where the server is deployed 
necessarily. and you can't get CLI information on international numbers, 
so i need to have the dial in happening on a GSM modem, that way we just 
have to deploy the server with a modem+sim card attached and we can do CLI 
in almost any country with a lot less hassle.


i don't actually know asterisk that well, but i'm assuming that i can't 
just plug a GSM modem into asterisk ...


cheers

iain


--
Best regards,
Thomasmailto:[EMAIL PROTECTED]


viewing internal dlr storage

2007-01-01 Thread Iain Dooley
hi, i've set dlr-storage = internal in my 'core' group. i can see there are two 
parameters of interest in the sendsms-user configuration group, dlr-mask and 
dlr-url.


however i can't really see what these two are supposed to be. the dlr-mask 
confuses me, and i'm not sure how the parameters will be passed to the dlr-url 
that i specify.


can someone please supply an example configuration or method of viewing 
internal DLR?


cheers

iain



interal dlr storage

2007-01-05 Thread Iain Dooley
hi, how can i get access to ineral DLR information? i'm using dlr-storage 
internal and i want to look at the delivery reports.


cheers

iain



internal dlr storage

2007-01-07 Thread Iain Dooley
hi, i've written a couple of times about how to access internal dlr 
storage and there have been no responses. am i missing something very 
obviuous here? i can't find anything in the userguide or google which 
tells me how to access the delivery reports... is it not possible?


cheers

iain



Re: internal dlr storage

2007-01-07 Thread Iain Dooley

hi seik,


In case you want to work with  delivery reports,
there is no usage of dealing with the internal dlr storage.


hmm what is internal then? it does'nt say this in the manual


Instead, when sending the message, set dlr-mask to something useful value as 31,
and set dlr-url value to an accusable by Kannel URL:


the description of the dlr-mask in the user guide totally perplexed me. 
why is 31 a useful value?



example:

http://localhost/dlr.pgsql.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T&smsID={$mesgid}&charset=%C&kannel_id=%I

$mesgid would be the unique external application ID by which you would know 
what the status of the sent message is.


that's a great example thanks


Kannel will query the URL with the proper values according to the dlr-mask 
value.
It ups to you to set the logic behind the dlr-url


what do you mean by "according to the dlr-mask value"? how does the 
dlr-mask value affect what is passed to the dlr-url?



all the above is in the manual, as usual:

http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html

Table 6-9. Parameters (Escape Codes)
Table 6-12. SendSMS-User Group Variables

and especially that one:
Table 6-16. SMS Push (send-sms) CGI Variables


okay, i had looked at all these sections although i glossed over the 
sms-service bit because at the moment i am not aiming to receive any 
messages. the fact that the dlr-url uses the same variables as the 
sms-service was lost on me.


it would be good if there was an example (or link to one) in the user 
manual under the 'internal dlr storage' seition.


i'm still baffled as to the meaning of dlr-mask

cheers

iain

in short, this is the most flexible way of monitoring your 

messages status,

as you may set the dlr-url per client account or whatever rule you may have.


Regards

seik



-Original Message-
From: Iain Dooley [EMAIL PROTECTED]
Sent: 07 Януари 2007 г.
To: seik
Subject:internal dlr storage


hi, i've written a couple of times about how to access internal dlr
storage and there have been no responses. am i missing something very
obviuous here? i can't find anything in the userguide or google which
tells me how to access the delivery reports... is it not possible?



cheers



iain








kannel character encoding

2007-01-12 Thread Iain Dooley

does anyone know what the default character encoding kannel uses is?

cheers

iain




sending escape character

2007-01-16 Thread Iain Dooley
hi, i need to send an escape character with the value 0x1b. how can i 
specify this? i'm sending from php so i did this:


$message = 'Poker '.chr(hexdec('1b')).'40 the glasgow arms';

but it doesn't seem to work. i received the text message:

"Poker ?40 the glasgow arms"

according to the mblox documentation it should have come as:

"Poker @ the glasgow arms"

can anyone shed any light on this?

cheers

iain





sending escape character to smsc

2007-01-17 Thread Iain Dooley

hello again, okay here is a more detailed description of my problem.

i sent a message with an '@' symbol to a handset and when it arrived the 
'@' symbol cut off the message.


the mblox manual says that i need to send the escape character followed by 
'40' in order to send an '@' symbol. mblox technical support say that i 
need to 'encode the @ symbol as :40'. i don't know what ':' is supposed to 
refer to here, as when i send the message :40 it sends the literal string 
":40".


i used urlencode(chr(hexdec('1b'))) to create a message with the escape 
character (which i then saw just generates %1B :)


"Poker+%1B40+the+glasgow+arms"

the message shows up in the kannel log as:

"Poker 0 the glasgow arms"

and arrives at my handset as:

"Poker ?40 the glasgow arms"

does this give anyone a bit more ammunition to help solve the problem?

cheers

iain




Re: Siemens MC39i : Kannel not receiving messages!

2007-01-17 Thread Iain Dooley
just looking at your modem type, you have AT, i have WAVECOM here, and i 
include modems.conf which is where that modem type is defined.


open minicom and type:

ati1 

to print the modem type

On Thu, 18 Jan 2007, Tinku Sampath wrote:


Hi,


I have SIEMENS MC39i GPRS Modem. I am trying to make it work with Kannel. I am 
successfully communicating with it using AT commands through minicom. I am able 
to send SMS as well as read messages from the SIM card using AT commands. I 
also tried using Gnokii in which also SMS send and receive is working 
perfectly. But using Kannel, I am only able to send SMS. Kannel is not showing 
the received SMSes. It is always showing the received count as 0 when I checked 
Status in bearerbox server.

So I configured PlaySMS to see the incoming messages and successfully 
interfaced it with Kannel. But PlaySMS is also not showing anything in it's 
Inbox. But it is able to send SMS. After sending SMS from PlaySMS, kannel is 
showing the messages received from PlaySMS.

I don't know where is the problem? Is that with the Modem or with the Kannel 
configuration?

Below I am pasting the content of my kannel.conf so that anyone can suggest if 
there is any modification required.

-
 kannel.conf
-






#-
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'




group = core
admin-port = 13000
smsbox-port = 13001
admin-password = *
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "10.0.0.27"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/tmp/access.log"
store-file = "/home/tinkusam/sms.txt"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


#-
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
#bearerbox-port = 13000
global-sender = +1122
sendsms-port = 
sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsaccess.log"
smsbox-id = tinku

#--
# SMSBOX ROUTE
#

group = smsbox-route
smsbox-id = tinku
smsc-ids = SIEMENSMC39i;

#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

group = sendsms-user
username = tinku
password = *
#user-deny-ip = ""
#user-allow-ip = ""

#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

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

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = "Hello...This is from Azri GSM router"
exec = /usr/local/bin/kannel_incoming %t %q %a
#get-url = 
"http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a";

group = sms-service
keyword = tinku
get-url = "http://www.%s.com";

#GSM  Modem

# SMSC GSM
group = smsc
smsc = at
smsc-id = "SIEMENSMC39i"
modemtype = AT
device = /dev/ttyS0
sms-center = +919849087001
keepalive = 20
no-dlr = false
host = 127.0.0.1
port = 13013

#MODEM Settings

group = modems
id= AT
name = "SIEMENS MC39i"
detect-string = "SIEMENS"
detect-string2 = "MC39i"
speed = 115200
enable-hwhs="AT+IFC=2,2"
init-string="AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0"
message-storage = ME 
enable-hwhs = "AT"




Tinku




TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.

http://tv.yahoo.com/



Re[2]: Siemens MC39i : Kannel not receiving messages!

2007-01-17 Thread Iain Dooley

this was actually somone else's query :)

On Thu, 18 Jan 2007, seik wrote:


Hi Ian,

Do you have the sms-service  configured?

something like :

# SERVICES

group = sms-service
get-url = 
"http://localhost/receive/?from=%p&message=%a&received=%T&encode=%C&charset=%c&to=%P";
keyword=default
omit-empty = true
accept-x-kannel-headers = true


-----Original Message-
From: Iain Dooley [EMAIL PROTECTED]
Sent: 18 Януари 2007 г.
To: seik
Subject:Siemens MC39i : Kannel not receiving messages!


just looking at your modem type, you have AT, i have WAVECOM here, and i
include modems.conf which is where that modem type is defined.



open minicom and type:



ati1 



to print the modem type



On Thu, 18 Jan 2007, Tinku Sampath wrote:



Hi,



I have SIEMENS MC39i GPRS Modem. I am trying to make it work with Kannel. I am 
successfully communicating with it
using AT commands through minicom. I am able to send SMS as well as read 
messages from the SIM card using AT commands.
I also tried using Gnokii in which also SMS send and receive is working 
perfectly. But using Kannel, I am only able to
send SMS. Kannel is not showing the received SMSes. It is always showing the 
received count as 0 when I checked Status in bearerbox server.



So I configured PlaySMS to see the incoming messages and successfully 
interfaced it with Kannel. But PlaySMS is also
not showing anything in it's Inbox. But it is able to send SMS. After sending 
SMS from PlaySMS, kannel is showing the messages received from PlaySMS.



I don't know where is the problem? Is that with the Modem or with the Kannel 
configuration?



Below I am pasting the content of my kannel.conf so that anyone can suggest if 
there is any modification required.



-
  kannel.conf
-








#-
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'






group = core
admin-port = 13000
smsbox-port = 13001
admin-password = *
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "10.0.0.27"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/tmp/access.log"
store-file = "/home/tinkusam/sms.txt"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"




#-
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery



group = smsbox
bearerbox-host = 127.0.0.1
#bearerbox-port = 13000
global-sender = +1122
sendsms-port = 
sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsaccess.log"
smsbox-id = tinku



#--
# SMSBOX ROUTE
#



group = smsbox-route
smsbox-id = tinku
smsc-ids = SIEMENSMC39i;



#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...



group = sendsms-user
username = tinku
password = *
#user-deny-ip = ""
#user-allow-ip = ""



#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.



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



# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.



group = sms-service
keyword = default
text = "Hello...This is from Azri GSM router"
exec = /usr/local/bin/kannel_incoming %t %q %a
#get-url = 
"http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a";



group = sms-service
keyword = tinku
get-url = "http://www.%s.com";



#GSM  Modem



# SMSC GSM
group = smsc
smsc = at
smsc-id = "SIEMENSMC39i"
modemtype = AT
device = /dev

Re: Siemens MC39i : Kannel not receiving messages!

2007-01-19 Thread Iain Dooley



On Sat, 20 Jan 2007, Tinku Sampath wrote:


I changed the modem type to WAVECOM even though my modem seems to be working 
interactively with kannel so far. But the result, no difference. The same issue 
remains - I am not able to receive any SMS. More exactly, Kannel is showing 
received messages as 0 always. I cannot see any errors  in the kannel log file. 
Modem is opened perfectly and also initiated well. And as I said, sending SMS 
is working perfectly.


oh okay, sorry i misunderstood. i didn't realise you were able to send 
messages with kannel.


the only thing i can say is that when i was using a GSM modem (i'm now on 
SMPP so i don't have a copy of my old config file) i never set the 
sms-center configuration variable. i used an activated GSM sim card from 
my telco with which i could send and receive messages with a handset, and 
had to have 'data' services activated on the card.


also, if i used cu to talk to the modem directly, then i dialed the 
number of the SIM card, it would say:


RING

apart from that, i don't know enough about this stuff to contribute any 
further, sorry.


cheers

iain

- Original Message 
From: Iain Dooley <[EMAIL PROTECTED]>
To: Tinku Sampath <[EMAIL PROTECTED]>
Cc: users@kannel.org
Sent: Thursday, January 18, 2007 11:39:26 AM
Subject: Re: Siemens MC39i : Kannel not receiving messages!

just looking at your modem type, you have AT, i have WAVECOM here, and i 
include modems.conf which is where that modem type is defined.


open minicom and type:

ati1 

to print the modem type

On Thu, 18 Jan 2007, Tinku Sampath wrote:


Hi,


I have SIEMENS MC39i GPRS Modem. I am trying to make it work with Kannel. I am 
successfully communicating with it using AT commands through minicom. I am able 
to send SMS as well as read messages from the SIM card using AT commands. I 
also tried using Gnokii in which also SMS send and receive is working 
perfectly. But using Kannel, I am only able to send SMS. Kannel is not showing 
the received SMSes. It is always showing the received count as 0 when I checked 
Status in bearerbox server.

So I configured PlaySMS to see the incoming messages and successfully 
interfaced it with Kannel. But PlaySMS is also not showing anything in it's 
Inbox. But it is able to send SMS. After sending SMS from PlaySMS, kannel is 
showing the messages received from PlaySMS.

I don't know where is the problem? Is that with the Modem or with the Kannel 
configuration?

Below I am pasting the content of my kannel.conf so that anyone can suggest if 
there is any modification required.

-
  kannel.conf
-






#-
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'




group = core
admin-port = 13000
smsbox-port = 13001
admin-password = *
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "10.0.0.27"
#unified-prefix = "+358,00358,0;+,00"
access-log = "/tmp/access.log"
store-file = "/home/tinkusam/sms.txt"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


#-
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
#bearerbox-port = 13000
global-sender = +1122
sendsms-port = 
sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsaccess.log"
smsbox-id = tinku

#--
# SMSBOX ROUTE
#

group = smsbox-route
smsbox-id = tinku
smsc-ids = SIEMENSMC39i;

#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...

group = sendsms-user
username = tinku
password = *
#user-deny-ip = ""
#user-allow-ip = ""

#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one

Re: sending escape character to smsc

2007-01-19 Thread Iain Dooley

hi seik,


so, in case you have no contact with the SMSC people,
if you receive MO traffic from this SMSC,
send a message from your mobile containing @
and check what is the character code of the @ symbol.
the SMSC will cut the MO message as well.

do this:
$strangeCharValue=64; // found strange value of the SMSC character

$new_sms="";
for ($i=0; $i

wow  that is bizarre. the smsc people had no idea this was happening. 
makes me wonder ...


anyway, your codes worked thanks. i did simplify it a little though ;)

$new_sms = str_replace('@',chr(161),$old_sms);

cheers

iain


Regards

seik

-Original Message-----
From: Iain Dooley [EMAIL PROTECTED]
Sent: 18 Януари 2007 г.
To: seik
Subject:sending escape character to smsc


hello again, okay here is a more detailed description of my problem.



i sent a message with an '@' symbol to a handset and when it arrived the
'@' symbol cut off the message.



the mblox manual says that i need to send the escape character followed by
'40' in order to send an '@' symbol. mblox technical support say that i
need to 'encode the @ symbol as :40'. i don't know what ':' is supposed to
refer to here, as when i send the message :40 it sends the literal string
":40".



i used urlencode(chr(hexdec('1b'))) to create a message with the escape
character (which i then saw just generates %1B :)



"Poker+%1B40+the+glasgow+arms"



the message shows up in the kannel log as:



"Poker 0 the glasgow arms"



and arrives at my handset as:



"Poker ?40 the glasgow arms"



does this give anyone a bit more ammunition to help solve the problem?



cheers



iain






  1   2   3   >