On Thu, May 26, 2011 at 3:54 PM, Alex <[email protected]> wrote: > Hi > have you tried wvdial? > > Use wvdial. Read UG about it. Or trial & error from other examples in > modems.conf. > > On 26 May 2011 14:08, Amirali Shambayati <[email protected]> > wrote: >> >> hello all, >> We use this value:ATQ0 V1 E1 S0=0 &C1 &D2 for init-string. It works >> well for sending message using kannel. but we can't receive MOs. >> Nevertheless, as I googled around, It seems that I should set it >> to:AT+CNMI=... but it couldn't find the device, by using this value. >> We use Nokia N81. Would any guide us about what init-string should be set? >> I set sim-buffering true, and message-storage="SM" >> >> Here is our config: >> group = core >> admin-port = 13000 >> smsbox-port = 13001 >> admin-password = bar >> log-file = "/tmp/kannel.log" >> #log-level = 0 >> box-deny-ip = "*.*.*.*" >> box-allow-ip = "127.0.0.1" >> dlr-storage = mysql >> >> >> group = mysql-connection >> id = sqlbox-db >> host = localhost >> username = root >> password = 89117 >> database = mysql >> # max count of connections that will be opened for dbpool >> #default is 1 >> #max-connections = 1 >> >> >> >> group = dlr-db >> id = sqlbox-db >> table = dlr >> field-smsc = smsc >> field-timestamp = ts >> field-destination = destination >> field-source = source >> field-service = service >> field-url = url >> field-mask = mask >> field-status = status >> field-boxc-id = boxc >> >> >> >> group = smsc >> smsc = at >> smsc-id=gsm >> modemtype = auto >> device=/dev/ttyACM0 >> #my-number = 8998112700000077051 >> my-number = 09367913772 >> connect-allow-ip = 127.0.0.1 >> log-level = 0 >> sim-buffering=true >> #sms-center=0098935 >> >> group = smsbox >> bearerbox-host = 127.0.0.1 >> bearerbox-port=13003 >> sendsms-port = 13013 >> #global-sender = 8998112700000077051 >> global-sender = 09367913772 >> log-level = 0 >> >> >> >> group = sendsms-user >> username = kanneluser >> password = mypassword >> concatenation= true >> max-messages = 10 >> >> >> >> group = sms-service >> keyword = default >> text="salam" >> #keyword-regex = .* >> catch-all = true >> max-messages = 1 >> get-url = "http://localhost/get-url.php?phonenumber=%p&text=%a" >> accepted-smsc=gsm >> >> >> # 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" >> >> 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,1,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 = siemens_sl45 >> name = "Siemens SL45" >> detect-string = "SIEMENS" >> detect-string2 = "SL45" >> init-string = "AT+CNMI=1,2,2,2,1" >> keepalive-cmd = "AT+CBC;+CSQ" >> speed = 19200 >> enable-hwhs = "AT\\Q3" >> need-sleep = true >> message-storage = "SM" >> >> group = modems >> id = nokia >> name = "Nokia N81" >> detect-string = "Nokia" >> init-string ="ATZ" >> #init-string ="ATQ0 V1 E1 S0=0 &C1 &D2 + FCLASS=0" >> init-string ="AT+CNMI=2,3,0,1,0" >> message-storage="SM" >> >> 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" >> >> group = smsc >> smsc = fake >> port = 10000 >> >> >> >> >> -- >> Amirali Shambayati >> Bachelor Student >> Computer Engineering Department >> Sharif University of Technology >> Tehran, Iran >> > > > > -- > Best regards, > Alex > > > >
-- Amirali Shambayati Bachelor Student Computer Engineering Department Sharif University of Technology Tehran, Iran
