Re: Opensmppbox and DLR states
Hi Rene, I know that registered_delivery usually takes only 0 or 1 values. SMPP 3.4 specification (section 5.2.17) provides more including intermediate DLR (bit 5 of registered_delivery). And also message_state (5.2.28) has states like ENROUTE or ACCEPTED. In fact my problem is combination of opensmppbox and HTTP SMSC. I need to notify ESME about fact that message is accepted on HTTP but I have only this intermediate state. And still have no ideas how to resolve it without dirty hacks. Maybe it's reasonable to make simple patch to smsc_http.c to allow simulation of delivered state when message is accepted by this smsc. 2/14/2012 6:56 PM, Rene Kluwen wrote: The smpp protocol only supports two statuses, 0 = one, and 1 = delivered by hand set. *From:*users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Michael Bochkaryov *Sent:* Monday, 13 February, 2012 21:30 *To:* users *Subject:* Opensmppbox and DLR states Hello, Is it possible to request DLR messages to opensmppbox on temporary states like 8 (Delivered to SMSC) ? Seems like dlr-maks is not supported there but may be I have just missed something in manual? The problem is caused by ugly HTTP SMSC that cannot provide final delivery status but ESME waits for something and I want to provide Accepted instead of be silent. Thanks in advance :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua http://www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
Problem with delivery reports
I'm using Kannel(1.5.0) to work on SMPP. Report generating dlr-url on your script. The problem is, I get the status of the operator, they do not reach my script. Here is the log file operator: 2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit]: Got PDU: 2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP PDU 0x9f344f0 dump: 2012-02-15 11:13:50 [7214] [6] DEBUG: type_name: deliver_sm 2012-02-15 11:13:50 [7214] [6] DEBUG: command_id: 5 = 0x0005 2012-02-15 11:13:50 [7214] [6] DEBUG: command_status: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: sequence_number: 14345402 = 0x00dae4ba 2012-02-15 11:13:50 [7214] [6] DEBUG: service_type: NULL 2012-02-15 11:13:50 [7214] [6] DEBUG: source_addr_ton: 1 = 0x0001 2012-02-15 11:13:50 [7214] [6] DEBUG: source_addr_npi: 1 = 0x0001 2012-02-15 11:13:50 [7214] [6] DEBUG: source_addr: 380676220823 2012-02-15 11:13:50 [7214] [6] DEBUG: dest_addr_ton: 5 = 0x0005 2012-02-15 11:13:50 [7214] [6] DEBUG: dest_addr_npi: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: destination_addr: TOSKANA 2012-02-15 11:13:50 [7214] [6] DEBUG: esm_class: 4 = 0x0004 2012-02-15 11:13:50 [7214] [6] DEBUG: protocol_id: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: priority_flag: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: schedule_delivery_time: NULL 2012-02-15 11:13:50 [7214] [6] DEBUG: validity_period: NULL 2012-02-15 11:13:50 [7214] [6] DEBUG: registered_delivery: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: replace_if_present_flag: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: data_coding: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: sm_default_msg_id: 0 = 0x 2012-02-15 11:13:50 [7214] [6] DEBUG: sm_length: 89 = 0x0059 2012-02-15 11:13:50 [7214] [6] DEBUG: short_message: 2012-02-15 11:13:50 [7214] [6] DEBUG:Octet string at 0x9f34be8: 2012-02-15 11:13:50 [7214] [6] DEBUG: len: 89 2012-02-15 11:13:50 [7214] [6] DEBUG: size: 90 2012-02-15 11:13:50 [7214] [6] DEBUG: immutable: 0 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 69 64 3a 53 4d 35 38 33 37 32 30 35 32 31 20 73 id:SM583720521 s 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 75 62 3a 30 30 31 20 64 6c 76 72 64 3a 30 30 31 ub:001 dlvrd:001 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 20 73 75 62 6d 69 74 20 64 61 74 65 3a 31 32 30submit date:120 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 32 31 35 31 31 31 33 20 64 6f 6e 65 20 64 61 74 2151113 done dat 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 65 3a 31 32 30 32 31 35 31 31 31 33 20 73 74 61 e:1202151113 sta 2012-02-15 11:13:50 [7214] [6] DEBUG: data: 74 3a 44 45 4c 49 56 52 44t:DELIVRD 2012-02-15 11:13:50 [7214] [6] DEBUG:Octet string dump ends. 2012-02-15 11:13:50 [7214] [6] DEBUG: message_state: 2 = 0x0002 2012-02-15 11:13:50 [7214] [6] DEBUG: receipted_message_id: SM583720521 2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP PDU dump ends. 2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit] handle_pdu, got DLR 2012-02-15 11:13:50 [7214] [6] DEBUG: SMPP[Astelit]: Couldnot parse DLR string sscanf way,fallback to old way. Please report! 2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: Looking for DLR smsc=Astelit, ts=SM583720521, dst=380676220823, type=1 2012-02-15 11:13:50 [7214] [6] DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 2012-02-15 11:13:50 [7214] [6] DEBUG: column=mask buffer_type=253 max_length=0 length=255 2012-02-15 11:13:50 [7214] [6] DEBUG: column=service buffer_type=253 max_length=0 length=40 2012-02-15 11:13:50 [7214] [6] DEBUG: column=url buffer_type=253 max_length=0 length=255 2012-02-15 11:13:50 [7214] [6] DEBUG: column=source buffer_type=253 max_length=0 length=40 2012-02-15 11:13:50 [7214] [6] DEBUG: column=destination buffer_type=253 max_length=0 length=40 2012-02-15 11:13:50 [7214] [6] DEBUG: column=boxc buffer_type=253 max_length=0 length=40 2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: created DLR message for URL http:///report.php?messageID=2delivery=%dnid=11SMSId=%Isend=%trep=%A 2012-02-15 11:13:50 [7214] [6] DEBUG: removing DLR from database 2012-02-15 11:13:50 [7214] [6] DEBUG: sql: DELETE FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 Why can not he write to the dlr table? This is not the time. Some of the statuses of reach. My config: # -- CORE GROUPE -- group = core wdp-interface-name = * admin-port = 13000 smsbox-port = 13001 admin-password = #admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1;*.*.*.* log-file = /var/log/kannel/bearerbox.log log-level =0 access-log = /var/log/kannel/access.log access-log-clean = false #box-deny-ip = *.*.*.* box-allow-ip =
Re: Problem with delivery reports
2/15/2012 11:30 AM, Valentyn wrote: I'm using Kannel(1.5.0) to work on SMPP. Report generating dlr-url on your script. The problem is, I get the status of the operator, they do not reach my script. Here is the log file operator: 2012-02-15 11:13:50 [7214] [6] DEBUG: DLR[mysql]: created DLR message for URL http:///report.php?messageID=2delivery=%dnid=11SMSId=%Isend=%trep=%A 2012-02-15 11:13:50 [7214] [6] DEBUG: removing DLR from database 2012-02-15 11:13:50 [7214] [6] DEBUG: sql: DELETE FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 Seems like DLR was sent to your report.php script. And then temporary record successfully deleted from dlr table. Do you see requests in your HTTP server access log files ? Why can not he write to the dlr table? This is not the time. Some of the statuses of reach. -- Regards, Michael Bochkaryov www.rattler.kiev.ua
compile time of sqlbox;
Hello to all, My problem is that,, i compile the kannel with this ./configuer --enable-start-stop-daemon --with-mysql --with-mysql make make install then all things are well, but i compile with thread then the db support is disabled. CFLAGS='-pthread' .c/onfiguer CFLAGS='Wall -O2 -g' ./configuer and after this i face the mysql disabled problem,and when i leave the CFLAGS compile process then this process create the sqlbox compile form but not with database SQLBOX. and showing this error. without CFALGS #make config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Leaving directory `/usr/local/Gateway/trunk/gw' make all-recursive make[3]: Entering directory `/usr/local/Gateway/trunk/gw' Making all in gw /bin/sh: line 17: cd: gw: No such file or directory make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Gateway/trunk/gw' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Gateway/trunk/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/trunk' make: *** [all] Error 2 [root@localhost trunk]# make install Making install in gw make[1]: Entering directory `/usr/local/Gateway/trunk/gw' Making install in gw /bin/sh: line 17: cd: gw: No such file or directory make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/trunk/gw' make: *** [install-recursive] Error 1 [root@localhost trunk]# so now please help me to solve this problem. -- Thanks Regards, -Vijay Kumar Dadhich
Re: Problem with delivery reports
In version 1.4.3 there is no problem. And here in the formation of the report there is no record in dlr 02/15/2012 12:46:14 [9579] [6] DEBUG: sql: INSERT INTO `dlr` (`smsc`, `ts`, `source`, `destination`, `service`, `url`, `mask`, `boxc`, `status`) VALUES (?,?,?,?,?,?,?,?, 0) Here, what is with SQL. I dlr table rebuild from scratch. But in forming an answer from the table is nothing to read 2012-02-15 12:46:18 [9579] [6] DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=? LIMIT 1 2012-02-15 12:46:18 [9579] [6] DEBUG: column=mask buffer_type=3 max_length=0 length=10 2012-02-15 12:46:18 [9579] [6] DEBUG: column=service buffer_type=253 max_length=0 length=40 2012-02-15 12:46:18 [9579] [6] DEBUG: column=url buffer_type=253 max_length=0 length=255 2012-02-15 12:46:18 [9579] [6] DEBUG: column=source buffer_type=253 max_length=0 length=40 2012-02-15 12:46:18 [9579] [6] DEBUG: column=destination buffer_type=253 max_length=0 length=40 2012-02-15 12:46:18 [9579] [6] DEBUG: column=boxc buffer_type=253 max_length=0 length=40 Maybe in version 1.5.0 other structure dlr? -- View this message in context: http://old.nabble.com/Problem-with-delivery-reports-tp33327313p33328254.html Sent from the Kannel - User mailing list archive at Nabble.com.
RE: OpenSMPPBox command_status: 13 = 0x0000000d - Invalid SMPP PDU received.
Yes, you are right. This is a bug. == Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Turcol Sent: Wednesday, 15 February, 2012 03:38 To: users@kannel.org Subject: RE: OpenSMPPBox command_status: 13 = 0x000d - Invalid SMPP PDU received. Rene, thanks a lot for your prompt reply, and for the tip about the delimiter. This is what I found, and looks like a sort of bug, and should not happen: If any of the lines above the line that have the information to authenticate the client is missing the last token (source ip address to restrict logins), then the bind will failed (command_status: 13) It wont happen if the line to authenticate the client is above the line that is missing the last token (source ip address to restrict logins) You can duplicate it like this: This will fail: -- system-id-01 password-01 system-type-01 client-02 password-02 locahost 127.0.0.1 nms greenbay mysmsc *.*.*.* This will work: -- system-id-01 password-01 system-type-01 127.0.0.1 client-02 password-02 locahost 127.0.0.1 nms greenbay mysmsc *.*.*.* It does not matter if the delimiter is either a space or tab, as some other people have mentioned in the forum that works with tabs and not with space. They may have moved the authentication line to a different position in the file that make the difference. Again, many thanks for your hard work Rene. -- Rene Kluwen wrote: You have a weird interface-version. But that shouldn't be the problem. Maybe it's a delimiter problem in smpplogins.txt. Not sure. =+= Rene -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Turcol Sent: Tuesday, 14 February, 2012 21:51 To: users@kannel.org Subject: OpenSMPPBox command_status: 13 = 0x000d - Invalid SMPP PDU received. /etc/kannel/smpplogins.txt -- system-id-01 password-01 system-type-01 client-02 password-02 locahost 127.0.0.1 nms greenbay mysmsc *.*.*.* -- View this message in context: http://old.nabble.com/OpenSMPPBox-command_status%3A-13-%3D-0x000d---Inva lid-SMPP-PDU-received.-tp33325028p33326506.html Sent from the Kannel - User mailing list archive at Nabble.com.
RE: Opensmppbox and DLR states
I will look into version 3.4 specifications and see if I can make a patch. == Rene From: Michael Bochkaryov [mailto:michael.bochkar...@gmail.com] On Behalf Of Michael Bochkaryov Sent: Wednesday, 15 February, 2012 09:37 To: Rene Kluwen Cc: 'users' Subject: Re: Opensmppbox and DLR states Hi Rene, I know that registered_delivery usually takes only 0 or 1 values. SMPP 3.4 specification (section 5.2.17) provides more including intermediate DLR (bit 5 of registered_delivery). And also message_state (5.2.28) has states like ENROUTE or ACCEPTED. In fact my problem is combination of opensmppbox and HTTP SMSC. I need to notify ESME about fact that message is accepted on HTTP but I have only this intermediate state. And still have no ideas how to resolve it without dirty hacks. Maybe it's reasonable to make simple patch to smsc_http.c to allow simulation of delivered state when message is accepted by this smsc. 2/14/2012 6:56 PM, Rene Kluwen wrote: The smpp protocol only supports two statuses, 0 = one, and 1 = delivered by hand set. From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Michael Bochkaryov Sent: Monday, 13 February, 2012 21:30 To: users Subject: Opensmppbox and DLR states Hello, Is it possible to request DLR messages to opensmppbox on temporary states like 8 (Delivered to SMSC) ? Seems like dlr-maks is not supported there but may be I have just missed something in manual? The problem is caused by ugly HTTP SMSC that cannot provide final delivery status but ESME waits for something and I want to provide Accepted instead of be silent. Thanks in advance :-) -- Regards, Michael Bochkaryov www.rattler.kiev.ua -- Regards, Michael Bochkaryov www.rattler.kiev.ua
SQLBOX installation problem;
Helllo to all, I am using kannel-1.4.3 version,and i install kannel with mysql storage and this is running successfully. but when i want to instal the SQLBOX then i face a issue imentioned the logs below. i use this process in trunk folder. ./bootstrap ./configuer make make install logs are like this [root@localhost trunk]# make make all-recursive make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk' Making all in gw make[2]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make all-recursive make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making all in gw /bin/sh: line 17: cd: gw: No such file or directory make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk' make: *** [all] Error 2 [root@localhost trunk]# make install Making install in gw make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making install in gw /bin/sh: line 17: cd: gw: No such file or directory make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make: *** [install-recursive] Error 1 [root@localhost trunk]# kindly help me to solve this problem. -- Thanks Regards, -Vijay Kumar Dadhich
Re: pbs with accent with kannel SMPP and OPENSMPPBOX
Hello, I tried but it looks there is still accent characters transmit like , so anybody could please tell me what is the default charset in each module of kannel (eg bearerbox, smsbox, sqlbox, opensmppbox), perhaps the issue is somewhere in this ? I assumed using a kannel 1.5 should be the good way because of the charset correction, but I'm not sure if the charset has been corrected in each module. thanks in advance - Mail original - De: Ahmed Shabana a.shab...@egyptnetwork.com À: info ubichip info.ubic...@free.fr, users@kannel.org Envoyé: Lundi 13 Février 2012 16:11:27 Objet: RE: pbs with accent with kannel SMPP and OPENSMPPBOX I think it may be the BB link that you bind the openSmppBox should have a field called alt-charset = LATIN1 Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Egypt Cell +20 (10) 3325373 | KSA Cell +966 (50) 0259791 Skype_id : AhmedShabana2000 -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of info.ubic...@free.fr Sent: Monday, February 13, 2012 3:45 PM To: users@kannel.org Subject: pbs with accent with kannel SMPP and OPENSMPPBOX Hello, I posted a previous issue, I solved it, this one is a new one : it is a problem with accent, some of accent èéùìòÇÉ€à are shown as ? on the mobile. I got the following architecture : - kannel 1.5.0 (compile with mysql from last SVN) - opensmppbox coming from the addons in the above svn I want to have a kannel machine acting as a SMPP server and then sent traffic to other kannel gw. SMPP client - kannel SMPP Server - Kannel GW[1..4] The kannel SMPP server got connection to Kannel GW1 with SMPP configuration. The kannel SMPP server is acting as a load balancer between the final Kannel GW. It looks the encoding format is not well recognized : I saw the SMPP client is sending ISO8859 caracters but it looks the data.coding value is still 0 which means GSM alphabet. Does there is anything to force in the opensmppbox or SMPP client configuration ? Thanks in advance for your answer 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP PDU dump ends. 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP[laurel]: throughput (0.00,1.00) 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP[laurel]: throughput (0.00,1.00) 2012-02-10 17:02:24 [1615] [6] WARNING: Invalid/Incomplete multibyte sequence at position 12, skeep it. 2012-02-10 17:02:24 [1615] [6] WARNING: Invalid/Incomplete multibyte sequence at position 13, skeep it. 2012-02-10 17:02:24 [1615] [6] WARNING: Invalid/Incomplete multibyte sequence at position 14, skeep it. 2012-02-10 17:02:24 [1615] [6] DEBUG: Found an invalid multibyte sequence at position 15 2012-02-10 17:02:24 [1615] [6] DEBUG: new group created `smpp' 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP[laurel]: Sending PDU: 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP PDU 0x9609d58 dump: 2012-02-10 17:02:24 [1615] [6] DEBUG: type_name: submit_sm 2012-02-10 17:02:24 [1615] [6] DEBUG: command_id: 4 = 0x0004 2012-02-10 17:02:24 [1615] [6] DEBUG: command_status: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: sequence_number: 47 = 0x002f 2012-02-10 17:02:24 [1615] [6] DEBUG: service_type: NULL 2012-02-10 17:02:24 [1615] [6] DEBUG: source_addr_ton: 5 = 0x0005 2012-02-10 17:02:24 [1615] [6] DEBUG: source_addr_npi: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: source_addr: hcn1 2012-02-10 17:02:24 [1615] [6] DEBUG: dest_addr_ton: 2 = 0x0002 2012-02-10 17:02:24 [1615] [6] DEBUG: dest_addr_npi: 1 = 0x0001 2012-02-10 17:02:24 [1615] [6] DEBUG: destination_addr: 0033629814865 2012-02-10 17:02:24 [1615] [6] DEBUG: esm_class: 3 = 0x0003 2012-02-10 17:02:24 [1615] [6] DEBUG: protocol_id: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: priority_flag: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: schedule_delivery_time: NULL 2012-02-10 17:02:24 [1615] [6] DEBUG: validity_period: NULL 2012-02-10 17:02:24 [1615] [6] DEBUG: registered_delivery: 1 = 0x0001 2012-02-10 17:02:24 [1615] [6] DEBUG: replace_if_present_flag: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: data_coding: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: sm_default_msg_id: 0 = 0x 2012-02-10 17:02:24 [1615] [6] DEBUG: sm_length: 15 = 0x000f 2012-02-10 17:02:24 [1615] [6] DEBUG: short_message: 2012-02-10 17:02:24 [1615] [6] DEBUG:Octet string at 0x960a2c8: 2012-02-10 17:02:24 [1615] [6] DEBUG: len: 15 2012-02-10 17:02:24 [1615] [6] DEBUG: size: 16 2012-02-10 17:02:24 [1615] [6] DEBUG: immutable: 0 2012-02-10 17:02:24 [1615] [6] DEBUG: data: 74 65 73 74 20 73 66 72 20 38 3a 20 e2 82 ac test sfr 8: ... 2012-02-10 17:02:24 [1615] [6] DEBUG:Octet string dump ends. 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP PDU dump ends. 2012-02-10 17:02:24 [1615] [6] DEBUG: SMPP[laurel]: throughput limit exceeded (1.00,1.00) 2012-02-10 17:02:25 [1615]
RE: compile time of sqlbox;
I think the solution was using additional option when executing ./configure (as I remember was ./configure --with-kannel-dir ) Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Vijay kumar Dadhich Sent: Wednesday, February 15, 2012 1:39 PM To: users@kannel.org Subject: compile time of sqlbox; Hello to all, My problem is that,, i compile the kannel with this ./configuer --enable-start-stop-daemon --with-mysql --with-mysql make make install then all things are well, but i compile with thread then the db support is disabled. CFLAGS='-pthread' .c/onfiguer CFLAGS='Wall -O2 -g' ./configuer and after this i face the mysql disabled problem,and when i leave the CFLAGS compile process then this process create the sqlbox compile form but not with database SQLBOX. and showing this error. without CFALGS #make config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Leaving directory `/usr/local/Gateway/trunk/gw' make all-recursive make[3]: Entering directory `/usr/local/Gateway/trunk/gw' Making all in gw /bin/sh: line 17: cd: gw: No such file or directory make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Gateway/trunk/gw' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Gateway/trunk/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/trunk' make: *** [all] Error 2 [root@localhost trunk]# make install Making install in gw make[1]: Entering directory `/usr/local/Gateway/trunk/gw' Making install in gw /bin/sh: line 17: cd: gw: No such file or directory make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/trunk/gw' make: *** [install-recursive] Error 1 [root@localhost trunk]# so now please help me to solve this problem. -- Thanks Regards, -Vijay Kumar Dadhich
RE: SQLBOX installation problem;
Try ./configure --help And use the option which include gw lib dir . Best Regards, Ahmed Shabana| System Engineer | Creative Communication Solutions Skype_id : AhmedShabana2000 -Original Message- From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Vijay kumar Dadhich Sent: Wednesday, February 15, 2012 2:49 PM To: users@kannel.org Subject: SQLBOX installation problem; Helllo to all, I am using kannel-1.4.3 version,and i install kannel with mysql storage and this is running successfully. but when i want to instal the SQLBOX then i face a issue imentioned the logs below. i use this process in trunk folder. ./bootstrap ./configuer make make install logs are like this [root@localhost trunk]# make make all-recursive make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk' Making all in gw make[2]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make all-recursive make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making all in gw /bin/sh: line 17: cd: gw: No such file or directory make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk' make: *** [all] Error 2 [root@localhost trunk]# make install Making install in gw make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making install in gw /bin/sh: line 17: cd: gw: No such file or directory make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make: *** [install-recursive] Error 1 [root@localhost trunk]# kindly help me to solve this problem. -- Thanks Regards, -Vijay Kumar Dadhich
Re: Deliver_SM with null fields
On Wed, 2012-02-15 at 08:45, kova...@apollo.lv wrote: Hello, TLV options in config are set, example: group = smpp-tlv name = rut_addr tag = 0x1510 type = octetstring length = 20 About the error - I know what it means, I need to get tlv fields for this response. If I get this command status I need to write all tlv information into database for further logic. Kannel supports this function? If so, how can I get the metadata for my response into database? I have Bearbox , SMSbox , Sqlbox. I don’t have metadata for response, with command status != 0. Sorry, I don't use databases for DLR nor MO/MT so I can't help here. Regards Vit. On Tue, 14 Feb 2012 22:46:29 +0100 Milan P. Stanic m...@arvanta.netwrote: On Tue, 2012-02-14 at 16:04, kova...@apollo.lv wrote: Hello, I’ve done the changes to Kannel, it is working. Got One more problem, when I tester error responses: I don’t Get parsed Meta data from Negative Submit_SM_Resp, it isn’t parsed by bearbox, dlr gets written to database with error code from command status. So if I need to receive TLV metadata from negative response, maybe there is a solution? Did you set smpp-tlv options in config file? Example of Response: OUT 2012-02-14 15:37:12 H command_id nb sp; 0x8004 H command_name SUBMIT_SM_RESP H sequence_number 41 H command_status 1044 message_id = '' rut_addr_ton = 5 0x0003 rut_subscriber_id = '334455253/2' rut_addr = 'fserhWJKDwlqwkejf' LOG: 2012-02-14 15:35:32 [720] [6] Got PDU: 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU 0x9918ae0 dump: 2012-02-14 15:35:32 [720] [6] DEBUG: type_name: submit_sm_resp 2012-02-14 15:35:32 [720] [6] DEBUG: command_id: 2147483652 = 0x8004 2012-02-14 15:35:32 [720] [6] DEBUG: command_status: 1044 = 0x0403 2012-02-14 15:35:32 [720] [6] DEBUG: sequence_number: 42 = 0x002a 2012-02-14 15:35:32 [720] [6] DEBUG: message_id: NULL 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU dump ends. 2012-02-14 15:35:32 [720] [6] ERROR: SMPP[]: SMSC returned error code 0x0453 (Vendor-specific error, please refer to your SMPP provider) in response to submit _sm. You should ask provider what meand 0x0453 error code. It is in the range of 'Reserved for SMSC vendor specific errors'. 2012-02-14 15:35:32 [720] [6] DEBUG: SMSC[x]: creating DLR message Regards Vit. On Fri, 10 Fe b 2012 17:09:42 +0100 Milan P. Stanic m...@arvanta.netwrote: On Fri, 2012-02-10 at 15:24, kova...@apollo.lv wrote: Hello, I’m trying to change File /gw/smsc/smsc_smpp.c Maybe anyone have stept in to such problem, and has an advice where to change the file will be better? I need to receive Deliver SM with 0 fields, so I’m wondering if I catch gt; Delivers With Null source address and change the data of those fields. Most of time after compilation I get segmentation fault.. 1602: dlrmsg = handle_dlr(smpp, pdu-u.deliver_sm.source_addr, pdu-u.deliver_sm.short_message, pdu-u.deliver_sm.message_payload, pdu-u.deliver_sm.receipted_message_id, pdu-u.deliver_sm.message_state , pdu-u.deliver_sm.network_error_code); Here I can catch if I have an empty source address like that: if ( pdu-u.deliver_sm.source_addr == NULL) {} Any help would be appreciated g t; Could you send a patch with your changes and tell which version of Kannel you use as a base for your modifications? And, questions about code modification/change should be posted to the de...@kannel.org, IMHO. Regards. Vit On Tue, 07 Feb 2012 15:46:04 +0200 kova...@apollo.lvwrote: Hi, I’ve stept into a problem, Is it possible to handle Deliver_SM with empty fields except TLV fields?how? I get an Error, that its Null, here is my LOG: 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional parameter tag (0x1506) 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional parameter length read as 5 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configured optional parameter `rut_message_id' 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional parameter tag (0x1508) 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional parameter length read as 1 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configured optional
Re: SQLBOX installation problem;
You must explicitly add --with-kannel-dir /your/path/to/kannel/compiled/dir/ On Feb 15, 2012, at 7:49 PM, Vijay kumar Dadhich wrote: Helllo to all, I am using kannel-1.4.3 version,and i install kannel with mysql storage and this is running successfully. but when i want to instal the SQLBOX then i face a issue imentioned the logs below. i use this process in trunk folder. ./bootstrap ./configuer make make install logs are like this [root@localhost trunk]# make make all-recursive make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk' Making all in gw make[2]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' cd .. /bin/sh ./config.status sb-config.h config.status: creating sb-config.h config.status: sb-config.h is unchanged make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make all-recursive make[3]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making all in gw /bin/sh: line 17: cd: gw: No such file or directory make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[2]: *** [all] Error 2 make[2]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk' make: *** [all] Error 2 [root@localhost trunk]# make install Making install in gw make[1]: Entering directory `/usr/local/Gateway/sqlbox/trunk/gw' Making install in gw /bin/sh: line 17: cd: gw: No such file or directory make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/local/Gateway/sqlbox/trunk/gw' make: *** [install-recursive] Error 1 [root@localhost trunk]# kindly help me to solve this problem. -- Thanks Regards, -Vijay Kumar Dadhich Willy Mularto F300HD+MR18DE (NLC1725)
Re: Deliver_SM with null fields
I use both, Database and GET method for my script. But I don’t see anywhere that TLV fields are parsed by bearbox, I think its logic stops on the command status and does not retrieve tlv fields in that case. I don’t see it in LOG files ether. I’m right? So I need to make a changes to kannel if there is no other way?Regards Vit.On Wed, 15 Feb 2012 21:29:26 +0100 "Milan P. Stanic"wrote: On Wed, 2012-02-15 at 08:45, kova...@apollo.lv wrote: Hello, TLV options in config are set, example: group = smpp-tlv name = rut_addr tag = 0x1510 type = octetstring length = 20 About the error - I know what it means, I need to get tlv fields for this response. If I get this command status I need to write all tlv information into database for further logic. Kannel supports this function? If so, how can I get the metadata for my resp onse into database? I have Bearbox , SMSbox , Sqlbox. I don’t have metadata for response, with command status != 0. Sorry, I don't use databases for DLR nor MO/MT so I can't help here. Regards Vit. On Tue, 14 Feb 2012 22:46:29 +0100 "Milan P. Stanic" wrote: On Tue, 2012-02-14 at 16:04, kova...@apollo.lv wrote: Hello, I’ve done the changes to Kannel, it is working. Got One more problem, when I tester error responses: I don’t Get parsed Meta data from Negative Submit_SM_Resp, it isn’t parsed by bearbox, dlr gets written to database with error t;code from command status. So if I need to receive TLV metadata from negative response, maybe there is a solution? Did you set smpp-tlv options in config file? Example of Response: OUT 2012-02-14 15:37:12 H command_idnb sp; 0x8004 H command_name SUBMIT_SM_RESP H sequence_number 41 H command_status 1044message_id = ''rut_addr_ton bsp; = 5 0x0003rut_subscriber_id = '334455253/2'rut_addr = 'fserhWJKDwlqwkejf' LOG: 2012-02-14 15:35:32 [720] [6] Got PDU: 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU 0x9918ae0 dump: 2012-02-14 15:35:32 [720] [6] DEBUG: type_name: submit_sm_resp 2012-02-14 15:35:32 [720] [6] DEBUG: command_id: 21474 83652 = 0x8004 2012-02-14 15:35:32 [720] [6] DEBUG: command_status: 1044 = 0x0403 2012-02-14 15:35:32 [720] [6] DEBUG: sequence_number: 42 = 0x002a 2012-02-14 15:35:32 [720] [6] DEBUG: message_id: NULL 2012-02-14 15:35:32 [720] [6] DEBUG: SMPP PDU dump ends. 2012-02-14 15:35:32 [720] [6] ERROR: SMPP[]: SMSC returned error code 0x0453 (Vendor-specific error, please refer to your SMPP provider) in response to submit _sm. You should ask provider what meand 0x0453 error code. It is in the range of 'Reserved for SMSC vendor specific err ors'. 2012-02-14 15:35:32 [720] [6] DEBUG: SMSC[x]: creating DLR message Regards Vit. On Fri, 10 Fe b 2012 17:09:42 +0100 "Milan P. Stanic" wrote:On Fri, 2012-02-10 at 15:24, kova...@apollo.lv wrote:Hello, I’m trying to change File /gw/smsc/smsc_smpp.c Maybe anyone have stept in to such problem, and has an advice where tochange the file will be better? I need to receive Deliver SM with 0 fields, so I’m ;wondering if I catch gt; Delivers With Null source address and change the data of those fields.Most of time after compilation I get segmentation fault.. 1602: dlrmsg = handle_dlr(smpp, pdu-u.deliver_sm.source_addr,pdu-u.deliver_sm.short_message, pdu-u.deliver_sm.message_payload, pdu-u.deliver_sm.receipted_message_id, pdu-u.deliver_sm.message_state ,pdu-u.deliver_sm.network_error_code); Here I can catch if I have an empty source address like that: if ( pdu-u.deliver_sm.source_addr == NULL) {} Any help would be appreciated g t; Could you send a patch with your changes and tell which version ofKannel you use as a base for your modifications? And, questions about code modification/change should be posted tothe de...@kannel.org, IMHO. Regards. Vit On Tue, 07 Feb 2012 15:46:04 +0200 wrote: Hi, I’ve stept into a problem, Is it possible to handleDeliver_SM with empty fields except TLV fields?how? I get an Error, that its Null, here is my LOG: 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional parameter tag (0x1506) 2012-02-07 15:04:40 [12259] [6] DEBUG: Optionalparameter length read as 5 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configuredoptional parameter `rut_message_id' 2012-02-07 15:04:40 [12259] [6] DEBUG: Optionalparameter tag (0x1508) 2012-02-07 15:04:40 [12259] [6] DEBUG: Optionalparameter length read as 1 2012-02-07 15:04:40 [12259] [6] DEBUG: Found configuredoptional parameter `rut _report_type' 2012-02-07 15:04:40 [12259] [6] DEBUG: Optionalparameter tag (0x1500) 2012-02-07 15:04:40 [12259] [6] DEBUG: Optional