Ericsson AT Commands: Help please

2005-07-17 Thread Ammar Alammar
Dear users,

I am writing in order to request help with attaining the correct AT commands for the Ericsson r520m.
The following is a set of notes capturing the problem:
~~~

1) The sample config file modems.conf (attached) shipped with Kannel contains the following:

 group = modems
 id = ericsson_r520m
 name = Ericsson R520m
 detect-string = R520m
 init-string = AT+CNMI=3,2,0,0

2) However, when I run the bearerbox process I get the following error:

 See attached capture titles bearerbox-capture.txt

3) The smsboax runs perfectly. When I attempt to send an SMS via an
HTTP request it works and responds with SMS Sent. It is simply the
bearerbox that is not 'talking' to the phone correctly.

4) For completness, I have attached the kannel.conf file.

Any help would be great, especially in understanding the format of the init-string.
-- Regards,Ammar_Free yourself, Open new doors ... OpenSource

www.OpenSource.com



-- Regards,Ammar_Free yourself, Open new doors ... OpenSourcewww.OpenSource.com
[EMAIL PROTECTED] ~]#
[EMAIL PROTECTED] ~]# bearerbox -v 0 ./kannel.conf
2005-07-04 19:15:41 [4464] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl 
= 0
2005-07-04 19:15:41 [4464] [0] DEBUG: Loading include file `./modems.conf' (on 
line 166 of file ./kannel.conf).
2005-07-04 19:15:41 [4464] [0] WARNING: DLR: using default 'internal' for 
storage type.
2005-07-04 19:15:41 [4464] [0] INFO: DLR using storage type: internal
2005-07-04 19:15:41 [4464] [0] DEBUG: Kannel bearerbox version `1.4.0'.
Build `Jan 17 2005 06:57:56', compiler `3.4.2 20041017 (Red Hat 3.4.2-6.fc3)'.
System Linux, release 2.6.9-1.667, version #1 Tue Nov 2 14:41:25 EST 2004, 
machine i686.
Hostname 192.168.1.1, IP 192.168.1.1.
Libxml version 2.6.16.
Using OpenSSL 0.9.7a Feb 19 2003.
Using SQLite 2.8.15.
Using native malloc.

2005-07-04 19:15:41 [4464] [0] INFO: Added logfile 
`/home/sms/log/kannel-log.log' with level `1'.
2005-07-04 19:15:41 [4464] [0] INFO: Started access logfile 
`/home/sms/log/kannel-access-log.log'.
2005-07-04 19:15:41 [4464] [0] DEBUG: Started thread 1 
(gw/bb_store.c:store_cleanup)
2005-07-04 19:15:42 [4464] [0] INFO: HTTP: Opening server at port 13000.
2005-07-04 19:15:42 [4464] [0] DEBUG: Started thread 2 (gwlib/fdset.c:poller)
2005-07-04 19:15:42 [4464] [0] DEBUG: Started thread 3 
(gwlib/http.c:server_thread)
2005-07-04 19:15:42 [4464] [0] DEBUG: Started thread 4 
(gw/bb_http.c:httpadmin_run)
2005-07-04 19:15:42 [4464] [0] DEBUG: starting smsbox connection module
2005-07-04 19:15:42 [4464] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
default (100).
2005-07-04 19:15:42 [4464] [0] DEBUG: Started thread 5 
(gw/bb_boxc.c:sms_to_smsboxes)
2005-07-04 19:15:42 [4464] [1] DEBUG: Thread 1 (gw/bb_store.c:store_cleanup) 
maps to pid 4464.
2005-07-04 19:15:42 [4464] [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) maps to 
pid 4464.
2005-07-04 19:15:42 [4464] [3] DEBUG: Thread 3 (gwlib/http.c:server_thread) 
maps to pid 4464.
2005-07-04 19:15:42 [4464] [4] DEBUG: Thread 4 (gw/bb_http.c:httpadmin_run) 
maps to pid 4464.
2005-07-04 19:15:43 [4464] [5] DEBUG: Thread 5 (gw/bb_boxc.c:sms_to_smsboxes) 
maps to pid 4464.
2005-07-04 19:15:43 [4464] [0] DEBUG: Started thread 6 
(gw/bb_boxc.c:smsboxc_run)
2005-07-04 19:15:43 [4464] [0] INFO: DLR rerouting for smsc id (null) 
disabled.
2005-07-04 19:15:43 [4464] [0] INFO: AT2[/dev/ttyS0]: configuration shows 
modemtype ericsson_r520m
2005-07-04 19:15:43 [4464] [0] DEBUG: AT2[/dev/ttyS0]: Reading modem 
definitions from ./kannel.conf
2005-07-04 19:15:43 [4464] [0] DEBUG: Loading include file `./modems.conf' (on 
line 166 of file ./kannel.conf).
2005-07-04 19:15:44 [4464] [0] DEBUG: AT2[/dev/ttyS0]: Found 11 modems in 
config
2005-07-04 19:15:44 [4464] [0] INFO: AT2[/dev/ttyS0]: read modem definition for 
Ericsson R520m
2005-07-04 19:15:44 [4464] [0] DEBUG: Started thread 7 
(gw/smsc/smsc_at.c:at2_device_thread)
2005-07-04 19:15:44 [4464] [0] DEBUG: Started thread 8 
(gw/bb_smscconn.c:sms_router)
2005-07-04 19:15:44 [4464] [0] INFO: 
2005-07-04 19:15:44 [4464] [0] INFO: Kannel bearerbox II version 1.4.0 starting
2005-07-04 19:15:44 [4464] [6] DEBUG: Thread 6 (gw/bb_boxc.c:smsboxc_run) maps 
to pid 4464.
2005-07-04 19:15:44 [4464] [7] DEBUG: Thread 7 
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 4464.2005-07-04 19:15:44 
[4464] [7] INFO: AT2[/dev/ttyS0]: trying to use speed 9600 from modem 
definition2005-07-04 19:15:44 [4464] [7] INFO: AT2[/dev/ttyS0]: opening device
2005-07-04 19:15:44 [4464] [7] DEBUG: AT2[/dev/ttyS0]: device opened
2005-07-04 19:15:44 [4464] [7] DEBUG: AT2[/dev/ttyS0]: device opened
2005-07-04 19:15:44 [4464] [7] INFO: AT2[/dev/ttyS0]: speed set to 9600
2005-07-04 19:15:44 [4464] [7] DEBUG: AT2[/dev/ttyS0]: -- ^M
2005-07-04 19:15:44 [4464] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) 
maps to pid 4464.
2005-07-04 

Re: DLR missing parameters?

2005-07-17 Thread Ismail Adebayo
Hi All

I have problem configuring DLR with smpp. I am starting with dlr internal
storage. The manual says there is no additional configuration required. My
smpp connections are working o.k.

When I send this test message:
http://192.168.170.22:13013/cgi-bin/sendsms?username=testerpassword=foobar;
to=XXXfrom=YYYtext=test%20of%20smsc=MYSMPPdlr-mask=7dlr-url=http://192.1
68.170.11/kannelsms%3Fdlr=%25d%3Fphone%3D%25p

The text was delivered to the phone, but I got this dlr error in my log:
got DLR but could not find message or was not interested in it id
540602261 dest XXX, type1

What do i need to do to have the dlr forwarded to the url?

Thanks.

Ismail

there is no additional co
- Original Message -
From: Rene Kluwen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: users@kannel.org
Sent: Saturday, July 16, 2005 3:21 AM
Subject: Re: DLR missing parameters?


 In the dlr-url:

 
http://192.168.199.5:13013/cgi-bin/sendsms?username=testerpassword=foobart
o=55046300from=333text=dlrtest2yousmsc=SOMESMPPdlr-mask=7dlr-url=http:/
/192.168.10.131/cgi-bin/dlr2me.pl?dlr=%25d%3Fphone%3D%25p


 you have to urlencode the question mark as well, like:

 dlr-url=http://192.168.10.131/cgi-bin/dlr2me.pl%3Fdlr=%25d%3Fphone%3D%25p

 I am doing the %3F by heart... check if it is the right value.

 This is a frequently asked question. Shouldn't there be something about
 this in the user manual?

 Rene Kluwen
 Chimit

 
 
  Hello All!
 
  I've finally managed to semi configure DLR, and by semi I mean
  this: in access.log i have
 
  This is the SENT msg:
 
  2005-07-13 16:44:39 2005-07-13 22:44:38 Sent SMS [SMSC:SOMESMPP]
  [SVC:tester] [ACT:] [BINF:] [from:333] [to:55046300]
[flags:-1:0:-1:-1:7]
  [msg:12:dlrtest2you] [udh:0:]
[MSGIX:a553fd05-298f-4070-89d8-757cf66cc486]
  [CODING:-1]
 
  After that I get this:
 
  2005-07-13 16:51:55 2005-07-13 22:51:55 DLR SMS [SMSC:SOMESMPP]
  [SVC:tester] [ACT:] [BINF:] [from:333] [to:55046300]
[flags:-1:-1:-1:-1:1]
  [msg:114:id:0753745513 sub:001 dlvrd:001 submit date:0507131649 done
  date:0507131656 stat:DELIVRD err:061 text:dlrtest2yout] [udh:0:]
  [MSGIX:dbcd3a5b-1386-45db-936e-19b101eb4a41] [CODING:-1]
 
  And I've sent the message using Sendsms facility in kannel like this:
 
 
 
http://192.168.199.5:13013/cgi-bin/sendsms?username=testerpassword=foobart
o=55046300from=333text=dlrtest2yousmsc=SOMESMPPdlr-mask=7dlr-url=http:/
/192.168.10.131/cgi-bin/dlr2me.pl?dlr=%25d%3Fphone%3D%25p
 
  in my MySQL SQLBOX i see 2 entries just like in the access.log
 
  one Mobile Terminated that has dlr-url
  http://192.168.10.131/cgi-bin/dlr2me.pl?dlr=%d?phone=%p
  and dlr-mask 7
 
  and one Mobile Originated with dlr-url
  http://192.168.10.131/cgi-bin/dlr2me.pl?
  and dlr-mask 1
 
  NOTICE that the movile originated is missing the dlr=%d?phone=%p part,
  so my simple perl CGI script gets nothing.
 
  what am i doing wrong??? any clues all of you Kannel Gurus?
 
  Sorry if i went into much detail in this mail, but i think it might help
  more newbies like me if read sometime in the future!
 
 
  Thank you all!!
 
 
  Alejandro
 
 
 
 
 
 





Re: kannel installation

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

 will be glad if am helped

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

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

-- 
regards,

Anand Gupta




problems configuring a Sony Ericsson T637 + Kannel 1.4.0 + OSX 10.4.1

2005-07-17 Thread Henry Junior
Greetings,  This is my first post.  Thank you for having me.   
Apologies for such a lengthy first post, I hope this acceptable I  
wanted to provide relevant information to troubleshoot the issue at  
hand.


I have installed Kannel version 1.4.0 (under OSX 10.4.1) and am  
working on getting my Sony Ericsson T637 phone, to integrate via  
bluetooth, with Kannel as a GSM modem.  The mobile device is located  
at: /dev/tty.T637-SerialPort1-1


I'd like to share three recent configurations and their feedback from  
the bearerbox.  None has resulted in connection success that stayed  
connected.  Any feedback that might be worth me trying and/or  
investigating would be greatly appreciated.


I am assuming that this is a configuration issue in my settings.   
Perhaps someone is using a similar phone?  I have tried to use the  
T68 setting but that didn't do the trick for me.


Thank you in advance for your time and assistance.  Regards, HJ

#
ATTEMPT #1:
[ .conf settings ]:

group = smsc
smsc = at
modemtype = T630-T628
device = /dev/tty.T637-SerialPort1-1
speed = 9600

group = modems
id = T630-T628
name = T630-T628
detect-string = T630-T628
init-string = AT+CNMI=3,3
keepalive-cmd = AT+CBC;+CSQ
broken = true

[ Feedback from the bearerbox ]:

2005-07-17 09:41:36 [2349] [0] INFO: Kannel bearerbox II version  
1.4.0 starting
2005-07-17 09:41:36 [2349] [0] INFO: MAIN: Start-up done, entering  
mainloop
2005-07-17 09:41:36 [2349] [0] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: start called

2005-07-17 09:41:36 [2349] [9] DEBUG: sms_router: list_len = 0
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: device opened
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: device opened
2005-07-17 09:41:39 [2349] [6] INFO: AT2[/dev/tty.T637- 
SerialPort1-1]: init device
2005-07-17 09:41:39 [2349] [6] INFO: AT2[/dev/tty.T637- 
SerialPort1-1]: speed set to 9600
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATZ^M
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATZ
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT^M
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:39 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATF^M
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATF
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATE0^M
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- ATE0
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT+IFC=2,2^M
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT+CPIN?^M
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- +CPIN: READY
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:40 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT+CMGF=0^M
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT+CSMS=?^M
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- +CSMS: (0)
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- OK
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- AT+CNMI=3,3^M
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: -- +CMS ERROR: 303
2005-07-17 09:41:41 [2349] [6] ERROR: AT2[/dev/tty.T637- 
SerialPort1-1]: CMS ERROR: +CMS ERROR: 303 (Operation not supported)
2005-07-17 09:41:41 [2349] [6] ERROR: AT2[/dev/tty.T637- 
SerialPort1-1]: Opening failed. Terminating
2005-07-17 09:41:41 [2349] [6] INFO: AT2[/dev/tty.T637- 
SerialPort1-1]: closing device


#
ATTEMPT #2
[.conf settings]:

group = smsc
smsc = at
modemtype = auto
device = /dev/tty.T637-SerialPort1-1
speed = 9600

include= /usr/bin/gw/modems.conf

[Feedback from the bearerbox]:

2005-07-17 09:46:12 [2382] [0] INFO: AT2[/dev/tty.T637- 
SerialPort1-1]: configuration doesn't show modemtype. will autodetect

...
2005-07-17 09:46:12 [2382] [6] DEBUG: Thread 6 (gw/smsc/ 
smsc_at.c:at2_device_thread) maps to pid 2382.
2005-07-17 09:46:12 [2382] [6] DEBUG: AT2[/dev/tty.T637- 
SerialPort1-1]: detecting modem type
2005-07-17 09:46:12 [2382] [6] INFO: AT2[/dev/tty.T637- 
SerialPort1-1]: opening device

...
2005-07-17 09:46:12 [2382] [16] 

fakesmsc - confused on how mt is handled

2005-07-17 Thread Bas Schulte

Hi all,

I need to do some local testing with Kannel so I've setup a fakesmsc,  
like so:


group = smsc
smsc = fake
port = 1
smsc-id = fake-smsc-id
connect-allow-ip = 127.0.0.1

group = sendsms-user
username = tester
password = foobar
forced-smsc = fake-smsc-id
user-allow-ip = 127.0.0.1

Now I post a message to this url (smsbox is on port 13013):

http://localhost:13013/cgi-bin/sendsms?username=  
testerpassword=foobarsmsc-id=fake-smsc- 
idto=31612345678from=1234msg=abc


I have test/fakesmsc running like this;

test/fakesmsc -m 1 -v 1 31612345678 100 text www www.apple.com

Should or shouldn't that message be shown in fakesmsc's output? I  
would expect so but it doesn't. Are my assumptions wrong or is there  
something else that causes routing I didn't expect?


BTW, the response to the 'www www.apple.com' *is* shown by fakesmsc.

Never had this problem with 'normal' smsc's, just wonder how fakesmsc  
is supposed to work ;)


Cheers,

Bas.


--
--
Bas A. Schulte ([EMAIL PROTECTED])
Catalyst IT Limited
Level 2, 150-154 Willis Street, PO Box 11-053
Wellington, New Zealand
Tel: +64 4 4992267 DDI: +64 4 8032340 Mob:+64 4 273290458
http://catalyst.net.nz
--