Hi,
As Nikos
said I went through the modems.conf file. According to the init-string
I found in the wvdialconf file, the modem I am using has the same
init-string as the following group in the examples. I am not clear on
how to include the AT+CNMI in to
this. Should I replace this init-string with something in the form of
"AT+CNMI=3,1,0,0". I would be very grateful if anyone help me with
this.  



________________________________
From: Nikos Balkanas <[email protected]>
To: mpl li <[email protected]>; [email protected]
Sent: Mon, March 8, 2010 1:29:20 PM
Subject: Re: Re : Kannel Configuration to set up an SMS gateway

 
Hi,
 
In your configuration you have only init-string without 
AT+CNMI. Kannel doesn't understand init1 or init2, just a single init-string. 
For examples how to use it see modems.conf. Wvdialconf should be 
fine.
 
BR,
Nikos
----- Original Message ----- 
>From: mpl li 
>To: Nikos Balkanas ; [email protected] 
>Sent: Monday, March 08, 2010 2:29 
>AM
>Subject: Re: Re : Kannel Configuration to 
>  set up an SMS gateway
>
>
>Nikos,
>Thanks a lot for your reply. 
>The init-strings I have used 
>  are the 'Init1' and 'Init2' values of  'wvdialconf' file. And the 
>  following lines are displayed when the bearerbox starts.
>
>DEBUG: 
>  AT2[/dev/ttyUSB0]: --> AT+CNMI=1,2,0,1,0^M
>DEBUG: AT2[/dev/ttyUSB0]: 
>  <-- OK
>
>Can't I use the above method for finding the init-string 
>  because I am having trouble finding the modem manual?
>
>
>
________________________________
 From: Nikos Balkanas 
>  <[email protected]>
>To: mpl li <[email protected]>; 
>  [email protected]
>Sent: Sun, 
>  March 7, 2010 9:32:56 PM
>Subject: Re: Re : Kannel Configuration to 
>  set up an SMS gateway
>
> > 
>Hi,
> 
>You need to configure AT+CNMI in your init-string. That 
>  tells your modem what to do with incoming SMS. It is modem specific and 
> should 
>  consult your modem manual or manufacturer for it.
> 
>BR,
>Nikos
>----- 
>>    Original Message ----- 
>>From: mpl li 
>>To: [email protected] 
>>Sent: >>    Sunday, March 07, 2010 5:35 PM
>>Subject: >>    Re: Re : Kannel Configuration to set up an SMS gateway
>>
>>
>>Kidi 
>>    Kidi,
>>Thank you very much for your quick reply. Can you also help me with 
>>    the SMS receiving problem. 
>> 
>>
>>
>>
________________________________
 From: Kidi Kidi <[email protected]>
>>To: mpl li <[email protected]>
>>Sent: Sun, March 7, 2010 7:38:42 
>>    PM
>>Subject: Re : Kannel 
>>    Configuration to set up an SMS gateway
>>
>>
>>For me this happens whenever my sim card 
>>    has run out of units. So buy Mobile 
>>(Prepaid Recharge) 
>>    Card to try.
>>
>>
>>
>>
>>
________________________________
 From : mpl li 
>>    <[email protected]>
>>To 
>>    : [email protected]
>>Sent 
>>    : Dim 7 Mars 2010, 13 h 23 min 46 s
>>Subject : Kannel Configuration to set 
>>    up an SMS gateway
>>
>>
>>Dear All,
>>I am trying to configure Kannel to send and receive SMS 
>>    using a Huawei E156G USB modem. I have 2 questions.
>>
>>(1) When an SMS 
>>    is sent to the modem though the modem receives the SMS but Kannel does 
>> not 
>>    detect it. nothing is recorded in the log files. Is this because of an 
>> error 
>>    in the specified get-url, or some other error in configuration 
>>    parameters?
>>
>>(2) I was able to send SMSs for a while but now even 
>>    though the message "Accepted for Delivery" is displayed the following 
>> error 
>>    occurs
>>
>>DEBUG: re-queing SMS not-yet-to-be resent
>>DEBUG: 
>>    sms_router: time to sleep 30.00 secs.
>>DEBUG: AT2[/dev/ttyUSB0]: <-- 
>>    +CMS ERROR: 500
>>ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: +CMS ERROR: 
>>    500
>>ERROR: AT2[/dev/ttyUSB0]: CMS ERROR: Unknown error. -> maybe Sim 
>>    storage is full? I'll have a look at it. (500)
>>DEBUG: sms_router: 
>>    gwlist_len = 1
>>DEBUG: sms_router: handling message (0x97cf278 vs 
>>    0x97cf278)
>>DEBUG: re-queing SMS not-yet-to-be resent
>>DEBUG: 
>>    sms_router: handling message (0x97cf278 vs 0x97cf278)
>>
>>I am very new 
>>    to all this and have read the user guide and also other posts in the 
>> mailing 
>>    list, but cannot find a solution. Any help will be greatly appreciated. 
>>    Below is my configuration 
>>    file.
>>
>>#---------------------------------------------
>># 
>>    CORE
>>#
>>group = core
>>admin-port = 13000
>>smsbox-port = 
>>    13001
>>admin-password = bar
>>box-deny-ip = "*.*.*.*"
>>box-allow-ip = 
>>    "127.0.0.1"
>>#---------------------------------------------
>># SMSC 
>>    CONNECTIONS
>>#
>>group = smsc
>>smsc = 
>>    at
>>modemtype=auto
>>device=/dev/ttyUSB0
>>my-number=+947xxxxxxxx
>>port 
>>    = 10000
>>connect-allow-ip = 127.0.0.1
>>log-level = 
>>    0
>>#---------------------------------------------
>># SMSBOX 
>>    SETUP
>>#
>>group = smsbox
>>bearerbox-host = 127.0.0.1
>>sendsms-port = 
>>    13013
>>global-sender = +947xxxxxxxx
>>log-level = 
>>    0
>>#---------------------------------------------
>># SEND-SMS 
>>    USERS
>>#
>>group = sendsms-user
>>username = tester
>>password = 
>>    foobar
>>concatenation= true
>>max-messages = 
>>    10
>>#---------------------------------------------
>># 
>>    SERVICES
>>#
>>group = sms-service
>>keyword-regex = .*
>>catch-all = 
>>    yes
>>max-messages = 0
>>get-url = "http://localhost/sms?phone=%p&text=%a";
>>
>>group 
>>    = sms-service
>>keyword = default
>>text = "No service 
>>    specified"
>>#---------------------------------------------
>># 
>>    MODEMS
>>#
>>group = modems
>>id = huawei
>>name = 
>>    "Huawei"
>>detect-string = "huawei"
>>detect-string2 = 
>>    "e156"
>>init-string = "ATZ"
>>init-string = "ATQ0 V1 E1 S0=0 &C1 
>>    &D2 +FCLASS=0"
>>message-storage = 
>>    "SM"
>>
>>
>>
>>
>>
>>
>>
>>
>>
>


      

Reply via email to