Thanks for replying.

 Now this worked for another phone modem. Now my "SMSC is successfully
opened". Now how do send & receive messages.How do i move forward. My conf
file & response are attached.
http://old.nabble.com/file/p34512257/Con%2526response.txt Con%26response.txt 
   

Alvaro Cornejo wrote:
> 
> Looks like youy modem does not support AT+CPMS="SM"  (Store sms in sim)
> 
> try the command AT+CPMS=? with a communication tool like vwdial or
> minicom to see what option it supports.
> 
> Else try with
> 
> message-storage="EM"
> 
> Regards
> 
> Alvaro
> 
> 
> On 10/3/12, suneetsaini <[email protected]> wrote:
>>
>> Thanks in advance.
>>
>>                here is the response of my  bearerbox after "init-string =
>> ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" okayed this gives an error.
>> Plz Guide me for this type of error.
>>
>> [root@localhost sbin]# ./bearerbox -v 0 myconf.conf
>> 2012-10-02 19:19:36 [9672] [0] INFO: Debug_lvl = 0, log_file = <none>,
>> log_lvl = 0
>> 2012-10-02 19:19:36 [9672] [0] WARNING: DLR: using default 'internal' for
>> storage type.
>> 2012-10-02 19:19:36 [9672] [0] INFO: DLR using storage type: internal
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Kannel bearerbox version `1.4.3'.
>> Build `Oct  2 2012 17:12:49', compiler `4.4.4 20100630 (Red Hat
>> 4.4.4-10)'.
>> System Linux, release 2.6.31.5-127.fc12.i686.PAE, version #1 SMP Sat Nov
>> 7
>> 21:25:57 EST 2009, machine i686.
>> Hostname localhost, IP 127.0.0.1.
>> Libxml version 2.7.6.
>> Using native malloc.
>>
>> 2012-10-02 19:19:36 [9672] [0] INFO: Added logfile
>> `/var/log/kannel/kannel.log' with level `0'.
>> 2012-10-02 19:19:36 [9672] [0] INFO: Started access logfile
>> `/var/log/kannel/access.log'.
>> 2012-10-02 19:19:36 [9672] [0] WARNING: 'store-file' option deprecated,
>> please use 'store-location' and 'store-type' instead.
>> 2012-10-02 19:19:36 [9672] [0] INFO: SSL not supported, no SSL
>> initialization done.
>> 2012-10-02 19:19:36 [9672] [0] INFO: HTTP: Opening server at port 13000.
>> 2012-10-02 19:19:36 [9672] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>> maps
>> to pid 9672.
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 1
>> (gwlib/fdset.c:poller)
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 3
>> (gw/bb_http.c:httpadmin_run)
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: starting smsbox connection module
>> 2012-10-02 19:19:36 [9672] [0] INFO: BOXC: 'smsbox-max-pending' not set,
>> using default (100).
>> 2012-10-02 19:19:36 [9672] [2] DEBUG: Thread 2
>> (gwlib/http.c:server_thread)
>> maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [3] DEBUG: Thread 3
>> (gw/bb_http.c:httpadmin_run)
>> maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [4] DEBUG: Thread 4
>> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 4
>> (gw/bb_boxc.c:sms_to_smsboxes)
>> 2012-10-02 19:19:36 [9672] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
>> maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 5
>> (gw/bb_boxc.c:smsboxc_run)
>> 2012-10-02 19:19:36 [9672] [0] INFO: Set SMS resend frequency to 60
>> seconds.
>> 2012-10-02 19:19:36 [9672] [0] INFO: SMS resend retry set to unlimited.
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: smsbox MO concatenated message
>> handling enabled
>> 2012-10-02 19:19:36 [9672] [0] INFO: DLR rerouting for smsc id <Nokia>
>> disabled.
>> 2012-10-02 19:19:36 [9672] [0] INFO: AT2[Nokia]: configuration shows
>> modemtype <Nokia>
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: AT2[Nokia]: Reading modem
>> definitions
>> from <myconf.conf>
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: AT2[Nokia]: Found <1> modems in
>> config
>> 2012-10-02 19:19:36 [9672] [0] INFO: AT2[Nokia]: read modem definition
>> for
>> <Nokia>
>> 2012-10-02 19:19:36 [9672] [6] DEBUG: Thread 6
>> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [6] INFO: AT2[Nokia]: opening device
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 6
>> (gw/smsc/smsc_at.c:at2_device_thread)
>> 2012-10-02 19:19:36 [9672] [7] DEBUG: Thread 7
>> (gw/bb_smscconn.c:sms_router)
>> maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 7
>> (gw/bb_smscconn.c:sms_router)
>> 2012-10-02 19:19:36 [9672] [0] INFO:
>> ----------------------------------------
>> 2012-10-02 19:19:36 [9672] [0] INFO: Kannel bearerbox II version 1.4.3
>> starting
>> 2012-10-02 19:19:36 [9672] [0] INFO: Loading store file
>> `/var/log/kannel/kannel.store'
>> 2012-10-02 19:19:36 [9672] [0] INFO: Store-file size 0, starting to
>> unpack
>> 2012-10-02 19:19:36 [9672] [0] INFO: Retrieved 0 messages,
>> non-acknowledged
>> messages: 0
>> 2012-10-02 19:19:36 [9672] [6] DEBUG: AT2[Nokia]: device opened. Telnet
>> mode
>> = 0
>> 2012-10-02 19:19:36 [9672] [8] DEBUG: Thread 8
>> (gw/bb_store_file.c:store_dumper) maps to pid 9672.
>> 2012-10-02 19:19:36 [9672] [8] DEBUG: Dumping 0 messages to store
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: Started thread 8
>> (gw/bb_store_file.c:store_dumper)
>> 2012-10-02 19:19:36 [9672] [0] INFO: MAIN: Start-up done, entering
>> mainloop
>> 2012-10-02 19:19:36 [9672] [0] DEBUG: AT2[Nokia]: start called
>> 2012-10-02 19:19:37 [9672] [6] DEBUG: AT2[Nokia]: device opened
>> 2012-10-02 19:19:37 [9672] [6] INFO: AT2[Nokia]: Logging in
>> 2012-10-02 19:19:37 [9672] [6] INFO: AT2[Nokia]: init device
>> 2012-10-02 19:19:37 [9672] [6] INFO: AT2[Nokia]: speed set to 9600
>> 2012-10-02 19:19:37 [9672] [6] DEBUG: AT2[Nokia]: --> ATZ^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- AT
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT&F^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- AT&F
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> ATE0^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- ATE0
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT+IFC=2,2^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT+CPIN?^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- +CPIN: READY
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT+CMGF=0^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT+CSMS=?^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- +CSMS: (0)
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> ATQ0 V1 E1 S0=0 &C1
>> &D2 +FCLASS=0^M
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: <-- OK
>> 2012-10-02 19:19:38 [9672] [6] DEBUG: AT2[Nokia]: --> AT+CPMS="SM"^M
>> 2012-10-02 19:19:39 [9672] [6] DEBUG: AT2[Nokia]: <-- AT+CPMS="SM"
>> 2012-10-02 19:19:39 [9672] [6] DEBUG: AT2[Nokia]: <-- ERROR
>> 2012-10-02 19:19:39 [9672] [6] ERROR: AT2[Nokia]: Generic error: ERROR
>> 2012-10-02 19:19:39 [9672] [6] ERROR: AT2[Nokia]: Initialization of
>> device
>> failed.
>> 2012-10-02 19:19:39 [9672] [6] INFO: AT2[Nokia]: Closing device
>> 2012-10-02 19:19:39 [9672] [6] ERROR: AT2[Nokia]: Couldn't connect
>> (retrying
>> in 10 seconds).
>>
>> My myconf.conf file is here:
>> #CORE
>> group = core
>> admin-port = 13000
>> admin-password = playsms
>> status-password = playsms
>> log-file = "/var/log/kannel/kannel.log"
>> log-level = 0
>> access-log = "/var/log/kannel/access.log"
>> smsbox-port = 13001
>> store-type = file
>> store-file = "/var/log/kannel/kannel.store"
>>
>> #SMSC MODEM GSM
>> group = smsc
>> smsc = at
>> port = 13013
>> host = "localhost"
>> smsc-id = Nokia
>> modemtype = Nokia
>> device = /dev/ttyACM1
>> speed = 9600
>> #sms-center = "isi dengan sms center"
>> sim-buffering = true
>>
>> group = modems
>> id = Nokia
>> name = Nokia
>> detect-string = "Nokia Mobile Phones"
>> keepalive-cmd = "AT+CBC;+CSQ"
>> #init-string = "AT+CNMI=2,1,0,0,0;+CMEE=1"
>> #init-string = "AT+CNMI=1,2,0,1,0"
>> init-string = "ATZ"
>> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
>> need-sleep=true
>> message-storage="SM"
>> enable-mms = true
>> #SMSBOX SETUP
>> group = smsbox
>> bearerbox-host = localhost
>> bearerbox-port = 13001
>> sendsms-port = 13131
>> sendsms-chars = "0123456789+"
>> global-sender = "isi dengan sms center"
>> log-file = "/var/log/kannel/smsbox.log"
>> log-level = 0
>> access-log = "/var/log/kannel/access.log"
>>
>> #SEND-SMS USERS
>> group = sendsms-user
>> username = playsms
>> password = playsms
>>
>> #SMS SERVICE
>> group = sms-service
>> keyword = default
>> accept-x-kannel-headers = true
>> max-messages = 0
>> assume-plain-text = true
>> catch-all = true
>> get-url =
>> "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a";
>> --
>> View this message in context:
>> http://old.nabble.com/Problem-after-init-string-%22iniyialization-error%22-tp34508962p34508962.html
>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>
>>
>>
> 
> 
> -- 
> |-----------------------------------------------------------------------------------------------------------------|
> 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
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Problem-after-init-string-%22iniyialization-error%22-tp34508962p34512257.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to