RE: Routing from Kannel SMPP connection to a connected OpenSMPPbox client

2014-09-23 Thread Rene Kluwen
See the smsbox-route configuration option.

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of David Riches
Sent: maandag 22 september 2014 21:41
To: users@kannel.org
Subject: Routing from Kannel SMPP connection to a connected OpenSMPPbox client

 

Hi

 

Ive been strugling with this for a week or so now, and could do with a pointer 
on how to achieve what I need:

 

Using Kannel Bearerbox/SMSbox I have a working SMPP link to our carrier and can 
receive message to/from (carrier)

 

I am also running OpenSMPPbox to accept a connection from a remote company 
(client)

 

I need to be able to route inbound messages from the Carrier - Client but cant 
quite work out where I need to set up the routing.  Im not trying to do 
anything more advanced than this , just a simple passthrough of all traffic 
from the carrier to the client via SMPP.

 

Can anyone shed any light on how this would be achieved please?

 

Regards


David

 

 



Receiving SMS with alcatel x230 modem

2014-09-23 Thread Ariel Wainer
Hi, I'm trying to configure Kannel to send and receive SMS with several
GSM modems. So far, I succeded to do so with Huawei modems, but I'm
having problems with Alcatel.
The modem gets recognized, mode-switched, kannel initializes it and can
use it to send, but the reception notification never occurs.

I suspect there is an issue with the init string with the same result
with several others (see the commented lines in the attached kannel.conf).

The attached files:
kern.log: kernel log messages when I plug in the modem.
lsusb.log: lsusb -vvv output, the relevant device is Bus 001 Device 0057
usb-devices.log output of usb-devices
kannel.conf: the Kannel configuration used for testing.
kannel.log: the log showing kannel opens the port and can send and
receive AT commands to the modem. During this time, an SMS was sent to
the modem, but the notification does not appear and the response is
allways 0 messages  in memory (+CPMS: SM,0,50,ME,0,100,ME,0,100).


Basic scenario info:
Kannel version: svn-r5104
OS: Linux 3.2.0 amd64 (ubuntu server on a vm).
Modem ID 1bbb:0017  string: T  A Mobile Phones

Thanks in advance for any tip on making this work.


-- 
Ariel Wainer
Contenta Mobile

Sep 17 12:28:31 cringer kernel: [515742.792068] usb 1-9: new high-speed USB device number 56 using ehci_hcd
Sep 17 12:28:32 cringer kernel: [515742.927207] usb 1-9: New USB device found, idVendor=1bbb, idProduct=f000
Sep 17 12:28:32 cringer kernel: [515742.928074] usb 1-9: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Sep 17 12:28:32 cringer kernel: [515742.92] usb 1-9: Product: HSPA Data Card
Sep 17 12:28:32 cringer kernel: [515742.929670] usb 1-9: Manufacturer: USBModem
Sep 17 12:28:32 cringer kernel: [515742.930462] usb 1-9: SerialNumber: 1234567890ABCDEF
Sep 17 12:28:32 cringer kernel: [515742.934700] scsi86 : usb-storage 1-9:1.0
Sep 17 12:28:32 cringer kernel: [515743.908646] usb 1-9: USB disconnect, device number 56
Sep 17 12:28:33 cringer kernel: [515744.280067] usb 1-9: new high-speed USB device number 57 using ehci_hcd
Sep 17 12:28:33 cringer kernel: [515744.415277] usb 1-9: New USB device found, idVendor=1bbb, idProduct=0017
Sep 17 12:28:33 cringer kernel: [515744.416134] usb 1-9: New USB device strings: Mfr=3, Product=2, SerialNumber=4
Sep 17 12:28:33 cringer kernel: [515744.416912] usb 1-9: Product: HSPA Data Card
Sep 17 12:28:33 cringer kernel: [515744.417698] usb 1-9: Manufacturer: USBModem
Sep 17 12:28:33 cringer kernel: [515744.418468] usb 1-9: SerialNumber: 1234567890ABCDEF
Sep 17 12:28:33 cringer kernel: [515744.421980] option 1-9:1.0: GSM modem (1-port) converter detected
Sep 17 12:28:33 cringer kernel: [515744.422963] usb 1-9: GSM modem (1-port) converter now attached to ttyUSB0
Sep 17 12:28:33 cringer kernel: [515744.424056] option 1-9:1.1: GSM modem (1-port) converter detected
Sep 17 12:28:33 cringer kernel: [515744.425056] usb 1-9: GSM modem (1-port) converter now attached to ttyUSB1
Sep 17 12:28:33 cringer kernel: [515744.426157] option 1-9:1.2: GSM modem (1-port) converter detected
Sep 17 12:28:33 cringer kernel: [515744.427150] usb 1-9: GSM modem (1-port) converter now attached to ttyUSB2
Sep 17 12:28:33 cringer kernel: [515744.428301] option 1-9:1.3: GSM modem (1-port) converter detected
Sep 17 12:28:33 cringer kernel: [515744.429290] usb 1-9: GSM modem (1-port) converter now attached to ttyUSB3
Sep 17 12:28:33 cringer kernel: [515744.430369] scsi87 : usb-storage 1-9:1.4
Sep 17 12:28:33 cringer kernel: [515744.431613] option 1-9:1.5: GSM modem (1-port) converter detected
Sep 17 12:28:33 cringer kernel: [515744.432668] usb 1-9: GSM modem (1-port) converter now attached to ttyUSB4
Sep 17 12:28:34 cringer kernel: [515745.429730] scsi 87:0:0:0: Direct-Access ALCATEL  Mass Storage 2.31 PQ: 0 ANSI: 2
Sep 17 12:28:34 cringer kernel: [515745.432304] sd 87:0:0:0: Attached scsi generic sg4 type 0
Sep 17 12:28:34 cringer kernel: [515745.434322] sd 87:0:0:0: [sde] Attached SCSI removable disk

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass9 Hub
  bDeviceSubClass 0 Unused
  bDeviceProtocol 0 Full speed (or root) hub
  bMaxPacketSize064
  idVendor   0x1d6b Linux Foundation
  idProduct  0x0002 2.0 root hub
  bcdDevice3.02
  iManufacturer   3 Linux 3.2.0-4-686-pae ehci_hcd
  iProduct2 EHCI Host Controller
  iSerial 1 :00:13.5
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   25
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0 
bmAttributes 0xe0
  Self Powered
  Remote Wakeup
MaxPower0mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  

Re: Receiving SMS with alcatel x230 modem

2014-09-23 Thread Alvaro Cornejo
Hi Ariel

There seems not to be a communication problem between your modem and kannel.

As per logs, there are no sms on sim nor equipment; thus kannel does not
tries to retrieve anything.

Have you tried to place the sim in a regular phone and test sending and
receiving? Stupid question but, are you testing with the right number/sim?

You might try:

message-storage = ME however still CPMS shows there are no sms on ME.
Also you can try to play with CNMI command on init-tring. This instructs
modem to automatically forward MO messages to kannel.

Regards

Alvaro



|-|
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.com

On Tue, Sep 23, 2014 at 9:00 AM, Ariel Wainer awai...@contentamobile.com
wrote:

 Hi, I'm trying to configure Kannel to send and receive SMS with several
 GSM modems. So far, I succeded to do so with Huawei modems, but I'm
 having problems with Alcatel.
 The modem gets recognized, mode-switched, kannel initializes it and can
 use it to send, but the reception notification never occurs.

 I suspect there is an issue with the init string with the same result
 with several others (see the commented lines in the attached kannel.conf).

 The attached files:
 kern.log: kernel log messages when I plug in the modem.
 lsusb.log: lsusb -vvv output, the relevant device is Bus 001 Device 0057
 usb-devices.log output of usb-devices
 kannel.conf: the Kannel configuration used for testing.
 kannel.log: the log showing kannel opens the port and can send and
 receive AT commands to the modem. During this time, an SMS was sent to
 the modem, but the notification does not appear and the response is
 allways 0 messages  in memory (+CPMS: SM,0,50,ME,0,100,ME,0,100).


 Basic scenario info:
 Kannel version: svn-r5104
 OS: Linux 3.2.0 amd64 (ubuntu server on a vm).
 Modem ID 1bbb:0017  string: T  A Mobile Phones

 Thanks in advance for any tip on making this work.


 --
 Ariel Wainer
 Contenta Mobile




Re: Receiving SMS with alcatel x230 modem

2014-09-23 Thread Ariel Wainer
On 23/09/14 13:19, Alvaro Cornejo wrote:
 Hi Ariel

 There seems not to be a communication problem between your modem and
 kannel.

 As per logs, there are no sms on sim nor equipment; thus kannel does
 not tries to retrieve anything.

 Have you tried to place the sim in a regular phone and test sending
 and receiving? Stupid question but, are you testing with the right
 number/sim?

 You might try: 

 message-storage = ME however still CPMS shows there are no sms on ME.
 Also you can try to play with CNMI command on init-tring. This
 instructs modem to automatically forward MO messages to kannel.


Alvaro, thanks for your answer.
After trying several AT+CNMI arguments, I got it working, this is the
final working configuration:

group = modems
 id = generic
 name = Generic Modem
 init-string = AT+CNMI=0,1,2
 message-start = 0
 enable-hwhs = false


Thanks!

-- 
Ariel Wainer
Contenta Mobile




Monitor kannel script

2014-09-23 Thread Qasim Jan



Hi.
i need a php script or shell script to monitor kannel. when a connection is 
down, it can send an email or sms. sending sms will be done using clickatell 
account.

please help me.

Regards 
Qasim


  

Re: Monitor kannel script

2014-09-23 Thread Willy Mularto
It is already there, search it in contribs folder CMIIW.



Willy Mularto
SMS Gateway, Content Provider, Mobile Solution Specialist
M: +62811923464, +62818923464
PIN BBM: 74924429



On Sep 24, 2014, at 12:08 PM, Qasim Jan qasim_ja...@hotmail.com wrote:

 
 
 Hi.
 i need a php script or shell script to monitor kannel. when a connection is 
 down, it can send an email or sms. sending sms will be done using clickatell 
 account.
 
 please help me.
 
 Regards 
 Qasim