Hello,

Here are my configuration files - thanks again for your help.

Here is my smskannel.conf file:

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = [password]
log-file = "/tmp/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs

group = smsc
smsc = at
modemtype = auto
device = /dev/tty.ey-SerialPort-1
my-number = [phone number (example- 12061234567)]
connect-allow-ip = 127.0.0.1
log-level = 0
speed = 0
log-file = "/tmp/smsbbox.log"

#---------------------------------------------
# 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
sendsms-port = 13013
global-sender = [mobile number of attached phone in format
1-area-code-number]
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/access.log"

#---------------------------------------------
# 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 = [username]
password = [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 = default
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://[myurl]/sms.php?phone=%p&text=%a";

include = "/usr/local/kannel/modems.conf"

Here is my modems.conf file (the modem used is the "samsung" entry)
# Modems configuration
#
# Example and default values
#
# group = modems
# id = "my-id"
# name = "my-name"
# detect-string = "MODEM"
# detect-string2 = "" [Default]
# init-string = "AT+CNMI=1,2,0,0,0" [Default]
# speed = 9600 [Default]
# enable-hwhs = "AT+IFC=2,2" [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = "AT" [Default]
# broken = false [Default]
# message-storage = "SM"
# enable-mms = false [Default]


# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = samsung
name = samsung
detect-string = "SAMSUNG SGH-E890"
init-string = "AT+CNMI=1,1"


Cheers,
Kenshi


On 9/2/07, Alejandro Guerrieri <[EMAIL PROTECTED]> wrote:

    Please paste all relevant configuration files, set aside any passwords
    and public IP's.

    Regards,

    Alejandro

    On 9/2/07, Kenshi Arasaki <[EMAIL PROTECTED]> wrote:
    > Hello,
    >
    > I was also wondering if I might have perhaps set some configuration
settings
    > incorrectly.
    > Do the "my-number" and "global-sender" fields refer to the phone
number of
    > the mobile phone I am connecting?
    >
    > Cheers,
    > Kenshi
    >
    >
    > On 9/2/07, Kenshi Arasaki <[EMAIL PROTECTED]> wrote:
    > > Hello,
    > >
    > > I've set the loglevel to 0 for both the bearerbox and smsbox. From
reading
    > the Users Guide, it appears to be the most granular log level - is
this not
    > correct?
    > >
    > > From perusing the log files, I'm seeing messages of this type:
    > > 2007-09-02 16:42:43 [321] [3] DEBUG: Delayed reply - wait for
bearerbox
    > > 2007-09-02 16:42:43 [321] [0] DEBUG: Got ACK (0) of
    > 3b41b737-fa0b-495b-86c7-7479ed3fb131
    > > 2007-09-02 16:42:43 [321] [0] DEBUG: HTTP: Resetting HTTPClient for
    > `127.0.0.1'.
    > > 2007-09-02 16:43:43 [321] [1] DEBUG: Timeout for fd:25 appeares.
    > >
    > > or
    > >
    > > 2007-09-02 16:42:43 [294] [8] DEBUG: boxc_receiver: sms received
    > > 2007-09-02 16:42:43 [294] [8] DEBUG: send_msg: sending msg to box: <
    > 127.0.0.1>
    > > 2007-09-02 16:43:30 [294] [1] DEBUG: Timeout for fd:31 appeares.
    > >
    > > Could it have to do with the "Timeout" message I'm seeing? Also,
does
    > anyone know what that message means?
    > >
    > > Thanks,
    > > Kenshi
    > >
    > >
    > >
    > > On 9/1/07, Alejandro Guerrieri < [EMAIL PROTECTED]>
wrote:
    > > > Kenshi,
    > > >
    > > > Check on kannel.log, maybe you need to lower your log-level
setting to
    > > > get more info.
    > > >
    > > > Regards,
    > > >
    > > > Alejandro
    > > >
    > > > On 9/1/07, Kenshi Arasaki <[EMAIL PROTECTED] > wrote:
    > > > > Hello,
    > > > >
    > > > > I've got my samsung E890 phone connected via bluetooth to my mac
os X
    > laptop
    > > > > thanks to the people on this mailing list :)
    > > > >
    > > > > However, when I try to issue the following HTTP GET command in
order
    > to test
    > > > > send SMS functionality,
    > > > >
    >
http://myserver:myport/cgi-bin/sendsms?username=[user]&password=[password]&to=[number]&text=hellojello
    > > > > no SMS messages are sent, and my HTTP admin status shows that I
have a
    > > > > failure.
    > > > >
    > > > > I receive the following message after issuing the GET command:
0:
    > Accepted
    > > > > for delivery
    > > > >
    > > > > This is the log output from my bearerbox:
    > > > > 2007-09-01 18:31:09 [366] [2] DEBUG: HTTP: Creating HTTPClient
for
    > > > > `127.0.0.1'.
    > > > > 2007-09-01 18:31:09 [366] [2] DEBUG: HTTP: Created HTTPClient
area
    > 0x415920.
    > > > > 2007-09-01 18:31:09 [366] [3] INFO: smsbox: Got HTTP request
    > > > > </cgi-bin/sendsms> from < 127.0.0.1>
    > > > > 2007-09-01 18:31:09 [366] [3] INFO: sendsms used by <[user]>
    > > > > 2007-09-01 18:31:09 [366] [3] INFO: sendsms
sender:<[user]:[number]> (
    > > > > 127.0.0.1) to:<[number]> msg:<hellojello>
    > > > > 2007-09-01 18:31:09 [366] [3] DEBUG: Stored UUID
    > > > > adddabb8-79c5-4bed-a71f-8f052df256dd
    > > > > 2007-09-01 18:31:09 [366] [3] DEBUG: message length 10, sending
1
    > messages
    > > > > 2007-09-01 18:31:09 [366] [3] DEBUG: Status: 202 Answer: <Sent.>
    > > > > 2007-09-01 18:31:09 [366] [3] DEBUG: Delayed reply - wait for
    > bearerbox
    > > > > 2007-09-01 18:31:09 [366] [0] DEBUG: Got ACK (0) of
    > > > > adddabb8-79c5-4bed-a71f-8f052df256dd
    > > > > 2007-09-01 18:31:09 [366] [0] DEBUG: HTTP: Resetting HTTPClient
for
    > > > > `127.0.0.1'.
    > > > > 2007-09-01 18:32:09 [366] [1] DEBUG: Timeout for fd:25 appeares.
    > > > >
    > > > > This is the log output from my smsbox:
    > > > > 2007-09-01 18:31:10 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > > > > TP-Validity-Period: 24.0 hours
    > > > > 2007-09-01 18:31:10 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > -->
    > > > > AT+CMGS=23^M
    > > > > 2007-09-01 18:31:16 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > send
    > > > > command status: -1
    > > > > 2007-09-01 18:31:16 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > -->
    > > > > AT+CMGS=23^M
    > > > > 2007-09-01 18:31:22 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > send
    > > > > command status: -1
    > > > > 2007-09-01 18:31:22 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > -->
    > > > > AT+CMGS=23^M
    > > > > 2007-09-01 18:31:28 [365] [6] DEBUG:
AT2[/dev/tty.ey-SerialPort-1]:
    > send
    > > > > command status: -1
    > > > >
    > > > > Anyone have any ideas as to why my SMS messages aren't being
sent?
    > > > >
    > > > > Thanks,
    > > > > Kenshi
    > > > >
    > > > >
    > > > >
    > > >
    > > >
    > > > --
    > > > Alejandro Guerrieri
    > > > Magicom
    > > > http://www.magicom-bcn.net/
    > > > LinkedIn: http://www.linkedin.com/in/aguerrieri
    > > >
    > > >
    > >
    > >
    >
    >


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

Reply via email to