try setting the device in the 'smsc' group to /dev/com3 (for COM3)
----- Original Message ----- 
From: "arish ali" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 20, 2003 6:10 AM
Subject: Startup error - fail to set termios attribute


> Hi,
>   I am having a problem trying to run Kannel (1.2.1) on Cygwin
> (1.5.5(0.94/3/2)), with Libxml version 20423 on an Windows XP laptop. I
have
> tried with a Wavecom modem, as well as a Nokia 7210. I get the following
> error -
>
> 2003-11-20 08:20:06 [5] ERROR: AT2[com3]: at_data_link: fail to set
termios
> attribute
> 2003-11-20 08:20:06 [5] ERROR: System error 25: Not a typewriter
>
>   I would appreciate any help on how to resolve the issue- the full spew
and
> the conf files are attached below:
>
>
> -----------------------------
> 2003-11-20 08:20:06 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl =
0
> 2003-11-20 08:20:06 [0] WARNING: DLR: using default 'internal' for storage
> type.
>
> 2003-11-20 08:20:06 [0] DEBUG: Kannel bearerbox version `1.2.1'.
> System CYGWIN_NT-5.1, release 1.5.5(0.94/3/2), version 2003-09-20 16:31,
> machine
> i686.
> Hostname lutetia, IP 61.247.248.89.
> Libxml version 20423.
> Using OpenSSL 0.9.6h  5 Dec 2002.
> Using native malloc.
>
> 2003-11-20 08:20:06 [0] DEBUG: HTTP: Opening server at port 13000.
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
> 2003-11-20 08:20:06 [0] DEBUG: starting smsbox connection module
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
> 2003-11-20 08:20:06 [0] INFO: AT2[com3]: configuration shows modemtype
> <wavecom>
>
> 2003-11-20 08:20:06 [0] DEBUG: AT2[com3]: Reading modem definitions from
> </cygdr
> ive/d/Programs/kannel/skavakannel.conf>
> 2003-11-20 08:20:06 [0] DEBUG: AT2[com3]: Found <10> modems in config
> 2003-11-20 08:20:06 [0] INFO: AT2[com3]: read modem definition for
<Wavecom>
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 5
> (gw/smsc/smsc_at2.c:at2_device_t
> hread)
> 2003-11-20 08:20:06 [0] DEBUG: Started thread 6
> (gw/bb_smscconn.c:sms_router)
> 2003-11-20 08:20:06 [5] INFO: AT2[com3]: trying to use speed <9600> from
> modem d
> efinition
> 2003-11-20 08:20:06 [5] INFO: AT2[com3]: opening device
> 2003-11-20 08:20:06 [6] DEBUG: sms_router: time to sleep
> 2003-11-20 08:20:06 [0] INFO: ----------------------------------------
> 2003-11-20 08:20:06 [0] INFO: Kannel bearerbox II version 1.2.1 starting
> 2003-11-20 08:20:06 [5] DEBUG: AT2[com3]: device opened
> 2003-11-20 08:20:06 [5] ERROR: AT2[com3]: at_data_link: fail to set
termios
> attr
> ibute
> 2003-11-20 08:20:06 [5] ERROR: System error 25: Not a typewriter
> 2003-11-20 08:20:06 [5] INFO: AT2[com3]: speed set to 9600
> 2003-11-20 08:20:06 [5] DEBUG: AT2[com3]: --> ^M
> 2003-11-20 08:20:06 [0] INFO: MAIN: Start-up done, entering mainloop
> 2003-11-20 08:20:06 [0] DEBUG: AT2[com3]: start called
> 2003-11-20 08:20:06 [6] DEBUG: sms_router: list_len = 0
> 2003-11-20 08:20:17 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
> 2003-11-20 08:20:17 [7] INFO: Client connected from <127.0.0.1>
> 2003-11-20 08:20:17 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
>
> ---------------------------------------------------
>
> #
> #
> # This works with the default binary Kannel distribution for cygwin
> #
> #  It is run like this from the cygwin shell -
> #
> #  1% bin/bearerbox smskannel.conf
> #  2% bin/smsbox smskannel.conf
> #  3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
> #
> # ..all 3 commands in separate shells (or screen sessions)
> #
> # The binaries bearerbox, smsbox, fakemsc are located in the default
kannel
> distro
> #
> # For any modifications to this file, see Kannel User Guide
> # If that does not help, send email to [EMAIL PROTECTED]
> #
> #   Kalle Marjola May 2000
> #   Changed for new fakesmsc version by Uoti Urpala Jan 2001
> #   Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
> #
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> #admin-deny-ip = ""
> #admin-allow-ip = ""
> #log-file = "/tmp/kannel.log"
> #log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> unified-prefix = "00358,0"
> #access-log = "access.log"
> #store-file = "kannel.store"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
>
>
> # SMSC CONNECTIONS
>
> #group = smsc
> #smsc = fake
> #smsc-id = FAKE
> #port = 10000
> #connect-allow-ip = 127.0.0.1
>
>
> #NOKIA 7210
>
> #group = smsc
> #smsc = at2
> #smsc-id = 7210
> #modemtype=nokiaphone
> #device=com4
> #speed = 19200
> #device=/dev/ttyS0
> #pin=1234
> #include=/usr/local/etc/modems.conf
>
> #NOKIA 7210
>
> #group = smsc
> #smsc = at2
> #smsc-id = 7210
> #modemtype=nokiaphone
> #device=com5
> #speed = 19200
>
> #WAVECOM FASTTRACK MODEM
> group = smsc
> smsc = at2
> modemtype=wavecom
> device=com3
>
> # SMSBOX SETUP
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 13013
> #sendsms-chars = "0123456789 +-"
> #log-file = "/tmp/smsbox.log"
> #log-level = 0
> #access-log = "access.log"
>
>
> # SEND-SMS USERS
>
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
> # this sender is for Kannel relay testing (http_smsc)
>
> group = sendsms-user
> username = kannel
> password = rL4y
> user-deny-ip = "*.*.*.*"
> user-allow-ip = "127.0.0.1"
>
> #
> # The services should go in a separate file to make it easier for
> development
> #
>
> # SERVICES
>
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
>
> # this service is for Kannel relay testing, when this Kannel
> # works as relay gateway
>
> group = sms-service
> keyword = relay
> get-url =
> "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r";
> max-messages = 0
>
> #
> # Skava test service
> #
> group = sms-service
> keyword = hello
> text = "Hello world there!"
>
>
> # there should be default always
>
> group = sms-service
> keyword = default
> text = "No service specified"
>
>
>
> #
> # modems.conf, again should be a different file and included as
> # include = "/path/to/modems.conf"
> #
>
> # 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 = wavecom
> name = Wavecom
> detect-string = "WAVECOM"
> need-sleep = true
>
> group = modems
> id = premicell
> name = Premicell
> detect-string = "PREMICEL"
> no-pin = true
> no-smsc = true
>
> group = modems
> id = siemens_tc35
> name = "Siemens TC35"
> detect-string = "SIEMENS"
> detect-string2 = "TC35"
> init-string = "AT+CNMI=1,2,0,0,1"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> need-sleep = true
>
> group = modems
> id = siemens_m20
> name = "Siemens M20"
> detect-string = "SIEMENS"
> detect-string2 = "M20"
> speed = 19200
> enable-hwhs = "AT\\Q3"
> keepalive-cmd = "AT+CBC;+CSQ"
> need-sleep = true
>
> group = modems
> id = nokiaphone
> name = "Nokia Phone"
> detect-string = "Nokia Mobile Phone"
> need-sleep = true
> keepalive-cmd = "AT+CBC;+CSQ"
> enable-mms = true
>
> group = modems
> id = falcom
> name = "Falcom"
> detect-string = "Falcom"
> no-smsc = true
>
> group = modems
> id = ericsson_r520m
> name = "Ericsson R520m"
> detect-string = "R520m"
> init-string = "AT+CNMI=3,2,0,0"
>
> group = modems
> id = ericsson_t68
> name = "Ericsson T68"
> detect-string = "T68"
> init-string = "AT+CNMI=3,3"
> keepalive-cmd = "AT+CBC;+CSQ"
> broken = true
>
> group = modems
> id = alcatel
> name = "Alcatel"
> detect-string = "Alcatel"
> init-string = "AT+CNMI=3,2,0,0"
>
> _________________________________________________________________
> Need a shot of Hank Williams or Patsy Cline?  The classic country stars
are
> always singing on MSN Radio Plus.  Try one month free!
> http://join.msn.com/?page=offers/premiumradio
>
>
>

Reply via email to