Re: [RIP] Remembering René Kluwen
I had the honor to collaborate with him a couple times many years ago, over sqlbox code. A great person and excellent professional. My deepest condolences, he will certainly be missed. On Fri, Jun 11, 2021 at 9:01 AM Stipe Tolj wrote: > Dear all, > > With deep regret and sorrow we let you know that René Kluwen, one of > Kannel core developers has passed away this week. René has been a > wonderful character and person, a father and a long year active > supporter of the Kannel project. His work contributed to the main > gateway module, the sqlbox and opensmppbox sub-modules, along with most > valued discussions in our mailing list groups. Some of us have been > friends with René and we’re heavily shaken by the news. > > We will miss him, and we would like to express our sincerely condolences > to his family. > > Like in the hearts and minds of his family, his persona will keep on > living in his work he contributed with passion to our project. Honoring > his contributions is our privilege and determination. > > Rest in peace René Kluwen (* 10-05-1970, ✝ 06-06-2021) > > https://kannel.org/images/rouwkaart_rene.png > > > -- > Best Regards, > Stipe Tolj > > --- > Düsseldorf, NRW, Germany > > Kannel Foundation tolj.org system architecture > http://www.kannel.org/http://www.tolj.org/ > > st...@kannel.org s...@tolj.org > --- > >
Re: Empty Incoming SMS
The question marks and empty messages are likely because you are receiving a UCS-2 encoded message, but your data_coding is set to 0. What does the access log shows for these messages? On Wed, Jun 24, 2020 at 1:35 PM Tolga Ulas wrote: > This is a deliver_sm for delivery report (esm_class=4) and it's a report > of the status of the sms you've sent. For the structure of deliver_sm of > delivery report it please refer to SMPP protocol documentation on the body > of it. I think the smsc you've been connected to has some problem in > character encoding. Did you talk to them? > > Bonus: The content of it is vendor specific, but general tendency is as > follows: > id The message reference of the message. > sub Sub-ID, not used. > dlvrd Value '1' when the message has been delivered, if the message is > still pending '0'. > submit date Submission date and time. > done date Date and time the status has changed, or message delivery time > when stat is set to 'DELIVRD'. > stat Current status of the message. > err Additional error code, provider specific. > text Part of the original message text. > > > > On Wed, Jun 24, 2020 at 3:45 PM nashwan Al-Mawri > wrote: > >> I checked the kannel log , and i found out ,the blank sms text on the >> log is ? as you can see on the log below , please note that the >> outgoing SMS is unicode characters and it works fine , any suggestions , >> do i have to do any formatting for the incoming sms ,, >> for example out 100 sms 80 will be blank and 20 with the right keyword >> >> thanks >> >> send_msg: sending msg to box: <127.0.0.1> >> 2020-06-24 12:04:37 [2341] [7] DEBUG: SMPP[sourceline1]: throughput >> (0.00,20.00) >> 2020-06-24 12:04:37 [2341] [10] DEBUG: boxc_sender: sent message to >> <127.0.0.1> >> 2020-06-24 12:04:37 [2341] [9] DEBUG: boxc_receiver: got ack >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP[sourceline1]: throughput >> (0.00,20.00) >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP[sourceline1]: Got PDU: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: SMPP PDU 0x7f0dc8000e60 dump: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: type_name: deliver_sm >> 2020-06-24 12:04:48 [2341] [7] DEBUG: command_id: 5 = 0x0005 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: command_status: 0 = 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sequence_number: 16792058 = >> 0x010039fa >> 2020-06-24 12:04:48 [2341] [7] DEBUG: service_type: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr_ton: 2 = 0x0002 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr_npi: 1 = >> 0x0001943594596 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: source_addr: "no" >> 2020-06-24 12:04:48 [2341] [7] DEBUG: dest_addr_ton: 2 = 0x0002 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: dest_addr_npi: 1 = 0x0001 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: destination_addr: >> "xxxshortcode" >> 2020-06-24 12:04:48 [2341] [7] DEBUG: esm_class: 4 = 0x0004 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: protocol_id: 0 = 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: priority_flag: 0 = 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: schedule_delivery_time: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: validity_period: NULL >> 2020-06-24 12:04:48 [2341] [7] DEBUG: registered_delivery: 0 = >> 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: replace_if_present_flag: 0 = >> 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data_coding: 0 = 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sm_default_msg_id: 0 = 0x >> 2020-06-24 12:04:48 [2341] [7] DEBUG: sm_length: 114 = 0x0072 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: short_message: >> 2020-06-24 12:04:48 [2341] [7] DEBUG:Octet string at 0x7f0dc8005b60: >> 2020-06-24 12:04:48 [2341] [7] DEBUG: len: 114 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: size: 115 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: immutable: 0 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 69 64 3a 31 30 30 30 30 >> 31 32 30 30 33 30 31 32 id:112003012 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 30 36 32 34 30 39 31 >> 36 32 36 31 33 30 30 36 0062409162613006 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 31 20 73 75 62 6d 69 74 >> 20 64 61 74 65 3a 32 30 1 submit date:20 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 36 32 34 31 32 30 34 >> 20 64 6f 6e 65 20 64 61 06241204 done da >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 74 65 3a 32 30 30 36 32 >> 34 31 32 30 34 20 73 74 te:2006241204 st >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 61 74 3a 44 45 4c 49 56 >> 52 44 20 65 72 72 3a 30 at:DELIVRD err:0 >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 30 30 20 74 65 78 74 3a >> 3f 3f 3f 3f 3f 20 3f 3f 00 text:? ?? >> 2020-06-24 12:04:48 [2341] [7] DEBUG: data: 3f 3f >> ?? >> 2020-06-24 12:04:48 [2341] [7] DEBUG:Octet string dump ends. >> >> On Wed, Jun 24, 2020 at 2:39 PM Antony Stone < >>
Re: change windows size
That would be max-pending-submits Check the user guide for further details. Regards, -- Alejandro Guerrieri > On Mar 8, 2020, at 12:47 PM, Web Min wrote: > > > Hello, > > I just received the following message from the gateway, any help would be > appreciated. > > Please notice that today we received bad request from your side and after > investigation found that problem from your side because of sending messages > using ASYNC mode , > > please make sure that window size = 1 . > > Which parameter should I Add or change to effect the size of the window? > > Regards
Re: Kannel delivering MT in LIFO
The file spool store writes, reads and deletes a large number of small files in rapid succession, which is very inefficient in journaled file systems. You can increase the performance of the file store by using a separate partition formatted as ext2. You don’t need a lot of space, a few gigs are usually plenty to store your in-flight messages. Regards, -- Alejandro Guerrieri > On Oct 19, 2019, at 14:27, Jeff Thorn wrote: > > > I've notice this in the past as well. In our case it seems to occur when we > send a large number of messages in "batch A" which causes messages to queue > in the local file store. We use the kannel status monitor web interface quite > often. When this occurs, the status page shows the number of queued messages > increasing. At the same time, the sending rate of outgoing MT messages goes > down. My guess is that kannel is spending more time writing to disk vs > sending directly to the smsc. > > When "batch B" starts, it appears that some of these messages are sent > immediately instead of being cached in the local file store, which would > resemble the LIFO scenario you described. > > I've been very curious about the logic kannel implements to decide when to > cache messages locally and when not to. > > For what it's worth, this started happening less frequently for us when we > began using redis for the dlr store. It is much faster than the mysql db we > where using. Now this doesn't happen until we exceed 400 messages per second > on a single kannel server. When we load balance multie kannel instances, we > can reach nearly 1000 messages per second before this occurs. > > Hope this helps. Maybe someone can elaborate on that local caching logic. > > Jeff Thorn > CEO > Thorn Technologies, LLC > https://www.thorntech.com > >> On Sat, Oct 19, 2019, 12:15 PM Rene Kluwen wrote: >> Your observaction is a bit “odd” in the sense that by nature, Kannel should >> send messages FIFO. >> >> >> >> The smpp smsc handles things differently as it takes the priority field into >> account. The http smsc does not. >> >> >> >> Apart from that SMS in general is store-and-forward and a particular order >> is not guaranteed so you cannot rely and that either. Even though that >> wasn’t your question. >> >> >> >> You can consider this as a background – I know it’s not a definitive answer, >> but maybe it helps. >> >> >> >> == Rene >> >> >> >> >> >> Van: users Namens Louis Rouxel >> Verzonden: zaterdag 19 oktober 2019 16:06 >> Aan: users@kannel.org >> Onderwerp: Kannel delivering MT in LIFO >> >> >> >> Hello there, >> >> >> >> >> >> I'm currently having issues with Kannel delivering MTs in LIFO (last in >> first out) priority mode. >> >> >> >> I'm using Kannel 1.4.4 and filesystem directory spool storage (Debian >> jessie, ext4). >> >> >> >> I'm submitting large amounts of messages (let's call them "batch A)" for via >> cgi-bin/sendsms http endpoint; they all get ingested in the store. >> >> >> >> One hour later, some messages are still in queue, and I'm submitting a large >> amount of another message (let's call them "batch B"), the same way. >> >> >> >> Both messages are sent without any priority defined. >> >> >> >> >> >> What I'm observing, in such situations, is that delivery of messages from >> batch A are interrupted when batch B starts, Kannel is now only delivering >> messages from batch B. >> >> Deliveries for batch A will only resume when batch B is finished. >> >> >> >> I've been trying to understand if Kannel "officially" working in LIFO or >> FIFO, but can't really get a proper understanding. >> >> >> >> 9 years ago, Nikos seemed to indicate the queue should work in FIFO >> >> https://www.kannel.org/pipermail/users/2010-July/011951.html >> >> >> >> But that's really not what I'm observing. >> >> Also, I found someone suggesting a patch to make Kannel work in FIFO instead >> of LIFO (that would confirm my supposition) >> >> https://stackoverflow.com/questions/37461349/kannel-queue-type >> >> >> >> But unfortunately this does not get a lot of attention, and I'm not very >> comfortable changing the source code as I have no experience in C. >> >> >> >> >> >> What do you guys think? >> >> Can anyone confirm if Kannel is operating in LIFO and the behaviour I'm >> observing is normal? >> >> Would anyone have a recommendation to achieve a FIFO behaviour without >> taking too many risks? >> >> >> >> >> >> Thanks a lot, >> >> >> >> -- >> >> Louis
Re: Kannel Won't Insert Message Delivery Record to MySQL
If you set an smsbox-Id then you need to have a proper routing to the box (or not ser one of this is your only box besides bearer box) -- Alejandro Guerrieri > On Jan 1, 2019, at 12:41 AM, > wrote: > > Hi Alvaro and Spameden, > > Thanks for your information. > > I installed sqlbox. The table send_sms and sent_sms were created > automatically to mysql database. But there are still no records in the table. > > Here’s the sqlbox configuration. > > group = sqlbox > id = sqlbox-db > smsbox-id = sqlbox > #global-sender = "" > bearerbox-host = localhost > bearerbox-port = 13130 > smsbox-port = 13135 > smsbox-port-ssl = false > sql-log-table = sent_sms > sql-insert-table = send_sms > log-file = "/var/log/kannel/kannel-sqlbox.log" > log-level = 0 > #ssl-client-certkey-file = "" > #ssl-server-cert-file = "" > #ssl-server-key-file = "" > #ssl-trusted-ca-file = "" > > # Database connection examples. Please uncomment as needed > > # Example MYSQL Connection > group = mysql-connection > id = sqlbox-db > host = localhost > username = kannel > password = kannel > database = kannel > > The bearerbox-port is the same port as admin-port in kannel.conf. The > smsbox-port is just a random number not being used. > > Is there anything wrong.? > > Thank you, > Henry > > From: spameden > Sent: Monday, December 31, 2018 6:51 PM > To: Alvaro Cornejo > Cc: xkb.surf...@gmail.com; users > Subject: Re: Kannel Won't Insert Message Delivery Record to MySQL > > You need to use sqlbox plugin in order to store saved MT/MO/DLR or implement > the logic of saving those in your app. > > Exactly, what Alvaro has said. > > пн, 31 дек. 2018 г. в 17:33, Alvaro Cornejo : > Hi > > Kannel uses mysql for storing sms temporarily and delete the record after > confirmation it has been sent. That is why you usually does not see anything > of your kannel table. > > If you do want to have a permanent store of that data, as well as sms > status,, you need to do it at your app side or use sqlbox. > > 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 > > > Le dim. 30 déc. 2018 à 16:39, a écrit : > Hi All, > > I have installed mysql and created database and tables on the same server as > Kannel. Also, according to the documents I have put the configuration section > to kannel config. Then I tested sending and receiving message using FAKE > SMSC, but Kannel didn’t insert delivery records to MySQL databased. > > The configuration section I put into kannel.conf is: > > group = core > admin-port = 13130 > smsbox-port = 13131 > admin-password = italksms > status-password = italksms > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > log-file = "/var/log/kannel/kannel.log" > log-level = 0 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > access-log = "/var/log/kannel/kannel.access.log" > dlr-storage = mysql > > group = mysql-connection > id = mydlr > host = localhost > username = kannel > password = kannel > database = kannel > # max count of connections that will be opened for dbpool > # default is 1 > max-connections = 1 > > group = dlr-db > id = mydlr > 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 > > Did I miss steps somewhere? > > Thank you. > Henry
Re: SMS Recieve Queue
If you assign an smsbox-id, you need a matching smsbox-route pointint to it. Try commenting that line. Hope it helps, Alejandro Guerrieri On Mon, Dec 29, 2014 at 1:51 PM, Christian Ferreira stav3n...@gmail.com wrote: Thanks for the prompt response! I tried that but nothing changed. In /store-status I see the messages sent to the short number, like if I sent an SMS with Hello World, I see an MO typed SMS on the table, and the number of queued message in /status increase, but the get-url on sms-service is never called. When entering the url directly on a browser it works fine. For now, the script is just loging on a file so I can check if the service worked. Regards. On Mon, Dec 29, 2014 at 3:42 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi try with: max-messages = 0 in SEND-SMS USERS config. keyword-regex = * in sms-service What you probably see in store size is the automatic reply sent by kannel to each incoming message that, from some reason is not being sent to your PERSONAL smsc... 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 Mon, Dec 29, 2014 at 1:08 PM, Christian Ferreira stav3n...@gmail.com wrote: Hello All, I have the following kannel.conf #- # SMSC CORE # group = core admin-port = 13000 smsbox-port = 13001 admin-password = ** log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/bearerbox_access.log access-log-clean = true box-allow-ip = 127.0.0.1 sms-resend-freq = 120 store-type = file store-location = /var/log/kannel/storage #- # SMSC CONNECTIONS # group = smsc smsc = smpp smsc-id = PERSONAL host = 10.129.2.51 port = 8089 smsc-username = ** smsc-password = ** my-number = 363 connect-allow-ip = 127.0.0.1 wait-ack = 240 wait-ack-expire = 0x00 system-type = Newton address-range = ^363$ log-file = /var/log/kannel/smsc.log log-level = 0 transceiver-mode = true interface-version = 34 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 enquire-link-interval = 60 reconnect-delay = 60 #- # SMSBOX SETUP # group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13002 smsbox-id = PESRONALSMSBOX log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/smsbox_access.log #- # SEND-SMS USERS # group = sendsms-user username = * password = * default-smsc = PERSONAL max-messages = 1000 concatenation = true #user-deny-ip = #user-allow-ip = #- # SERVICES # group = sms-service keyword-regex = .* catch-all = yes get-url = http://192.168.28.36/momoprod/momo-produccion/public/web/inbox/inbox.php; accept-x-kannel-headers = true When I send an SMS to my short number, they get delivered to Kannel, but end up on the SMS recieved queue, and never calling the get-url from my sms-service group. Going to /status give me SMS: received 2 (2 queued), sent 0 (0 queued), store size 2 And I can see the SMSs on /store-status Why are the SMSs being queued instead of going through the sms-service ? Following are some logs lines of the sms recieved: Bearerbox_access log Receive SMS [SMSC:PERSONAL] [SVC:] [ACT:] [BINF:0] [FID:] [from:+595971707930] [to:363] [flags:-1:0:-1:0:-1] [msg:4:Test] [udh:0:] SMSC log 2014-12-29 14:48:38 [44885] [6] DEBUG: Optional parameter tag (0x000e) 2014-12-29 14:48:38 [44885] [6] DEBUG: Optional parameter length read as 1 2014-12-29 14:48:38 [44885] [6] WARNING: SMPP: Unknown TLV(0x000e,0x0001,01) for PDU type (deliver_sm) received! 2014-12-29 14:48:38 [44885] [6] DEBUG: Optional parameter tag (0x001d) 2014-12-29 14:48:38 [44885] [6] DEBUG: Optional parameter length read as 14 2014-12-29 14:48:38 [44885] [6] WARNING: SMPP: Unknown TLV(0x001d,0x000e,494d45493a333538323636303100) for PDU type (deliver_sm) received! 2014-12-29 14:48:38 [44885] [6] DEBUG: SMPP[PERSONAL]: Got PDU: 2014-12-29 14:48:38 [44885] [6] DEBUG: SMPP PDU 0x7f1474002710 dump: 2014-12-29 14:48:38 [44885] [6] DEBUG: type_name: deliver_sm 2014-12-29 14:48:38 [44885] [6] DEBUG: command_id: 5 = 0x0005 2014-12-29 14:48:38 [44885] [6] DEBUG: command_status: 0 = 0x 2014-12-29 14:48:38 [44885] [6] DEBUG: sequence_number: 1325196071 = 0x4efce327 2014-12-29 14:48
Re: kannel not sending message having @ symbol properly
You need to url-encode it as %40. -- Alex Guerrieri On Sep 24, 2014, at 05:41, Alok Srivastava alok...@gmail.com wrote: Dear List Plz help When i try to send any message having @ symbol, kannel noy sending it properly. like if i send to...@gmail.com on any mobile, it recieve as toxin@@. It is putting all the character as @ after @ symbol. Plz help. Thanks Abhi
Re: SQLBox and Store type
They're unrelated. Sqlbox uses Kannel's libraries and of course talks to Kannel over the box protocol, but it doesn't use its resources directly. Hope it helps, Alejandro On Tue, Jul 8, 2014 at 3:26 AM, Antonis Spirou anto...@kapatel.gr wrote: Hi all, a quick question. If i use sqlbox do i have to use kannel's storage facility or one has nothing to do with the other? BR -- *Antonis Spirou* Systems Administrator
Re: Sqlbox log not logging information
Can you try logging to /tmp? That would rule out any permissions problems. On Mon, Jun 16, 2014 at 9:31 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Dude Yes, sqlbox shows similar to sqlbox: rt@perusms8:~# lsof |grep box |grep /var/log bearerbox 1383 root 15w REG8,1 385623 22937901 /var/log/kannel/bearerbox.log bearerbox 1383 root 16w REG8,110936 22937815 /var/log/kannel/beareraccess.log bearerbox 1383 root 29w REG8,1 980219 22937912 /var/log/kannel/peru-c1.log bearerbox 1383 root 33w REG8,1 1917175 22939646 /var/log/kannel/peru-c2.log bearerbox 1383 root 37w REG8,1 676042 22939653 /var/log/kannel/peru-c3.log bearerbox 1383 root 40w REG8,1 676042 22939654 /var/log/kannel/peru-c4.log bearerbox 1383 root 44w REG8,1 3025 22937911 /var/log/kannel/nextel1.log bearerbox 1383 root 53w REG8,1 3035 22939657 /var/log/kannel/smsc2email.log wapbox1434 root6w REG8,119028 22939660 /var/log/kannel/wapbox.log wapbox1434 root7w REG8,1 246 22939659 /var/log/kannel/wapaccess.log sqlbox1727 root6w REG8,1 212609 22939658 /var/log/kannel/sqlbox.log smsbox1918 root6w REG8,1 274619 22939656 /var/log/kannel/smsbox.log smsbox1918 root7w REG8,1 7221 22939655 /var/log/kannel/smsaccess.log Permissions are even greater than for bearerbox and smsbox; Starnge thing is that on start sqlbox logs its start. After initializing mysql connections nothing. Like if it changes to a user that have no write rights after that initial log. -rw-r- 1 root root 387141 jun 16 20:23 bearerbox.log -rw-r- 1 root root 274619 jun 16 20:19 smsbox.log -rw-r- 1 root root 10936 jun 16 20:19 beareraccess.log -rw-r--r-- 1 root root 212609 jun 16 18:13 sqlbox.log -rw-r- 1 root root 19028 jun 16 18:13 wapbox.log Sql is launched in the same way other boxes. root@perusms8:~# ps aux | grep kannel root 1381 0.0 0.0 26160 856 ?Ss 18:13 0:00 /usr/local/sbin/bearerbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_bbox.pid /etc/kannel/kannel.conf root 1383 0.1 0.0 1397568 3116 ?Sl 18:13 0:09 /usr/local/sbin/bearerbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_bbox.pid /etc/kannel/kannel.conf root 1432 0.0 0.0 25988 856 ?Ss 18:13 0:00 /usr/local/sbin/wapbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_wbox.pid /etc/kannel/kannel.conf root 1434 0.0 0.0 411864 2340 ?Sl 18:13 0:00 /usr/local/sbin/wapbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_wbox.pid /etc/kannel/kannel.conf root 1725 0.0 0.0 25588 868 ?Ss 18:13 0:00 /usr/local/sbin/sqlbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sqlbox.pid /etc/kannel/sqlbox.conf root 1727 0.0 0.0 109788 1824 ?Sl 18:13 0:02 /usr/local/sbin/sqlbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sqlbox.pid /etc/kannel/sqlbox.conf root 1916 0.0 0.0 25760 860 ?Ss 18:13 0:00 /usr/local/sbin/smsbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sbox.pid /etc/kannel/kannel.conf root 1918 0.0 0.0 634756 2072 ?Sl 18:13 0:00 /usr/local/sbin/smsbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sbox.pid /etc/kannel/kannel.conf root 7329 0.0 0.0 11928 936 pts/24 S+ 20:27 0:00 grep --color=auto 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 Sun, Jun 15, 2014 at 6:05 AM, [Digital^Dude] ® millennium@gmail.com wrote: Do you see sqlbox.log in lsof like the other kannel log files? If yes, is the file writable? Also, please show the result of ps aux | grep kannel result.
Re: Sqlbox log not logging information
Or run without --daemonize, it'll run in foreground and log to STDOUT. On Tue, Jun 17, 2014 at 9:41 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Can you try logging to /tmp? That would rule out any permissions problems. On Mon, Jun 16, 2014 at 9:31 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Dude Yes, sqlbox shows similar to sqlbox: rt@perusms8:~# lsof |grep box |grep /var/log bearerbox 1383 root 15w REG8,1 385623 22937901 /var/log/kannel/bearerbox.log bearerbox 1383 root 16w REG8,110936 22937815 /var/log/kannel/beareraccess.log bearerbox 1383 root 29w REG8,1 980219 22937912 /var/log/kannel/peru-c1.log bearerbox 1383 root 33w REG8,1 1917175 22939646 /var/log/kannel/peru-c2.log bearerbox 1383 root 37w REG8,1 676042 22939653 /var/log/kannel/peru-c3.log bearerbox 1383 root 40w REG8,1 676042 22939654 /var/log/kannel/peru-c4.log bearerbox 1383 root 44w REG8,1 3025 22937911 /var/log/kannel/nextel1.log bearerbox 1383 root 53w REG8,1 3035 22939657 /var/log/kannel/smsc2email.log wapbox1434 root6w REG8,119028 22939660 /var/log/kannel/wapbox.log wapbox1434 root7w REG8,1 246 22939659 /var/log/kannel/wapaccess.log sqlbox1727 root6w REG8,1 212609 22939658 /var/log/kannel/sqlbox.log smsbox1918 root6w REG8,1 274619 22939656 /var/log/kannel/smsbox.log smsbox1918 root7w REG8,1 7221 22939655 /var/log/kannel/smsaccess.log Permissions are even greater than for bearerbox and smsbox; Starnge thing is that on start sqlbox logs its start. After initializing mysql connections nothing. Like if it changes to a user that have no write rights after that initial log. -rw-r- 1 root root 387141 jun 16 20:23 bearerbox.log -rw-r- 1 root root 274619 jun 16 20:19 smsbox.log -rw-r- 1 root root 10936 jun 16 20:19 beareraccess.log -rw-r--r-- 1 root root 212609 jun 16 18:13 sqlbox.log -rw-r- 1 root root 19028 jun 16 18:13 wapbox.log Sql is launched in the same way other boxes. root@perusms8:~# ps aux | grep kannel root 1381 0.0 0.0 26160 856 ?Ss 18:13 0:00 /usr/local/sbin/bearerbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_bbox.pid /etc/kannel/kannel.conf root 1383 0.1 0.0 1397568 3116 ?Sl 18:13 0:09 /usr/local/sbin/bearerbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_bbox.pid /etc/kannel/kannel.conf root 1432 0.0 0.0 25988 856 ?Ss 18:13 0:00 /usr/local/sbin/wapbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_wbox.pid /etc/kannel/kannel.conf root 1434 0.0 0.0 411864 2340 ?Sl 18:13 0:00 /usr/local/sbin/wapbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_wbox.pid /etc/kannel/kannel.conf root 1725 0.0 0.0 25588 868 ?Ss 18:13 0:00 /usr/local/sbin/sqlbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sqlbox.pid /etc/kannel/sqlbox.conf root 1727 0.0 0.0 109788 1824 ?Sl 18:13 0:02 /usr/local/sbin/sqlbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sqlbox.pid /etc/kannel/sqlbox.conf root 1916 0.0 0.0 25760 860 ?Ss 18:13 0:00 /usr/local/sbin/smsbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sbox.pid /etc/kannel/kannel.conf root 1918 0.0 0.0 634756 2072 ?Sl 18:13 0:00 /usr/local/sbin/smsbox -v 0 --parachute --daemonize --pid-file /var/run/kannel_sbox.pid /etc/kannel/kannel.conf root 7329 0.0 0.0 11928 936 pts/24 S+ 20:27 0:00 grep --color=auto 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 Sun, Jun 15, 2014 at 6:05 AM, [Digital^Dude] ® millennium@gmail.com wrote: Do you see sqlbox.log in lsof like the other kannel log files? If yes, is the file writable? Also, please show the result of ps aux | grep kannel result.
Re: sqlbox and smsbox in parallel
Are you sure registered_delivery is set on the messages going out? smsbox should be receiving the dlr's back, there must be something on bearerbox log and eventually smsbox log, do you have log-level 0 on both? On Sat, Jun 14, 2014 at 9:53 AM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Alejandro No, there is nothing on smsbox log 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 Sat, Jun 14, 2014 at 12:55 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: I mean, the dlr's would be routed to smsbox along with the mo's, and smsbox would be responsible for calling dlr-url as well. On Sat, Jun 14, 2014 at 1:54 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Is there anything on smsbox log? On Fri, Jun 13, 2014 at 11:54 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Alejandro Thanks for your help. It works as you said; each box is working independently; however sqlbox dlrs are not being called. I've tried by adding sqlbox-id in boxc_id field to match sqlbox-id but nothing. If I leave that field blanc, it gets automatically filed with sqlbox_id (sqlbox). What is strange is that sqlbox logs shows nothing on it after a couple of entries at box start. I've posted another question on list. In bearerbox I see the transaction and my http smsc responding correctly to bearerbox but no dlr call. Regards Alvaro This is my insert: INSERT INTO send_sms (momt, sender, receiver, udhdata, msgdata, smsc_id, sms_type, coding, compress, validity, dlr_mask, dlr_url, boxc_id ) VALUES ('MT', '991212213', '991212211', NULL, 'sqlbox 10:30', 'smsc2email', 2, 2, NULL, 4200, 31,' http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender ', 'sqlbox' ) mysql SELECT * FROM sent_sms ; ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ | sql_id | momt | sender| receiver | udhdata | msgdata| time | smsc_id| service | account | id | sms_type | mclass | mwi | coding | compress | validity | deferred | dlr_mask | dlr_url | pid | alt_dcs | rpi | charset | boxc_id | binfo | meta_data | ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ | 50 | MT | 991212213 | 991212211 | NULL| sqlbox+10%3A30 | NULL | smsc2email | NULL| NULL| NULL |2 | NULL | NULL | 2 | NULL | 1402968893 | NULL | 31 | http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender | NULL |NULL | NULL | NULL| sqlbox | NULL | NULL | | 51 | DLR | 991212213 | 991212211 | NULL| ACK%2F | 1402716894 | smsc2email | NULL| NULL| NULL |3 | NULL | NULL | NULL | NULL | NULL | NULL |8 | http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender | NULL |NULL | NULL | NULL| sqlbox | NULL | NULL | ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ 2 rows in set (0.00 sec) My updated sqlbox.conf: group = sqlbox id = sqlbox smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 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 host = localhost username = root password = pass database = sms max-connections = 2 My updated kannel.conf: #CORE BEARERBOX group = core admin-port = 13000 smsbox-port = 13001 dlr-storage = mysql admin-password = admin status-password = status box-allow-ip = *.*.*.* box-deny-ip = *.*.*.* log-file
Re: sqlbox and smsbox in parallel
Yes, both would connect to bearerbox on the same port, but since sqlbox has and smsbox-id it would only receive traffic if you put a specific mo-route to it. Regards, Alejandro On Fri, Jun 13, 2014 at 8:21 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Alejandro Is this what you mean? sqlbox --[13001]-- bearerbox --[13001]-- smsbox kannel.conf (to use with bearerbox): group = core smsbox-port = 13001 ... sqlbox.conf: group = sqlbox bearerbox-host = localhost bearerbox-port = 13001 #smsbox-port = 13005 (No smsbox-port since no need to connect to smsbox) smsbox-id = sqlbox (This way all MO will go directly to smsbox) ... smsbox.conf: group = core smsbox-port = 13001 #smsbox-id = sqlbox (No smsbox-id) ... |-| 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 Thu, Jun 12, 2014 at 7:30 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Yes, indeed. For mt, both will be able to send. To avoid sqlbox from receiving mo's, assign it an smsbox-id. If you want to route specific traffic to it you can add an smsbox-route, all the other traffic will go to the smsbox without smsbox-id. Check the user guide for more details. -- Alex Guerrieri On Jun 12, 2014, at 20:24, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Is it possible to have sqlbox and smsbox connected to the same bearerbox at the same time? This is what we need: A) FOR MT I want to handle different services independently through each service. sqlbox -\ bearerbox --- smsc smsbox -/ B) FOR MO: I want to route everything to smsbox my config files: SQLBOX FILE: group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 # smsbox-port = 13005 not configured since I dont want sqlbox to go through it KANNEL CONFIG FILE: group = core admin-port = 13000 smsbox-port = 13001 #wapbox-port = 13002 dlr-storage = mysql group = smsbox bearerbox-host = 127.0.0.1 sendsms-chars = 0123456789 + sendsms-port = 13013 # SEND-SMS USERS group = sendsms-user username = user password = pass name = send_der # SMS SERVICE group = sms-service keyword = default # concatenation = true get-url = http://localhost/sms/geturl.php?t=%tq=%qa=%ainc_smsc=%i max-messages = 0 concatenation = true 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
Re: sqlbox and smsbox in parallel
: data: 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 3a 20 ..Content-Type: 2014-06-13 22:34:54 [20387] [24] DEBUG: data: 74 65 78 74 2f 68 74 6d 6c 0d 0a 0d 0a 4f 4b text/htmlOK 2014-06-13 22:34:54 [20387] [24] DEBUG: Octet string dump ends. 2014-06-13 22:34:54 [20387] [23] DEBUG: send_msg: sending msg to boxc: sqlbox 2014-06-13 22:34:54 [20387] [22] DEBUG: boxc_receiver: got ack 2014-06-13 22:34:54 [20387] [23] DEBUG: boxc_sender: sent message to 127.0.0.1 2014-06-13 22:34:55 [20387] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2014-06-13 22:34:55 [20387] [2] DEBUG: HTTP: Created HTTPClient area 0xa9a00d38. |-| 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 Fri, Jun 13, 2014 at 9:54 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Yes, both would connect to bearerbox on the same port, but since sqlbox has and smsbox-id it would only receive traffic if you put a specific mo-route to it. Regards, Alejandro On Fri, Jun 13, 2014 at 8:21 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Alejandro Is this what you mean? sqlbox --[13001]-- bearerbox --[13001]-- smsbox kannel.conf (to use with bearerbox): group = core smsbox-port = 13001 ... sqlbox.conf: group = sqlbox bearerbox-host = localhost bearerbox-port = 13001 #smsbox-port = 13005 (No smsbox-port since no need to connect to smsbox) smsbox-id = sqlbox (This way all MO will go directly to smsbox) ... smsbox.conf: group = core smsbox-port = 13001 #smsbox-id = sqlbox (No smsbox-id) ... |-| 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 Thu, Jun 12, 2014 at 7:30 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Yes, indeed. For mt, both will be able to send. To avoid sqlbox from receiving mo's, assign it an smsbox-id. If you want to route specific traffic to it you can add an smsbox-route, all the other traffic will go to the smsbox without smsbox-id. Check the user guide for more details. -- Alex Guerrieri On Jun 12, 2014, at 20:24, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Is it possible to have sqlbox and smsbox connected to the same bearerbox at the same time? This is what we need: A) FOR MT I want to handle different services independently through each service. sqlbox -\ bearerbox --- smsc smsbox -/ B) FOR MO: I want to route everything to smsbox my config files: SQLBOX FILE: group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 # smsbox-port = 13005 not configured since I dont want sqlbox to go through it KANNEL CONFIG FILE: group = core admin-port = 13000 smsbox-port = 13001 #wapbox-port = 13002 dlr-storage = mysql group = smsbox bearerbox-host = 127.0.0.1 sendsms-chars = 0123456789 + sendsms-port = 13013 # SEND-SMS USERS group = sendsms-user username = user password = pass name = send_der # SMS SERVICE group = sms-service keyword = default # concatenation = true get-url = http://localhost/sms/geturl.php?t=%tq=%qa=%ainc_smsc=%i max-messages = 0 concatenation = true 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
Re: sqlbox and smsbox in parallel
I mean, the dlr's would be routed to smsbox along with the mo's, and smsbox would be responsible for calling dlr-url as well. On Sat, Jun 14, 2014 at 1:54 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Is there anything on smsbox log? On Fri, Jun 13, 2014 at 11:54 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Alejandro Thanks for your help. It works as you said; each box is working independently; however sqlbox dlrs are not being called. I've tried by adding sqlbox-id in boxc_id field to match sqlbox-id but nothing. If I leave that field blanc, it gets automatically filed with sqlbox_id (sqlbox). What is strange is that sqlbox logs shows nothing on it after a couple of entries at box start. I've posted another question on list. In bearerbox I see the transaction and my http smsc responding correctly to bearerbox but no dlr call. Regards Alvaro This is my insert: INSERT INTO send_sms (momt, sender, receiver, udhdata, msgdata, smsc_id, sms_type, coding, compress, validity, dlr_mask, dlr_url, boxc_id ) VALUES ('MT', '991212213', '991212211', NULL, 'sqlbox 10:30', 'smsc2email', 2, 2, NULL, 4200, 31,' http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender ', 'sqlbox' ) mysql SELECT * FROM sent_sms ; ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ | sql_id | momt | sender| receiver | udhdata | msgdata| time | smsc_id| service | account | id | sms_type | mclass | mwi | coding | compress | validity | deferred | dlr_mask | dlr_url | pid | alt_dcs | rpi | charset | boxc_id | binfo | meta_data | ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ | 50 | MT | 991212213 | 991212211 | NULL| sqlbox+10%3A30 | NULL | smsc2email | NULL| NULL| NULL |2 | NULL | NULL | 2 | NULL | 1402968893 | NULL | 31 | http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender | NULL |NULL | NULL | NULL| sqlbox | NULL | NULL | | 51 | DLR | 991212213 | 991212211 | NULL| ACK%2F | 1402716894 | smsc2email | NULL| NULL| NULL |3 | NULL | NULL | NULL | NULL | NULL | NULL |8 | http://127.0.0.1/sms/dlr.php?type=%dslid=10499166uid=10smsc=smsc2emailsender_id=MiSender | NULL |NULL | NULL | NULL| sqlbox | NULL | NULL | ++--+---+---+-++++-+-+--+--++--++--++--+--+--+--+-+--+-+-+---+---+ 2 rows in set (0.00 sec) My updated sqlbox.conf: group = sqlbox id = sqlbox smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 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 host = localhost username = root password = pass database = sms max-connections = 2 My updated kannel.conf: #CORE BEARERBOX group = core admin-port = 13000 smsbox-port = 13001 dlr-storage = mysql admin-password = admin status-password = status box-allow-ip = *.*.*.* box-deny-ip = *.*.*.* log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/beareraccess.log store-type = spool store-location = /var/log/kannel/spool wdp-interface-name = * sms-incoming-queue-limit = 50 group = smsbox-route smsbox-id = sqlbox smsc-id = sqlbox group = smsbox bearerbox-host = 127.0.0.1 bearerbox-port=13001 sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 http-request-retry = 10 http-queue-delay = 60 Bearerbox log: 2014-06-13 22:34:53 [20387] [22] DEBUG: boxc_receiver: sms received 2014-06-13 22:34:53 [20387] [22] DEBUG: send_msg: sending msg to boxc: sqlbox 2014-06-13 22:34:53 [20387] [25] DEBUG: Queue contains 0 pending requests. 2014-06-13 22:34:53 [20387] [25] DEBUG: Parsing URL ` http://localhost/sms/plugin/gateway/kannel/mail_smsc.php?u=nxtl_usrp=nxtl_passto=991212211from=991212213msg=sqlbox+10%3A30 ': 2014-06-13 22:34:53 [20387
Re: sqlbox and smsbox in parallel
Yes, indeed. For mt, both will be able to send. To avoid sqlbox from receiving mo's, assign it an smsbox-id. If you want to route specific traffic to it you can add an smsbox-route, all the other traffic will go to the smsbox without smsbox-id. Check the user guide for more details. -- Alex Guerrieri On Jun 12, 2014, at 20:24, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi Is it possible to have sqlbox and smsbox connected to the same bearerbox at the same time? This is what we need: A) FOR MT I want to handle different services independently through each service. sqlbox -\ bearerbox --- smsc smsbox -/ B) FOR MO: I want to route everything to smsbox my config files: SQLBOX FILE: group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 # smsbox-port = 13005 not configured since I dont want sqlbox to go through it KANNEL CONFIG FILE: group = core admin-port = 13000 smsbox-port = 13001 #wapbox-port = 13002 dlr-storage = mysql group = smsbox bearerbox-host = 127.0.0.1 sendsms-chars = 0123456789 + sendsms-port = 13013 # SEND-SMS USERS group = sendsms-user username = user password = pass name = send_der # SMS SERVICE group = sms-service keyword = default # concatenation = true get-url = http://localhost/sms/geturl.php?t=%tq=%qa=%ainc_smsc=%i max-messages = 0 concatenation = true 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
Re: Error Running Kannel
I would start by sharing the configuration with the list... you're obviously doing something wrong (e.g. putting a keyword config entry on the [smsc] group). On Fri, May 2, 2014 at 4:26 PM, MOSES KARIUKI kariuk...@gmail.com wrote: Hi All, Below is the error I am getting after running : /usr/local/sbin/bearerbox -v 0 /etc/kannel/kannel.conf 2014-05-02 19:21:14 [8296] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2014-05-02 19:21:14 [8296] [0] ERROR: Group 'smsc' may not contain field 'keyword'. 2014-05-02 19:21:14 [8296] [0] ERROR: Error found on line 63 of file `/etc/kannel/kannel.conf'. 2014-05-02 19:21:14 [8296] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'. 2014-05-02 19:21:14 [8296] [0] PANIC: /usr/local/sbin/bearerbox(gw_panic+0x17b) [0x482d2b] please assist
Re: Error Running Kannel
Hrm, maybe you have a problem with the newlines being garbled? What's on line 63? On Fri, May 2, 2014 at 4:39 PM, MOSES KARIUKI kariuk...@gmail.com wrote: Hi, i have downloaded gateway 1.5.0. After ./configuring, making and make install with binding path, i get the above error. Below is my config. # # Sample configuration file for Kannel bearerbox on Debian. # See the documentation for explanations of fields. # # HTTP administration is disabled by default. Make sure you set the # password if you enable it. group = core admin-port = 13000 admin-password = admin-deny-ip = *.*.*.* admin-allow-ip = #wapbox-port = 13002 smsbox-port = 13001 wdp-interface-name = * log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = #dlr-storage = pgsql #group = wapbox #bearerbox-host = localhost #log-file = /var/log/kannel/wapbox.log group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 smsbox-id = box1 log-file = /var/log/kannel/smsbox.log log-level = 0 group = sendsms-user username = password = dlr-url = http://localhost/kannel/dlr_status.php?id=%pmask=%dmessage_id=%F; group = sms-service keyword = default get-url = http://localhost/kannel/receivesms.php?sender=%ptext=%areceiverph=%Psmscid=%i accept-x-kannel-headers = true concatenation = true catch-all = true #group = wapbox #bearerbox-host = localhost #log-file = /var/log/kannel/wapbox.log group = smsc smsc = smpp smsc-id = host = port = 0 smsc-username = smsc-password = system-type = VMA transceiver-mode = false receive-port = 9000 interface-version = 34 #connect-allow-ip = 127.0.0.1 #msg-id-type = 0x00 group = pgsql-connection id = mydlr host = localhost port = 5432 username = password = database = postgres max-connections = 1 group = dlr-db id = mydlr table = tbl_dlr field-smsc = smsc field-timestamp = _timstamp field-destination = destination field-source = source field-service = _service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id On Fri, May 2, 2014 at 10:30 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: I would start by sharing the configuration with the list... you're obviously doing something wrong (e.g. putting a keyword config entry on the [smsc] group). On Fri, May 2, 2014 at 4:26 PM, MOSES KARIUKI kariuk...@gmail.comwrote: Hi All, Below is the error I am getting after running : /usr/local/sbin/bearerbox -v 0 /etc/kannel/kannel.conf 2014-05-02 19:21:14 [8296] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2014-05-02 19:21:14 [8296] [0] ERROR: Group 'smsc' may not contain field 'keyword'. 2014-05-02 19:21:14 [8296] [0] ERROR: Error found on line 63 of file `/etc/kannel/kannel.conf'. 2014-05-02 19:21:14 [8296] [0] PANIC: Couldn't read configuration from `/etc/kannel/kannel.conf'. 2014-05-02 19:21:14 [8296] [0] PANIC: /usr/local/sbin/bearerbox(gw_panic+0x17b) [0x482d2b] please assist
Re: 2 Questions re Redis/Debian.
I don't think that's accurate, svn is considered stable and recommended over 1.4.3. Can you elaborate on the alleged smsbox memory leak? Can you reproduce it with valgrind? -- Alex Guerrieri On Apr 5, 2014, at 5:22, Hanh Le Bich hanhmi...@gmail.com wrote: Yes, the current revision SVN is not stable enough, especially memory leaking issue of smsbox which have not been solved. It does not happen in ver 1.4.3. Also opensmppbox also has memory issue too. Regards, Hanh. -- Message: 6 Date: Sat, 5 Apr 2014 10:26:55 +1300 From: Mashed Updata mashed.upd...@gmail.com To: users@kannel.org Subject: Re: 2 Questions re Redis/Debian. Message-ID: cakfe-apnd8pupftagt716v-7nnpunf0qcczi8sbsnwifmav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Thanks Milan, me too. I'm not sold on the idea of using SVN for bleeding edge applications unless you are a developer or a truly hard soul. On 5 April 2014 06:10, Milan P. Stanic m...@arvanta.net wrote: On Fri, 2014-04-04 at 17:33, Mashed Updata wrote: 1. What real advantages does Redis offer to a non-commercial user of Kannel? 2. Any idea when the .deb version of Kannel will catch up to the SVN version? I thought about that i.e. to build .debs from SVN. But which revision from SVN is 'good enough' to roll into Debian package? I have a hope that we will see another stable Kannel release soon. -- Kind Re: 2 Questions re Redis/Debian. -- Arvanta,http://www.arvanta.net Please do not send me e-mail containing HTML code or documents in proprietary format (word, excel, pps and so on) -- next part -- An HTML attachment was scrubbed... URL: http://www.kannel.org/pipermail/users/attachments/20140405/13caa3d5/attachment.html -- Subject: Digest Footer ___ users mailing list users@kannel.org http://www.kannel.org/mailman/listinfo/users -- End of users Digest, Vol 92, Issue 7
Re: unsubscribe
Check the welcome email or the Kannel website, it's very simple if you follow the instructions... -- Alejandro Guerrieri On Apr 5, 2014, at 3:32 PM, Napoleon Quashie thecyberpreac...@gmail.com wrote: Please, please, unsubscribe me. I don't want to take any drastic measures, like flagging as spam, plus other things. I have been requesting to be unsubscribe for a couple of weeks now.
Re: DLR Only returns status 8 - Please assist
I don't think you'd get any other dlrs from fake smsc. Status 8 is delivered to smsc, it's as far s you can get there. Try using an smppbox connection (eg against opensmppbox or an smsc simulator). -- Alex Guerrieri On Feb 21, 2014, at 0:39, MOSES KARIUKI kariuk...@gmail.com wrote: Come on guys, this is not the hardest question ever asked. Is it? Somebody please assist me!. Thanks, Moses On Wed, Feb 19, 2014 at 12:10 PM, Murgor Bendon bendonmur...@gmail.com wrote: He is using fakesms, not yet bound to any SMSC provider yet. Best Regards, Bendon Murgor : Systems Engineer/IT Systems Auditor. Phone: Kenya: +254-720529868 Twitter: @bendonmurgor On Wed, Feb 19, 2014 at 12:05 PM, Otandeka Simon Peter sotand...@gmail.com wrote: Consult your SMSC provider. They should sort you out on that. It is not a kannel issue. @sotandeka +256 716 801 124 Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems. Experienced Linux System Administrator and Open Source Developer. On Wed, Feb 19, 2014 at 12:01 PM, MOSES KARIUKI kariuk...@gmail.com wrote: Hi Guys, Any help on this request? Please assist. Moses On Tue, Feb 18, 2014 at 12:11 PM, MOSES KARIUKI kariuk...@gmail.com wrote: Hi All, I have set up Kannel on Ubuntu. I am testing functionality using fakesmsc. Below is the configuration. group = core admin-port = 13000 admin-password = bar admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 #wapbox-port = 13002 smsbox-port = 13001 wdp-interface-name = * log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 #dlr-storage = pgsql group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 smsbox-id = box1 log-file = /var/log/kannel/smsbox.log log-level = 0 group = sendsms-user username = password = dlr-url = http://localhost/kannel/dlr_status.php?d=%pmask=%dmessage_id=%F; group = sms-service keyword = default #get-url = http://localhost/kannel/receivesms.php?sender=%pamp;text=%b; accept-x-kannel-headers = true concatenation = true catch-all = true #group = wapbox #bearerbox-host = localhost #log-file = /var/log/kannel/wapbox.log group = smsc smsc = fake smsc-id = FAKE port = 1 connect-allow-ip = 127.0.0.1 #msg-id-type = 0x00 group = pgsql-connection id = mydlr host = localhost port = 5439 username = kannel_admin password = RFID_dev12?? database = postgres max-connections = 1 group = dlr-db id = mydlr table = tbl_dlr field-smsc = smsc field-timestamp = _timstamp field-destination = destination field-source = source field-service = _service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id This is the url I am calling to test: http://localhost:13013/cgi-bin/sendsms?username=password=to=125345text=testssmsc=FAKEdlr-mask=31 However, in the table for delivery reports, I am only getting dlr report 8. But the message is being sent. it displays 0: Accepted for delivery after I call the above url. What Im I doing wrong? Please assist. Thanks Moses
Re: SMPP proxy for load balancing SMPP traffic
We use an approach like that and works fine. However, queues are local to each box, so if a box goes down queued messages are stuck there until the box gets back up. Queues are also not balanced, so if you have a million messages on one box an zero on the other there's no way to balance that. Regards -- Alex Guerrieri On Jan 23, 2014, at 13:57, Rene Kluwen rene.klu...@chimit.nl wrote: What happens if you configure both Kannel 1 Kannel 2 with the same smsc configurations? From: users [mailto:users-boun...@kannel.org] On Behalf Of Abdul Basit Sent: donderdag 23 januari 2014 19:43 To: users Subject: SMPP proxy for load balancing SMPP traffic Dear all, I am looking for SMPP load balancing solution for MT traffic. Kannel 1 / SMSC == Load Balancer (smpp proxy) == \ Kannel 2 Problem is that my smsc operator cannot load balance SMPP traffic to my 2 kannel gateways. How can i load balance this traffic? Suggestions required. -- regards, abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
Re: Tweaking window size
Search the user guide for max-pending-submits. The default is 10. -- Alex Guerrieri On Nov 29, 2013, at 1:57, ha...@aeon.pk ha...@aeon.pk wrote: Hi, My operator is asking me to adjust the window-size of my client gateway (kannel) because in high traffic conditions, SMSC is giving Message Queue Full error against my ESME, and not delivering incoming traffic to my gateway properly. Can someone please mention how to control the window size parameter? Thanks! Regards, Hamza
Re: kannel service not restart
The dlr table only holds dlrs while in transit, they won't get stored long term. You need to create something using your dlr-url to records that. -- Alex Guerrieri On Sep 20, 2013, at 7:26, alex Preda alexpred...@gmail.com wrote: Hello Kannel Team, Thanks Alejandro and Alvaro for your response. i had configured mysql database and create table with name of dlr, my kannel service works fine and sms are send successfully. but didn't get dlr reports and also access.log didn't generate receive dlr fields. i made some changes in kannel.conf, here is my kannel.conf file,dlr table, and access.log. i'm bit confused with rsms.php. your help appreciated. Kannel.conf #CORE group = core admin-port = 13000 smsbox-port = 13001 admin-password = test log-file = /var/log/kannel/kannel.log log-level = 1 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;x.x.x.x admin-deny-ip = admin-allow-ip = unified-prefix = 00358,0 access-log = /var/log/kannel/access.log dlr-storage = mysql #SMSC group = smsc smsc = smpp smsc-id = sms1 host = x.x.x.x smsc-username = test smsc-password = test port = 1234 system-type = sms #smsbox group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = 0123456789 +- log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # sendsms-user group = sendsms-user username = test password = test user-deny-ip = user-allow-ip = default-sender = update dlr-url = http://174.142.163.63/rsms.php?sender=%p; text=%a #dlr-mask = 31 #smsroute group = smsbox-route smsbox-id = mysmsc smsc-id = sms1 shortcode = ; #sms-service group = sms-service keyword = default get-url = http://x.x.x.x/rsms.php?sender=%p; text=%a accept-x-kannel-headers = true max-messages = 3 concatenation = true catch-all = true # Example MYSQL Connection group = mysql-connection id = mydlr host = localhost username = root password = redhat database = kannel port = 3306 #dlr-db group = dlr-db id = mydlr 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 - DLR Table mysql desc dlr; +-+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-+---+ | smsc| varchar(40) | YES | | NULL| | | ts | varchar(40) | YES | | NULL| | | destination | varchar(40) | YES | | NULL| | | source | varchar(40) | YES | | NULL| | | service | varchar(40) | YES | | NULL| | | url | varchar(255) | YES | | NULL| | | mask| int(10) | YES | | NULL| | | status | int(10) | YES | | NULL| | | boxc| varchar(40) | YES | | NULL| | +-+--+--+-+-+---+ 9 rows in set (0.00 sec) -- Access.log [root@test kannel]# tail -f access.log 2013-09-20 14:48:05 Sent SMS [SMSC:sms1] [SVC:test] [ACT:] [BINF:] [FID:] [META:] [from:update] [to:978221] [flags:-1:0:-1:-1:-1] [msg:2:we] [udh:0:] 2013-09-20 14:50:46 Log ends 2013-09-20 14:50:55 Log begins 2013-09-20 14:51:00 Log begins 2013-09-20 14:51:13 send-SMS request added - sender:test:update 115.248.40.89 target:978221 request: 'we' 2013-09-20 14:51:13 Sent SMS [SMSC:sms1] [SVC:test] [ACT:] [BINF:] [FID:] [META:] [from:update] [to:978221] [flags:-1:0:-1:-1:-1] [msg:2:we] [udh:0:] 2013-09-20 14:51:17 send-SMS request added - sender:test:update 115.248.40.89 target:978221 request: 'we' 2013-09-20 14:51:17 Sent SMS [SMSC:sms1] [SVC:test] [ACT:] [BINF:] [FID:] [META:] [from:update] [to:978221] [flags:-1:0:-1:-1:-1] [msg:2:we] [udh:0:] 2013-09-20 14:53:01 send-SMS request added - sender:test:update 115.248.40.89 target:978221 request: 'we' 2013-09-20 14:53:02 Sent SMS [SMSC:sms1] [SVC:test] [ACT:] [BINF:] [FID:] [META:] [from:update] [to:978221] [flags:-1:0:-1:-1:-1] [msg:2:we] [udh:0:] On Thu, Sep 19, 2013 at 8:20 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: MYSQL: Unknown database 'dlr' Did you create the database? On Thu, Sep 19, 2013 at 10:26 AM, alex Preda alexpred...@gmail.com wrote: Hello Alvaro, Thanks for your reply ! :) As per your instructions i tried to start bearerbox but it is showing some following error. [root@test1 kannel]# !b bearerbox -v 0
Re: kannel service not restart
MYSQL: Unknown database 'dlr' Did you create the database? On Thu, Sep 19, 2013 at 10:26 AM, alex Preda alexpred...@gmail.com wrote: Hello Alvaro, Thanks for your reply ! :) As per your instructions i tried to start bearerbox but it is showing some following error. [root@test1 kannel]# !b bearerbox -v 0 /etc/kannel.conf 2013-09-19 18:05:40 [30340] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2013-09-19 18:05:40 [30340] [0] ERROR: MYSQL: can not connect to database! 2013-09-19 18:05:40 [30340] [0] ERROR: MYSQL: Unknown database 'dlr' 2013-09-19 18:05:40 [30340] [0] PANIC: DLR: MySQL: database pool has no connections! 2013-09-19 18:05:40 [30340] [0] PANIC: bearerbox(gw_panic+0x147) [0x486067] 2013-09-19 18:05:40 [30340] [0] PANIC: bearerbox(dlr_init_mysql+0x48e) [0x41c29e] 2013-09-19 18:05:40 [30340] [0] PANIC: bearerbox(dlr_init+0x7c) [0x41a83c] 2013-09-19 18:05:40 [30340] [0] PANIC: bearerbox(main+0xd9) [0x40e659] 2013-09-19 18:05:40 [30340] [0] PANIC: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7eff9db35cdd] 2013-09-19 18:05:40 [30340] [0] PANIC: bearerbox() [0x40d6a9] Please check my kannel.conf file, if you find any misconfiguration please let me know. #CORE group = core admin-port = 13000 smsbox-port = 13001 admin-password = test log-file = /var/log/kannel/kannel.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;x.x.x.x admin-deny-ip = admin-allow-ip = unified-prefix = 00358,0 access-log = /var/log/kannel/access.log dlr-storage = mysql #SMSC group = smsc smsc = smpp smsc-id = sms1 host = x.x.x.x smsc-username = test smsc-password = test port = 1234 system-type = sms #smsbox group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = 0123456789 +- log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # sendsms-user group = sendsms-user username = test password = test user-deny-ip = user-allow-ip = default-sender = 123456 #smsroute group = smsbox-route smsbox-id = mysmsc smsc-id = sms1 shortcode = ; #sms-service group = sms-service keyword = default accept-x-kannel-headers = true max-messages = 3 concatenation = true catch-all = true # Example MYSQL Connection group = mysql-connection id = mydlr host = localhost username = root password = redhat database = dlr port = 3306 #dlr-db group = dlr-db id = mydlr 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 Thanks On Thu, Sep 19, 2013 at 7:23 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote: Hi You need to first start bearerbox and have it listen on port 13001 as you specified in its config. Regards Alvaro On 9/19/13, alex Preda alexpred...@gmail.com wrote: Hello kannel Team, I have installed gateway 1.5.0(v) with option --with-mysql, and installed kannel rpm kannel-1.4.3, I have been trying to set up *dlr-storage using mysql*. but im getting error in restart kannel. service failed to restart. but its work with dlr-storage = internal. i was check old posts in kannel user directory and find some related issues but still facing error. Thanks here is my log file of smsbox. 2013-09-19 14:50:54 [30003] [0] ERROR: connect failed 2013-09-19 14:50:54 [30003] [0] ERROR: System error 111: Connection refused 2013-09-19 14:50:54 [30003] [0] ERROR: error connecting to server `localhost' at port `13001' 2013-09-19 14:50:54 [30003] [0] PANIC: Couldn't connect to the bearerbox. 2013-09-19 14:50:54 [30003] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x15a) [0x43ddfa] 2013-09-19 14:50:54 [30003] [0] PANIC: /usr/sbin/smsbox(main+0xca0) [0x40e530] 2013-09-19 14:50:54 [30003] [0] PANIC: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f2d47967cdd] 2013-09-19 14:50:54 [30003] [0] PANIC: /usr/sbin/smsbox() [0x40d1b9] 2013-09-19 14:50:58 [30040] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. Regards Alex Preda -- |-| 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
Re: Register Delivery Report Flag
Set dlr-mask and dlr-url. Check the user guide for more details. Regards, Alex On Mon, Sep 16, 2013 at 9:01 AM, Ali Kashif syedalikas...@gmail.com wrote: Dear friends, I am trying to get DLR from one of SMSC and SMSC says Send the Registered delivery report flag as “1” (HIGH) if you need delivery report against each messages. Currently you are not receiving the DLR because you are sending the mentioned byte as “0” (LOW), Can anyone advise me. what should i do. I have read the manual and dlr-mask, i am sending dlr-mask=31 (using plansms) Thanks Ali
Re: Register Delivery Report Flag
Put the logs on debug and see if the smpp psi shows registered delivery as 1, as it should. -- Alejandro Guerrieri On Sep 16, 2013, at 12:46 PM, Ali Kashif syedalikas...@gmail.com wrote: already set. dlr-mask=31 and a valid DLR-URL On Mon, Sep 16, 2013 at 5:08 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Set dlr-mask and dlr-url. Check the user guide for more details. Regards, Alex On Mon, Sep 16, 2013 at 9:01 AM, Ali Kashif syedalikas...@gmail.com wrote: Dear friends, I am trying to get DLR from one of SMSC and SMSC says Send the Registered delivery report flag as “1” (HIGH) if you need delivery report against each messages. Currently you are not receiving the DLR because you are sending the mentioned byte as “0” (LOW), Can anyone advise me. what should i do. I have read the manual and dlr-mask, i am sending dlr-mask=31 (using plansms) Thanks Ali
Re: DLR issue
Also, are you sending to the same phone number? Many carriers have velocity check that would just ignore multiple messages to the same phone number if sent close together. Regards, Alex On Tue, Aug 13, 2013 at 11:18 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Check your sent_sms logs. Do you get DLR rows for each of the sent sms? And smsbox doesn't forward them to your webserver? Or do you _not_ get any dlr entries, not even in sent_sms? == Rene -Original Message- From: users [mailto:users-boun...@kannel.org] On Behalf Of dorin Sent: dinsdag 13 augustus 2013 17:10 To: users@kannel.org Subject: DLR issue Hello! who can help me? I configured: bearerbox-smsbox-sqlbox. That works fine if I send one message via sqlbox. But if I send more messages at once, I receive DLR status only for the last sent message. For example I write into send_sms table one sms - I recieve a good DLR status. If I write into send_sms table 10 sms (10 rows) - I recieve a good DLR only for 10th. Unfortunately my SMSC don't support submit_sm_multi. At the moment I see only one solution: to send next SMS after previous returned DRL, but this is not a deal. I write a lot of posts but I can't get the solution of this problem.
Re: DLR
The smsc must have dlrs enabled on their side as well, contact them and ask if it's enabled. Hope it helps, -- Alex Guerrieri On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote: Hello, please please please help me! I have a problem that I can't solve. I use Bearerbox - SMSbox - SQLBox All works fine except DLR. I can't recieve delivery status. Wen I send an SMS, kannel start php script from dlr-url only one time and return status 8 (smsc submit), after that no more responses. But I expect from him other statuses: error, success. etc. I will be grateful for any help. Next I give some server configguration files and logs: my logs: 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:2518700643] [META:] [from:89021104107] [to:79257405404] [flags:-1:0:-1:-1:31] [msg:15:??$ 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:2518700643] [META:] [from:89021104107] [to:79257405404] [flags:-1:-1:-1:-1:8] [msg:4:ACK/$ 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc: mysqlbox 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc: mysmsbox 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to 127.0.0.1 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load value 0 received 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called Look at my configuration files kannel.conf and sqlbox.conf: #KANNEL CONFIG FILE group = core admin-port = 13000 admin-password = ** smsbox-port = 13001 log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log store-file = /var/log/kannel/store_sms dlr-storage = mysql group = smsc smsc = smpp smsc-id = craftmobile host = 89.249.18.53 port = 27703 smsc-username = ** smsc-password = ** system-type = VMA log-file = /var/log/kannel/smpp-smsc.log log-level = 1 dest-addr-ton = 1 dest-addr-npi = 1 #alt-charset = UCS-2 group = smsbox bearerbox-host = localhost smsbox-id = mysmsbox sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 group = smsbox-route smsbox-id = mysmsbox smsc-id = craftmobile #shortcode = 2288 group = sendsms-user dlr-url = http://134.0.113.138/dlr.php?type=%d; concatenation = true max-messages = 5 username = password = ** default-smsc = SMSC group = dlr-db id = mydlr table = oempro_kannel_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 = mysql-connection id = mydlr host = localhost username = password = ** database = sender max-connections = 1 # -- SQLBOX GROUP -- group = sqlbox id = sqlbox-db smsbox-id = mysqlbox bearerbox-port = 13001 smsbox-port = 13003 smsbox-port-ssl = false sql-log-table = oempro_kannel_sqlbox_sent_sms sql-insert-table = oempro_kannel_sqlbox_send_sms log-file = /var/log/kannel/sqlbox.log log-level = 3 group = mysql-connection id = sqlbox-db host = localhost username = password = ** database = sender max-connections = 1 query that I use for sending an SMS: INSERT INTO oempro_kannel_sqlbox_send_sms ( momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id ) VALUES ( 'MT', '8902110', '7925740', 'Test message', 2, 31, 'http://134.0.113.138/dlr.php?smsc=%ifrom=%Pto=%pdlr-mask=%dsmsID=123456789', 'mysmsbox' ); Thanks! Dorin.
Re: Re: DLR
The first dlr doesn't come from the smsc, Kannel creates that one internally on the submit_sm_resp. As long as you set the dlr-mask to 31 you should receive all dlrs for that message, assuming the carrier has enabled dlrs. If they didn't you'll only receive the one from kannel. On Thu, Aug 8, 2013 at 8:52 AM, dorin dorinafte...@mail.ru wrote: Hello Alejandro! Thank for your reply. dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP? They told me that they use only transceiver mode. If dlrs are disabled on SMSC, I wouldn't receive nothing. And I'm not shure that I recieve first dlr from SMSC. All time when is started dlr-url by kannel, means that SMSC responded? When I saw logs, i paid attention on Sent SMS ...[flags:-1:0:-1:-1:*31*]... Receive DLR ...[flags:-1:-1:-1:-1:*8*]... When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct But receiver have this flag set at 8. In this way we get the status? on second request dlr_mask is set to 8. Maybe this is the problem that I recieve only one time? What do you think guys, the problem is clear and it goes only from SMSC? or maybe problem it's in Kannel? I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load value 0 received) like SMSC returned nothig. Or im wrong? On 08.08.2013 14:58, Alejandro Guerrieri wrote: The smsc must have dlrs enabled on their side as well, contact them and ask if it's enabled. Hope it helps, -- Alex Guerrieri On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote: Hello, please please please help me! I have a problem that I can't solve. I use Bearerbox - SMSbox - SQLBox All works fine except DLR. I can't recieve delivery status. Wen I send an SMS, kannel start php script from dlr-url only one time and return status 8 (smsc submit), after that no more responses. But I expect from him other statuses: error, success. etc. I will be grateful for any help. Next I give some server configguration files and logs: my logs: 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID: 2518700643] [META:] [from:89021104107] [to:79257405404] [flags:-1:0:-1:-1:31] [msg:15:??$ 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:2518700643] [META:] [from:89021104107] [to:79257405404] [flags:-1:-1:-1:-1:8] [msg:4:ACK/$ 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc: mysqlbox 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc: mysmsbox 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to 127.0.0.1 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load value 0 received 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called Look at my configuration files kannel.conf and sqlbox.conf: #KANNEL CONFIG FILE group = core admin-port = 13000 admin-password = ** smsbox-port = 13001 log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log store-file = /var/log/kannel/store_sms dlr-storage = mysql group = smsc smsc = smpp smsc-id = craftmobile host = 89.249.18.53 port = 27703 smsc-username = ** smsc-password = ** system-type = VMA log-file = /var/log/kannel/smpp-smsc.log log-level = 1 dest-addr-ton = 1 dest-addr-npi = 1 #alt-charset = UCS-2 group = smsbox bearerbox-host = localhost smsbox-id = mysmsbox sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 group = smsbox-route smsbox-id = mysmsbox smsc-id = craftmobile #shortcode = 2288 group = sendsms-user dlr-url = http://134.0.113.138/dlr.php?type=%d; concatenation = true max-messages = 5 username = password = ** default-smsc = SMSC group = dlr-db id = mydlr table = oempro_kannel_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 = mysql-connection id = mydlr host = localhost username = password = ** database = sender max-connections = 1 # -- SQLBOX GROUP -- group = sqlbox id = sqlbox-db smsbox-id = mysqlbox bearerbox-port = 13001 smsbox-port = 13003 smsbox-port-ssl = false sql-log-table = oempro_kannel_sqlbox_sent_sms sql-insert-table = oempro_kannel_sqlbox_send_sms log-file = /var/log/kannel/sqlbox.log log-level = 3 group = mysql-connection id = sqlbox-db host = localhost username = password = ** database = sender max-connections = 1 query that I use for sending an SMS: INSERT INTO oempro_kannel_sqlbox_send_sms ( momt, sender, receiver, msgdata, sms_type, dlr_mask
Re: 回覆︰ SMSC returned error code 0x00000058 (Throttling error)
Throttling error means you're sending too fast. Ask your smsc provider what the limit is and set throughput accordingly. They might recommend max pending submits as well, sometimes they call it windowing. Read the manual for further details. Regards, -- Alex Guerrieri On Aug 7, 2013, at 4:37, Qqblog Qqblog qqb...@ymail.com wrote: Is throughput equal to max-pending-submits ? throughput is set under smsc - smpp in conf and the value is provided from smpp host 寄件人︰ spameden spame...@gmail.com 收件人︰ Qqblog Qqblog qqb...@ymail.com 副本(CC)︰ users@kannel.org users@kannel.org 傳送日期︰ 2013年08月7日 (週三) 3:02 PM 主題︰ Re: SMSC returned error code 0x0058 (Throttling error) Hi 2013/8/7 Qqblog Qqblog qqb...@ymail.com SMSC returned error code 0x0058 (Throttling error) Pls advise what parameters can be set to avoid this error. I just set throughput = 3 and no other parameter related to the speed. throughput parameter is what you need. try adjusting max-pending-submits as well.
Re: NoSQL and Kannel
Hey Toby, I just came across this old email regarding Redis. Are you still using it? Any thoughts? I'd love to take a look at the code and play with it a little bit if you don't mind. I've been testing Redis for other purposes and I think it makes a lot of sense to use it for DLR's (and even the message store, with major changes in the way Kannel uses the store itself, but that's another story). If you can send me the patches (or whatever you have available) I'd love to take a look. Thank you in advance, Alejandro On Thu, Mar 24, 2011 at 3:12 PM, Toby Phipps toby.phi...@nexmedia.com.sgwrote: Hi all, ** ** Has anyone put any thought into implementing Kannel DLR storage (and the basics of sqlbox MT injection) in a NoSQL datastore? We are using Redis ( http://redis.io) for other projects and are very happy with it. Its key-based storage/retrieval and strong support for arrays as atomic queues would make it perfect for Kannel, especially given the transient nature of this data and Redis’ memory speed with disk backing. ** ** The main advantages in my mind are that during heavy loads disk access would be minimized, DB polling would disappear (to be replaced with blocking array pops) and the SQL overhead would be removed replaced with set/fetch by keys. ** ** No particular reason this would need to be Redis – memcached, MongoDB, Cassandra etc. would also probably work well assuming they have the array/queue support. ** ** Any thoughts? It wouldn’t be a small project, but basing the code on the existing implementations of SQL DLRs and sqlbox would mean a big jump start… ** ** Toby.
Re: TLV MO metadata null
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
Re: DLR with sqlbox
You need smsbox to do that. You need to use sqlbox between smsbox and bearerbox, sp sqlbox can log the traffic and smsbox hit the drl-url and/or the services. Regards, -- Alex Guerrieri On Jan 2, 2012, at 10:57, Jorge Raimundo jorge.raimu...@multivision.pt wrote: Ok, finally I got it working. There was a smsbox-route section missing. Now I'm routing the incoming messages to the sqlbox and I can see the DLR entries on the database :) My problem now is that the dlr_url is not being called. I could use the solution Carlos suggests (thank you Carlos), and it's still a possibility, but it would be better for me if I could use a url with a script of my own. I'm inserting this on the database: INSERT INTO send_sms( momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url ) VALUES ('MT', 'MV', '+35191**7', 'Hello world', 2, 31, 'http%3A%2F%2Feasymessage.multivision.pt%2Fservices%2Fteste.php%3Ftype%3D%25d%26destination%3D%25d'); I do get the dlr entry on the database, but the url isn't accessed. Any ideas on what's wrong? Best regards, Jorge On Thu, Dec 22, 2011 at 5:01 PM, Carlos Massoglia Lillo carlos.massog...@mindfree.cl wrote: Jorge, If you insert directly into send_sms table, I think you must set an unique id in dlr_url. This because the same info you insert into send_sms is inserted into sent_sms, and to track DLR for messages, yu must compare dlr_url in rows with momt field set to DLR and the dlr_url. By example mysqlselect momt,receiver,dlr_mask,dlr_url from sent_sms where dlr_url='141b2de2'; +--+--+--+--+ | momt | receiver | dlr_mask | dlr_url | +--+--+--+--+ | MT | +569775 | 19 | 141b2de2 | | DLR | +569775 |1 | 141b2de2 | +--+--+--+--+ 2 rows in set (0.00 sec) As you see, setting dlr_url to a unique id for each message I can track the DLR for each one. Best regards, El jue, 22-12-2011 a las 15:20 +, Jorge Raimundo escribió: Hi all! I've installed smsbox and successfully sent an SMS using it, but I'm not being able to receive the DLR info. Right now the SMSC is rejecting my SMSes because I have no credits there and I am using this situation to test the DLR. I should have DLR information on the database that tells me that the SMSC is rejecting my messages. On the database I'm doing this: INSERT INTO send_sms( momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url ) VALUES ( 'MT', 'MV', '+3519**67', 'Hello world', 2, 31, 'http%3A%2F% 2F**%2Fteste.php%3Fdestination%3D7%26type%3D%25d' ) On the smsc log I get the following: [2447] [6] DEBUG: SMPP PDU 0x7dde00 dump: [2447] [6] DEBUG: type_name: submit_sm_resp [2447] [6] DEBUG: command_id: 2147483652 = 0x8004 [2447] [6] DEBUG: command_status: 69 = 0x0045 [2447] [6] DEBUG: sequence_number: 252 = 0x00fc [2447] [6] DEBUG: message_id: NULL [2447] [6] DEBUG: SMPP PDU dump ends. [2447] [6] ERROR: SMPP[ROUTO]: SMSC returned error code 0x0045 (Submit failed) in response to submit_sm. [2447] [6] DEBUG: SMSC[ROUTO]: creating DLR message [2447] [6] DEBUG: SMSC[ROUTO]: DLR = http%3A%2F% 2Feasymessage.multivision.pt%2Fservices%2Fteste.php%3Fdestination%3D7% 26type%3D%25d [2447] [6] WARNING: smsbox_list empty! I'm getting command_status: 69 (SMSC returned error code 0x0045), this is the code used by my SMSC to tell me that the SMS was rejected, so this should translate to a status of 16 on dlr, but nothing was passed to my side. The sent_sms has no dlr data and the link I passed on dlr-url was not called... What's wrong in here? Best regards, Jorge -- Multivision Jorge Raimundo RAN Consultant | jorge.raimu...@multivision.pt . Rua António Albino Machado, Nº33, 2ºB. S. Domingos de Benfica, 1600 - 870 Lisboa Fixed PT: +351 21 155 20 53 | Mobile PT: +351 91 933 13 67 www.multivision.pt -- Carlos Massoglia Lillo Gerencia de Innovación y Desarrollo MindFree Ingeniería Limitada www.mindfree.cl -- Jorge Raimundo RAN Consultant | jorge.raimu...@multivision.pt . Rua António Albino Machado, Nº33, 2ºB. S. Domingos de Benfica, 1600 - 870 Lisboa Fixed PT: +351 21 155 20 53 | Mobile PT: +351 91 933 13 67 www.multivision.pt
Re: DLR with sqlbox
No, afaik messages can only be routed to a single box. Regards, Alex On Mon, Jan 2, 2012 at 11:29 AM, Jorge Raimundo jorge.raimu...@multivision.pt wrote: Thank you Alejandro. Is it possible that both sqlbox and smsbox receive the dlr? Is it possible to route a message to more than one box? Best regards, Jorge On Mon, Jan 2, 2012 at 4:21 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: You need smsbox to do that. You need to use sqlbox between smsbox and bearerbox, sp sqlbox can log the traffic and smsbox hit the drl-url and/or the services. Regards, -- Alex Guerrieri On Jan 2, 2012, at 10:57, Jorge Raimundo jorge.raimu...@multivision.pt wrote: Ok, finally I got it working. There was a smsbox-route section missing. Now I'm routing the incoming messages to the sqlbox and I can see the DLR entries on the database :) My problem now is that the dlr_url is not being called. I could use the solution Carlos suggests (thank you Carlos), and it's still a possibility, but it would be better for me if I could use a url with a script of my own. I'm inserting this on the database: INSERT INTO send_sms( momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url ) VALUES ('MT', 'MV', '+35191**7', 'Hello world', 2, 31, 'http%3A%2F%2Feasymessage.multivision.pt %2Fservices%2Fteste.php%3Ftype%3D%25d%26destination%3D%25d'); I do get the dlr entry on the database, but the url isn't accessed. Any ideas on what's wrong? Best regards, Jorge On Thu, Dec 22, 2011 at 5:01 PM, Carlos Massoglia Lillo carlos.massog...@mindfree.cl wrote: Jorge, If you insert directly into send_sms table, I think you must set an unique id in dlr_url. This because the same info you insert into send_sms is inserted into sent_sms, and to track DLR for messages, yu must compare dlr_url in rows with momt field set to DLR and the dlr_url. By example mysqlselect momt,receiver,dlr_mask,dlr_url from sent_sms where dlr_url='141b2de2'; +--+--+--+--+ | momt | receiver | dlr_mask | dlr_url | +--+--+--+--+ | MT | +569775 | 19 | 141b2de2 | | DLR | +569775 |1 | 141b2de2 | +--+--+--+--+ 2 rows in set (0.00 sec) As you see, setting dlr_url to a unique id for each message I can track the DLR for each one. Best regards, El jue, 22-12-2011 a las 15:20 +, Jorge Raimundo escribió: Hi all! I've installed smsbox and successfully sent an SMS using it, but I'm not being able to receive the DLR info. Right now the SMSC is rejecting my SMSes because I have no credits there and I am using this situation to test the DLR. I should have DLR information on the database that tells me that the SMSC is rejecting my messages. On the database I'm doing this: INSERT INTO send_sms( momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url ) VALUES ( 'MT', 'MV', '+3519**67', 'Hello world', 2, 31, 'http%3A%2F% 2F**%2Fteste.php%3Fdestination%3D7%26type%3D%25d' ) On the smsc log I get the following: [2447] [6] DEBUG: SMPP PDU 0x7dde00 dump: [2447] [6] DEBUG: type_name: submit_sm_resp [2447] [6] DEBUG: command_id: 2147483652 = 0x8004 [2447] [6] DEBUG: command_status: 69 = 0x0045 [2447] [6] DEBUG: sequence_number: 252 = 0x00fc [2447] [6] DEBUG: message_id: NULL [2447] [6] DEBUG: SMPP PDU dump ends. [2447] [6] ERROR: SMPP[ROUTO]: SMSC returned error code 0x0045 (Submit failed) in response to submit_sm. [2447] [6] DEBUG: SMSC[ROUTO]: creating DLR message [2447] [6] DEBUG: SMSC[ROUTO]: DLR = http%3A%2F% 2Feasymessage.multivision.pt%2Fservices%2Fteste.php%3Fdestination%3D7% 26type%3D%25d [2447] [6] WARNING: smsbox_list empty! I'm getting command_status: 69 (SMSC returned error code 0x0045), this is the code used by my SMSC to tell me that the SMS was rejected, so this should translate to a status of 16 on dlr, but nothing was passed to my side. The sent_sms has no dlr data and the link I passed on dlr-url was not called... What's wrong in here? Best regards, Jorge -- Multivision Jorge Raimundo RAN Consultant | jorge.raimu...@multivision.pt . Rua António Albino Machado, Nº33, 2ºB. S. Domingos de Benfica, 1600 - 870 Lisboa Fixed PT: +351 21 155 20 53 | Mobile PT: +351 91 933 13 67 www.multivision.pt -- Carlos Massoglia Lillo Gerencia de Innovación y Desarrollo MindFree Ingeniería Limitada www.mindfree.cl -- [image: Multivision] *Jorge Raimundo * RAN Consultant | jorge.raimu...@multivision.pt . Rua António Albino Machado, Nº33, 2ºB. S. Domingos de Benfica, 1600 - 870 Lisboa Fixed PT: +351 21 155 20 53 | Mobile PT: +351 91 933 13 67 www.multivision.pt -- [image: Multivision] *Jorge Raimundo * RAN Consultant | jorge.raimu...@multivision.pt . Rua António Albino Machado, Nº33
Re: Problems with Sending / Cannot empty Queue.
You're not specifying the store location, I'd start by checking the user guide about how to set the store location (the spool is the preferred mechanism). Once you have that in place, emptying the store is a matter of stopping kannel and removing the files inside your spool folder. Regards, Alex On Sat, Dec 17, 2011 at 10:58 AM, Jorge Asch ja...@conexion.cr wrote: I've been using Kannel for years with my WaveCom Fastrack Supreme 20 without any problems. Used mainly for personal proyects, etc, load was very low (a couple of messages a day), and it worked great. Two days ago I decided to send some messages for a customer (9,000+), and everything broke. The device was able to send a couple of messages, and then started choking with entries in the log like: 2011-12-14 09:52:21 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CMGS=145^M 2011-12-14 09:52:21 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- 2011-12-14 09:52:21 [2616] [6] DEBUG: AT2[/dev/ttyS0]: send command status: 1 2011-12-14 09:52:21 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- 003100088198024397A797C377BB2C1FA7C36C10B90C9A96CF75F97B0E9A97417479D83D37BFE5ED30885C06D5DD6150F05C768FD361D0F0DD2ECBC7E9303BAD0F93DFF230280CAABBC3A0E15B2E2F93DFF230885C064DCBE7BAFC3D77819AE13928ED36BFE5EDF038FD7683CA6ED0FD7E778DDFEDB27C5E3ED7E5EFB96BFC6EBFC6EF76DD9D1E87C9EFB92B3C87E301 2011-12-14 09:52:21 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- ^Z 2011-12-14 09:52:24 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- 2011-12-14 09:52:24 [2616] [6] DEBUG: AT2[/dev/ttyS0]: -- ERROR 2011-12-14 09:52:24 [2616] [6] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR I've been reading for the last couple of days, about having to force INIT strings, or keep-alive strings, etc. But I've been unsucessful with any attempts I've made. Right now, I am unable to use the system, because I have several thousand messages in my queue. I tried restarting the services, even the server a couple of times. The messages are still stored somewhere, and I am unable to delete the queue. So I need help from you guys. Inmediately I would need like for a way to empty queue. And if possible, fix the problem, so I can send all the messages without my device choking. If not I am happy looking for another alternative for my customer. This is my configuration: (running on Ubuntu) group = core admin-port = 13000 # the port number to access kannel’s admin web view admin-password = bar smsbox-port = 13001 #the port number used by the smsbox to connect to the bearerbox log-file = /var/log/kannel/kannel.log # the bearerbox log file log-level = 0 access-log = /var/log/kannel/kannel.access box-deny-ip = *.*.*.* box-allow-ip = 192.168.0.* group = smsc smsc = at modemtype = wavecom device = /dev/ttyS0 keepalive = 10 speed = 115200 sms-center = 70108621 my-number = 70108621 connect-allow-ip = 127.0.0.1 log-file = /var/log/kannel/smsc.log log-level = 0 group = modems id = wavecom name = wavecom detect-string = WAVECOM group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 85282077 log-level = 0 group = sendsms-user username=foo password=bar concatenation = true max-messages = 10 group = sms-service keyword-regex = .* catch-all = yes max-messages = 0 get-url = http://192.168.0.12:8500/sms.cfm?phone=%ptext=%a; I am grateful for any help I can get.
Re: Plz help regarding. SMSC rejected login to transmit, code 0x0000000d (Bind Failed).
You need to speak with the carrier, they're returning that error, so you can rule out connectivity at least. Regards, Alex On Fri, Dec 9, 2011 at 10:13 AM, Anshu Sah sah.an...@ymail.com wrote: Hi, I am getting very strange error. SMSC rejected login to transmit, code 0x000d (Bind Failed). I got your reference from http://www.kannel.org/pipermail/devel/2008-May/001709.html Please find the logs below. 2011-12-09 20:36:31 [16601] [46] WARNING: SMPP: Unknown TLV(0x0006,0x0001,03) for PDU type (deliver_sm) received! 2011-12-09 20:36:41 [16601] [45] WARNING: SMPP: PDU NULL terminated string (system_id) has no NULL. 2011-12-09 20:36:41 [16601] [45] ERROR: SMPP[x]: SMSC rejected login to transmit, code 0x000d (Bind Failed). 2011-12-09 20:36:41 [16601] [45] ERROR: SMPP[x]: Couldn't connect to SMS center (retrying in 60 seconds). 2011-12-09 20:37:19 [16601] [46] WARNING: SMPP: Unknown TLV(0x000e,0x0001,01) for PDU type (deliver_sm) received! 2011-12-09 20:37:19 [16601] [46] WARNING: SMPP: Unknown TLV(0x0006,0x0001,03) for PDU type (deliver_sm) received! 2011-12-09 20:37:41 [16601] [45] WARNING: SMPP: PDU NULL terminated string (system_id) has no NULL. 2011-12-09 20:37:41 [16601] [45] ERROR: SMPP[x]: SMSC rejected login to transmit, code 0x000d (Bind Failed). 2011-12-09 20:37:41 [16601] [45] ERROR: SMPP[x]: Couldn't connect to SMS center (retrying in 60 seconds). Please guide me regarding this. Regards Anshu Sah
Re: set registered_delivery to 5
SMPP's registered_delivery and the dlr-mask parameters are not correlated at all. Setting 5 in dlr-mask won't send a 5 to the carrier, but a 1. Keep in mind that Kannel's parameters are usually an abstraction on top of many different protocols and not just an SMPP gateway alone. Also, dlr-mask handles different scenarios that are not directly related to getting a deliver_sm DLR message (for example, a submit_sm_resp would trigger a DLR on Kannel side). Right now, Kannel only supports value 1/2 (for final success and failure respectively) and 17/18 (for intermediate dlr's support, it'd add 16 to the parameter). There's no way to send a 5 without patching the code. If you want to do it, you should start looking at gw/smsc/smsc_smpp.c around this lines: /* ask for the delivery reports if needed */ if (DLR_IS_SUCCESS_OR_FAIL(msg-sms.dlr_mask)) pdu-u.submit_sm.registered_delivery = 1; else if (DLR_IS_FAIL(msg-sms.dlr_mask) !DLR_IS_SUCCESS(msg-sms.dlr_mask)) pdu-u.submit_sm.registered_delivery = 2; if (DLR_IS_INTERMEDIATE(msg-sms.dlr_mask)) pdu-u.submit_sm.registered_delivery += 16; Hope it helps, Alex On Tuesday, September 13, 2011, Nikos Balkanas wrote: I don't think so. Either dlr-mask doesn't correspond to bits set directly, or bits requested are contradicting text description. For example dlr-mask = 5 reports delivery success and smsc buffered, but no delivery failure, which is requested. One could argue if SMSc buffered is asked or rather SMSc ACK (and I assume NACK). Obviously the latter. In either case, Mario can always try both values, and see what works. BR, Nikos On Tue, Sep 13, 2011 at 9:08 PM, Milan P. Stanic m...@arvanta.netjavascript:_e({}, 'cvml', 'm...@arvanta.net'); wrote: On Tue, 2011-09-13 at 20:45, Nikos Balkanas wrote: Sorry, for that dlr-mask should be 27... If the OP must set dlr-mask to binary 00101 that is 5 in decimal. So your previous post was correct. On Tue, Sep 13, 2011 at 8:41 PM, Nikos Balkanas nbalka...@gmail.comjavascript:_e({}, 'cvml', 'nbalka...@gmail.com'); wrote: Hi, Have you tried setting dlr-mask to 5? BR, Nikos On Tue, Sep 13, 2011 at 7:32 PM, Mario Noboa mnobo...@gmail.comjavascript:_e({}, 'cvml', 'mnobo...@gmail.com'); wrote: hi list, I glad to write you. The operator ask me send the submit_sm with register_deliver parameter in this way: ..01 = Delivery receipt : Delivery receipt requested (for success or failure) (0x01) 01.. = Message type : SME delivery acknowledgement requested (0x01) ...0 = Intermediate notif: No intermediate notification requested (0x00) Thats mean to this parameter must be 5 (hexa) equivalent 0101. In my logs always register_deliver is in 1 (sendsms with dlr-mask and dlr-url of course) there are any way to do it without modify the code? Thanks for your help! Mario -- Kind regards, Milan -- Arvanta, IT Securityhttp://www.arvanta.net Please do not send me e-mail containing HTML code.
Re: NAT --IPSEC VPN -- smsc
IPSec won't let any traffic outside the encryption domain to go inside the tunnel. You'd need to ask the carrier to add your new IP to the encryption domain on his side, and do the same on yours. Alternatively, you could use stunnel or the tricks you mentioned to fake the traffic to appear as coming from the server you have on the encryption domain. Hope it helps, Alex On Friday, September 9, 2011, Nicolas de Bari Embriz Garcia Rojas wrote: Hi guys, first at all, sorry if this is kind 'of-topic' but I thing that maybe some of you have already passed the following situation, and would like to know your feedback. I made a connection to a SMSC center of an operator for that require a VPN IPSEC. the flow is something like this: 172.16.16.1 -- 174.126.103.210 -- INTERNET --- 200.46.161.143 --- 10.1.24.4 my side is 172.16.16.1, the operator SMSC 10.1.24.4 the IP's where assigned by them and the tunnel end points have mask 32 so I can not extend it to something like 172.16.16.0/24. Anyway I successfully configured the VPN, from my side a poor man's FreeBSD/racoon server versus a huge CISCO PIX appliance, so far, so good. VPN up and running and I can telnet 10.1.24.4 etc. Now, on the the same server I have an subnet with the range of 192.168.3.0/24 , and on a jail 'kind of VPS within FreeBSD' I have an instance of kannel, but the routing/NAT issue is driving me crazy, I can found a way to route traffic from 192.168.3.0/24 so it can reach 10.1.24.4 (the smsc center) using NAT: I posted here more detailed information: http://forums.freebsd.org/showthread.php?t=26245 One way I have found to solve this, is to use software like 'jumpgate' or 'balance' that act like a TCP proxy, but I would like to know if this this can really work with NAT. Sorry again if this is of-topic, any ideas/comments/tips would be appreciated, blames /dev/null regards.
Re: Strange character appear in access.log
Looks like Unicode... Regards, Alex On Friday, September 9, 2011, ha nguyen viet wrote: I am sorry, the content mo is TC 377346, the %00 character appeared after any character of mo. -- Forwarded message -- From: ha nguyen viet habeot...@gmail.com javascript:_e({}, 'cvml', 'habeot...@gmail.com'); Date: 2011/9/9 Subject: Strange character appear in access.log To: users@kannel.org javascript:_e({}, 'cvml', 'users@kannel.org'); Dear all, I am using kannel as a sms gateway. In my access.log kannel, i found strange characters appear, hear it is: *2011-09-06 18:19:37 SMS HTTP-request sender:+84988563636 request: '' url: ' http://x.x.x.x:6863/newsms?send=%2B84988563636type=%2B6763smscid=VTELtime=1315307977content=% 00T%00C%00+%003%007%007%003%004%006'' *reply: 200 ' successful ' I make sure the content mo of customer is TC 3377346 but i do not know why my mo sms come to this. May be customer's telephone use unicode character to send mo and my system can not realize it Can any one suggests me some ideas. Hope to hearing from you. Thanks
Re: Question
Yes, it's possible of course. You'll need to play with accepted/denied-smsc and allowed/denied-receiver-prefix to route the MO to the proper service. For MT, you'll need to specify the destination smsc to use the proper bind. Check the user guide for the finer details, and please use the mailing list for this type of questions. Regards, Alex On Wed, Jul 6, 2011 at 12:59 PM, Karan Zaveri karanzav...@gmail.com wrote: Hello Alex, Hope you are doing well. I have a quick question for you. Is it possible for us to setup multiple short codes form different aggregators in the same Kannel instance? I read it somewhere that it is possible, do you have a sample config file that does that? Karan
Re: Installing Kannel with mssql support
Richard: checking whether to compile with FreeTDS Ct-Lib support... disabled Configure is not detecting FreeTDS and there's no -lct on the make lines. Somehow the system is fooled and it's not really finding the library and/or the headers to link against it. Regards, Alex 2011/6/2 Richard Crawshaw richard.craws...@the-contactgroup.com Alex Thanks for the suggestion. ldd /usr/local/sbin/bearerbox gives the following: linux-gate.so.1 = (0x007a2000) librt.so.1 = /lib/tls/i686/cmov/librt.so.1 (0x00d47000) libresolv.so.2 = /lib/tls/i686/cmov/libresolv.so.2 (0x00cea000) libnsl.so.1 = /lib/tls/i686/cmov/libnsl.so.1 (0x0074e000) libm.so.6 = /lib/tls/i686/cmov/libm.so.6 (0x00dda000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0x005ba000) libxml2.so.2 = /usr/lib/libxml2.so.2 (0x00916000) libct.so.4 = not found libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0x0011) /lib/ld-linux.so.2 (0x002c8000) libdl.so.2 = /lib/tls/i686/cmov/libdl.so.2 (0x0068a000) libz.so.1 = /lib/libz.so.1 (0x00578000) It confirms that libct.so.4 can’t be found, but I can’t work out why. Is $PATH involved? I’m attaching the output of running ./configure and make, just in case they give a clue. Regards Richard *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* 01 June 2011 22:11 *To:* Richard Crawshaw *Cc:* users@kannel.org *Subject:* Re: Installing Kannel with mssql support Maybe an issue with running different architecture's (32/64 bit) versions? Or maybe the system can find the lib at compile time but not at run time. What's the output of ldd /usr/local/sbin/bearerbox ? Kind regards, *Richard Crawshaw* Software Developer [image: www.contactgroup.com] http://www.contactgroup.com *Contact Group* Telephone (UK): 0844 448 442 Telephone (ROI): 0818 286 795 Mobile : 0786 625 9418 Direct Facsimile: 0844 448 9090 Email: richard.craws...@the-contactgroup.com Web Site: www.the-contactgroup.com Twitter: #contactgroup http://twitter.com/#!/contactgroup This e-mail is intended for the above named only. It may contain private and confidential information or material that is privileged. If it has come to you in error you must take no action based upon it, nor must you copy or show it to anyone. Please return the message immediately to postmas...@the-contactgroup.com The Validity of any pricing information contained herein is 30 days unless otherwise stated. E OE. Standard terms and conditions apply. Service by Truancy Call Ltd. Registered in England No. 4125665. Registered office: Lonsdale House, 52 Blucher Street, Birmingham, B1 1QU. Data Protection No. Z7911829 Data Protection No. Z7911829 111060209321905101.gif
Re: Installing Kannel with mssql support
OK, that's better :) Have you configured the connection and field values properly? What about freetds.conf? Try connecting with tsql and make sure that you can connect properly from that box using the parameters you configured on Kannel. You should be able to use the DB you configured and run the create scripts manually from tsql. You could also try raising freetds' log level and see if you get anything relevant there. Regards, Alex On Thu, Jun 2, 2011 at 2:31 PM, Richard Crawshaw richard.craws...@the-contactgroup.com wrote: Alex I’ve redone the configure and make; FreeTDS has been detected and the make lines now have -lct on them. I’m guessing that I failed to add the --with-mssql switch on configure when I re-did it to capture the output; at least that’s the most likely explanation, though I don’t know for certain. However, the problem remains; though I have managed to patch the executables with patchelf. http://nixos.org/patchelf.html Running ldd on bearerbox now gives the following: linux-gate.so.1 = (0x00661000) librt.so.1 = /lib/tls/i686/cmov/librt.so.1 (0x003a5000) libresolv.so.2 = /lib/tls/i686/cmov/libresolv.so.2 (0x007b8000) libnsl.so.1 = /lib/tls/i686/cmov/libnsl.so.1 (0x009d3000) libm.so.6 = /lib/tls/i686/cmov/libm.so.6 (0x006ee000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0x00374000) libxml2.so.2 = /usr/lib/libxml2.so.2 (0x00e8e000) * libct.so.4 = /usr/local/lib/libct.so.4 (0x00d56000)* libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0x0042b000) /lib/ld-linux.so.2 (0x00a94000) libdl.so.2 = /lib/tls/i686/cmov/libdl.so.2 (0x0089e000) libz.so.1 = /lib/libz.so.1 (0x00dab000) Everything now runs but the Bearerbox gives the following in the log file: 2011-06-02 12:16:01 [1383] [0] INFO: Kannel bearerbox II version 1.5.0 starting 2011-06-02 12:16:01 [1383] [0] INFO: MAIN: Start-up done, entering mainloop 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed 2011-06-02 12:16:24 [1383] [3] ERROR: MSSQL: DB selection failed! 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed 2011-06-02 12:16:24 [1383] [3] ERROR: MSSQL: DB selection failed! 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed Those last two lines are repeated continually. I’m not able to get a response on the status web-page and have to stop kannel by killing the terminal window that it’s running in. Commenting out the external dlr settings allows everything to run normally; re-instate them and it reverts to not working. I’ve attached the dlr conf file. The core conf is below: # BEARERBOX SETUP group = core admin-port = 4001 smsbox-port = 4002 admin-password = *** box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;10.1.2.* log-file = bearerbox.log log-level = 1 dlr-storage = mssql access-log = access.log Also attached is my connection through from the Kannel Ubuntu machine to our MS SQL Server, using the FreeTDS tsql tool. Any pointers as to what the solution to this is would be gratefully received. Once again, many thanks. Richard *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* 02 June 2011 11:06 *To:* Richard Crawshaw *Cc:* users@kannel.org *Subject:* Re: Installing Kannel with mssql support Richard: checking whether to compile with FreeTDS Ct-Lib support... disabled Configure is not detecting FreeTDS and there's no -lct on the make lines. Somehow the system is fooled and it's not really finding the library and/or the headers to link against it. Kind regards, *Richard Crawshaw* Software Developer [image: www.contactgroup.com] http://www.contactgroup.com *Contact Group* Telephone (UK): 0844 448 442 Telephone (ROI): 0818 286 795 Mobile : 0786 625 9418 Direct Facsimile: 0844 448 9090 Email: richard.craws...@the-contactgroup.com Web Site: www.the-contactgroup.com Twitter: #contactgroup http://twitter.com/#!/contactgroup This e-mail is intended for the above named only. It may contain private and confidential information or material that is privileged. If it has come to you in error you must take no action based upon it, nor must you copy or show it to anyone. Please return the message immediately to postmas...@the-contactgroup.com The Validity of any pricing information contained herein is 30 days unless otherwise stated. E OE. Standard terms and conditions apply. Service by Truancy Call Ltd. Registered in England No. 4125665. Registered office: Lonsdale House, 52 Blucher Street, Birmingham, B1 1QU. Data Protection No. Z7911829 Data Protection No. Z7911829 111060213310603801.gif
Re: Installing Kannel with mssql support
Ops, missed the attachment, you already checked that :P Ok, try raising the log level then. Regards, Alex On Thu, Jun 2, 2011 at 3:06 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: OK, that's better :) Have you configured the connection and field values properly? What about freetds.conf? Try connecting with tsql and make sure that you can connect properly from that box using the parameters you configured on Kannel. You should be able to use the DB you configured and run the create scripts manually from tsql. You could also try raising freetds' log level and see if you get anything relevant there. Regards, Alex On Thu, Jun 2, 2011 at 2:31 PM, Richard Crawshaw richard.craws...@the-contactgroup.com wrote: Alex I’ve redone the configure and make; FreeTDS has been detected and the make lines now have -lct on them. I’m guessing that I failed to add the --with-mssql switch on configure when I re-did it to capture the output; at least that’s the most likely explanation, though I don’t know for certain. However, the problem remains; though I have managed to patch the executables with patchelf. http://nixos.org/patchelf.html Running ldd on bearerbox now gives the following: linux-gate.so.1 = (0x00661000) librt.so.1 = /lib/tls/i686/cmov/librt.so.1 (0x003a5000) libresolv.so.2 = /lib/tls/i686/cmov/libresolv.so.2 (0x007b8000) libnsl.so.1 = /lib/tls/i686/cmov/libnsl.so.1 (0x009d3000) libm.so.6 = /lib/tls/i686/cmov/libm.so.6 (0x006ee000) libpthread.so.0 = /lib/tls/i686/cmov/libpthread.so.0 (0x00374000) libxml2.so.2 = /usr/lib/libxml2.so.2 (0x00e8e000) * libct.so.4 = /usr/local/lib/libct.so.4 (0x00d56000)* libc.so.6 = /lib/tls/i686/cmov/libc.so.6 (0x0042b000) /lib/ld-linux.so.2 (0x00a94000) libdl.so.2 = /lib/tls/i686/cmov/libdl.so.2 (0x0089e000) libz.so.1 = /lib/libz.so.1 (0x00dab000) Everything now runs but the Bearerbox gives the following in the log file: 2011-06-02 12:16:01 [1383] [0] INFO: Kannel bearerbox II version 1.5.0 starting 2011-06-02 12:16:01 [1383] [0] INFO: MAIN: Start-up done, entering mainloop 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed 2011-06-02 12:16:24 [1383] [3] ERROR: MSSQL: DB selection failed! 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed 2011-06-02 12:16:24 [1383] [3] ERROR: MSSQL: DB selection failed! 2011-06-02 12:16:24 [1383] [3] ERROR: ct_send() failed Those last two lines are repeated continually. I’m not able to get a response on the status web-page and have to stop kannel by killing the terminal window that it’s running in. Commenting out the external dlr settings allows everything to run normally; re-instate them and it reverts to not working. I’ve attached the dlr conf file. The core conf is below: # BEARERBOX SETUP group = core admin-port = 4001 smsbox-port = 4002 admin-password = *** box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;10.1.2.* log-file = bearerbox.log log-level = 1 dlr-storage = mssql access-log = access.log Also attached is my connection through from the Kannel Ubuntu machine to our MS SQL Server, using the FreeTDS tsql tool. Any pointers as to what the solution to this is would be gratefully received. Once again, many thanks. Richard *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* 02 June 2011 11:06 *To:* Richard Crawshaw *Cc:* users@kannel.org *Subject:* Re: Installing Kannel with mssql support Richard: checking whether to compile with FreeTDS Ct-Lib support... disabled Configure is not detecting FreeTDS and there's no -lct on the make lines. Somehow the system is fooled and it's not really finding the library and/or the headers to link against it. Kind regards, *Richard Crawshaw* Software Developer [image: www.contactgroup.com] http://www.contactgroup.com *Contact Group* Telephone (UK): 0844 448 442 Telephone (ROI): 0818 286 795 Mobile : 0786 625 9418 Direct Facsimile: 0844 448 9090 Email: richard.craws...@the-contactgroup.com Web Site: www.the-contactgroup.com Twitter: #contactgroup http://twitter.com/#!/contactgroup This e-mail is intended for the above named only. It may contain private and confidential information or material that is privileged. If it has come to you in error you must take no action based upon it, nor must you copy or show it to anyone. Please return the message immediately to postmas...@the-contactgroup.com The Validity of any pricing information contained herein is 30 days unless otherwise stated. E OE. Standard terms and conditions apply. Service by Truancy Call Ltd. Registered in England No. 4125665. Registered office: Lonsdale House, 52 Blucher Street, Birmingham, B1 1QU. Data Protection No. Z7911829 Data Protection No. Z7911829 111060213310603801.gif
Re: Installing Kannel with mssql support
Maybe an issue with running different architecture's (32/64 bit) versions? Or maybe the system can find the lib at compile time but not at run time. What's the output of ldd /usr/local/sbin/bearerbox ? Regards, Alex On Wed, Jun 1, 2011 at 5:23 PM, Richard Crawshaw richard.craws...@the-contactgroup.com wrote: Hi Following on from my previous enquiry about DLRs I’m attempting to compile install Kannel with mssql support. I have successfully installed configured the latest version of FreeTDS. I can connect to my Microsoft SQL Server database using FreeTDS’s tsql utility. I have run ./configure against Kannel with the --with-mssql=[dir] switch and successfully run make and make install. Kannel’s executables are in /usr/local/sbin, and have the creation dates I expect. However, when I come to run up the bearerbox I get the following error: Bearerbox: error while loading shared libraries: libct.so.4: cannot open shared object file: No such file or directory If I try to run up the smsbox I get the same error, rather than one indicating that the bearerbox isn’t running. The libct.so.4 file is present in /usr/local/lib; it is a shortcut that points to libct.so.4.0.0 (in the same directory). It makes no difference to the previous error if that directory is in the path or not. If I try to run libct.so.4 (or libct.so.4.0.0) I get a message that says Segmentation fault. I’m obviously doing something wrong, but I have no idea what. Can anyone identify what is wrong? Many thanks. Richard Kind regards, *Richard Crawshaw* Software Developer [image: www.contactgroup.com] http://www.contactgroup.com *Contact Group* Telephone (UK): 0844 448 442 Telephone (ROI): 0818 286 795 Mobile : 0786 625 9418 Direct Facsimile: 0844 448 9090 Email: richard.craws...@the-contactgroup.com Web Site: www.the-contactgroup.com Twitter: #contactgroup http://twitter.com/#!/contactgroup This e-mail is intended for the above named only. It may contain private and confidential information or material that is privileged. If it has come to you in error you must take no action based upon it, nor must you copy or show it to anyone. Please return the message immediately to postmas...@the-contactgroup.com The Validity of any pricing information contained herein is 30 days unless otherwise stated. E OE. Standard terms and conditions apply. Service by Truancy Call Ltd. Registered in England No. 4125665. Registered office: Lonsdale House, 52 Blucher Street, Birmingham, B1 1QU. Data Protection No. Z7911829 Data Protection No. Z7911829 111060116235107401.gif
Re: Delay return of deliver_sm_resp
Throughput won't cut it, it won't prevent the _sm_resp PDU response from going out. If this is only for testing and you're not concerned about performance, you could make the thread sleep right before sending the _sm_resp. Regards, Alex On Mon, May 23, 2011 at 6:11 PM, Kent Walker kent.wal...@jasperwireless.com wrote: Hello, I am attempting to set-up kannel to mimic a customer who is geographically located across the country from the SMSC. What I would like bearerbox to do is to wait a configurable amount of time (for example, 100ms) before sending back the deliver_sm_resp. This would mimic the delay. I have read that there is a throughput command, but I believe this only throttles the outbound submit_sm messages as a way to not flood the SMSC. My testing confirmed this. I am actually attempting to flood the SMSC by decreasing the number of messages kannel takes out of the message queue. Is there any configuration parameter that will allow me to do this? Thanks, Kent
Re: SMS from sqlbox - Problem when sending more that 160 char with greek letters
The standard communication between boxes for kannel is UTF-8 (for non-unicode charsets). If sqlbox doesn't do it, it is in violation and sqlbox should be patched. I was clarifying that sentence. There's no need to patch sqlbox. 2011/5/5 Nikos Balkanas nbalka...@gmail.com We are talking about charset encoding (ie Greek), not url-encoding. BR, Nikos 2011/5/5 Alejandro Guerrieri alejandro.guerri...@gmail.com Sqlbox url-encodes the content, and url-decodes when reading, so you shouldn't have any encoding issues with it. Regards, Alex On Thu, May 5, 2011 at 7:41 PM, Mike Nakos mike.na...@gmail.com wrote: Hi Niko, I surely agree with you and that's the last I wanted to do. It is not my style to make branches on the trunk. But I had no time to spend to investigate what's bothering sqlbox and doesn't give bb utf-8 data to handle. I want to check it on the future, but now I can't. My only need is to insert sms on DB, transmit them with bb and get any dlr back to DB. Sincerely yours Mike Nakos On 05/05/11 20:28, Nikos Balkanas wrote: Hi Mike, I believe i first alerted you to the fact that it is an encoding problem. But from what you describe, you are doing the wrong thing. It is not a bb issue, and changing it could create problems with smsbox and kannel spec. The standard communication between boxes for kannel is UTF-8 (for non-unicode charsets). If sqlbox doesn't do it, it is in violation and sqlbox should be patched. BR, Nikos On Thu, May 5, 2011 at 8:13 PM, Mike Nakos mike.na...@gmail.com wrote: Sorry for the mess on mailing list, but the previous mail (mail with the attachment) was referring the 1st email I sent on Apr 30 2011. On 05/05/11 20:07, Mike Nakos wrote: Well, after many hours of digging, I found that sms is transmitted perfectly if it has length up to 160 characters. Note that, in kannel.conf on group = smsc section I use alt-charset = UTF-8 and on db INSERT also (charset field). But, as I figured out (smsccon.c - int smscconn_send(SMSCConn *conn, Msg *msg)), when SMS has more than 160 characters then it changes path and is transmitted data that comes from the below code: parts = sms_split(msg, NULL, NULL, NULL, NULL, 1, counter_increase(split_msg_counter) 0xff, 0xff, conn-max_sms_octets); which loses data with greek characters. That's because the data that comes from sqlbox (for example for greek letter DELTA [Δ]) isn't utf-8 (which means U+0394 - ce 94) but ASCII value 0x10. I won't examine why is this comes this way, but to I patched it for myself (sms.c) so I have a workaround for it. In a few words, when program flow comes into extract_msgdata_part_by_coding() function and sms_msgdata_len() function, thinks data is utf-8 but it is GSM encoded (Note that, all characters that I insert INTO send_sms table are url-encoded ex. %10%12 etc). All the trick is done with functions charset_gsm_to_utf8() charset_utf8_to_gsm() at the points that have the remark text // mnakos PATCH 2011-05-04 (concat problem fix) I have the sms.c file attached. I hope it will by stayed attached and save someone's desperate time like I was.
Re: Transmitter and Receiver as two different server
Setup two different connections with the same smsc-id. Configure the proper host and port for your servers. Use port= and receive-port=0 for your Transmitter. Use port=0 and receive-port= for your Receiver. Check the user guide for further details. Regards, Alex On Thu, Apr 28, 2011 at 12:07 PM, Ravindra Gupta // Viva ravin...@vivainfomedia.com wrote: hi, I am using kannel 1.4.3 ,how to send messages in two different server means we have configure two server one server as a transmitter and other server as a receiver. kindly provide the help for the same.
Re: Transmitter and Receiver as two different server
That's not something you'd be able to setup from Kannel side... you cannot dictate from which server the message will arrive from. If the remote side response comes on the second server, Kannel should be able to handle it, but again, it's a matter of how the remote side is configured, not yours. Regards, Alex On Thu, Apr 28, 2011 at 1:10 PM, Ravindra Gupta // Viva ravin...@vivainfomedia.com wrote: Dear Alejandro, Thanks for your response. I already use kannel server for last 3 years, i have bind transmitter and receiver in same server (smskannel.conf) file. I want to change transmitter and receiver in different server means messages going on one server and (submit_sm) and receive response (submit_sm_respo) from other server. Kindly help me for the same.
Re: Issue with SQLBOX
Hrm, I think it's actually a gwlib error, on gwmem-check.c You could try increasing MAX_TAB_SIZE on gwlib/gwmem-check.c Search for this lines: /* 100 MB */ #define MAX_TAB_SIZE (100*1024*1024L) #define MAX_ALLOCATIONS ((long) (MAX_TAB_SIZE/sizeof(struct area))) Try putting 200 instead of 100 and see if it improves. You'll have to recompile kannel and sqlbox afterwards. Anyway, I suspect you're hitting the limits of your system, but can't hurt to give it a try ;) Regards, Alex On Sat, Apr 16, 2011 at 5:03 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Increase max-connections in group = mysql-connection. == Rene *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *ha...@aeon.pk *Sent:* Saturday, 16 April, 2011 15:34 *To:* Ram Manohar *Cc:* kannel users *Subject:* Re: Issue with SQLBOX I tried it a lot of time, but same issue comes. I have to manually start everything again. On Sat, Apr 16, 2011 at 6:33 PM, Ram Manohar nr...@airhub.com wrote: pls kill the sql box and start the sql box again... On Sat, Apr 16, 2011 at 6:57 PM, ha...@aeon.pk ha...@aeon.pk wrote: Hi, My SQLBOX is randomly aborting on high traffic. Following error is thrown in logs: 2011-04-16 18:21:47 [12759] [2] PANIC: Too many concurrent allocations. 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox(gw_panic+0xc2) [0x80730e2] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox [0x8066af5] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox(gw_check_malloc+0x84) [0x8066b84] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox(msg_create_real+0x29) [0x8054099] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox(msg_unpack_real+0x2d) [0x805422d] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox(read_from_bearerbox_real+0xe2) [0x8055132] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox [0x8050619] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox [0x805105b] 2011-04-16 18:21:47 [12759] [2] PANIC: sqlbox [0x8068b8b] 2011-04-16 18:21:47 [12759] [2] PANIC: /lib/libpthread.so.0 [0xd89832] 2011-04-16 18:21:47 [12759] [2] PANIC: /lib/libc.so.6(clone+0x5e) [0xcc8f6e] As a result, SMSBOXes also get disconnected, since they are connected to sqlbox. Can someone help in this regard? Hamza -- *Regards,* *RamManohar.N,* *AirHub Technologies,* *Hyderabad*
Re: Compile problems - any Mac OS X 10.6 users?
Looks like you're missing the libclntsh.so library, or Kannel is searching for it on the wrong place. Check if it's installed, you told Kannel to search for it on /instaclient_10_2 is that the place where the libs are? Regards, Alex On Fri, Apr 15, 2011 at 3:36 AM, Francisco Oliveira fran.mb.olive...@gmail.com wrote: Hello, Alex, Nikos and everybody, Many thanks for responding my posts. I had to reinstall everything from scratch. Now I have oracle's instant client on the same account I'm installing Kannel. Oracle database is running on the same machine under a different account. So, when I run ./configure --with-oracle --with-oracle-includes=/instantclient_10_2/sdk/include --with-oracle-libs=/instantclient_10_2 I get: ... Configuring DB support ... checking whether to compile with MySQL support... disabled checking whether to compile with LibSDB support... disabled checking whether to compile with SQLite2 support... disabled checking whether to compile with SQLite3 support... disabled checking whether to compile with Oracle support... searching checking for oci.h ... yes checking for OCIEnvCreate in -lclntsh... no checking for OCIEnvCreate in -lclntsh... (cached) no What should I do? Best wishes, Fran On Apr 13, 2011, at 7:48 PM, Nikos Balkanas wrote: Hi, Could also be at compile time iconv is not in the user's library path. In Linux it is defined in /etc/ld.so.conf and in Solaris in LD_LIBRARY_PATH. Not sure what is in Mac. BR, Nikos - Original Message - From: Alejandro Guerrieri To: Francisco Oliveira Cc: us...@vm1.kannel.org Sent: Wednesday, April 13, 2011 4:13 PM Subject: Re: Re: Compile problems - any Mac OS X 10.6 users? There must be some previous complain on configure I guess? This is what I get when compiling on Snow Leopard: checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... -liconv checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); Is the /usr/bin/iconv command available? What about running it with the -l switch? You should get a list of supported charsets. Anyway, check if you have the iconv libraries. Regards, Alex On Wed, Apr 13, 2011 at 12:51 PM, Francisco Oliveira fran.mb.olive...@gmail.com wrote: Hi everyone, I'm having a problem very similar to the one Hujumuju had posted. Was it solved? Please let me know. Many thanks in advance and all the best, Francisco Oliveira (Fran) Here's your original post: Hello. I am trying to compile Kannel under Mac OS X 10.6 (Snow Leopard). I have Xcode 3.2 for Mac OS X 10.6 Snow Leopard + MacPorts configure goes fine and i have attached config,log to this message. Anyway, make fails: gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -DDARWIN=1 -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -L/opt/local/lib -o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a libgwlib.a -lssl -lresolv -lm -lpthread -lxml2 -lz -lpthread -licucore -lm -L/usr/lib -lcrypto -lssl Undefined symbols: _iconv_close, referenced from: _charset_convert in libgwlib.a(charset.o) _iconv, referenced from: _charset_convert in libgwlib.a(charset.o) _iconv_open, referenced from: _charset_convert in libgwlib.a(charset.o) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [wmlscript/wmlsc] Error 1 Does anyone have experience with Max OS X? I've compile kannel sucesfully before on 10.5 (Leopard) machine. Thanks for any tips in advance.
Re: Slow RX incoming
Is the issue constant, or only happens at some specific times during the day? Do you have DLR's enabled? DB-backed? Maybe the issue happens when you're getting lots of them? Perhaps a long shot, but might be worth checking: try doing a packet trace and verify you're not getting TCP zero win errors. Regards, Alex On Thu, Apr 14, 2011 at 7:27 AM, Rapture supp...@ims.co.ke wrote: Hi guys, We’ve been running a campaign averaging 350,000 messages a day. Lately I noticed kannel does not retrieve them as fast as it needs to hence a backlog builds on the operator’s end. This is only affecting one of the operators. On calling them, they insisted that it is Kannel which determines how many RX messages to pull. I tried an old SMPP client software I’d written in Delphi and it cleared all the backlog in less than 5 mins and continues to do so in real time. All data is dumped into the same mysql table. I’ve tried using throughput in kannel with no success. I’ve even opened upto 15 channels to the same operator without success. What could be the issue? How can I speed up my intake of messages? Distraught, TR
Re: Compile problems - any Mac OS X 10.6 users?
.so won't work on Mac (I didn't know/missed that you were using Mac). Kind of messy, but If the files are there, you might get away by symlinking them from /usr/lib and see if that helps. Regards, Alex On Fri, Apr 15, 2011 at 1:41 PM, Francisco Oliveira fran.mb.olive...@gmail.com wrote: Many thanks Alex and Nikos, Here's my situation: I have downloaded Oracle's instant client for Mac OS X Version 10.2.0.4 (This is the one available at Oracle's website) and installed it at /instantclient_10_2. There, we don't have libclntsh.so nor libclientsh.so However, we do have libclntsh.dylib and libclntsh.dylib.10.1 So, when I run: $ nm libclntsh.dylib | grep OCIEnvCreate I get: 0016aa89 T _OCIEnvCreate and when I run: $ nm libclntsh.dylib.10.1 | grep OCIEnvCreate I also get : 0016aa89 T _OCIEnvCreate I've created links to these libraries: $ ln libclntsh.dylib.10.1 libclientsh.so $ ln libclntsh.dylib.10.1 libclntsh.so and run ./configure --with-oracle --with-oracle-includes=/instantclient_10_2/sdk/include --with-oracle-libs=/instantclient_10_2 However, I still get the error: Configuring DB support ... checking whether to compile with MySQL support... disabled checking whether to compile with LibSDB support... disabled checking whether to compile with SQLite2 support... disabled checking whether to compile with SQLite3 support... disabled checking whether to compile with Oracle support... searching checking for oci.h ... yes checking for OCIEnvCreate in -lclntsh... no checking for OCIEnvCreate in -lclntsh... (cached) no There's also a lib, libocci.dylib.10.1, that when I run: $ nm libocci.dylib.10.1 | grep OCIEnvCreate I get: U _OCIEnvCreate I've also created $ ln libocci.dylib.10.1 libclntsh.so $ ln libocci.dylib.10.1 libclientsh.so and run: ./configure --with-oracle --with-oracle-includes=/instantclient_10_2/sdk/include --with-oracle-libs=/instantclient_10_2 and still got the error: Configuring DB support ... checking whether to compile with MySQL support... disabled checking whether to compile with LibSDB support... disabled checking whether to compile with SQLite2 support... disabled checking whether to compile with SQLite3 support... disabled checking whether to compile with Oracle support... searching checking for oci.h ... yes checking for OCIEnvCreate in -lclntsh... no checking for OCIEnvCreate in -lclntsh... (cached) no. Any other suggestions before trying to find an older Oracle Instant Client? All the best, Fran On Apr 15, 2011, at 6:09 AM, Alejandro Guerrieri wrote: Looks like you're missing the libclntsh.so library, or Kannel is searching for it on the wrong place. Check if it's installed, you told Kannel to search for it on /instaclient_10_2 is that the place where the libs are? Regards, Alex On Fri, Apr 15, 2011 at 3:36 AM, Francisco Oliveira fran.mb.olive...@gmail.com wrote: Hello, Alex, Nikos and everybody, Many thanks for responding my posts. I had to reinstall everything from scratch. Now I have oracle's instant client on the same account I'm installing Kannel. Oracle database is running on the same machine under a different account. So, when I run ./configure --with-oracle --with-oracle-includes=/instantclient_10_2/sdk/include --with-oracle-libs=/instantclient_10_2 I get: ... Configuring DB support ... checking whether to compile with MySQL support... disabled checking whether to compile with LibSDB support... disabled checking whether to compile with SQLite2 support... disabled checking whether to compile with SQLite3 support... disabled checking whether to compile with Oracle support... searching checking for oci.h ... yes checking for OCIEnvCreate in -lclntsh... no checking for OCIEnvCreate in -lclntsh... (cached) no What should I do? Best wishes, Fran On Apr 13, 2011, at 7:48 PM, Nikos Balkanas wrote: Hi, Could also be at compile time iconv is not in the user's library path. In Linux it is defined in /etc/ld.so.conf and in Solaris in LD_LIBRARY_PATH. Not sure what is in Mac. BR, Nikos - Original Message - From: Alejandro Guerrieri To: Francisco Oliveira Cc: us...@vm1.kannel.org Sent: Wednesday, April 13, 2011 4:13 PM Subject: Re: Re: Compile problems - any Mac OS X 10.6 users? There must be some previous complain on configure I guess? This is what I get when compiling on Snow Leopard: checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... -liconv checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); Is the /usr/bin/iconv command available? What about running it with the -l switch? You should get a list of supported charsets. Anyway, check if you have the iconv libraries. Regards, Alex On Wed, Apr 13, 2011 at 12:51
Re: Slow RX incoming
Make a packet trace and check if you get zero win errors. If you get tons of DLR's and your DB is not fast enough that would explain the problem. Art you using a regular Kannel or did you apply any patches to it? Regards, Alex On Fri, Apr 15, 2011 at 2:35 PM, Rapture supp...@ims.co.ke wrote: Hi Alex, The issue is persistent but all has been well till about 3 weeks ago when I started receiving huge bursts of messages. DLR is enabled and DB is ok as other application is working properly. Regards, Rapture *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Friday, April 15, 2011 12:14 PM *To:* Rapture *Cc:* users@kannel.org *Subject:* Re: Slow RX incoming Is the issue constant, or only happens at some specific times during the day? Do you have DLR's enabled? DB-backed? Maybe the issue happens when you're getting lots of them? Perhaps a long shot, but might be worth checking: try doing a packet trace and verify you're not getting TCP zero win errors. Regards, Alex On Thu, Apr 14, 2011 at 7:27 AM, Rapture supp...@ims.co.ke wrote: Hi guys, We’ve been running a campaign averaging 350,000 messages a day. Lately I noticed kannel does not retrieve them as fast as it needs to hence a backlog builds on the operator’s end. This is only affecting one of the operators. On calling them, they insisted that it is Kannel which determines how many RX messages to pull. I tried an old SMPP client software I’d written in Delphi and it cleared all the backlog in less than 5 mins and continues to do so in real time. All data is dumped into the same mysql table. I’ve tried using throughput in kannel with no success. I’ve even opened upto 15 channels to the same operator without success. What could be the issue? How can I speed up my intake of messages? Distraught, TR
Re: Slow RX incoming
You can do a packet trace using tcpdump: sudo tcpdump -s 65000 -w kannel_trace.pcap host smsc ip and port smsc port You can then open it with ethereal. Hope it helps, Alex On Fri, Apr 15, 2011 at 2:51 PM, Rapture supp...@ims.co.ke wrote: Regular Kannel. I’m not familiar with a packet trace or zero win errors… *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Friday, April 15, 2011 3:47 PM *To:* Rapture *Cc:* users@kannel.org *Subject:* Re: Slow RX incoming Make a packet trace and check if you get zero win errors. If you get tons of DLR's and your DB is not fast enough that would explain the problem. Art you using a regular Kannel or did you apply any patches to it? Regards, Alex On Fri, Apr 15, 2011 at 2:35 PM, Rapture supp...@ims.co.ke wrote: Hi Alex, The issue is persistent but all has been well till about 3 weeks ago when I started receiving huge bursts of messages. DLR is enabled and DB is ok as other application is working properly. Regards, Rapture *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Friday, April 15, 2011 12:14 PM *To:* Rapture *Cc:* users@kannel.org *Subject:* Re: Slow RX incoming Is the issue constant, or only happens at some specific times during the day? Do you have DLR's enabled? DB-backed? Maybe the issue happens when you're getting lots of them? Perhaps a long shot, but might be worth checking: try doing a packet trace and verify you're not getting TCP zero win errors. Regards, Alex On Thu, Apr 14, 2011 at 7:27 AM, Rapture supp...@ims.co.ke wrote: Hi guys, We’ve been running a campaign averaging 350,000 messages a day. Lately I noticed kannel does not retrieve them as fast as it needs to hence a backlog builds on the operator’s end. This is only affecting one of the operators. On calling them, they insisted that it is Kannel which determines how many RX messages to pull. I tried an old SMPP client software I’d written in Delphi and it cleared all the backlog in less than 5 mins and continues to do so in real time. All data is dumped into the same mysql table. I’ve tried using throughput in kannel with no success. I’ve even opened upto 15 channels to the same operator without success. What could be the issue? How can I speed up my intake of messages? Distraught, TR
Re: Re: Compile problems - any Mac OS X 10.6 users?
There must be some previous complain on configure I guess? This is what I get when compiling on Snow Leopard: checking for iconv... yes checking for working iconv... yes checking how to link with libiconv... -liconv checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); Is the /usr/bin/iconv command available? What about running it with the -l switch? You should get a list of supported charsets. Anyway, check if you have the iconv libraries. Regards, Alex On Wed, Apr 13, 2011 at 12:51 PM, Francisco Oliveira fran.mb.olive...@gmail.com wrote: Hi everyone, I'm having a problem very similar to the one Hujumuju had posted. Was it solved? Please let me know. Many thanks in advance and all the best, Francisco Oliveira (Fran) Here's your original post: Hello. I am trying to compile Kannel under Mac OS X 10.6 (Snow Leopard). I have Xcode 3.2 for Mac OS X 10.6 Snow Leopard + MacPorts configure goes fine and i have attached config,log to this message. Anyway, make fails: gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -DDARWIN=1 -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib -I/Developer/SDKs/MacOSX10.5.sdk/usr/include -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl -L/opt/local/lib -o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a libgwlib.a -lssl -lresolv -lm -lpthread -lxml2 -lz -lpthread -licucore -lm -L/usr/lib -lcrypto -lssl Undefined symbols: _iconv_close, referenced from: _charset_convert in libgwlib.a(charset.o) _iconv, referenced from: _charset_convert in libgwlib.a(charset.o) _iconv_open, referenced from: _charset_convert in libgwlib.a(charset.o) ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [wmlscript/wmlsc] Error 1 Does anyone have experience with Max OS X? I've compile kannel sucesfully before on 10.5 (Leopard) machine. Thanks for any tips in advance.
Re: smpp throughput
The SVN trunk is rock solid, actually more stable than 1.4.3 for what matters. We've been using the SVN head for ages in production, handling _lots_ of traffic and never had any issues with it. Regards, Alex On Tue, Apr 12, 2011 at 8:34 PM, Konstantin Vayner pon...@appcell.netwrote: 1.4.3 :( And i do have a problem upgrading production environment to SVN / 1.5.0 - the client is not going to like the fact it's not *stable* release. On Tue, Apr 12, 2011 at 6:08 PM, Juan Nin jua...@gmail.com wrote: What Kannel version are you using? I believe that up until 1.4.3 there were still issues with throughput which were finally fixed on CVS (now SVN) On Tue, Apr 12, 2011 at 2:13 AM, Konstantin Vayner pon...@appcell.net wrote: Hi List, When configuring thoughput for smpp connections, what may lead Kannel to send more submit_sm per second than the configured limit? Sometimes i see it trying to send up to 80 mps when configured to 50. (the counts are done by analyzing the logfile, since i dont see any normal way of doing this) And then - when it goes higher than the limit - it hits throttling error from the operator and the speed falls to the ground for a couple of seconds. Which overall results in us not being able to use the limit fully, because the setback after throttling error. Regards, Konstantin
Re: NoSQL and Kannel
I've been playing with kannel and memcached a little bit, but nothing worth posting so far. The unreliable nature of memcached (because of its unreplicated horizontal scaling) doesn't make it very suitable for DLR's in fact (e.g., a node going down and zapping all the dlrs stored in it). Other noSQL engines would make more sense. Regards, Alex On Thu, Mar 24, 2011 at 8:12 PM, Toby Phipps toby.phi...@nexmedia.com.sgwrote: Hi all, Has anyone put any thought into implementing Kannel DLR storage (and the basics of sqlbox MT injection) in a NoSQL datastore? We are using Redis ( http://redis.io) for other projects and are very happy with it. Its key-based storage/retrieval and strong support for arrays as atomic queues would make it perfect for Kannel, especially given the transient nature of this data and Redis’ memory speed with disk backing. The main advantages in my mind are that during heavy loads disk access would be minimized, DB polling would disappear (to be replaced with blocking array pops) and the SQL overhead would be removed replaced with set/fetch by keys. No particular reason this would need to be Redis – memcached, MongoDB, Cassandra etc. would also probably work well assuming they have the array/queue support. Any thoughts? It wouldn’t be a small project, but basing the code on the existing implementations of SQL DLRs and sqlbox would mean a big jump start… Toby.
Re: How to stop bearerbox and smsbox
Use the --daemonize switch to detach from the console. To kill the processes, you can identify the process id's and kill -9 them, or do a killall by process name. Check the user guide for the finer details. Anyway, I'd recommend you to use an init script, there's some examples for RedHat/CentOS and other distros floating around, google a little bit and you'll find out. Regards, -- Alex Guerrieri On 09/03/2011, at 07:50, Jalal Uddin jalal@gmail.com wrote: Hello, I am new with kannel. I usually run kannel (bearerbox , smsbox) from command prompt. Like below: Terminal 1 $ cd /etc/kannel $ Bearerbox kannel.conf Terminal 2 $ cd /etc/kannel $ Smsbox kannel.conf And everything starts up and I can send sms from the browser using url. The problem is when I start kannel like that it hangs the terminal as it continuously listens to the service. But that is not a problem. The problem is when I need to shut down the server. I need to stop those two bearerbox and smsbox. So say I apply Ctrl+z and they stop. Then I close the terminals, and restart the pc. But after that when I try to start bearerbox and smsbox, I can’t do that. It says the ports are already in use. If I restart kannel (well server restart should do that as well I guess) it still says port is in use and nothing works. So I have to open kannel.conf and change the port and then again the bearerbox and smsbox work. Interesting is I can’t use the old ports never ever. So this is a problem that every time I need to change kannel.conf or restart kannel or server. I have to apply a brand new port. I understand this is very silly and should be the case. I feel like all my previous runs are still running in the pc. But I don’t know how to stop them and can use the same port next time. I have searched hard in internet but I hardly see anyone facing such silly problem, so I wonder what I am missing. I will be very thankful if someone can point out what I am missing, like what is the perfect way to restart kannel and how can I use the previous ports again. Thank you
Re: Kannel HTTP locking up
We use CentOS since 3.x (latest is 5.x) with very good results, but any recent distro should work fine. Regards, Alex On Tue, Feb 22, 2011 at 3:47 PM, Richard Crawshaw richard.craws...@callparents.com wrote: OK, many thanks. That means that we need a Linux box to run Kannel on. However, I'm not really familiar with Linux, is there a recommended distribution that Kannel runs best on, or any that are best avoided? Regards Richard -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Stipe Tolj Sent: 21 February 2011 16:47 Cc: users@kannel.org Subject: Re: Kannel HTTP locking up Am 21.02.2011 13:58, schrieb Richard Crawshaw: Hi I'm having a problem that looks like Kannel's SMS box HTTP listener is locking up. I've been running some load tests on Kannel, sending out 30K messages over a short space of time. I am running Kannel version 1.5.0 under Windows using Cygwin. I have no problem if it is running on my Windows 7 laptop, 32 bit 2.68G RAM, 2.53GHz. However, when it is running on one of our servers it locks up after about 24K messages. The server is Windows Server 2003 R2 Enterprise x64 Edition SP2, 2GHz with 8G RAM. The only difference between the two is the Kannel configuration file which points the log files to different places in the file system. Both instances of Kannel were compiled from the same source code on the target machines using the latest version of Cygwin. The server isn't under a heavy load. It is also running IIS. After Kannel locks up there are no further entries added to its log files and from what I've found the only solution is to stop and restart it. There doesn't appear to be anything additional logged from the server that isn't logged from my laptop. Has anyone else seen anything like this before? Any clues to what may be the cause or possible solutions would be greatly appreciated. I can post logs and config file if needed. Cygin's pthreads, which Kannel uses heavily is NOT(!) stable. That's the simple reason. This is BTW also the reason why Cygwin never packaged the mysql server. So, there is NO way to use Kannel on Cygwin for real production use. Stipe -- --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org ---
Re: Odd DLR msg ID from operator
Yes, I've seen this kind of mess many times before... and shockingly it's not contrary to the spec. The spec is really blurry on DLR's, it only provides an example of what a DLR would look like, but it doesn't enforce any particular format. Kannel only accept a couple of the more popular formats, but definitely needs help dealing with non-standard formats, specially when the id's doesn't even match. Perhaps a simpler approach would have been to regex-match for ^\d{2}\/ and remove it if present? Regards, Alex 2011/2/18 Kyriacos Sakkas kyria...@netsmart.com.cy Hi All, This is definitely an SMPP connection, whether it actually it is SMPP, thats a different story :). I have already asked the relevant (big name) operator whether this is something they can change. To give you the full story we have multiple binds with this operator, each bind used to bill (MT billing) a different amount. Now the first issue I noticed is that no matter what bind you sent from, the DLR comes from the 0 rated bind. After asking them about this they replied that yes that's just how it is, so I edited the source files and chhanged the mysql dlr functions to handle this, while not breaking any other connections I have - I made the smsc field length=12 (any longer smsc-id names get truncated to 12 chars on insert) , put smsc=LEFT(?,12) in the queries to match the longer smsc-id s I use for this operator (which have to be unique in order for me to be able to specify which one the message goes out from). So that was fixed.. after fixing that I noticed that DLRs were not matching again, and spotted that they are changing the ID string along the way. So I can solve this by doing something similar to the above, chopping the first 2 chars in the mysql queries, but this one will not be easy to do and retain compatibility with the rest of the normally behaving binds to other operator that I have. Running a dedicated server for this guys is an option, I would just rather not if I can. I guess I could set a conf parameter that passes a flag to the dlr functions that tels them to change queries (like how MSISDNs are added to queries for EMI/UCP SMPP) but that would just seriously brake my upstream compatibility, plus my programing skill are probably not up to it. So yep if someone things that this can be done with pure MYSQL triggers or something like that, which does not need heavy kannel changes, please let me know. Thanks, Kyriacos Sakkas On 18/02/2011 07:50, Nikos Balkanas wrote: Hi, I was asking for the raw logs, to verify that is indeed SMPP traffic, as stated from the PDU names. If it is, then it seems contrary to the spec. He could try talking to his SMSc about it. BR, Nikos - Original Message - From: Alan McNatty a...@catalyst.net.nz To: Alejandro Guerrieri alejandro.guerri...@gmail.com Cc: users users@kannel.org Sent: Thursday, February 17, 2011 11:36 PM Subject: Re: Odd DLR msg ID from operator Hi Alex, I wonder (just off the top of my head) .. if using DB DLR with stored procedure / trigger could work by stripping the prefix on insert? Just a random idea that could be worth looking into - possible/obvious performance implication. Cheers, Alan On 18/02/11 10:26, Alejandro Guerrieri wrote: Looks like the SMSC is doing fancy stuff with their DLR's. If that's the case, there's no easy fix, it's either asking your SMSC to change it (probably unlikely) or tweaking the code to ignore those two digits before the first /. Regards, Alex On Thu, Feb 17, 2011 at 10:30 AM, Kyriacos Sakkas kyria...@netsmart.com.cy mailto:kyria...@netsmart.com.cy wrote: Hi, Wondering if anyone can help with this. When I submit an sms I get the following ID in the submit_sm_resp: *01*//415ce0ae676d19fc/1231615516543 When the message is delivered I get the following id in the deliver_sm: *04*/415ce0ae676d19fc/1231615516543 As you can see those two numbers are not the same, leading to the query not matching. Any help will be greatly appreciated, I can provide further info if needed. Regards, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: kyria...@netsmart.com.cy mailto:kyria...@netsmart.com.cy http://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at kyria...@netsmart.com.cy
Re: Odd DLR msg ID from operator
There might be a reason (or not) for them to do that kind of stuff, but I've learned that your chances of getting them to change it are quite slim. Even if they're willing to do it, rolling out that kind of infrastructure change on a carrier-grade network would mean months of testing and coordination. I've tried, it's a waste of time ;) Regards, Alex 2011/2/18 Nikos Balkanas nbalka...@gmail.com Hi, So yep if someone things that this can be done with pure MYSQL triggers or something like that, which does not need heavy kannel changes, please let me know. It is a very light kannel change in gw/dlr_mysql.c, since you know the smsc-id, but even at that you branch off and in the future you will have to merge in any dlr_mysql.c changes. Why don't they change it? How can they be a big name operator and screw up DLRs for all their clients? BR, Nikos - Original Message - From: Kyriacos Sakkas kyria...@netsmart.com.cy To: Nikos Balkanas nbalka...@gmail.com Cc: Alan McNatty a...@catalyst.net.nz; Alejandro Guerrieri alejandro.guerri...@gmail.com; users us...@vm1.kannel.org; Kyriacos Sakkas kyria...@netsmart.com.cy Sent: Friday, February 18, 2011 11:35 AM Subject: Re: Odd DLR msg ID from operator Hi All, This is definitely an SMPP connection, whether it actually it is SMPP, thats a different story :). I have already asked the relevant (big name) operator whether this is something they can change. To give you the full story we have multiple binds with this operator, each bind used to bill (MT billing) a different amount. Now the first issue I noticed is that no matter what bind you sent from, the DLR comes from the 0 rated bind. After asking them about this they replied that yes that's just how it is, so I edited the source files and chhanged the mysql dlr functions to handle this, while not breaking any other connections I have - I made the smsc field length=12 (any longer smsc-id names get truncated to 12 chars on insert) , put smsc=LEFT(?,12) in the queries to match the longer smsc-id s I use for this operator (which have to be unique in order for me to be able to specify which one the message goes out from). So that was fixed.. after fixing that I noticed that DLRs were not matching again, and spotted that they are changing the ID string along the way. So I can solve this by doing something similar to the above, chopping the first 2 chars in the mysql queries, but this one will not be easy to do and retain compatibility with the rest of the normally behaving binds to other operator that I have. Running a dedicated server for this guys is an option, I would just rather not if I can. I guess I could set a conf parameter that passes a flag to the dlr functions that tels them to change queries (like how MSISDNs are added to queries for EMI/UCP SMPP) but that would just seriously brake my upstream compatibility, plus my programing skill are probably not up to it. So yep if someone things that this can be done with pure MYSQL triggers or something like that, which does not need heavy kannel changes, please let me know. Thanks, Kyriacos Sakkas On 18/02/2011 07:50, Nikos Balkanas wrote: Hi, I was asking for the raw logs, to verify that is indeed SMPP traffic, as stated from the PDU names. If it is, then it seems contrary to the spec. He could try talking to his SMSc about it. BR, Nikos - Original Message - From: Alan McNatty a...@catalyst.net.nz To: Alejandro Guerrieri alejandro.guerri...@gmail.com Cc: users users@kannel.org Sent: Thursday, February 17, 2011 11:36 PM Subject: Re: Odd DLR msg ID from operator Hi Alex, I wonder (just off the top of my head) .. if using DB DLR with stored procedure / trigger could work by stripping the prefix on insert? Just a random idea that could be worth looking into - possible/obvious performance implication. Cheers, Alan On 18/02/11 10:26, Alejandro Guerrieri wrote: Looks like the SMSC is doing fancy stuff with their DLR's. If that's the case, there's no easy fix, it's either asking your SMSC to change it (probably unlikely) or tweaking the code to ignore those two digits before the first /. Regards, Alex On Thu, Feb 17, 2011 at 10:30 AM, Kyriacos Sakkas kyria...@netsmart.com.cy mailto:kyria...@netsmart.com.cy wrote: Hi, Wondering if anyone can help with this. When I submit an sms I get the following ID in the submit_sm_resp: *01*//415ce0ae676d19fc/1231615516543 When the message is delivered I get the following id in the deliver_sm: *04*/415ce0ae676d19fc/1231615516543 As you can see those two numbers are not the same, leading to the query not matching. Any help will be greatly appreciated, I can provide further info if needed. Regards, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax
Re: Odd DLR msg ID from operator
This is what the spec says (Appendix B): SMPP provides for return of an SMSC delivery receipt via the *deliver_sm *or *data_sm *PDU, which indicates the delivery status of the message. The informational content of an SMSC Delivery Receipt may be inserted into the *short_message *parameter of the *deliver_sm *operation. The format for this Delivery Receipt message is SMSC vendor specific but following is a typical example of Delivery Receipt report. “*id:II sub:SSS dlvrd:DDD submit date:YYMMDDhhmm done date:YYMMDDhhmm stat:DDD err:E Text: . . . . . . . . .”* The fields of the above delivery receipt example are explained in the following table: [table explaining the parameters from the example] There's no reference to unique id's and it says The format for this Delivery Receipt message is SMSC vendor specific. In other words, the SMSC vendor could use whatever they fit convenient and it wouldn't be breaking the spec at all. Nonsense, I know, sadly the SMSC Developers Forum was disbanded in 2007 so there's nowhere to go and propose a spec review,I guess. Regards, Alex 2011/2/18 Nikos Balkanas nbalka...@gmail.com Yes, I've seen this kind of mess many times before... and shockingly it's not contrary to the spec. But it is contrary to the spec. Although DLR format may be blurry, a unique ID is required and it should be the same in submit_sm_resp and deliver_sm (hex conversion notwithstanding). BR, Nikos - Original Message - From: Alejandro Guerrieri To: Kyriacos Sakkas Cc: Nikos Balkanas ; Alan McNatty ; users Sent: Friday, February 18, 2011 12:47 PM Subject: Re: Odd DLR msg ID from operator Yes, I've seen this kind of mess many times before... and shockingly it's not contrary to the spec. The spec is really blurry on DLR's, it only provides an example of what a DLR would look like, but it doesn't enforce any particular format. Kannel only accept a couple of the more popular formats, but definitely needs help dealing with non-standard formats, specially when the id's doesn't even match. Perhaps a simpler approach would have been to regex-match for ^\d{2}\/ and remove it if present? Regards, Alex 2011/2/18 Kyriacos Sakkas kyria...@netsmart.com.cy Hi All, This is definitely an SMPP connection, whether it actually it is SMPP, thats a different story :). I have already asked the relevant (big name) operator whether this is something they can change. To give you the full story we have multiple binds with this operator, each bind used to bill (MT billing) a different amount. Now the first issue I noticed is that no matter what bind you sent from, the DLR comes from the 0 rated bind. After asking them about this they replied that yes that's just how it is, so I edited the source files and chhanged the mysql dlr functions to handle this, while not breaking any other connections I have - I made the smsc field length=12 (any longer smsc-id names get truncated to 12 chars on insert) , put smsc=LEFT(?,12) in the queries to match the longer smsc-id s I use for this operator (which have to be unique in order for me to be able to specify which one the message goes out from). So that was fixed.. after fixing that I noticed that DLRs were not matching again, and spotted that they are changing the ID string along the way. So I can solve this by doing something similar to the above, chopping the first 2 chars in the mysql queries, but this one will not be easy to do and retain compatibility with the rest of the normally behaving binds to other operator that I have. Running a dedicated server for this guys is an option, I would just rather not if I can. I guess I could set a conf parameter that passes a flag to the dlr functions that tels them to change queries (like how MSISDNs are added to queries for EMI/UCP SMPP) but that would just seriously brake my upstream compatibility, plus my programing skill are probably not up to it. So yep if someone things that this can be done with pure MYSQL triggers or something like that, which does not need heavy kannel changes, please let me know. Thanks, Kyriacos Sakkas On 18/02/2011 07:50, Nikos Balkanas wrote: Hi, I was asking for the raw logs, to verify that is indeed SMPP traffic, as stated from the PDU names. If it is, then it seems contrary to the spec. He could try talking to his SMSc about it. BR, Nikos - Original Message - From: Alan McNatty a...@catalyst.net.nz To: Alejandro Guerrieri alejandro.guerri...@gmail.com Cc: users users@kannel.org Sent: Thursday, February 17, 2011 11:36 PM Subject: Re: Odd DLR msg ID from operator Hi Alex, I wonder (just off the top of my head) .. if using DB DLR with stored procedure / trigger could work by stripping the prefix on insert? Just a random idea that could be worth looking into - possible/obvious performance implication. Cheers, Alan On 18/02/11 10:26, Alejandro Guerrieri wrote
Re: Odd DLR msg ID from operator
Looks like the SMSC is doing fancy stuff with their DLR's. If that's the case, there's no easy fix, it's either asking your SMSC to change it (probably unlikely) or tweaking the code to ignore those two digits before the first /. Regards, Alex On Thu, Feb 17, 2011 at 10:30 AM, Kyriacos Sakkas kyria...@netsmart.com.cywrote: Hi, Wondering if anyone can help with this. When I submit an sms I get the following ID in the submit_sm_resp: *01*//415ce0ae676d19fc/1231615516543 When the message is delivered I get the following id in the deliver_sm: *04*/415ce0ae676d19fc/1231615516543 As you can see those two numbers are not the same, leading to the query not matching. Any help will be greatly appreciated, I can provide further info if needed. Regards, Kyriacos Sakkas -- Kyriacos Sakkas Development Team Netsmart Tel: + 357 22 452565 Fax: + 357 22 452566 Email: kyria...@netsmart.com.cyhttp://www.netsmart.com.cy Taking Business to a New Level! ** Confidentiality Notice: The information contained in this email message may be privileged, confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution, or copying of this email message is strictly prohibited. If you think that you have received this email message in error, please email the sender at kyria...@netsmart.com.cy **
Re: DLR Concurrency Problem (got DLR but could not find message or was not interested in it)
It's not a concurrency bug, your aggregator is probably sending the DLR's deliver_sm before sending the submit_sm_resp. I've seen it happening on some aggregators (maybe because of their load-balancers processing the messages on different nodes? Can't tell for sure). I have a simple patch that retries the dlr-find a given number of times, but it poses a performance penalty and it's not intended to be used under heavy traffic. Regards, Alex On Wed, Feb 9, 2011 at 9:35 AM, Sayed Hadi Rastgou Haghi hadi.rast...@gmail.com wrote: Dear Kannel Developers, I found a concurrency BUG in DLR Code. 2011-02-09 11:30:26 [29361] [27] DEBUG: DLR[mysql]: Looking for DLR smsc=mtn1, ts=1613732592, dst=989372474050, type=2 2011-02-09 11:30:26 [29361] [27] DEBUG: sql: SELECT mask, service, url, source, destination, boxc FROM dlr WHERE smsc='SMSC' AND ts='1613732592'; 2011-02-09 11:30:26 [29361] [27] ERROR: SMPP[SMSC]: got DLR but could not find message or was not interested in it id1613732592 dstDST, type2 2011-02-09 11:30:26 [29361] [26] DEBUG: DLR[mysql]: Adding DLR smsc=SMSC, ts=1613732592, src=SRC, dst=DST, mask=31, boxc=13013 2011-02-09 11:30:26 [29361] [26] DEBUG: sql: INSERT INTO dlr (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES (...); *dlr_find* method got calls before *dlr_add!* -- Sincerely, Sayed Hadi Rastgou Haghi
Re: Kannel timer parameters
No, that's most probably your VPN renegotiating keys at the wrong time... Regards, Alex On Tue, Feb 8, 2011 at 7:37 PM, ha...@aeon.pk ha...@aeon.pk wrote: Hi, I am running kannel v1.4.3 on a CENTOS installation, connected to operator SMSC over VPN. There are at least 30 SMSC connections in total. The problem is that all SMSC connections are reset in connectivity after every 3 or 4 hours. They get into the state RECONNECTING for at least a minute and then get connected (ONLINE) again. Initially I thought there is something wrong with my VPN or it gets reset after every 3 or 4 hours. I spent a lot of time on troubleshooting it but discovered that VPN stays alive all the time. There is some timing parameter in kannel which is not working properly. In my configuration, I can observe following parameter related to some timeout value: enquire-link-interval = 60 #wait-ack = 60 #wait-ack-expire = 0x00 Is there a way to fix this disconnectivity issue? Regards, Hamza
Re: SQLBox make error
You're trying to compile sqlbox using an incompatible version of kannel. You need to compile against a meta-data aware version (latest svn for instance). Regards, -- Alex Guerrieri On 06/02/2011, at 06:05, Scott Geller geller.subscr...@gmail.com wrote: I'd appreciate some help in configuring and installing SQLBox. This is with the most current version of SQLBox - I just downloaded it tonight from svn Thanks in advance! Scott [root@localhost sqlbox]# make make all-recursive make[1]: Entering directory `/root/Downloads/sqlbox' Making all in gw make[2]: Entering directory `/root/Downloads/sqlbox/gw' gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox.o -MD -MP -MF .deps/sqlbox.Tpo -c -o sqlbox.o sqlbox.c mv -f .deps/sqlbox.Tpo .deps/sqlbox.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_mssql.o -MD -MP -MF .deps/sqlbox_mssql.Tpo -c -o sqlbox_mssql.o sqlbox_mssql.c mv -f .deps/sqlbox_mssql.Tpo .deps/sqlbox_mssql.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_mysql.o -MD -MP -MF .deps/sqlbox_mysql.Tpo -c -o sqlbox_mysql.o sqlbox_mysql.c mv -f .deps/sqlbox_mysql.Tpo .deps/sqlbox_mysql.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw-g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_pgsql.o -MD -MP -MF .deps/sqlbox_pgsql.Tpo -c -o sqlbox_pgsql.o sqlbox_pgsql.c sqlbox_pgsql.c: In function ‘pgsql_save_msg’: sqlbox_pgsql.c:153: error: ‘struct sms’ has no member named ‘meta_data’ sqlbox_pgsql.c: In function ‘pgsql_fetch_msg’: sqlbox_pgsql.c:211: error: ‘struct sms’ has no member named ‘meta_data’ make[2]: *** [sqlbox_pgsql.o] Error 1 make[2]: Leaving directory `/root/Downloads/sqlbox/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Downloads/sqlbox' make: *** [all] Error 2
Re: SQLBox make error
I'm glad it helped :) Regards, Alex On Sunday, February 6, 2011, Scott Geller geller.subscr...@gmail.com wrote: Thanks Aliex.!! That fixed it On Sun, Feb 6, 2011 at 6:18 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: You're trying to compile sqlbox using an incompatible version of kannel. You need to compile against a meta-data aware version (latest svn for instance). Regards, -- Alex Guerrieri On 06/02/2011, at 06:05, Scott Geller geller.subscr...@gmail.com wrote: I'd appreciate some help in configuring and installing SQLBox. This is with the most current version of SQLBox - I just downloaded it tonight from svn Thanks in advance! Scott [root@localhost sqlbox]# make make all-recursive make[1]: Entering directory `/root/Downloads/sqlbox' Making all in gw make[2]: Entering directory `/root/Downloads/sqlbox/gw' gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox.o -MD -MP -MF .deps/sqlbox.Tpo -c -o sqlbox.o sqlbox.c mv -f .deps/sqlbox.Tpo .deps/sqlbox.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_mssql.o -MD -MP -MF .deps/sqlbox_mssql.Tpo -c -o sqlbox_mssql.o sqlbox_mssql.c mv -f .deps/sqlbox_mssql.Tpo .deps/sqlbox_mssql.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_mysql.o -MD -MP -MF .deps/sqlbox_mysql.Tpo -c -o sqlbox_mysql.o sqlbox_mysql.c mv -f .deps/sqlbox_mysql.Tpo .deps/sqlbox_mysql.Po gcc -DHAVE_CONFIG_H -I. -I.. -I../gw -I../gw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/local/pgsql/include -MT sqlbox_pgsql.o -MD -MP -MF .deps/sqlbox_pgsql.Tpo -c -o sqlbox_pgsql.o sqlbox_pgsql.c sqlbox_pgsql.c: In function ‘pgsql_save_msg’: sqlbox_pgsql.c:153: error: ‘struct sms’ has no member named ‘meta_data’ sqlbox_pgsql.c: In function ‘pgsql_fetch_msg’: sqlbox_pgsql.c:211: error: ‘struct sms’ has no member named ‘meta_data’ make[2]: *** [sqlbox_pgsql.o] Error 1 make[2]: Leaving directory `/root/Downloads/sqlbox/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/Downloads/sqlbox' make: *** [all] Error 2
Re: Problem with syslog (ERRATA)
Andrea, Syslog only works for core logs, not the access logs so far. Regards, Alex On Tue, Feb 1, 2011 at 8:00 PM, Andrea Gabellini andrea.gabell...@telecomitalia.sm wrote: Hello, I made a stupid mistake. Now I set syslog-level to 0 and not 7 and now I see syslog logging!!! What I need are the access-log items, but I don't see anythink of it. Is it not implemented or I made another mistake? Thanks, Andrea Il 01/02/2011 19:49, Andrea Gabellini ha scritto: Hello, I compiled and installed the development 1.5.0 version and I have a configuration that works perfectly. Now I need to configure syslog logging for bearerbox and smsbox, so I compiled the last svn version ( r4879 ). syslog is configured to log the daemon facility to /var/log/messages in the core and smsbox group I defined syslog-level = 7 nothing is logged to syslog. I tried to modify syslog-level to debug, LOG_DEBUG without luck I tried also to change the syslog-facility to mail and LOG_MAIL (that logs to /var/log/maillog), but nothing! I think I miss something... Can you help me? this in the kannel config: group = core admin-port = 13000 admin-password = x status-password = x admin-deny-ip = *.*.*.* admin-allow-ip = 1.2.3.4 smsbox-port = 13001 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 udp-deny-ip = *.*.*.* udp-allow-ip = 127.0.0.1 syslog-level = 7 log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/bearerbox_access.log access-log-clean = true access-log-format = %t %l [SMSC:%i] [SVC:%n] [ACT:%A] [BINFO:%B] [FID:%F] [UUID:%I] [META:%D] [from:%p] [to:%P] [flags:%m:%c:%M:%C] [DLRMASK=%d] [DLRURL: %R] [msg:%L:%b] [udh:%U:%u] store-type = spool store-location = /var/spool/kannel sms-resend-retry = 120 dlr-storage = mysql group = smsc smsc = fake smsc-id = FAKE port = 1 unified-prefix = +39,39;+,00 log-level = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 13001 sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/smsbox_access.log syslog-level = 7 include = /usr/local/etc/kannel-mysql.conf include = /usr/local/etc/kannel-smsservices.conf include = /usr/local/etc/kannel-smsusers.conf Thanks in advance, Andrea -- No matter how fast your computer system runs, you will eventually come to think of it as slow. Ing. Andrea Gabellini Email: andrea.gabell...@telecomitalia.sm Skype: andreagabellini Tel: (+378) 0549 886111 Fax: (+378) 0549 886188 Telecom Italia San Marino S.p.A. Strada degli Angariari, 3 47891 Rovereta Republic of San Marino http://www.telecomitalia.sm
Re: How to set more than one metadata in the http request
You're using %3F to separate them, which is ? where you should use . Your meta-data decodes as: ?smpp?session_info=00?service_op=2 Where it should be: ?smpp?session_info=00service_op=2 Which is encoded as: %3Fsmpp%3Fsession_info%3D00%26service_op%3D2 Hope it helps, Alex On Fri, Jan 21, 2011 at 11:18 AM, Kanchan K kathuria.kanc...@gmail.comwrote: I have to set ussd_service_op and its_session_info.Defined both in the config file.Sending the request as http://192.168.0.4:13013/cgi-bin/sendsms?to=2724from=text=testingusername=testerpassword=foobarmeta-data=%3Fsmpp%3Fsession_info%3D00%3Fservice_op%3D2 If i give either of the TLV (either session_info or service_op) i am getting it correct.Also in the above request only the first TLV is set corerctly and the second one is being ignored. My question is -how do i make both of them work? On Fri, Jan 21, 2011 at 3:41 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: Please ellaborate? Attach logs, examples, etc. Regards, Alex On Fri, Jan 21, 2011 at 8:40 AM, Kanchan K kathuria.kanc...@gmail.comwrote: Hi, i need to set 2 optional paramanters in the send sms http request.Can anybody suggest how to set the same in the url? I have tried few combinations but only one is recognized and the other is being ignored or both of them are not recognized. Thanks in advance
Re: submit_sm_resp id and status
Command status, it's not available directly, but it'll affect the DLR outcome (if it's not 0, it's an error and you'll get a NACK instead of an ACK). On the SVN code you get the smpp dlr_err optional parameter as well. message_id, it's the %F foreign_id parameter. Regards, Alex On Wed, Jan 19, 2011 at 7:47 PM, Santiago Cattaneo santia...@gmail.comwrote: Hello, I'm trying to obtain from submit_sm_resp the highlighted data from C code of gwlib. command_id: 2147483652 = 0x8004 command_status: 0 = 0x sequence_number: 7 = 0x0007 message_id: 2B23AF36 I know that exist the Msg structure, but I could't find on the web the field names for that, I found the Msg-sms structure with this information: MSG(sms, { OCTSTR(sender) OCTSTR(receiver) OCTSTR(udhdata) OCTSTR(msgdata) INTEGER(time) OCTSTR(smsc_id) OCTSTR(smsc_number) OCTSTR(foreign_id) OCTSTR(service) OCTSTR(account) UUID(id) INTEGER(sms_type) INTEGER(mclass) INTEGER(mwi) INTEGER(coding) INTEGER(compress) INTEGER(validity) INTEGER(deferred) INTEGER(dlr_mask) OCTSTR(dlr_url) INTEGER(pid) INTEGER(alt_dcs) INTEGER(rpi) OCTSTR(charset) OCTSTR(boxc_id) OCTSTR(binfo) INTEGER(msg_left) VOID(split_parts) INTEGER(priority) INTEGER(resend_try) INTEGER(resend_time) OCTSTR(meta_data) }) I have to use dlr_mask??? Any Idea? Thanks a lot.
Re: Why does Kannel not use sar_total_segments and sar_segment_seqnum when sending concatenated sms?
It's not implemented afaik. Only the UDH method is supported. Regards, Alex On Tue, Jan 18, 2011 at 10:47 AM, brett skinner tatty.dishcl...@gmail.comwrote: Hi guys. Does anyone have an ideas to my question below? Thanks, On Thu, Jan 13, 2011 at 11:35 AM, brett skinner tatty.dishcl...@gmail.com wrote: Hi I was looking through the logs and saw that Kannel sends concatenated SMSs using UDH in the Short Message fields. From reading the SMPP spec I was under the impression that the same thing could be achieved by using sar_total_segments and sar_segment_seqnum. Did I misinterpret the spec or does Kannel not use these fields for another reason such as unreliable implementation on the receiving SMSC. Regards,
Re: Why does Kannel not use sar_total_segments and sar_segment_seqnum when sending concatenated sms?
It means that Kannel doesn't have the ability to re-assemble messages using the sar method. I'm not sure about how extensively used is this method among the carriers, I so far only encountered one case. Regards, Alex On Tue, Jan 18, 2011 at 11:08 AM, brett skinner tatty.dishcl...@gmail.comwrote: Do you mean as far as Kannel is concerned or that most SMSC don't use this method? So I did understand the spec correctly. It is just that everyone chooses to use the UDH method rather? On Tue, Jan 18, 2011 at 11:51 AM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: It's not implemented afaik. Only the UDH method is supported. Regards, Alex On Tue, Jan 18, 2011 at 10:47 AM, brett skinner tatty.dishcl...@gmail.com wrote: Hi guys. Does anyone have an ideas to my question below? Thanks, On Thu, Jan 13, 2011 at 11:35 AM, brett skinner tatty.dishcl...@gmail.com wrote: Hi I was looking through the logs and saw that Kannel sends concatenated SMSs using UDH in the Short Message fields. From reading the SMPP spec I was under the impression that the same thing could be achieved by using sar_total_segments and sar_segment_seqnum. Did I misinterpret the spec or does Kannel not use these fields for another reason such as unreliable implementation on the receiving SMSC. Regards,
Re: [SOLVED] Change the log level of an smpp smsc group
loglevel: Set Kannel log-level of log-files while running. This allows you to change the current log-level of the log-files on the fly. Looks perfectly clear to me... Regards, Alex On Thu, Jan 13, 2011 at 12:15 PM, Tshimanga Minkoka tshimanga.mink...@vodacom.cd wrote: Hi All, I confirm that the log-level http command resets the log level of all log files defined in the configuration, without restarting anything. That is exactly what I want. Unfortunately, the UG is not very specific on that. Thanks a lot for your help. *TSHIMANGA Minkoka* *VAS Manager* *È** **+243 814443113* *(** **+* *243 815560341 ext. 0583* *2** **+243 813010373* *: **tshimanga.mink...@vodacom.cd* *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Thursday 13 January 2011 08:31 *To:* Tshimanga Minkoka *Cc:* Rapture; users@kannel.org *Subject:* Re: Change the log level of an smpp smsc group The stop-smsc and start-smsc can be performed without restarting kannel, it will only reconnect the given smsc. Regards, -- Alex Guerrieri On 13/01/2011, at 07:58, Tshimanga Minkoka tshimanga.mink...@vodacom.cd wrote: Hi Rapture, Sorry I had to specify that I needed it on the fly, without restarting kannel. Alex have answered specifying that the http command changes all the log levels (SMSCs included). I will give it a try, and feedback. Thanks to all. *TSHIMANGA Minkoka* *VAS Manager* *È** **+243 814443113* *(** **+* *243 815560341 ext. 0583* *2** **+243 813010373* *: **tshimanga.mink...@vodacom.cd* image001.jpg *From:* Rapture [mailto:supp...@ims.co.ke] *Sent:* Wednesday 12 January 2011 17:25 *To:* Tshimanga Minkoka; users@kannel.org *Subject:* RE: Change the log level of an smpp smsc group Hi, You need to modify the variable log-level in the group smsc and set it to the desired level. This you do per smcs Check user guide: log-level number 0..5 Minimum level of log-file events logged. 0 is for ’debug’, 1 ’info’,2 ’warning, 3 ’error’ and 4’panic’ *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Tshimanga Minkoka *Sent:* Wednesday, January 12, 2011 7:16 PM *To:* users@kannel.org *Subject:* Change the log level of an smpp smsc group Dear, How can I change the log level of an smpp smsc group? The HTTP administration command loglevel seems to only act on bearbox logging. Do I need to modify the configuration file, stop the smsc and then restart it? TIA. *TSHIMANGA Minkoka* *VAS Manager* *È** **+243 814443113* *(** **+* *243 815560341 ext. 0583* *2** **+243 813010373* *: **tshimanga.mink...@vodacom.cd* image004.jpg
Re: mobile bookmarks and vcal message
Vijay, Kannel could be used to send all kinds of OTA messages supported by the receiver's phone, including ringtones, vcal, pictures, etc. There's actually some examples on the contrib folder (on the source code). Regarding the question about the folder/bookmark, it's not something related to Kannel, you'll probably have to ask someplace else about that protocol's capabilities. I don't believe you'd be able to modify the phone's filesystem from an SMS (it would pose all sorts of security risks) but I'm just guessing... Regards, Alex On Tue, Jan 11, 2011 at 11:35 AM, Vijay Shanker Dubey vijay.s...@gmail.comwrote: Hello friends, I have few questions about the capabilities of kannel. 1. Can it help me sending to mobile bookmark with full path - e.g. including nonexisting folder, in other words: is it possible to create folder while sending bookmark to mobile ? 2. sending vCal. Please give me some pointer to investigate my options. Regards, Vijay Shanker Dubey
Re: Kannel with SQL-Server SMS Spool
Santiago, You'd need to modify sqlbox's queries to call stored procedures instead. They're defined on macros on sqlbox_mssql.h You'll probably need to tweak the code for the responses to match what your stored procedure returns. Hope it helps. Alejandro On Wed, Jan 12, 2011 at 4:37 PM, Santiago Cattaneo santia...@gmail.comwrote: Hello all, I new to Kannel and I'm trying to set it up on this way: 1. Connect to several SMPP gateways (no problem) 2. Insert MT and MO messages on a SQL-Server Spool Database (problem!!!) I tried SQLBOX and it works very well, but, I need to use a Stored Procedure interface to access to the SQL-Server. (One SP for SELECT MT, one for UPDATE MT sent and one for INSERT MO). I wondering if it is possible to do that, I think maybe could use sms-service like this for INSERT MO: group = sms-service keyword = nop get-url = http://host/service?sender=%ptext=%r; But how to tell Kannel to read and update MTs? Thanks in advance
Re: Change the log level of an smpp smsc group
log-level works for the smsc's as well (it changes _all_ log levels at once). If you need to change a single smsc instance, you need to change the conf and restart it. Regards, Alex On Wed, Jan 12, 2011 at 5:16 PM, Tshimanga Minkoka tshimanga.mink...@vodacom.cd wrote: Dear, How can I change the log level of an smpp smsc group? The HTTP administration command loglevel seems to only act on bearbox logging. Do I need to modify the configuration file, stop the smsc and then restart it? TIA. *TSHIMANGA Minkoka* *VAS Manager* *È** **+243 814443113* *(** **+* *243 815560341 ext. 0583* *2** **+243 813010373* *: **tshimanga.mink...@vodacom.cd*
Re: send cgi - Unknown request
You changed the sensms-url to be /sendsms, not /cgi-bin/sendsms... Hope it helps. -- Alex Guerrieri On 12/01/2011, at 21:01, Daniel Camacho dcama...@promocionesacertadas.com wrote: Hi there, I have never used the http interface for sending sms, since I have installed the mysql box. From my browser Im trying to send some sms, with no Sent result, just the Unknown request. The log(0) says: 2011-01-12 14:21:07 [3261] [2] DEBUG: HTTP: Creating HTTPClient for `10.27.1.226'. 2011-01-12 14:21:07 [3261] [2] DEBUG: HTTP: Created HTTPClient area 0x2c000b60. 2011-01-12 14:21:07 [3261] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 10.27.1.226 2011-01-12 14:21:07 [3261] [3] DEBUG: Status: 404 Answer: Unknown request. 2011-01-12 14:21:07 [3261] [3] DEBUG: HTTP: Resetting HTTPClient for `10.27.1.226'. I have various sms-service groups defined on the smsbox within two or three smsc. This is the url I am trying to use: http://kannelServer:13200/cgi-bin/sendsms?from=senderNumberto=cellphonesmsc=xxuser=userX=pass=passXtext=hello as my configuration is: *** smsbox.conf *** group = smsbox smsbox-id = smsbox1 bearerbox-host = localhost bearerbox-port = 13003 sendsms-url= /sendsms sendsms-port= 13200 reply-requestfailed = Send HELP reply-emptymessage = Not Available reply-couldnotfetch = Not Available log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = 1 http-request-retry = 100 http-queue-delay = 18 group= sendsms-user username= userX password= passX concatenation = true max-messages = 8 group = sms-service name = whatever keyword-regex = .* allowed-receiver-prefix = sender accepted-smsc = xx catch-all = true get-url = http://webApps:/somepage.php?src=%pmsg=%a omit-empty = true accept-x-kannel-headers = true max-messages = 3 concatenation = true ** kannel.conf ** group = core admin-port = 13000 #wapbox-port = 13002 smsbox-port = 13001 admin-password = bar wdp-interface-name = * log-file = /var/log/kannel/core.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;10.27.1.*,130.7.*.*,10.10.10.* access-log = /var/log/kannel/access.log unified-prefix = +502,00502,0;+,00 dlr-storage = internal store-type = file store-file = /var/log/kannel/sms-log3.log #store-dump-freq = 1 #smsbox-max-pending = 1000 sms-outgoing-queue-limit = -1 sms-incoming-queue-limit = 1 sms-resend-freq = 15 sms-resend-retry = -1 sms-combine-concatenated-mo = 1 sms-combine-concatenated-mo-timeout = 150 group = mysql-connection id = mydlr host = localhost username = kannel password = kannel321 database = sms max-connections = 10 group = dlr-db id = mydlr 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 include = /etc/kannel/modems.conf include = /etc/kannel/smsbox.conf group = smsc smsc-id= xx smsc = smpp host=a.b.c.d port = 5000 smsc-username= usr1 smsc-password= pass1 system-type= type1 source-addr-ton= 0 source-addr-npi= 0 dest-addr-ton= 0 dest-addr-npi= 0 throughput = 10 wait-ack-expire = 1 transceiver-mode= false source-addr-autodetect = true receive-port = 0 msg-id-type = 0x01 allowed-smsc-id = xx denied-smsc-id = yy;zz alt-charset = ISO-8859-1 enquire-link-interval = 10 reconnect-delay = 60 validityperiod = 1000 group = smsc smsc-id= yy smsc = smpp host=a.b.c.d port = 5001 smsc-username= usr2 smsc-password= pass2 system-type= type2 source-addr-ton= 0 source-addr-npi= 0 dest-addr-ton= 0 dest-addr-npi= 0 throughput = 10 wait-ack-expire = 1 transceiver-mode= false source-addr-autodetect = true receive-port = 0 msg-id-type = 0x01 allowed-smsc-id = yy denied-smsc-id = xx;zz alt-charset = ISO-8859-1 enquire-link-interval = 10 reconnect-delay = 60 validityperiod = 1000 ** am I missing something? -- Gerdaniels -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: Change the log level of an smpp smsc group
The stop-smsc and start-smsc can be performed without restarting kannel, it will only reconnect the given smsc. Regards, -- Alex Guerrieri On 13/01/2011, at 07:58, Tshimanga Minkoka tshimanga.mink...@vodacom.cd wrote: Hi Rapture, Sorry I had to specify that I needed it on the fly, without restarting kannel. Alex have answered specifying that the http command changes all the log levels (SMSCs included). I will give it a try, and feedback. Thanks to all. TSHIMANGA Minkoka VAS Manager È +243 814443113 ( + 243 815560341 ext. 0583 2 +243 813010373 : tshimanga.mink...@vodacom.cd image001.jpg From: Rapture [mailto:supp...@ims.co.ke] Sent: Wednesday 12 January 2011 17:25 To: Tshimanga Minkoka; users@kannel.org Subject: RE: Change the log level of an smpp smsc group Hi, You need to modify the variable log-level in the group smsc and set it to the desired level. This you do per smcs Check user guide: log-level number 0..5 Minimum level of log-file events logged. 0 is for ’debug’, 1 ’info’,2 ’warning, 3 ’error’ and 4’panic’ From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Tshimanga Minkoka Sent: Wednesday, January 12, 2011 7:16 PM To: users@kannel.org Subject: Change the log level of an smpp smsc group Dear, How can I change the log level of an smpp smsc group? The HTTP administration command loglevel seems to only act on bearbox logging. Do I need to modify the configuration file, stop the smsc and then restart it? TIA. TSHIMANGA Minkoka VAS Manager È +243 814443113 ( + 243 815560341 ext. 0583 2 +243 813010373 : tshimanga.mink...@vodacom.cd image004.jpg
Re: DLR mysql not supported
You need the mysql-dev package, not just the client application. Depending on your platform OS, it usuall involves installing an rpm or deb package. Regards, Alex On Tue, Jan 11, 2011 at 10:00 AM, Atul Rastogi atulra...@gmail.com wrote: Hi Thanks for reply But I recompiled the gateway as per option mentioned by you in last line it gives Configure error Unable to find mysql client libraries whereas i have checked mysql is installed and is working Pl suggest what to do Thanks Atul On Mon, Jan 10, 2011 at 2:04 AM, Kiran Reddy ki...@uniceltech.com wrote: Hi, You didn't provide any error log any way. Did you compile kannel with mysql option. if not recompile again and try. ./configure --with-mysql On Sunday 09 January 2011 11:47 PM, Atul Rastogi wrote: I am running gateway150 with centos 5.5 in test setup while trying to setup for DLR storage I am getting message DLR storage type mysql not supported when running ./bearerbox -v 1 smskannel.conf file contains following and dlr-storage = mysql in core group group = mysql-connection id = mydlr host = localhost username = root database = dlr max-connections = 1 group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-url = url field-mask = mask field-status = status field-boxc-id = boxc Pl help Thanks Atul
Re: DLR mysql not supported
It should work perfectly fine with any mysql version, as long as you have the proper packages and client libraries in place. Regards, Alex On Tue, Jan 11, 2011 at 2:20 PM, Kazi M m.a.a.z.k.a@gmail.com wrote: Dear Atul , if after installing the devel package ... the problems still persists then try downloading lower versions of mysql i m using 4.22 Atul Rastogi wrote: I am running gateway150 with centos 5.5 in test setup while trying to setup for DLR storage I am getting message DLR storage type mysql not supported when running ./bearerbox -v 1 smskannel.conf file contains following and dlr-storage = mysql in core group group = mysql-connection id = mydlr host = localhost username = root database = dlr max-connections = 1 group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-url = url field-mask = mask field-status = status field-boxc-id = boxc Pl help Thanks Atul -- View this message in context: http://old.nabble.com/DLR-mysql-not-supported-tp30628434p30643513.html Sent from the Kannel - User mailing list archive at Nabble.com.
Re: Kannel Config Help
Seems like if you're missing the smsbox-user group where you define the user and password to use. Read the user guide for more details. Regards, Alex On Thu, Dec 23, 2010 at 1:27 PM, David Ige: Cellulant da...@cellulant.com.ng wrote: Hello, I have installed an Elite SMS Gateway software which also installed Kannel along with it on a centOS server. Each time i try to send SMS using the sendsms url it gives Authorization failed for sendsms. Below is my config, bearerbox.conf --- include=/opt/vsmsc/etc/kannel_include.conf group=vsmsc-config path=/opt/vsmsc/etc/vsmsc_bbox.conf group=rr-list id=rr-db table=users key-field=username value-field=throughput group=mysql-connection id=rr-db host=localhost username=xx password=x database=x max-connections=1 -- kannel_include.conf --- group = core admin-port = 13000 smsbox-port = 13001 admin-password = foobar #box-deny-ip = *.*.*.* #box-allow-ip = 127.0.0.1 box-allow-ip = *.*.*.* log-file=/opt/vsmsc/logs/bearerbox.log log-level=0 admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 group = mysql-connection id = kannel_dlr host = localhost username = xx password = xx database = xx max-connections = 5 group = dlr-db id = kannel_dlr table = kannel_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 #- # SMSC CONNECTIONS #- include=/opt/vsmsc/etc/smsc.d/ #include=/etc/kannel/smsc.d/mo_relay.conf #- # SMSBOX SETUP #- group = smsbox smsbox-id=VSMSC_HTTP bearerbox-host = 127.0.0.1 sendsms-port = 13013 log-file=/opt/vsmsc/logs/smsbox.log log-level=0 access-log = /tmp/access.log #- # SEND-SMS USERS #- #- # SERVICES #- group = sms-service keyword = default catch-all=yes exec=/opt/vsmsc/sbin/mo_processor.php /opt/vsmsc/logs/mo_debug.log %p %P %C %b %F omit-empty=yes send-sender=yes --- smsbox.conf --- include=/opt/vsmsc/etc/kannel_include.conf group=vsmsc-config path=/opt/vsmsc/etc/vsmsc_sbox.conf # SEND-SMS USERS group = sendsms-user username = tester password = foobar #user-deny-ip = #user-allow-ip = - vsmsc_bbox.conf --- group=vsmsc id=vsmsc-primary smsc-db=vsmsc smsc-table=smscs user-db=vsmsc user-table=users http-port=16000 mode=1 bearerbox-status-url=http://localhost:13000/status.xml?password=foobar; num-tables=10 server-id=1 transactions-db=vsmsc transactions-table=user_transactions messages-db=vsmsc messages-table=user_messages status-db=vsmsc status-table=status_queue numbers-db=vsmsc numbers-table=numbers keywords-db=vsmsc keywords-table=number_keywords smpp-smsbox-id=VSMSC_SMPP http-smsbox-id=VSMSC_HTTP mo-db=vsmsc mo-table=mo_messages profile-db=vsmsc profile-table=routing_profiles batch-db=vsmsc batch-table=user_batches batch-tracking-db=vsmsc batch-tracking-table=user_batch_tracking_codes opt-out-words=stop block-db=vsmsc block-table=blocked_numbers vsmsc_sbox.conf --- group=mysql-connection id=vsmsc-primary host=localhost username=xx password=xx database=xx max-connections=5 group=vsmsc id=vsmsc-primary smsc-db=vsmsc smsc-table=smscs user-db=vsmsc user-table=users http-port=17000 mode=2 bearerbox-status-url=http://localhost:13000/status.xml?password=foobar; num-tables=10
Re: DLR storage in kannel 1.4.3
Try googling a little bit about the error, it's probably something already discussed. If you're still out of luck, please post detailed information about the error and your configuration files. Regards, Alex On Tue, Dec 21, 2010 at 11:04 AM, Rapture supp...@ims.co.ke wrote: Let me get the error :) I thought the responses would be something like ‘1.4.3 has issues with mysql’ Rapture *From:* Mohammed Saleem [mailto:mohammedsl...@gmail.com] *Sent:* Tuesday, December 21, 2010 1:02 PM *To:* Rapture *Cc:* users@kannel.org *Subject:* Re: DLR storage in kannel 1.4.3 If we don't know the error we won't be able to help :) post your config files + error logs Best Regards, Mohammed M I Sleem http://www.abusleem.net - Personal blog http://www.freakle.com - The Search Freak On Tue, Dec 21, 2010 at 11:54 AM, Rapture supp...@ims.co.ke wrote: Hi I’m using kannel 1.4.3. I tried to set my dlr engine to mysql but kept getting an error. I am using CentOS 5.5 64bit edition. What could be the issue? Kind Regards, Rapture
Re: Give outgoing messages priority over incoming
Yep, my patch is barely a workaround and it definitely impact performance, specially on transceiver mode. If you can use TX + RX instead of TRX, much better. Anyway the patch is not intended to be used under heavy load at all. Regards, Alex On Thu, Dec 16, 2010 at 10:26 AM, Nikos Balkanas nbalka...@gmail.comwrote: Same logic also in transceiver mode. However, I thought you were talking about svn kannel. Alex's patch is a different story. It will delay receiving thread using sleep(), which can also cause ACKs on the transmitting thread to be delayed, conceivably affecting both operations at the same time. For more info on that, you need to talk to Alex. BR, Nikos On Thu, Dec 16, 2010 at 9:27 AM, Mohammed Saleem mohammedsl...@gmail.comwrote: Hi Nikos, Does this apply on transceiver SMPP connections on 1.4.3? coz I doubt it, I applied a patch once by Alex for the DLRs coming too early (before the message is ACKed) which lets the IO thread to sleep and waits for the DLR to get inserted into the DB, I clearly saw that when the thread sleeps, the traffic stops... Thanks Best Regards, Mohammed M I Sleem http://www.abusleem.net - Personal blog http://www.freakle.com - The Search Freak 2010/12/16 Nikos Balkanas nbalka...@gmail.com Hi, That should not be your problem. MOs (including DLRs) run on a different thread than your MTs, even use completely different queues and structures. Even network traffic is on a seperate cable (assuming full duplex operation). The presence of one shouldn't affect the other. BR, Nikos - Original Message - From: JimSG jimmy.gar...@laprensa.hn To: users@kannel.org Sent: Wednesday, December 15, 2010 7:15 PM Subject: Give outgoing messages priority over incoming Hello, We activated the dlr a while ago and it works, but we have come with a next situation: Example: A user sends 30,000 sms and a couple of minutes later another user sends 20,000 sms, it sends a couple thousands sms but it stops because it starts receving the dlr and then it starts sending againg and than it stops to recieve and so on... Im using a dlr mask = 19 Can i give priority to outgoing messages over incoming messages? -- View this message in context: http://old.nabble.com/Give-outgoing-messages-priority-over-incoming-tp30465870p30465870.html Sent from the Kannel - User mailing list archive at Nabble.com.
Re: Kannel
You need to configure those parameters as meta-data, and pass them on the request. Read the meta-data section on the UG for the details. Regards, Alex On Wed, Dec 15, 2010 at 5:26 PM, Paul Harrison c...@austin.rr.com wrote: I get the following error: 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. How do I fix this? UG? Thanks, Paul *From:* Abdul Basit [mailto:basit.e...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:15 AM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Good. keep on reading UG. On Wed, Dec 15, 2010 at 9:10 PM, Paul Harrison c...@austin.rr.com wrote: I start kannel using the following code. /usr/local/sbin/bearerbox -v 1 --pid-file /var/run/kannel.pid /usr/local/etc/smskannel.conf sleep 5 /usr/local/sbin/smsbox -v 1 /usr/local/etc/smskannel.conf Thanks, Paul *From:* Paul Harrison [mailto:c...@austin.rr.com] *Sent:* Wednesday, December 15, 2010 10:02 AM *To:* users@kannel.org *Subject:* Kannel Hi Team, I downloaded Kannel using the following options. SVN access to source code... svn co https://svn.kannel.org/project/trunkhttps://svn.kannel.org/%3cproject%3e/trunk Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters. url I’m using: http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt When I invoke the above url. I get the below error message : [r...@node01 etc]# 2010-12-15 10:56:34 [30507] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.1.116 2010-12-15 10:56:34 [30507] [3] INFO: sendsms used by tester 2010-12-15 10:56:34 [30507] [3] INFO: sendsms sender:tester:53985 (192.168.1.116) to:15126366987 msg:hello from local 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. Can someone please help me? It would be greatly appreciated. Thanks, Paul -- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
Re: Kannel
Can you provide log entries showing the submit_sm PDU and surroundings? Regards, Alex On Wed, Dec 15, 2010 at 6:50 PM, Paul Harrison c...@austin.rr.com wrote: I have been picking at this for a few days now. I have no clue why I keep getting that error as I’m passing the meta data in the request. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Paul Harrison *Sent:* Wednesday, December 15, 2010 10:38 AM *To:* 'Alejandro Guerrieri' *Cc:* users@kannel.org *Subject:* RE: Kannel I read the UG on that. I’m passing the meta-data but I still get the error from the below email in red. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt Any help is greatly appreciated. *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:35 AM *To:* Paul Harrison *Cc:* Abdul Basit; users@kannel.org *Subject:* Re: Kannel You need to configure those parameters as meta-data, and pass them on the request. Read the meta-data section on the UG for the details. Regards, Alex On Wed, Dec 15, 2010 at 5:26 PM, Paul Harrison c...@austin.rr.com wrote: I get the following error: 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. How do I fix this? UG? Thanks, Paul *From:* Abdul Basit [mailto:basit.e...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:15 AM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Good. keep on reading UG. On Wed, Dec 15, 2010 at 9:10 PM, Paul Harrison c...@austin.rr.com wrote: I start kannel using the following code. /usr/local/sbin/bearerbox -v 1 --pid-file /var/run/kannel.pid /usr/local/etc/smskannel.conf sleep 5 /usr/local/sbin/smsbox -v 1 /usr/local/etc/smskannel.conf Thanks, Paul *From:* Paul Harrison [mailto:c...@austin.rr.com] *Sent:* Wednesday, December 15, 2010 10:02 AM *To:* users@kannel.org *Subject:* Kannel Hi Team, I downloaded Kannel using the following options. SVN access to source code... svn co https://svn.kannel.org/project/trunkhttps://svn.kannel.org/%3cproject%3e/trunk Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters. url I’m using: http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt When I invoke the above url. I get the below error message : [r...@node01 etc]# 2010-12-15 10:56:34 [30507] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.1.116 2010-12-15 10:56:34 [30507] [3] INFO: sendsms used by tester 2010-12-15 10:56:34 [30507] [3] INFO: sendsms sender:tester:53985 (192.168.1.116) to:15126366987 msg:hello from local 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. Can someone please help me? It would be greatly appreciated. Thanks, Paul -- Regards, Abdul Basit | +92 32 1416 4196 | +92 30 0841 1445
Re: Kannel
Hrm, the meta-data seems to be all there. Can you post your smpp-tlv groups? Regards, Alex On Wed, Dec 15, 2010 at 8:02 PM, Paul Harrison c...@austin.rr.com wrote: http://www.curesport.com/smsbox.log http://www.curesport.com/kannel_access_log.txt http://www.curesport.com/stdout.txt Please let me know if you need anything else. Thank You, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 12:09 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Can you provide log entries showing the submit_sm PDU and surroundings? Regards, Alex On Wed, Dec 15, 2010 at 6:50 PM, Paul Harrison c...@austin.rr.com wrote: I have been picking at this for a few days now. I have no clue why I keep getting that error as I’m passing the meta data in the request. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Paul Harrison *Sent:* Wednesday, December 15, 2010 10:38 AM *To:* 'Alejandro Guerrieri' *Cc:* users@kannel.org *Subject:* RE: Kannel I read the UG on that. I’m passing the meta-data but I still get the error from the below email in red. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt Any help is greatly appreciated. *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:35 AM *To:* Paul Harrison *Cc:* Abdul Basit; users@kannel.org *Subject:* Re: Kannel You need to configure those parameters as meta-data, and pass them on the request. Read the meta-data section on the UG for the details. Regards, Alex On Wed, Dec 15, 2010 at 5:26 PM, Paul Harrison c...@austin.rr.com wrote: I get the following error: 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. How do I fix this? UG? Thanks, Paul *From:* Abdul Basit [mailto:basit.e...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:15 AM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Good. keep on reading UG. On Wed, Dec 15, 2010 at 9:10 PM, Paul Harrison c...@austin.rr.com wrote: I start kannel using the following code. /usr/local/sbin/bearerbox -v 1 --pid-file /var/run/kannel.pid /usr/local/etc/smskannel.conf sleep 5 /usr/local/sbin/smsbox -v 1 /usr/local/etc/smskannel.conf Thanks, Paul *From:* Paul Harrison [mailto:c...@austin.rr.com] *Sent:* Wednesday, December 15, 2010 10:02 AM *To:* users@kannel.org *Subject:* Kannel Hi Team, I downloaded Kannel using the following options. SVN access to source code... svn co https://svn.kannel.org/project/trunkhttps://svn.kannel.org/%3cproject%3e/trunk Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters. url I’m using: http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt When I invoke the above url. I get the below error message : [r...@node01 etc]# 2010-12-15 10:56:34 [30507] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 192.168.1.116 2010-12-15 10:56:34 [30507] [3] INFO: sendsms used by tester 2010-12-15 10:56:34 [30507] [3] INFO: sendsms sender:tester:53985 (192.168.1.116) to:15126366987 msg:hello from local 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either
Re: Kannel
[FID:] [META:?smpp-tlv?MBoperator=3... Ah! You're using smpp-tlv, change it for smpp: ?smpp?MBoperator... The smpp-tlv groups seems to be fine, change that and tell me how it goes. Regards, Alex On Wed, Dec 15, 2010 at 8:39 PM, Paul Harrison c...@austin.rr.com wrote: Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters(smpp-tlv). *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 1:22 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Hrm, the meta-data seems to be all there. Can you post your smpp-tlv groups? Regards, Alex On Wed, Dec 15, 2010 at 8:02 PM, Paul Harrison c...@austin.rr.com wrote: http://www.curesport.com/smsbox.log http://www.curesport.com/kannel_access_log.txt http://www.curesport.com/stdout.txt Please let me know if you need anything else. Thank You, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 12:09 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Can you provide log entries showing the submit_sm PDU and surroundings? Regards, Alex On Wed, Dec 15, 2010 at 6:50 PM, Paul Harrison c...@austin.rr.com wrote: I have been picking at this for a few days now. I have no clue why I keep getting that error as I’m passing the meta data in the request. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Paul Harrison *Sent:* Wednesday, December 15, 2010 10:38 AM *To:* 'Alejandro Guerrieri' *Cc:* users@kannel.org *Subject:* RE: Kannel I read the UG on that. I’m passing the meta-data but I still get the error from the below email in red. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt Any help is greatly appreciated. *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:35 AM *To:* Paul Harrison *Cc:* Abdul Basit; users@kannel.org *Subject:* Re: Kannel You need to configure those parameters as meta-data, and pass them on the request. Read the meta-data section on the UG for the details. Regards, Alex On Wed, Dec 15, 2010 at 5:26 PM, Paul Harrison c...@austin.rr.com wrote: I get the following error: 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. How do I fix this? UG? Thanks, Paul *From:* Abdul Basit [mailto:basit.e...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:15 AM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Good. keep on reading UG. On Wed, Dec 15, 2010 at 9:10 PM, Paul Harrison c...@austin.rr.com wrote: I start kannel using the following code. /usr/local/sbin/bearerbox -v 1 --pid-file /var/run/kannel.pid /usr/local/etc/smskannel.conf sleep 5 /usr/local/sbin/smsbox -v 1 /usr/local/etc/smskannel.conf Thanks, Paul *From:* Paul Harrison [mailto:c...@austin.rr.com] *Sent:* Wednesday, December 15, 2010 10:02 AM *To:* users@kannel.org *Subject:* Kannel Hi Team, I downloaded Kannel using the following options. SVN access to source code... svn co https://svn.kannel.org/project/trunkhttps://svn.kannel.org/%3cproject%3e/trunk Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters. url I’m using: http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt When I invoke the above url. I get the below error message : [r...@node01 etc]# 2010-12-15 10:56:34 [30507] [3] INFO: smsbox: Got HTTP request
Re: Kannel
Glad it helped :) I don't believe the warning has nothing to do with the problem. Ask mblox again, you might be missing some other parameter or sending the wrong values. Regards, Alex On Wed, Dec 15, 2010 at 9:14 PM, Paul Harrison c...@austin.rr.com wrote: WOW, that was is it…. It works! One other issue. If I pass the service id and program then it fails. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt 2010-12-15 15:08:50 [865] [3] INFO: sendsms sender:tester:54322 (192.168.1.116) to:1512333 msg:hello from local 2010-12-15 15:08:50 [851] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 15:08:50 [851] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. 2010-12-15 15:08:50 send-SMS request added - sender:tester:54322 192.168.1.116 target:1512333 request: 'hello from local' 2010-12-15 15:08:50 FAILED Send SMS [SMSC:psms] [SVC:tester] [ACT:] [BINF:] [FID:] [META:?smpp?MBoperator=31003MBbilling=0MBserviceId=26330MBprogram=stdrt] [from:54322] [to:1512333] [flags:-1:0:-1:-1:-1] [msg:16:hello from local] [udh:0: Any idea why? Thanks, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 1:58 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel [FID:] [META:?smpp-tlv?MBoperator=3... Ah! You're using smpp-tlv, change it for smpp: ?smpp?MBoperator... The smpp-tlv groups seems to be fine, change that and tell me how it goes. Regards, Alex On Wed, Dec 15, 2010 at 8:39 PM, Paul Harrison c...@austin.rr.com wrote: Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters(smpp-tlv). *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 1:22 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Hrm, the meta-data seems to be all there. Can you post your smpp-tlv groups? Regards, Alex On Wed, Dec 15, 2010 at 8:02 PM, Paul Harrison c...@austin.rr.com wrote: http://www.curesport.com/smsbox.log http://www.curesport.com/kannel_access_log.txt http://www.curesport.com/stdout.txt Please let me know if you need anything else. Thank You, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 12:09 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Can you provide log entries showing the submit_sm PDU and surroundings? Regards, Alex On Wed, Dec 15, 2010 at 6:50 PM, Paul Harrison c...@austin.rr.com wrote: I have been picking at this for a few days now. I have no clue why I keep getting that error as I’m passing the meta data in the request. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Paul Harrison *Sent:* Wednesday, December 15, 2010 10:38 AM *To:* 'Alejandro Guerrieri' *Cc:* users@kannel.org *Subject:* RE: Kannel I read the UG on that. I’m passing the meta-data but I still get the error from the below email in red. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt Any help is greatly appreciated. *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:35 AM *To:* Paul Harrison *Cc:* Abdul Basit; users@kannel.org *Subject:* Re: Kannel You need to configure those parameters as meta-data, and pass them on the request. Read the meta-data section on the UG for the details. Regards, Alex On Wed, Dec 15, 2010 at 5:26 PM, Paul Harrison c...@austin.rr.com wrote: I get the following error: 2010-12-15 10:56:34 [30493] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 10:56:34 [30493] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. I talked to mblox and they said I’m not passing the operator and billing information to them. I doubt they are getting the MBserviceid and MBProgram either. Mblox now requires the tag program=stdrt. How do I fix this? UG? Thanks, Paul *From:* Abdul
Re: Kannel
Yes, and you can access any TLV's mblox might send (assuming you defined them on your config of course) by using the %D parameter. I'm glad it helped :) Regards, Alex On Wed, Dec 15, 2010 at 10:12 PM, Paul Harrison c...@austin.rr.com wrote: I got with mblox and it works now. Thank you so much! Real quick, messages coming from handset to kannel. This will stay the same correct? I can still use the below information in my smskannel.conf ? post-url = http://172.16.94.111/sms_response_parent.html?body=%aopid=%mtime=%tMSISDN=%precipient=%Pcing=%Fhttp://172.16.94.111/sms_response_parent.html?body=%25aopid=%25mtime=%25tMSISDN=%25precipient=%25Pcing=%25F Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 2:28 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Glad it helped :) I don't believe the warning has nothing to do with the problem. Ask mblox again, you might be missing some other parameter or sending the wrong values. Regards, Alex On Wed, Dec 15, 2010 at 9:14 PM, Paul Harrison c...@austin.rr.com wrote: WOW, that was is it…. It works! One other issue. If I pass the service id and program then it fails. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt 2010-12-15 15:08:50 [865] [3] INFO: sendsms sender:tester:54322 (192.168.1.116) to:1512333 msg:hello from local 2010-12-15 15:08:50 [851] [7] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2010-12-15 15:08:50 [851] [7] ERROR: SMPP[psms]: SMSC returned error code 0x042a (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. 2010-12-15 15:08:50 send-SMS request added - sender:tester:54322 192.168.1.116 target:1512333 request: 'hello from local' 2010-12-15 15:08:50 FAILED Send SMS [SMSC:psms] [SVC:tester] [ACT:] [BINF:] [FID:] [META:?smpp?MBoperator=31003MBbilling=0MBserviceId=26330MBprogram=stdrt] [from:54322] [to:1512333] [flags:-1:0:-1:-1:-1] [msg:16:hello from local] [udh:0: Any idea why? Thanks, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 1:58 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel [FID:] [META:?smpp-tlv?MBoperator=3... Ah! You're using smpp-tlv, change it for smpp: ?smpp?MBoperator... The smpp-tlv groups seems to be fine, change that and tell me how it goes. Regards, Alex On Wed, Dec 15, 2010 at 8:39 PM, Paul Harrison c...@austin.rr.com wrote: Smskannel.conf file: http://www.curesport.com/smskannel.conf kannel.conf file: http://www.curesport.com/kannel.conf In the smskannel.conf. I defined the mblox parameters(smpp-tlv). *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 1:22 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Hrm, the meta-data seems to be all there. Can you post your smpp-tlv groups? Regards, Alex On Wed, Dec 15, 2010 at 8:02 PM, Paul Harrison c...@austin.rr.com wrote: http://www.curesport.com/smsbox.log http://www.curesport.com/kannel_access_log.txt http://www.curesport.com/stdout.txt Please let me know if you need anything else. Thank You, Paul *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 12:09 PM *To:* Paul Harrison *Cc:* users@kannel.org *Subject:* Re: Kannel Can you provide log entries showing the submit_sm PDU and surroundings? Regards, Alex On Wed, Dec 15, 2010 at 6:50 PM, Paul Harrison c...@austin.rr.com wrote: I have been picking at this for a few days now. I have no clue why I keep getting that error as I’m passing the meta data in the request. *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Paul Harrison *Sent:* Wednesday, December 15, 2010 10:38 AM *To:* 'Alejandro Guerrieri' *Cc:* users@kannel.org *Subject:* RE: Kannel I read the UG on that. I’m passing the meta-data but I still get the error from the below email in red. http://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=12345text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrthttp://192.168.1.103:13013/cgi-bin/sendsms?password=foobarsmsc=psmsto=1512333username=testerfrom=54322text=hello+from+localmeta-data=%3Fsmpp-tlv%3FMBoperator%3D31003%26MBbilling%3D0%26MBserviceId%3D26330%26MBprogram%3Dstdrt Any help is greatly appreciated. *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Wednesday, December 15, 2010 10:35
Re: SQLBox
on meta-data? Yes indeed. Regards, Alex On Mon, Nov 29, 2010 at 8:07 PM, Kenny ken.bell...@gmail.com wrote: Hi Alex, If a custom field is included send_sms, would the value be moved to sent_sms ? -- Regards Kenny On Thu, Nov 18, 2010 at 1:52 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: You should add an arbitrary id to your dlr-url, that's the usual way to do it. Hope it helps. Alex On Thu, Nov 18, 2010 at 11:43 AM, James E jam...@gmail.com wrote: Hi, Thanks for your replies. Is there a way when inserting into the Send_sms table, to match it to the DLR in the sent_sms? At the moment, I see no linking between the MT and DLR in the sent_sms table. Regards, J On Thu, Nov 18, 2010 at 5:14 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: James, No, it doesn't work like that. The DLR message actually comes from the carrier, so it'll insert only the information from that message. You'll get your BINFO on the sent_sms copy of the message you've sent, but not on the DLR's coming from the carrier. You could, however, pass the value you're storing on the BINFO as a parameter on the dlr-url, and that way you'll be able to get it when kannel hits the dlr-url. Hope it helps, Alex On Thu, Nov 18, 2010 at 7:10 AM, James E jam...@gmail.com wrote: Hi, I am just wondering, if I enter BINFO into the send_sms table, shouldnt it be carried and inserted into the sent_sms table as well in the DLR info? In my attempts it isnt doing this. Regards, J
Re: SQLBox
No, the queries are static, it won't copy any fields not belonging to sqlbox. Regards, Alex On Mon, Nov 29, 2010 at 10:26 PM, Kenny ken.bell...@gmail.com wrote: not on metadata.. i mean adding a new table `field` to both send_sms and sent_sms -- Regards Kenny On Mon, Nov 29, 2010 at 8:08 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: on meta-data? Yes indeed. Regards, Alex On Mon, Nov 29, 2010 at 8:07 PM, Kenny ken.bell...@gmail.com wrote: Hi Alex, If a custom field is included send_sms, would the value be moved to sent_sms ? -- Regards Kenny On Thu, Nov 18, 2010 at 1:52 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: You should add an arbitrary id to your dlr-url, that's the usual way to do it. Hope it helps. Alex On Thu, Nov 18, 2010 at 11:43 AM, James E jam...@gmail.com wrote: Hi, Thanks for your replies. Is there a way when inserting into the Send_sms table, to match it to the DLR in the sent_sms? At the moment, I see no linking between the MT and DLR in the sent_sms table. Regards, J On Thu, Nov 18, 2010 at 5:14 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: James, No, it doesn't work like that. The DLR message actually comes from the carrier, so it'll insert only the information from that message. You'll get your BINFO on the sent_sms copy of the message you've sent, but not on the DLR's coming from the carrier. You could, however, pass the value you're storing on the BINFO as a parameter on the dlr-url, and that way you'll be able to get it when kannel hits the dlr-url. Hope it helps, Alex On Thu, Nov 18, 2010 at 7:10 AM, James E jam...@gmail.com wrote: Hi, I am just wondering, if I enter BINFO into the send_sms table, shouldnt it be carried and inserted into the sent_sms table as well in the DLR info? In my attempts it isnt doing this. Regards, J
Re: [resend] Sending SMS with UDH results in BinaryMessage
Messages with UDH are actually binary in SMS terms. Maybe J2ME behaves the same? Regards, Alex BlackBerry de movistar, allí donde estés está tu oficin@ -Original Message- From: Peter Sabaini pe...@sabaini.at Sender: users-boun...@kannel.org Date: Wed, 24 Nov 2010 10:00:05 To: users@kannel.org Subject: [resend] Sending SMS with UDH results in BinaryMessage Resending -- anyone with J2ME experience here? Thanks alot!\ -- Hello list, I use the sendsms interface to send SMS with a UDH to set the destination port. Setting the port works, but one oddity remains -- the J2ME platform returns a com.sun.midp.io.j2me.sms.BinaryObject instead of a TextObject in this case. Does anyone know how this behaviour is triggered? The message body only contains ASCII... Thanks, peter. -- http://sabaini.at http://blog.sabaini.at
Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug
Sqlbox now uses url-encode for msgdata and udhdata, this shouldn't be an issue. I'll try to reproduce the error locally and let you know what I find. Are you using latest sqlbox and kannel? Regards, Alex On Fri, Nov 19, 2010 at 11:24 AM, Peter p...@locosms.gr wrote: Willie. Thank u, the patch is not commited I tested with the patch but still get 2010-11-19 12:19:47 [14060] [3] DEBUG: smsbox_to_bearerbox: sms received 2010-11-19 12:19:48 [14060] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1365419169 sub:001 dlvrd:001 submit date:1011191020 done date:1011191020 sta' at line 1 2010-11-19 12:19:50 [14060] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1365419169 sub:001 dlvrd:001 submit date:1011191120 done date:1011191020 sta' at line 1 ... Alejandro can you comment on that? Is there a way out. Στις 19-11-2010, ημέρα Παρ, και ώρα 17:05 +0700, ο/η Willy Mularto έγραψε: static Octstr *get_string_value_or_return_null(Octstr *str) { static Octstr *nul = NULL; if (str == NULL) { return octstr_create(NULL); } if (octstr_compare(str, octstr_imm()) == 0) { return octstr_create(NULL); } octstr_replace(str, octstr_imm(\\), octstr_imm()); octstr_replace(str, octstr_imm(\'), octstr_imm(\\\')); if (NULL == nul) { nul = octstr_create(); octstr_append_char(nul, 0x00); } octstr_replace(str, nul, octstr_imm(\0)); return octstr_format(\'%S\', str); } -- *Dr. Peter Kontopoulos* CTO *LOCOTEL SA* 2, Parnassou St. 10561 Athens, GREECE *T:* +30 210 3258 350 *F:* +30 210 3258 359 www.locotel.grwww.locosms.gr -- Email Disclaimer The information in this email is confidential and is intended solely for the addressee(s). If you have received this transmission in error, and you are not an intended recipient, be aware that any disclosure, copying, distribution or use of this transmission or its contents is prohibited. Furthermore, you are kindly requested to send us back the original message at the address portmas...@locotel.gr, and delete the message from your system immediately. Internet communications are not secure and therefore LOCOTEL SA does not accept legal responsibility for the contents of this message and for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of LOCOTEL SA. Thank you, LOCOTEL SA *Think Before you Print*
Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug
It should work fine now, I've tested it :) 2010/11/19 Kenny ken.bell...@gmail.com Alex...that's fantastic. :) Willy.. have you tested this with wappush? Am going to do that presently. -- Regards Kenny 2010/11/19 Alejandro Guerrieri alejandro.guerri...@gmail.com With the latest version, yes. It's mentioned on the UPGRADE file: * IMPORTANT NOTICE * If you're upgrading from a version BEFORE 2010-11-11 (0.7.x and lower), please note that the format for the msgdata and udhdata columns is now url-encoded. That probably means that if you use inserts on send_sms to send MT, YOU WILL NEED TO MODIFY YOUR CODE TO URLENCODE THE MESSAGES FIRST. Regards, Alex 2010/11/19 Kenny ken.bell...@gmail.com Alex, Are you saying one has to url-encode before passing data into msgdata and udhdata? Please confirm. -- Regards Kenny 2010/11/19 Alejandro Guerrieri alejandro.guerri...@gmail.com Sqlbox now uses url-encode for msgdata and udhdata, this shouldn't be an issue. I'll try to reproduce the error locally and let you know what I find. Are you using latest sqlbox and kannel? Regards, Alex On Fri, Nov 19, 2010 at 11:24 AM, Peter p...@locosms.gr wrote: Willie. Thank u, the patch is not commited I tested with the patch but still get 2010-11-19 12:19:47 [14060] [3] DEBUG: smsbox_to_bearerbox: sms received 2010-11-19 12:19:48 [14060] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1365419169 sub:001 dlvrd:001 submit date:1011191020 done date:1011191020 sta' at line 1 2010-11-19 12:19:50 [14060] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1365419169 sub:001 dlvrd:001 submit date:1011191120 done date:1011191020 sta' at line 1 ... Alejandro can you comment on that? Is there a way out. Στις 19-11-2010, ημέρα Παρ, και ώρα 17:05 +0700, ο/η Willy Mularto έγραψε: static Octstr *get_string_value_or_return_null(Octstr *str) { static Octstr *nul = NULL; if (str == NULL) { return octstr_create(NULL); } if (octstr_compare(str, octstr_imm()) == 0) { return octstr_create(NULL); } octstr_replace(str, octstr_imm(\\), octstr_imm()); octstr_replace(str, octstr_imm(\'), octstr_imm(\\\')); if (NULL == nul) { nul = octstr_create(); octstr_append_char(nul, 0x00); } octstr_replace(str, nul, octstr_imm(\0)); return octstr_format(\'%S\', str); } -- *Dr. Peter Kontopoulos* CTO *LOCOTEL SA* 2, Parnassou St. 10561 Athens, GREECE *T:* +30 210 3258 350 *F:* +30 210 3258 359 www.locotel.grwww.locosms.gr -- Email Disclaimer The information in this email is confidential and is intended solely for the addressee(s). If you have received this transmission in error, and you are not an intended recipient, be aware that any disclosure, copying, distribution or use of this transmission or its contents is prohibited. Furthermore, you are kindly requested to send us back the original message at the address portmas...@locotel.gr, and delete the message from your system immediately. Internet communications are not secure and therefore LOCOTEL SA does not accept legal responsibility for the contents of this message and for any damage whatsoever that is caused by viruses being passed. Any views or opinions presented are solely those of the author and do not necessarily represent those of LOCOTEL SA. Thank you, LOCOTEL SA *Think Before you Print*
Re: SQLBox
James, No, it doesn't work like that. The DLR message actually comes from the carrier, so it'll insert only the information from that message. You'll get your BINFO on the sent_sms copy of the message you've sent, but not on the DLR's coming from the carrier. You could, however, pass the value you're storing on the BINFO as a parameter on the dlr-url, and that way you'll be able to get it when kannel hits the dlr-url. Hope it helps, Alex On Thu, Nov 18, 2010 at 7:10 AM, James E jam...@gmail.com wrote: Hi, I am just wondering, if I enter BINFO into the send_sms table, shouldnt it be carried and inserted into the sent_sms table as well in the DLR info? In my attempts it isnt doing this. Regards, J
Re: SQLBox
You should add an arbitrary id to your dlr-url, that's the usual way to do it. Hope it helps. Alex On Thu, Nov 18, 2010 at 11:43 AM, James E jam...@gmail.com wrote: Hi, Thanks for your replies. Is there a way when inserting into the Send_sms table, to match it to the DLR in the sent_sms? At the moment, I see no linking between the MT and DLR in the sent_sms table. Regards, J On Thu, Nov 18, 2010 at 5:14 PM, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: James, No, it doesn't work like that. The DLR message actually comes from the carrier, so it'll insert only the information from that message. You'll get your BINFO on the sent_sms copy of the message you've sent, but not on the DLR's coming from the carrier. You could, however, pass the value you're storing on the BINFO as a parameter on the dlr-url, and that way you'll be able to get it when kannel hits the dlr-url. Hope it helps, Alex On Thu, Nov 18, 2010 at 7:10 AM, James E jam...@gmail.com wrote: Hi, I am just wondering, if I enter BINFO into the send_sms table, shouldnt it be carried and inserted into the sent_sms table as well in the DLR info? In my attempts it isnt doing this. Regards, J
Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug
It's probably an issue with single quotes on dlr text. Can you provide a full pdu dump for the DLR? Regards, Alex On Thu, Nov 18, 2010 at 6:21 PM, Peter p...@locosms.gr wrote: Dear friends, I found that in the last patch still reproduces 2010-11-18 18:29:01 [10182] [3] DEBUG: smsbox_to_bearerbox: sms received 2010-11-18 18:29:01 [10182] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1219071490 sub:001 dlvrd:001 submit date:1011181629 done date:1011181629 sta' at line 1 2010-11-18 18:29:09 [10182] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1219071490 sub:001 dlvrd:001 submit date:1011181729 done date:1011181629 sta' at line 1 Can you verify that this is a problem of null (or something else?). In this case dlrs are received by our application using smssend == smsbox ==sqlbox==bearer box but records are not inserted in mysql sent-sms table. Please check. Best regards Peter Kontopoulos Στις 14-11-2010, ημέρα Κυρ, και ώρα 19:45 +0700, ο/η Willy Mularto έγραψε: I have used the latest SVN to work with Kannel early 2009 CVS version (1 version before 1.4.3 was released). I found it still reproduce my previous error. I think I need to use the same Kannel SVN as well. So I re apply patch from Rene :) sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 12, 2010, at 9:46 PM, Alejandro Guerrieri wrote: Sure, let me give you a couple of hints: * url-encode msgdata and udhdata, for example: udh = %06%05%04%0B%84%23%F0 msgdata = %1B%06%01%AE%02%05%6A... * You'll probably need to set alt_dcs = 1 Hope it helps, Alex On Fri, Nov 12, 2010 at 3:13 PM, Willy Mularto sangpr...@gmail.com wrote: Will play with it tonight and hope those errors disapear and hopefully no need to use sendsms to send wap push anymore. Many thanks to Alex, Rene and all Kannel project+addons developers. sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 12, 2010, at 9:03 PM, Alejandro Guerrieri wrote: Yes, it url-encodes msgdata and udhdata when saving, and url-decodes when reading. It also allows wap pushes to work btw. Regards, Alex On Fri, Nov 12, 2010 at 2:59 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Does it also encode normal text messages? Because those are the case, here. == Rene *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Friday, 12 November, 2010 14:06 *To:* Rene Kluwen *Cc:* Willy Mularto; Kannel Users *Subject:* Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug Can you try the latest revision? We applied a patch yesterday that url-encodes msgdata and udhdata, I guess it should fix this issue as well. Regards, Alex On Fri, Nov 12, 2010 at 1:52 PM, Rene Kluwen rene.klu...@chimit.nl wrote: This patch should solve the issue. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Rene Kluwen Sent: Friday, 12 November, 2010 13:45 To: 'Willy Mularto'; 'Kannel Users' Subject: RE: SQLBox INSERT INTO MySQL Bug It's not the ' character that is not escaped. Probably you are getting a '\x00' byte in your delivery receipt. I had the same issue with a client. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Willy Mularto Sent: Friday, 12 November, 2010 02:00 To: Kannel Users Subject: SQLBox INSERT INTO MySQL Bug I found some errors in the log like this ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1127445986 sub:001 dlvrd:001 submit date:1011120752 done date:1011120752 sta' at line 1 I think SQLBox failed to escape the ' character when inserting new row. Is there any patch against this error? Thanks. sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ -- *Dr. Peter Kontopoulos* CTO *LOCOTEL SA* 2, Parnassou St. 10561 Athens, GREECE *T:* +30 210 3258 350 *F:* +30 210 3258 359 www.locotel.grwww.locosms.gr -- Email Disclaimer The information in this email is confidential and is intended solely for the addressee(s). If you have received this transmission in error, and you are not an intended recipient, be aware that any disclosure, copying, distribution or use of this transmission or its contents is prohibited. Furthermore, you are kindly requested to send us back the original message at the address portmas...@locotel.gr, and delete the message from your
Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug
Hrm, no, that DLR doesn't even include single quotes, that's an artifact from the log. On Thu, Nov 18, 2010 at 6:51 PM, Peter p...@locosms.gr wrote: Alejandro, I send you the requested dump plus typical log files *... * Στις 18-11-2010, ημέρα Πεμ, και ώρα 18:31 +0100, ο/η Alejandro Guerrieri έγραψε: It's probably an issue with single quotes on dlr text. Can you provide a full pdu dump for the DLR? Regards, Alex On Thu, Nov 18, 2010 at 6:21 PM, Peter p...@locosms.gr wrote: Dear friends, I found that in the last patch still reproduces 2010-11-18 18:29:01 [10182] [3] DEBUG: smsbox_to_bearerbox: sms received 2010-11-18 18:29:01 [10182] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1219071490 sub:001 dlvrd:001 submit date:1011181629 done date:1011181629 sta' at line 1 2010-11-18 18:29:09 [10182] [4] ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1219071490 sub:001 dlvrd:001 submit date:1011181729 done date:1011181629 sta' at line 1 Can you verify that this is a problem of null (or something else?). In this case dlrs are received by our application using smssend == smsbox ==sqlbox==bearer box but records are not inserted in mysql sent-sms table. Please check. Best regards Peter Kontopoulos Στις 14-11-2010, ημέρα Κυρ, και ώρα 19:45 +0700, ο/η Willy Mularto έγραψε: I have used the latest SVN to work with Kannel early 2009 CVS version (1 version before 1.4.3 was released). I found it still reproduce my previous error. I think I need to use the same Kannel SVN as well. So I re apply patch from Rene :) sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 12, 2010, at 9:46 PM, Alejandro Guerrieri wrote: Sure, let me give you a couple of hints: * url-encode msgdata and udhdata, for example: udh = %06%05%04%0B%84%23%F0 msgdata = %1B%06%01%AE%02%05%6A... * You'll probably need to set alt_dcs = 1 Hope it helps, Alex On Fri, Nov 12, 2010 at 3:13 PM, Willy Mularto sangpr...@gmail.com wrote: Will play with it tonight and hope those errors disapear and hopefully no need to use sendsms to send wap push anymore. Many thanks to Alex, Rene and all Kannel project+addons developers. sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 12, 2010, at 9:03 PM, Alejandro Guerrieri wrote: Yes, it url-encodes msgdata and udhdata when saving, and url-decodes when reading. It also allows wap pushes to work btw. Regards, Alex On Fri, Nov 12, 2010 at 2:59 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Does it also encode normal text messages? Because those are the case, here. == Rene *From:* Alejandro Guerrieri [mailto:alejandro.guerri...@gmail.com] *Sent:* Friday, 12 November, 2010 14:06 *To:* Rene Kluwen *Cc:* Willy Mularto; Kannel Users *Subject:* Re: [PATCH] RE: SQLBox INSERT INTO MySQL Bug Can you try the latest revision? We applied a patch yesterday that url-encodes msgdata and udhdata, I guess it should fix this issue as well. Regards, Alex On Fri, Nov 12, 2010 at 1:52 PM, Rene Kluwen rene.klu...@chimit.nl wrote: This patch should solve the issue. -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Rene Kluwen Sent: Friday, 12 November, 2010 13:45 To: 'Willy Mularto'; 'Kannel Users' Subject: RE: SQLBox INSERT INTO MySQL Bug It's not the ' character that is not escaped. Probably you are getting a '\x00' byte in your delivery receipt. I had the same issue with a client. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Willy Mularto Sent: Friday, 12 November, 2010 02:00 To: Kannel Users Subject: SQLBox INSERT INTO MySQL Bug I found some errors in the log like this ERROR: MYSQL: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''id:1127445986 sub:001 dlvrd:001 submit date:1011120752 done date:1011120752 sta' at line 1 I think SQLBox failed to escape the ' character when inserting new row. Is there any patch against this error? Thanks. sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ -- *Dr. Peter Kontopoulos* CTO *LOCOTEL SA* 2, Parnassou St. 10561 Athens, GREECE *T:* +30 210 3258 350 *F:* +30 210 3258 359 www.locotel.grwww.locosms.gr -- Email Disclaimer The information in this email is confidential and is intended solely for the addressee(s). If you have received this transmission in error, and you are not an intended recipient, be aware that any
Re: SQLBox Sent SMS
All patches Renee proposed were already commited afaik. Regards, Alex On Fri, Nov 19, 2010 at 7:58 AM, James E jam...@gmail.com wrote: Hi Will, It is SMPP DLR, cant see any error. Rene, do you have the patch available? Or is it going to be committed to the latest svn soon? Regards, J On Fri, Nov 19, 2010 at 1:42 PM, Willy Mularto sangpr...@gmail.comwrote: Is there any error log? Is it SMPP DLR? If yes then maybe you need a patch provided by Rene. Or you can find it in the devel list archives. sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 19, 2010, at 1:30 PM, James E wrote: Kannel sqlbox version `1.5.0'. Kannel 1.5 (Kannel bearerbox version `svn-r4871'.) J On Fri, Nov 19, 2010 at 1:24 PM, Willy Mularto sangpr...@gmail.comwrote: May we know your Kannel and SQLBox version? sangprabv sangpr...@gmail.com http://www.petitiononline.com/froyo/ On Nov 19, 2010, at 1:15 PM, James E wrote: Hi, I am just wondering if anyone else is experiencing this issue. When we send an sms via sqlbox (send_sms table) the sms gets sent fine, and the MT message is placed in sent_sms. However, on random occasions, no DLR info will be inserted into the sent_sms table, but there is a DLR in the kannel access logs. Also, if I send the same sms again, it works 100%. Regards, J
Re: SMSC returned error code 0x00000407
That's a vendor-specific error, you need to check with the SMSC operator to see what does it mean. Regards, Alex On Tue, Nov 16, 2010 at 4:01 PM, I Gede Wijaya S gwij...@gmail.com wrote: Halo list, I'm using the newest svn version. in my log I got these: 2010-11-16 21:48:21 [20280] [13] DEBUG: boxc_receiver: sms received 2010-11-16 21:48:21 [20280] [13] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: throughput (0.00,0.00) 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: Manually forced source addr ton = 0, source add npi = 1 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: Manually forced dest addr ton = 0, dest add npi = 1 2010-11-16 21:48:21 [20280] [6] DEBUG: new group created `smpp' 2010-11-16 21:48:21 [20280] [6] DEBUG: group=`smpp' key=`shortname' value=`' 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: Sending PDU: 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP PDU 0x1356a680 dump: 2010-11-16 21:48:21 [20280] [6] DEBUG: type_name: submit_sm 2010-11-16 21:48:21 [20280] [6] DEBUG: command_id: 4 = 0x0004 2010-11-16 21:48:21 [20280] [6] DEBUG: command_status: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: sequence_number: 2 = 0x0002 2010-11-16 21:48:21 [20280] [6] DEBUG: service_type: NULL 2010-11-16 21:48:21 [20280] [6] DEBUG: source_addr_ton: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: source_addr_npi: 1 = 0x0001 2010-11-16 21:48:21 [20280] [6] DEBUG: source_addr: x 2010-11-16 21:48:21 [20280] [6] DEBUG: dest_addr_ton: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: dest_addr_npi: 1 = 0x0001 2010-11-16 21:48:21 [20280] [6] DEBUG: destination_addr: xxx 2010-11-16 21:48:21 [20280] [6] DEBUG: esm_class: 3 = 0x0003 2010-11-16 21:48:21 [20280] [6] DEBUG: protocol_id: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: priority_flag: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: schedule_delivery_time: NULL 2010-11-16 21:48:21 [20280] [6] DEBUG: validity_period: NULL 2010-11-16 21:48:21 [20280] [6] DEBUG: registered_delivery: 1 = 0x0001 2010-11-16 21:48:21 [20280] [6] DEBUG: replace_if_present_flag: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: data_coding: 8 = 0x0008 2010-11-16 21:48:21 [20280] [6] DEBUG: sm_default_msg_id: 0 = 0x 2010-11-16 21:48:21 [20280] [6] DEBUG: sm_length: 12 = 0x000c 2010-11-16 21:48:21 [20280] [6] DEBUG: short_message: 2010-11-16 21:48:21 [20280] [6] DEBUG:Octet string at 0x2c0008e0: 2010-11-16 21:48:21 [20280] [6] DEBUG: len: 12 2010-11-16 21:48:21 [20280] [6] DEBUG: size: 13 2010-11-16 21:48:21 [20280] [6] DEBUG: immutable: 0 2010-11-16 21:48:21 [20280] [6] DEBUG: data: 00 6f 00 6b 00 20 00 64 00 65 00 68 .o.k. .d.e.h 2010-11-16 21:48:21 [20280] [6] DEBUG:Octet string dump ends. 2010-11-16 21:48:21 [20280] [6] DEBUG: shortname: 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP PDU dump ends. 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: throughput (1.00,0.00) 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: throughput (1.00,0.00) 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: Got PDU: 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP PDU 0x2c004a70 dump: 2010-11-16 21:48:21 [20280] [6] DEBUG: type_name: submit_sm_resp 2010-11-16 21:48:21 [20280] [6] DEBUG: command_id: 2147483652 = 0x8004 2010-11-16 21:48:21 [20280] [6] DEBUG: command_status: 1031 = 0x0407 2010-11-16 21:48:21 [20280] [6] DEBUG: sequence_number: 2 = 0x0002 2010-11-16 21:48:21 [20280] [6] DEBUG: message_id: NULL 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP PDU dump ends. 2010-11-16 21:48:21 [20280] [6] ERROR: SMPP[testop]: SMSC returned error code 0x0407 (Vendor-specific error, please refer to your SMPP provider) in response to submit_sm. 2010-11-16 21:48:21 [20280] [6] DEBUG: SMSC[testop]: creating DLR message 2010-11-16 21:48:21 [20280] [6] DEBUG: SMSC[testop]: DLR = 2010-11-16 21:48:21 [20280] [6] DEBUG: SMPP[testop]: throughput (1.00,0.00) 2010-11-16 21:48:21 [20280] [14] DEBUG: send_msg: sending msg to box: 127.0.0.1 2010-11-16 21:48:21 [20280] [14] DEBUG: boxc_sender: sent message to 127.0.0.1 2010-11-16 21:48:21 [20280] [13] DEBUG: boxc_receiver: got ack 2010-11-16 21:48:25 [20280] [6] DEBUG: SMPP[testop]: throughput (0.00,0.00) 2010-11-16 21:48:25 [20280] [6] DEBUG: SMPP[testop]: Got PDU: My vendor have give us some parameter, that I've define on smpp-tlv group: group = smpp-tlv name = shortname tag = 0x1400 type = octetstring length = 20 smsc-id = testop group = smpp-tlv name = TX_ID tag = 0x1401 type = integer length = 20 smsc-id = testop group = smpp-tlv name = Content-Type tag = 0x1403 type = octetstring length = 20 smsc-id = testop And send script like this: