Did your mail agent put those blank lines between "group = smsc"
and "smsc = at"? Or, are they actually in the configuration file?
If you do have blank lines in there, then remove them.
Support for the GSM Modem as a virtual SMSC is found in
gateway/gw/smsc/smsc_at.c and gateway/gw/smsc/smsc_at.h.
The error you were getting "Unknown SMSC type 'at'" only happens
after the checks for all the smscs.
That usually happens if the smsc is mispelled, has extra characters
(e.g. double-byte characters instead of ASCII) in the name, or
incorrect parsing of the configuration file.
The bearerbox execution sequence is:
- gateway/gw/bearerbox.c:main() calls
gateway/gw/bearerbox.c:init_bearerbox().
- init_bearerbox() calls gateway/gw/bearerbox.c:start_smsc().
- start_smsc() calls gateway/gw/bb_smscconn.c:smsc2_start().
- smsc2_start() calls gateway/gw/smscconn.c:smscconn_create() for
every "group = smsc" encountered.
- smscconn_create() processes the configuration group and then
creates the smsc client instances based on the configuration.
It is here that checks the "smsc = xxx" entry in the following
sequence:
"fake" --> smsc_fake_create()
"cimd2" --> smsc_cimd2_create()
"emi" --> smsc_emi2_create()
"http" --> smsc_http_create()
"smpp" --> smsc_smpp_create()
"at" --> smsc_at2_create()
"cgw" --> smsc_cgw_create()
"smasi" --> smsc_smasi_create()
"oisd" --> smsc_oisd_create()
The name comparison is byte-for-byte. Therefore, if the name does not
exactly match the byte sequence 0x61 0x74 ("at"), 0x41 0x54 ("AT"),
0x41 0x74 ("At"), or 0x61 0x54 ("aT"), then the match will fail to
find a declaration for the GSM modem smsc configuration.
Should the smsc not be one of the above, it punts the evaluation over
to gateway/gw/smsc/smsc_wrapper.c:smsc_wrapper_create() for the older,
less support smsc client implementation.
- Inside smsc_wrapper_create() it calls gateway/gw/smsc/smsc.c:smsc_open().
- smsc_open() compares the smsc type to the following older implementations:
"cimd"
"emi_x25"
"sema"
"ois"
If the smsc type is none of the above, then it will issue the:
Unknown SMSC type '...'
message and abort the attempt to create and instance of the smsc client.
See ya...
d.c.
**>From: Pedro Braz?o Ferreira <[EMAIL PROTECTED]>
**>To: <[EMAIL PROTECTED]>
**>Subject: RE: Using Siemens MC35i as smsc AT2
**>Date: Wed, 16 Feb 2005 10:02:19 -0000
**>Cc: [email protected]
**>
**>Hi,
**>
**>As Pieter ask me, my modems.conf has only two groups like this:
**>
**>group = modems
**>id = generic
**>name = "Generic Modem"
**>
**>group = modems
**>id = siemens-mc35
**>name = "Siemens MC35"
**>detect-string = "SIEMENS"
**>detect-string2 = "MC35"
**>init-string = "AT+CNMI=1,2,0,1,1"
**>speed = 19200
**>enable-hwhs = "AT\\Q3"
**>need-sleep = true
**>
**>The second one was copied from Siemens TC35 group, included on default
**>modems.conf distribution.
**>
**>But I feel the problem is on the compilation time. I had a look by sources
**>and I didn't found AT (or AT2) support within any original script,
**>particularly on smsc.c file functions.
**>
**>Because I'm not a C specialist I have some difficulty add that option and
**>recompile the Kannel. Perhaps some of you know the problem and have a
**>solution...
**>
**>Thx again,
**>Pedro
**>
**>-----Original Message-----
**>From: Pieter Natte [mailto:[EMAIL PROTECTED]
**>Sent: quarta-feira, 16 de Fevereiro de 2005 0:42
**>To: Pedro Braz ? o Ferreira
**>Subject: Re: Using Siemens MC35i as smsc AT2
**>
**>
**>Pedro,
**>
**>Please let us know what is in modems.conf?
**>
**>Pieter
**>
**>
**>---------- Original Message ----------------------------------
**>From: Pedro Braz?o Ferreira <[EMAIL PROTECTED]>
**>Date: Tue, 15 Feb 2005 17:26:37 -0000
**>
**>>Dear fellows,
**>>
**>>
**>>
**>>I?m trying using Kannel 1.4.0 as sms gateway. Setting up boxes, users and
**>>services was a really piece of cake but I?m feeling some troubles putting a
**>>Siemens MC35i GSM modem acting as a smsc, through the AT smsc type.
**>>
**>>
**>>
**>>I?m working on a Red Hat 9 Linux distribution and the modem is responding
**>as
**>>needed, testing it with at commands via Minicom.
**>>
**>>
**>>
**>>My smsbox.conf has a smsc group like this.
**>>
**>>group = smsc
**>>
**>>smsc = at
**>>
**>>smsc-id = MODEM
**>>
**>>device = /dev/ttyS0
**>>
**>>modemtype = siemens-mc35
**>>
**>>#pin = 1212
**>>
**>>
**>>
**>># MODEM TYPES
**>>
**>>include = "/usr/local/kannel/etc/modems.conf"
**>>
**>>
**>>
**>>But every time the bearbox is started (./bearbox ?v 1 etc/smsbox.conf) I
**>get
**>>the error ?Unknown SMSC type ?AT??.
**>>
**>>I just read a few messages in user archive but anyone solve my problem.
**>>
**>>Could anyone of the members help me, if this is a solved problem for you or
**>>have any idea?