TLV MO metadata null

2012-02-02 Thread kovalov
Hello,
I’m configuring Kannel , and I got a problem with receiving TLV fields , as in description is written they should appear at the meta data field. I see that bearbox receives all data correctly but then in request and in the database field is Null. Where could be the problem? I correctly pass tlv fields in submits and they are written to database. Got problem with MO messages(Deliver_SM).
I need an advice where could be the problem , I’ve tried many things but still don’t have MO meta data in Database or HTTP request in meta data field.3 boxes up Bearbox smsbox sqlbox
meta_data: NULL
my sendsms is:
http://localhost:13013/cgi-bin/sendsms?username=senderpassword=trupfrom=alfato=45633463463%meta-data="">

The LOGS: 
Bearbox:
2012-02-02 14:03:14 Receive SMS [x] [SVC:] [ACT:2xxx] [BINF:] [FID:] [META:?smpp?rut_message_id=55873rut_created_ts=20120202140502] [from:+45633463463] [to:alfa] [flags:0:2:-1:0:-1] [msg:10:00480065006C006C006F] [udh:0:]
SMSbox:
Path: /cgi-bin/dlr3.php
2012-02-02 14:11:17 [18097] [9] DEBUG: Query: dlr-mask=31status=8source=45633463463destination=alfameta-data="">

2012-02-02 14:11:17 [18097] [9] DEBUG: Fragment: (null)
…
..
HTTP: Queue contains 1 outstanding requests
2012-02-02 14:11:17 [18097] [6] DEBUG: HTTP: Retrying request http://xx/cgi-bin/dlr3.php?dlr-mask=31status=8sourc
e=45633463463destination=alfameta-data="">
 (5/10)Configuration:

group = smscsmsc = smppsystem-type = "VAS"interface-version = 34throughput = 25host = xxxport = xxxtransceiver-mode = 1smsc-username = xxxsmsc-password = xxx#my-number = "sender-prefix"enquire-link-interval = 60source-addr-autodetect = falsesource-addr-ton = 5source-addr-npi = 0dest-addr-ton = 1dest-addr-npi = 0msg-id-type = 0x03log-file = "/var/log/kannel/operator.log"log-level = 0
group = coreadmin-port = 13000admin-password = xxxadmin-deny-ip = "*.*.*.*"admin-allow-ip = ""box-deny-ip = "*.*.*.*"box-allow-ip = "ip..."log-file = "/var/log/kannel/bearerbox.log"access-log = "/var/log/kannel/access.log"log-level = 0dlr-storage = mysqlunified-prefix = "+371"smsbox-port = 13001
include = "/etc/kannel/tlv.conf"
include = "/etc/kannel/dlr.conf"
include = "/etc/kannel/smpp-smsc.conf"
include = "/etc/kannel/smsbox.conf"
group = smsbox-routesmsbox-id = "SMS_Box;MySQL_Box"
include = "/etc/kannel/sendsms-users.conf"
include = "/etc/kannel/sms-service.conf"
group = smsboxsmsbox-id = SMS_Box#smsbox-port = 13014bearerbox-host = 127.0.0.1bearerbox-port = 13002sendsms-port = 13013log-file = "/var/log/kannel/smsbox.log"log-level = 0access-log = "/var/log/kannel/sms-access.log"sendsms-chars = "0123456789"http-request-retry = 10http-queue-delay = 60max-pending-requests = 10#mo-recode = nomo-recode = true
group = sendsms-userusername = senderpassword = trupmax-messages = 1concatenation = truedlr-url = ""http://127.0.0.1/cgi-bin/dlr2.pl?from=%Pto=%pmeta-data="">http://127.0.0.1/cgi-bin/dlr2.pl?from=%Pto=%pmeta-data="">"
group = sms-servicekeyword = defaulttext = "No services defined"catch-all = trueaccept-x-kannel-headers = truepost-url = ""http://localhost/cgi-bin/dlr2.pl?from=%Pto=%psmsc=%idlr-type=%dtext=%ameta-data="">http://localhost/cgi-bin/dlr2.pl?from=%Pto=%psmsc=%idlr-type=%dtext=%ameta-data="">"group = sqlboxid = sqlbox-dbsmsbox-id = MySQL_Boxglobal-sender = "alfa"bearerbox-host = 127.0.0.1bearerbox-port = 13001smsbox-port = 13002smsbox-port-ssl = falsesql-log-table = sent_smssql-insert-table = send_smslog-file = "/var/log/kannel/sqlbox.log"log-level = 0
group = mysql-connectionid = sqlbox-dbhost = localhostusername = password =database = max-connections = 3




Re: TLV MO metadata null

2012-02-02 Thread Alejandro Guerrieri
Hrm, I don't see the smpp-tlv group in there, is it on one of the includes?

Put the smsc on log-level 0 and see if you can get any relevant log lines
from there.

Regards,

Alex

On Thu, Feb 2, 2012 at 7:28 AM, kova...@apollo.lv wrote:

 Hello,

 I’m configuring Kannel , and I got a problem with receiving TLV fields ,
 as in description is written they should appear at the meta data field. I
 see that bearbox receives all data correctly but then in request and in the
 database field is Null. Where could be the problem?  I correctly pass tlv
 fields in submits and they are written to database. Got problem with MO
 messages(Deliver_SM).

 I need an advice where could be the problem , I’ve tried many things but
 still don’t have MO meta data in Database or HTTP request in meta data
 field.

 3 boxes up Bearbox smsbox sqlbox

 meta_data: NULL

 my sendsms is:


 http://localhost:13013/cgi-bin/sendsms?username=senderpassword=trupfrom=alfato=45633463463%meta-data=%3Fsmpp%3Frut_tariff_class%3D171mclass=0charset=utf-8coding=2text=Hellodlr-mask=31dlr-url=http%3a%2f%2flocalhost%2fcgi-bin%2fdlr3.php%3fdlr-mask%3d31%26status%3d%25d%26source%3d%25p%26destination%3d%25P%26meta-data%3d%25D%0d%0a

  **

 The LOGS:

 Bearbox:

 2012-02-02 14:03:14 Receive SMS [x] [SVC:]
 [ACT:2xxx] [BINF:] [FID:]
 [META:?smpp?rut_message_id=55873rut_created_ts=20120202140502]
 [from:+45633463463] [to:alfa] [flags:0:2:-1:0:-1]
 [msg:10:00480065006C006C006F] [udh:0:]

 SMSbox:

 Path: /cgi-bin/dlr3.php

 2012-02-02 14:11:17 [18097] [9] DEBUG:   Query:
 dlr-mask=31status=8source=45633463463destination=alfameta-data=

 ** **

 2012-02-02 14:11:17 [18097] [9] DEBUG:   Fragment: (null)

 …

 ..

 HTTP: Queue contains 1 outstanding requests

 2012-02-02 14:11:17 [18097] [6] DEBUG: HTTP: Retrying request 
 http://xx/cgi-bin/dlr3.php?dlr-mask=31status=8sourc

 e=45633463463destination=alfameta-data=

  (5/10)


 Configuration:





 group = smsc
 smsc = smpp
 system-type = VAS
 interface-version = 34
 throughput = 25
 host = xxx
 port = xxx
 transceiver-mode = 1
 smsc-username = xxx
 smsc-password = xxx
 #my-number = sender-prefix
 enquire-link-interval = 60
 source-addr-autodetect = false
 source-addr-ton = 5
 source-addr-npi = 0
 dest-addr-ton = 1
 dest-addr-npi = 0
 msg-id-type = 0x03
 log-file = /var/log/kannel/operator.log
 log-level = 0

 group = core
 admin-port = 13000
 admin-password = xxx
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 
 box-deny-ip = *.*.*.*
 box-allow-ip = ip...
 log-file = /var/log/kannel/bearerbox.log
 access-log = /var/log/kannel/access.log
 log-level = 0
 dlr-storage = mysql
 unified-prefix = +371
 smsbox-port = 13001

 include = /etc/kannel/tlv.conf

 include = /etc/kannel/dlr.conf

 include = /etc/kannel/smpp-smsc.conf

 include = /etc/kannel/smsbox.conf

 group = smsbox-route
 smsbox-id = SMS_Box;MySQL_Box

 include = /etc/kannel/sendsms-users.conf

 include = /etc/kannel/sms-service.conf

 group = smsbox
 smsbox-id = SMS_Box
 #smsbox-port = 13014
 bearerbox-host = 127.0.0.1
 bearerbox-port = 13002
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0
 access-log = /var/log/kannel/sms-access.log
 sendsms-chars = 0123456789
 http-request-retry = 10
 http-queue-delay = 60
 max-pending-requests = 10
 #mo-recode = no
 mo-recode = true

 group = sendsms-user
 username = sender
 password = trup
 max-messages = 1
 concatenation = true
 dlr-url = 
 http://127.0.0.1/cgi-bin/dlr2.pl?from=%Pto=%pmeta-data=%Dsmsc=%idlr-type=%dtext=%adcs=%O
 

 group = sms-service
 keyword = default
 text = No services defined
 catch-all = true
 accept-x-kannel-headers = true
 post-url = 
 http://localhost/cgi-bin/dlr2.pl?from=%Pto=%psmsc=%idlr-type=%dtext=%ameta-data=%D
 

 group = sqlbox
 id = sqlbox-db
 smsbox-id = MySQL_Box
 global-sender = alfa
 bearerbox-host = 127.0.0.1
 bearerbox-port = 13001
 smsbox-port = 13002
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 0


 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username =
 password =
 database =
 max-connections = 3






Fwd: TLV MO metadata null

2012-02-02 Thread kovalov

---BeginMessage---
Hello,
I’m on debug lvl 0 , ill add the LOG example. TLV are defined in include file:
Kannel.conf:
include = "/etc/kannel/tlv.conf"
tlv.conf:
group = smpp-tlv
name = rut_tariff_class
tag = 0x1503
type = integer
length = 2LOG:2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter tag (0x1500)2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter length read as 142012-02-02 14:03:14 [18084] [6] DEBUG: Found configured optional parameter `rut_created_ts'2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter tag (0x1506)2012-02-02 14:03:14 [18084] [6] DEBUG: Optional parameter length read as 52012-02-02 14:03:14 [18084] [6] DEBUG: Found configured optional parameter `rut_message_id'2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP[SMPP:xx:smpp]: Got PDU:2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU 0x87173a8 dump:2012-02-02 14:03:14 [18084] [6] DEBUG: type_name: deliver_sm2012-02-02 14:03:14 [18084] [6] DEBUG: command_id: 5 = 0x00052012-02-02 14:03:14 [18084] [6] DEBUG: command_status: 0 = 0x
 2012-02-02 14:03:14 [18084] [6] DEBUG: sequence_number: 5 = 0x00052012-02-02 14:03:14 [18084] [6] DEBUG: service_type: NULL2012-02-02 14:03:14 [18084] [6] DEBUG: source_addr_ton: 1 = 0x00012012-02-02 14:03:14 [18084] [6] DEBUG: source_addr_npi: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: source_addr: "45633463463"2012-02-02 14:03:14 [18084] [6] DEBUG: dest_addr_ton: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: dest_addr_npi: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: destination_addr: "alfa"2012-02-02 14:03:14 [18084] [6] DEBUG: esm_class: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: protocol_id: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: priority_flag: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: schedule_delivery_time: NULL<
 BR>2012-02-02 14:03:14 [18084] [6] DEBUG: validity_period: NULL2012-02-02 14:03:14 [18084] [6] DEBUG: registered_delivery: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: replace_if_present_flag: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: data_coding: 24 = 0x00182012-02-02 14:03:14 [18084] [6] DEBUG: sm_default_msg_id: 0 = 0x2012-02-02 14:03:14 [18084] [6] DEBUG: sm_length: 10 = 0x000a2012-02-02 14:03:14 [18084] [6] DEBUG: short_message:2012-02-02 14:03:14 [18084] [6] DEBUG: Octet string at 0x8717228:2012-02-02 14:03:14 [18084] [6] DEBUG: len: 102012-02-02 14:03:14 [18084] [6] DEBUG: size: 112012-02-02 14:03:14 [18084] [6] DEBUG: immutable: 02012-02-02 14:03:14 [18084] [6] DEBUG:
 p; data: 00 48 00 65 00 6c 00 6c 00 6f .H.e.l.l.o2012-02-02 14:03:14 [18084] [6] DEBUG: Octet string dump ends.2012-02-02 14:03:14 [18084] [6] DEBUG: rut_message_id: "55873"2012-02-02 14:03:14 [18084] [6] DEBUG: rut_created_ts: "20120202140502"2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU dump ends.2012-02-02 14:03:14 [18084] [6] WARNING: smsbox_list empty!2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP[SMPP::smpp]: Sending PDU:2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU 0x87174c8 dump:2012-02-02 14:03:14 [18084] [6] DEBUG: type_name: deliver_sm_resp2012-02-02 14:03:14 [18084] [6] DEBUG: command_id: 2147483653 = 0x80052012-02-02 14:03:14 [18084] [6] DEBUG: command_status: 0 = 0x2012-02-02 14:03:14 [18084] [6
 ] DEBUG: sequence_number: 5 = 0x00052012-02-02 14:03:14 [18084] [6] DEBUG: message_id: NULL2012-02-02 14:03:14 [18084] [6] DEBUG: SMPP PDU dump ends.Regards, Vit.On Thu, 2 Feb 2012 08:21:32 -0500 Alejandro Guerrieri wrote:  Hrm, I don't see the smpp-tlv group in there, is it on one of the includes?   Put the smsc on log-level 0 and see if you can get any relevant log lines  from there.   Regards,   Alex   On Thu, Feb 2, 2012 at 7:28 AM, wrote:   Hello,   I’m configuring Kannel , and I got a problem with receiving TLV fields ,  as in description is written they should appear at the meta data field. I  see that bearbox receives all data correctly but then in requ
 est and in the  database field is Null. Where could be the problem? I correctly pass tlv  fields in submits and they are written to database. Got problem with MO  messages(Deliver_SM).   I need an advice where could be the problem , I’ve tried many things but  still don’t have MO meta data in Database or HTTP request in meta data  field.   3 boxes up Bearbox smsbox sqlbox   meta_data: NULL   my sendsms is:http://localhost:13013/cgi-bin/sendsms?username=senderpassword=trupfrom=alfato=45633463463%meta-data=""
 %26destination%3d%25P%26meta-data%3d%25D%0d%0a    **   The LOGS:   Bearbox:   2012-02-02 14:03:14 Receive SMS [x] [SVC:]  [ACT:2xxx] [BINF:] [FID:]  [META:?smpp?rut_message_id=55873rut_created_ts=20120202140502]  [from:+45633463463] [to:alfa] [flags:0:2:-1:0:-1]  [msg:10:00480065006C006C006F] [udh:0:]   SMSbox:   Path: /cgi-bin/dlr3.php   2012-02-02 14:11:17 [18097] [9] DEBUG: Query:  

Re: Fargo Maestro 20 modem not getting detected in Kannel

2012-02-02 Thread Alvaro Cornejo
If it is a serial modem and is not detected by kannel nor vwdial the
probably you are most probaly using the wrong cable. There is no need
for any driver for serial connections.

If you are using a db9 conector try to reverse pins 2 and 3 (Tx/Rx)
else google around for serial cables pinout for modem connection.

If you are using a USB modem or USB to serial adapter, then you might
need to install a driver for it.

Hope helps

Alvaro

On 2/2/12, termbsd bs.shru...@gmail.com wrote:

 Hi,
 I am using Fargo Maestro 20 modem.My GSM modem is not getting detected.When
 i run ./bearerbox -v l smskannel.conf
 i get

 2012-02-02 11:50:25 [2411] [6] INFO: AT2[GSM]: Closing device
 2012-02-02 11:50:25 [2411] [6] DEBUG: AT2[GSM]: device opened. Telnet mode =
 0
 2012-02-02 11:50:26 [2411] [6] DEBUG: AT2[GSM]: device opened
 2012-02-02 11:50:26 [2411] [6] INFO: AT2[GSM]: speed set to 9600
 2012-02-02 11:50:26 [2411] [6] DEBUG: AT2[GSM]: -- ^M
 2012-02-02 11:50:28 [2411] [6] DEBUG: AT2[GSM]: -- AT^M
 2012-02-02 11:50:32 [2411] [6] DEBUG: AT2[GSM]: -- ATF^M
 2012-02-02 11:50:36 [2411] [6] ERROR: AT2[GSM]: Couldn't connect (retrying
 in 10 seconds).

 When i try wvdialconf wvtest it says,
 Scanning your serial ports for a modem.

 ttyS0*1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
 ttyS0*1: ATQ0 V1 E1 --
 ttyS0*1: failed with 9600 baud, next try: 115200 baud
 ttyS0*1: ATQ0 V1 E1 --
 ttyS0*1: and failed too at 115200, giving up.
 Modem Port Scan*1: S1   S2   S3

 Sorry, no modem was detected!  Is it in use by another program?
 Did you configure it properly with setserial?
 My smskannel.conf is,
 group = smsc
 smsc = at
 smsc-id = GSM
 modemtype = auto
 device = /dev/ttyS0
 speed =9600
 my-number = +918811909770
 sms-center = +919954029008
 #port = 1
 connect-allow-ip = 127.0.0.1
 log-level =0
 keepalive = 60
 sim-buffering = true.
 Please help


 --
 View this message in context:
 http://old.nabble.com/Fargo-Maestro-20-modem-not-getting-detected-in-Kannel-tp33248317p33248317.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



administration kannel

2012-02-02 Thread mohamed keita

Hello

Thank you for your response. I did not understand very well what you meant. To 
start my bearerbox, normally I do the following command: / usr / local / sbin / 
bearerbox -v 1  / etc / kannel / gw / bearerbox. In my php code, I tried it  : 
exec ('/ usr / local / sbin / bearerbox -v 1 / etc / kannel / gw / bearerbox ') 
. when I execute my script, the bearerbox does not start.

Thank you in advance.
  

Re: Fargo Maestro 20 modem not getting detected in Kannel

2012-02-02 Thread termbsd

HI,
I am using DB9 connector in serial port of PC.The modem is detecting in
Windows and I can send SMS from it also using another gateway.But when in
Ubuntu when using Kannel it gives errors.
-- 
View this message in context: 
http://old.nabble.com/Fargo-Maestro-20-modem-not-getting-detected-in-Kannel-tp33248317p33251759.html
Sent from the Kannel - User mailing list archive at Nabble.com.