Hi You need to create/add and smsc config for each of the connections you will have. Check documentation for each specific case.
Regards Alvaro On 9/24/12, suneetsaini <[email protected]> wrote: > > Thanks for replying. > > Would you tell me the process by which i can connect my > configured > kannel to clickatell or the modem device. > Please guide if possible. > > Thanks in advance. > > > Alvaro Cornejo wrote: >> >> You just need to connect kannel to any smsc i.e. a modem connected to >> your equipment, an smpp or to a gateway provider such as clickatell. >> >> Depending on that you need to create & configure kannel.conf file to >> add required parameters. >> >> Check user manual for details. >> >> Regards >> >> Alvaro >> >> On 9/19/12, suneetsaini <[email protected]> wrote: >>> >>> I had successfully connected the bearerbox & smsbox with SPPSim as >>> simulator. >>> Now I had no idea how i have to move forward so that i can recieve >>> messages >>> on a link or mobile number. Please suggest me the best way. >>> Thanks in advance. >>> >>> my .conf file >>> group = core >>> admin-port = 15000 >>> smsbox-port = 15001 >>> admin-password = bar >>> #status-password = foo >>> #admin-deny-ip = "" >>> admin-allow-ip = "" >>> log-file = "/usr/local/sbin/bearerbox2.log" >>> log-level = 0 >>> #box-deny-ip = "*.*.*.*" >>> box-allow-ip = "127.0.0.1" >>> #unified-prefix = "+91,0091,0;+,00" >>> access-log = "/usr/local/sbin/core_access2.log" >>> store-file = "/usr/local/sbin/core_store_kannel2.store" >>> #ssl-server-cert-file = "cert.pem" >>> #ssl-server-key-file = "key.pem" >>> #ssl-certkey-file = "mycertandprivkeyfile.pem" >>> dlr-storage=internal >>> sms-resend-retry = 1 >>> >>> # SMSC CONNECTIONS >>> >>> group = smsc >>> smsc =smpp >>> smsc-id=B >>> system-type = smpp >>> service-type=smpp >>> host=localhost >>> #port = 5016 >>> port = 2775 >>> receive-port= 2775 >>> alt-charset = "ISO-8859-1" >>> max-pending-submits = 10 >>> #interface-version = 3.4 >>> #receive-port=5016 >>> source-addr-ton=1 >>> source-addr-npi=1 >>> dest-addr-ton=0 >>> dest-addr-npi=1 >>> msg-id-type=0x01 >>> connect-allow-ip = "127.0.0.1" >>> smsc-username = "smppclient1" >>> smsc-password = password >>> throughput=7 >>> max-pending-submits=10 >>> address-range="" >>> send-url = "http://localhost:13013/cgi-bin/sendsms" >>> >>> >>> # SMSBOX SETUP >>> >>> group = smsbox >>> bearerbox-host = 127.0.0.1 >>> sendsms-port = 13015 >>> #global-sender = 15015 >>> #sendsms-chars = "0123456789 +-" >>> log-file = "/usr/local/sbin/smsbox2.log" >>> log-level = 0 >>> access-log = "/usr/local/sbin/access2.log" >>> >>> # SEND-SMS USERS >>> >>> group = sendsms-user >>> username = admin >>> password = playsms >>> concatenation = false >>> max-messages = 3 >>> split-chars = "#" >>> forced-smsc = B >>> #user-deny-ip = "" >>> #user-allow-ip = "" >>> dlr-url="http://localhost/playsms/plugin/gateway/kannel/dlr.php?d=%d" >>> >>> >>> # SERVICES >>> >>> group = sms-service >>> keyword =default >>> #text = "You asked nothing and I did it!" >>> get-url="http://localhost/playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a" >>> >>> >>> # there should be default always >>> >>> group = sms-service >>> keyword = test >>> text = "No service specified" >>> >>> >>> group = sms-service >>> #keyword = result >>> #text="Thank you for voting." >>> keyword-regex = .* >>> catch-all = yes >>> max-messages =100000 >>> get-url = "http://localhost/receivesms.php?sender=%p&text=%b" >>> >>> >>> Response of the connection: >>> [root@localhost sbin]# ./bearerbox -v 0 mytestkannel.conf >>> 2012-09-18 14:25:14 [2701] [0] INFO: Debug_lvl = 0, log_file = <none>, >>> log_lvl = 0 >>> 2012-09-18 14:25:14 [2701] [0] INFO: DLR using storage type: internal >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Kannel bearerbox version `1.4.3'. >>> Build `Sep 12 2012 09:08:45', compiler `4.4.2 20091027 (Red Hat >>> 4.4.2-7)'. >>> 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-09-18 14:25:14 [2701] [0] INFO: Added logfile >>> `/usr/local/sbin/bearerbox2.log' with level `0'. >>> 2012-09-18 14:25:14 [2701] [0] INFO: Started access logfile >>> `/usr/local/sbin/core_access2.log'. >>> 2012-09-18 14:25:14 [2701] [0] WARNING: 'store-file' option deprecated, >>> please use 'store-location' and 'store-type' instead. >>> 2012-09-18 14:25:14 [2701] [0] INFO: SSL not supported, no SSL >>> initialization done. >>> 2012-09-18 14:25:14 [2701] [0] INFO: HTTP: Opening server at port 15000. >>> 2012-09-18 14:25:14 [2701] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) >>> maps >>> to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 1 >>> (gwlib/fdset.c:poller) >>> 2012-09-18 14:25:14 [2701] [2] DEBUG: Thread 2 >>> (gwlib/http.c:server_thread) >>> maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 2 >>> (gwlib/http.c:server_thread) >>> 2012-09-18 14:25:14 [2701] [3] DEBUG: Thread 3 >>> (gw/bb_http.c:httpadmin_run) >>> maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 3 >>> (gw/bb_http.c:httpadmin_run) >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: starting smsbox connection module >>> 2012-09-18 14:25:14 [2701] [0] INFO: BOXC: 'smsbox-max-pending' not set, >>> using default (100). >>> 2012-09-18 14:25:14 [2701] [4] DEBUG: Thread 4 >>> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 4 >>> (gw/bb_boxc.c:sms_to_smsboxes) >>> 2012-09-18 14:25:14 [2701] [5] DEBUG: Thread 5 >>> (gw/bb_boxc.c:smsboxc_run) >>> maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 5 >>> (gw/bb_boxc.c:smsboxc_run) >>> 2012-09-18 14:25:14 [2701] [0] INFO: Set SMS resend frequency to 60 >>> seconds. >>> 2012-09-18 14:25:14 [2701] [0] INFO: SMS resend retry set to 1. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: smsbox MO concatenated message >>> handling enabled >>> 2012-09-18 14:25:14 [2701] [0] INFO: Set throughput to 7.000 for smsc id >>> 2012-09-18 14:25:14 [2701] [0] INFO: DLR rerouting for smsc id >>> disabled. >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: Thread 6 >>> (gw/smsc/smsc_smpp.c:io_thread) maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP[B]: Sending PDU: >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP PDU 0xb6000550 dump: >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: type_name: bind_transmitter >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: command_id: 2 = 0x00000002 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: sequence_number: 1 = 0x00000001 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: system_id: "smppclient1" >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: password: "password" >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: system_type: "smpp" >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: interface_version: 52 = >>> 0x00000034 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: addr_ton: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: addr_npi: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: address_range: "" >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP[B]: Got PDU: >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP PDU 0xb60009a0 dump: >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: type_name: bind_transmitter_resp >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: command_id: 2147483650 = >>> 0x80000002 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: sequence_number: 1 = 0x00000001 >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: system_id: "SMPPSim" >>> 2012-09-18 14:25:14 [2701] [6] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 6 >>> (gw/smsc/smsc_smpp.c:io_thread) >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: Thread 7 >>> (gw/smsc/smsc_smpp.c:io_thread) maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP[B]: Sending PDU: >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP PDU 0xb6c00548 dump: >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: type_name: bind_receiver >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: command_id: 1 = 0x00000001 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: sequence_number: 2 = 0x00000002 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: system_id: "smppclient1" >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: password: "password" >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: system_type: "smpp" >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: interface_version: 52 = >>> 0x00000034 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: addr_ton: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: addr_npi: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: address_range: "" >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP[B]: Got PDU: >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP PDU 0xb6c00998 dump: >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: type_name: bind_receiver_resp >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: command_id: 2147483649 = >>> 0x80000001 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: sequence_number: 2 = 0x00000002 >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: system_id: "SMPPSim" >>> 2012-09-18 14:25:14 [2701] [7] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 7 >>> (gw/smsc/smsc_smpp.c:io_thread) >>> 2012-09-18 14:25:14 [2701] [8] DEBUG: Thread 8 >>> (gw/bb_smscconn.c:sms_router) >>> maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 8 >>> (gw/bb_smscconn.c:sms_router) >>> 2012-09-18 14:25:14 [2701] [0] INFO: >>> ---------------------------------------- >>> 2012-09-18 14:25:14 [2701] [0] INFO: Kannel bearerbox II version 1.4.3 >>> starting >>> 2012-09-18 14:25:14 [2701] [0] INFO: Loading store file >>> `/usr/local/sbin/core_store_kannel2.store' >>> 2012-09-18 14:25:14 [2701] [0] INFO: Store-file size 0, starting to >>> unpack >>> 2012-09-18 14:25:14 [2701] [0] INFO: Retrieved 0 messages, >>> non-acknowledged >>> messages: 0 >>> 2012-09-18 14:25:14 [2701] [9] DEBUG: Thread 9 >>> (gw/bb_store_file.c:store_dumper) maps to pid 2701. >>> 2012-09-18 14:25:14 [2701] [9] DEBUG: Dumping 0 messages to store >>> 2012-09-18 14:25:14 [2701] [0] DEBUG: Started thread 9 >>> (gw/bb_store_file.c:store_dumper) >>> 2012-09-18 14:25:14 [2701] [0] INFO: MAIN: Start-up done, entering >>> mainloop >>> 2012-09-18 14:25:18 [2701] [5] INFO: Client connected from <127.0.0.1> >>> 2012-09-18 14:25:18 [2701] [10] DEBUG: Thread 10 (gw/bb_boxc.c:function) >>> maps to pid 2701. >>> 2012-09-18 14:25:18 [2701] [11] DEBUG: Thread 11 >>> (gw/bb_boxc.c:boxc_sender) >>> maps to pid 2701. >>> 2012-09-18 14:25:18 [2701] [5] DEBUG: Started thread 10 >>> (gw/bb_boxc.c:function) >>> 2012-09-18 14:25:18 [2701] [10] DEBUG: Started thread 11 >>> (gw/bb_boxc.c:boxc_sender) >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP[B]: Sending enquire link: >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP PDU 0xb6000f70 dump: >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: type_name: enquire_link >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: command_id: 21 = 0x00000015 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: sequence_number: 3 = 0x00000003 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP[B]: Got PDU: >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP PDU 0xb6001060 dump: >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: type_name: enquire_link_resp >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: command_id: 2147483669 = >>> 0x80000015 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: sequence_number: 3 = 0x00000003 >>> 2012-09-18 14:25:44 [2701] [6] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP[B]: Sending enquire link: >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP PDU 0xb6c01698 dump: >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: type_name: enquire_link >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: command_id: 21 = 0x00000015 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: sequence_number: 4 = 0x00000004 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP PDU dump ends. >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP[B]: Got PDU: >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP PDU 0xb6c016b0 dump: >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: type_name: enquire_link_resp >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: command_id: 2147483669 = >>> 0x80000015 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: command_status: 0 = 0x00000000 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: sequence_number: 4 = 0x00000004 >>> 2012-09-18 14:25:44 [2701] [7] DEBUG: SMPP PDU dump ends. >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/How-to-move-forward-in--using-Kannel-%2B-SMPPSim-tp34450913p34450913.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/How-to-move-forward-in--using-Kannel-%2B-SMPPSim-tp34450913p34470844.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
