Hi, I have set up 2 independent Kannel setups, one in Belgium and one in China, both for sending out SMS'es. I can send an SMS to Belgian numbers from the Belgian setup, but not to any other number. The same goes for the setup in China: I can only send to Chinese numbers, but not any other number.
This is the config at Belgium: # Kannel configuration for Precision Operations N.V. # # Site : CME # SMSc : yes # The bearerbox config. Needed for all Kannel installations group = core admin-port = 13000 admin-password = "xxxxx" admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1;192.168.130.*;192.168.1.*" status-password = "status" smsbox-port = 13001 log-level = 0 log-file = "/var/log/kannel/kannel.log" access-log = "/var/log/kannel/kannel.access" store-file = "/var/log/kannel/kannel.store" sms-resend-retry = 10 # If the 10th send doesn't work, discard it # SMSes can be sent through this smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13010 smsbox-id = SMSBOX_CME log-file = "/var/log/kannel/smsbox.log" access-log = "/var/log/kannel/smsbox.access" log-level = 0 global-sender = +32473XXXXXX # There is a modem attached, so define an SMS Center here. group = smsc smsc = at smsc-id = SMSC_CME preferred-prefix = "+324;+277" # Belgium, South Africa allowed-smsc-id = "SMSC_CME;SMSC_SKC" preferred-smsc-id = "SMSC_CME" modemtype = mc35i device = /dev/ttyUSB0 pin = XXXX keepalive = 50 log-file = "/var/log/kannel/smsc.log" log-level = 0 throughput = 0.5 max-error-count = 5 # The specific modem definition to get the best result. group = modems id = mc53i name = "mc35i" detect-string = "SIEMENS" detect-string2 = "MC35" init-string = "AT+CNMI=3,2,0,1,1" enable-hwhs = "AT\\Q3" speed = 115200 need-sleep = true # This user is allowed to send SMSes group = sendsms-user username = sms_user password = sms_user max-messages = 3 concatenation = true user-allow-ip = "127.0.0.1;192.168.130.*,192.168.1.*" default-smsc = SMSC_CME omit-empty = true # By default, discard all incoming SMSes group = sms-service keyword = default omit-empty = true exec = "/bin/false" This is the setup in China: # Kannel configuration for Precision Operations N.V. # # Site : SKC # SMSc : yes # The bearerbox config. Needed for all Kannel installations group = core admin-port = 13000 admin-password = "xxxxx" status-password = "status" smsbox-port = 13001 admin-deny-ip = "*.*.*.*" admin-allow-ip = "127.0.0.1;192.168.167.*;192.168.130.*,192.168.1.*" log-level = 1 log-file = "/var/log/kannel/kannel.log" access-log = "/var/log/kannel/kannel.access" store-file = "/var/log/kannel/kannel.store" sms-resend-retry = 10 # If the 10th send doesn't work, discard it # SMSes can be sent through this smsbox group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13010 access-log = "/var/log/kannel/smsbox.access" log-file = "/var/log/kannel/smsbox.log" log-level = 1 global-sender = +8613XXXXXXXXX # There is a modem attached, so define an SMS Center here. group = smsc smsc = at smsc-id = SMSC_SKC #preferred-prefix = "+861;+852;+659;+601" # China, HongKong, Malaysia, Singapore modemtype = my_wavecom device = /dev/ttyUSB0 my-number = +8613XXXXXXXXX #pin = keepalive = 10 log-file = "/var/log/kannel/smsc.log" log-level = 1 throughput = 0.5 max-error-count = 5 # The specific modem definition to get the best result. group = modems id = my_wavecom name = "WAVECOM" detect-string = "WAVECOM" speed = 19200 # This user is allowed to send SMSes group = sendsms-user username = sms_user password = sms_user max-messages = 3 concatenation = true user-allow-ip = "127.0.0.1;192.168.167.*" # By default, discard all incoming SMSes group = sms-service keyword = default omit-empty = true exec = "/bin/false" I can see in the logging that when I send an SMS to another network, the modem gives an error: 2009-05-06 10:48:42 [18590] [6] INFO: AT2[SMSC_CME]: opening device 2009-05-06 10:48:42 [18590] [6] DEBUG: AT2[SMSC_CME]: device opened 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: device opened 2009-05-06 10:48:43 [18590] [6] INFO: AT2[SMSC_CME]: init device 2009-05-06 10:48:43 [18590] [6] INFO: AT2[SMSC_CME]: speed set to 115200 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: --> ATZ^M 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT^M 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- AT 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:43 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT&F^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- AT&F 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> ATE0^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- ATE0 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT\Q3^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CPIN?^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- +CPIN: READY 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CMGF=0^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CSMS=?^M 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- +CSMS: (0,1) 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:44 [18590] [6] INFO: AT2[SMSC_CME]: Phase 2+ is supported 2009-05-06 10:48:44 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CSMS=1^M 2009-05-06 10:48:46 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- +CSMS: 1,1,1 2009-05-06 10:48:46 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:46 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CNMI=3,2,0,1,1^M 2009-05-06 10:48:46 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:46 [18590] [6] INFO: AT2[SMSC_CME]: AT SMSC successfully opened. 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT^M 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- OK 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: TP-Validity-Period: 24.0 hours 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: --> AT+CMGS=101^M 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- > 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: send command status: 1 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: --> 0011000B817237611399F70000A763C62BF2DD2E1BC362797A3C5F5A41E939A80A554CA748D073096A819EF0B27B3A454668AE1B3C062296C5E9B0BB85AB8BEB6E7A3DE692815070F99BFE1EBFD920990B9652A060B616ACD692C16039500CA6A3E17434590A 2009-05-06 10:48:48 [18590] [6] DEBUG: AT2[SMSC_CME]: --> ^Z 2009-05-06 10:48:51 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- > 2009-05-06 10:48:51 [18590] [6] DEBUG: AT2[SMSC_CME]: <-- ERROR 2009-05-06 10:48:51 [18590] [6] ERROR: AT2[SMSC_CME]: Generic error: ERROR 2009-05-06 10:48:51 [18590] [6] DEBUG: AT2[SMSC_CME]: send command status: -1 Any ideas where to look? Both systems run Kannel 1.4.1 (Debian Etch and Ubuntu 8.04). Thanks. -- Toni Van Remortel System Engineer @ Precision Operations NV +32 3 451 92 26 - [email protected]
