I found some diff , but seem all regard force getting values from meta-data
svn diff -r 5110:5164 https://svn.kannel.org/gateway/trunk/gw/smsc/smsc_smpp.c Br , Shabana From: Alexander Malysh [mailto:[email protected]] On Behalf Of [email protected] Sent: Monday, July 11, 2016 3:08 PM To: Ahmed Shabana <[email protected]> Cc: [email protected] Subject: Re: source-add-autodetect not working properly in lastest svn r5164' Hi, I don’t see any changes regarding source autodetect feature and btw. ton=2 (national), npi=1 (isdn) is correct for this msisdn. You always can overwrite ton/npi setting, see Kannel userguide. Alex Am 11.07.2016 um 09:52 schrieb Ahmed Shabana <[email protected]<mailto:[email protected]>>: Find below logs Source address “14692088376” { source_addr_ton: 2 = 0x00000002, source_addr_npi: 1 = 0x00000001 } For latest svn 2016-07-10 13:47:58 [22613] [170] DEBUG: SMPP PDU 0x7fecc4009050 dump: 2016-07-10 13:47:58 [22613] [170] DEBUG: type_name: submit_sm 2016-07-10 13:47:58 [22613] [170] DEBUG: command_id: 4 = 0x00000004 2016-07-10 13:47:58 [22613] [170] DEBUG: command_status: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: sequence_number: 382 = 0x0000017e 2016-07-10 13:47:58 [22613] [170] DEBUG: service_type: NULL 2016-07-10 13:47:58 [22613] [170] DEBUG: source_addr_ton: 2 = 0x00000002 2016-07-10 13:47:58 [22613] [170] DEBUG: source_addr_npi: 1 = 0x00000001 2016-07-10 13:47:58 [22613] [170] DEBUG: source_addr: "14692088376" 2016-07-10 13:47:58 [22613] [170] DEBUG: dest_addr_ton: 1 = 0x00000001 2016-07-10 13:47:58 [22613] [170] DEBUG: dest_addr_npi: 1 = 0x00000001 2016-07-10 13:47:58 [22613] [170] DEBUG: destination_addr: "201003325373" 2016-07-10 13:47:58 [22613] [170] DEBUG: esm_class: 3 = 0x00000003 2016-07-10 13:47:58 [22613] [170] DEBUG: protocol_id: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: priority_flag: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: schedule_delivery_time: NULL 2016-07-10 13:47:58 [22613] [170] DEBUG: validity_period: NULL 2016-07-10 13:47:58 [22613] [170] DEBUG: registered_delivery: 1 = 0x00000001 2016-07-10 13:47:58 [22613] [170] DEBUG: replace_if_present_flag: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: data_coding: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: sm_default_msg_id: 0 = 0x00000000 2016-07-10 13:47:58 [22613] [170] DEBUG: sm_length: 6 = 0x00000006 2016-07-10 13:47:58 [22613] [170] DEBUG: short_message: "hi2222" 2016-07-10 13:47:58 [22613] [170] DEBUG: SMPP PDU dump ends. 2016-07-10 13:47:58 [22613] [170] WARNING: SMPP: PDU NULL terminated string (message_id) has no NULL. 2016-07-10 13:47:58 [22613] [170] DEBUG: SMPP PDU 0x7fecc400a140 dump: 2016-07-10 13:47:58 [22613] [170] DEBUG: type_name: submit_sm_resp 2016-07-10 13:47:58 [22613] [170] DEBUG: command_id: 2147483652 = 0x80000004 2016-07-10 13:47:58 [22613] [170] DEBUG: command_status: 72 = 0x00000048 2016-07-10 13:47:58 [22613] [170] DEBUG: sequence_number: 382 = 0x0000017e 2016-07-10 13:47:58 [22613] [170] DEBUG: message_id: NULL 2016-07-10 13:47:58 [22613] [170] DEBUG: SMPP PDU dump ends. For svn-r5110 “Source address “14692088376” { source_addr_ton: 1 = 0x00000001, source_addr_npi: 0 = 0x00000000 } ” 2016-07-10 13:48:49 [17695] [170] DEBUG: type_name: submit_sm 2016-07-10 13:48:49 [17695] [170] DEBUG: command_id: 4 = 0x00000004 2016-07-10 13:48:49 [17695] [170] DEBUG: command_status: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: sequence_number: 3 = 0x00000003 2016-07-10 13:48:49 [17695] [170] DEBUG: service_type: NULL 2016-07-10 13:48:49 [17695] [170] DEBUG: source_addr_ton: 1 = 0x00000001 2016-07-10 13:48:49 [17695] [170] DEBUG: source_addr_npi: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: source_addr: "14692088376" 2016-07-10 13:48:49 [17695] [170] DEBUG: dest_addr_ton: 1 = 0x00000001 2016-07-10 13:48:49 [17695] [170] DEBUG: dest_addr_npi: 1 = 0x00000001 2016-07-10 13:48:49 [17695] [170] DEBUG: destination_addr: "201003325373" 2016-07-10 13:48:49 [17695] [170] DEBUG: esm_class: 3 = 0x00000003 2016-07-10 13:48:49 [17695] [170] DEBUG: protocol_id: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: priority_flag: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: schedule_delivery_time: NULL 2016-07-10 13:48:49 [17695] [170] DEBUG: validity_period: NULL 2016-07-10 13:48:49 [17695] [170] DEBUG: registered_delivery: 1 = 0x00000001 2016-07-10 13:48:49 [17695] [170] DEBUG: replace_if_present_flag: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: data_coding: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: sm_default_msg_id: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: sm_length: 6 = 0x00000006 2016-07-10 13:48:49 [17695] [170] DEBUG: short_message: "hi2222" 2016-07-10 13:48:49 [17695] [170] DEBUG: SMPP PDU dump ends. 2016-07-10 13:48:49 [17695] [170] DEBUG: SMPP PDU 0x7ff948005330 dump: 2016-07-10 13:48:49 [17695] [170] DEBUG: type_name: submit_sm_resp 2016-07-10 13:48:49 [17695] [170] DEBUG: command_id: 2147483652 = 0x80000004 2016-07-10 13:48:49 [17695] [170] DEBUG: command_status: 0 = 0x00000000 2016-07-10 13:48:49 [17695] [170] DEBUG: sequence_number: 3 = 0x00000003 2016-07-10 13:48:49 [17695] [170] DEBUG: message_id: 2016-07-10 13:48:49 [17695] [170] DEBUG: Octet string at 0x7ff948000e70: 2016-07-10 13:48:49 [17695] [170] DEBUG: len: 22 2016-07-10 13:48:49 [17695] [170] DEBUG: size: 23 2016-07-10 13:48:49 [17695] [170] DEBUG: immutable: 0 2016-07-10 13:48:49 [17695] [170] DEBUG: data: 36 30 30 30 34 32 38 64 35 38 65 35 38 30 66 37 6000428d58e580f7 2016-07-10 13:48:49 [17695] [170] DEBUG: data: 30 62 35 39 33 32 0b5932 2016-07-10 13:48:49 [17695] [170] DEBUG: Octet string dump ends. 2016-07-10 13:48:49 [17695] [170] DEBUG: SMPP PDU dump ends. Br , Shabana From: Alexander Malysh [mailto:[email protected]] On Behalf Of [email protected]<mailto:[email protected]> Sent: Monday, July 11, 2016 10:29 AM To: Ahmed Shabana <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Re: source-add-autodetect not working properly in lastest svn r5164' Hi, it would be more helpful to have detailed description what is in your opinion is not working and some debug logs to this issue. Thanks, Alex Am 10.07.2016 um 13:53 schrieb Ahmed Shabana <[email protected]<mailto:[email protected]>>: Dears at devel, When I run test using the lastest svn version I found that source addr autodetect no working properly . I revert back to Kannel bearerbox version `svn-r5110' and it worked properly . ./bearerbox --version Kannel bearerbox version `svn-r5164'. Build `Jul 10 2016 12:33:09', compiler `4.8.2 20131212 (Red Hat 4.8.2-7)'. System Linux, release 3.10.53-56.140.amzn1.x86_64, version #1 SMP Thu Aug 14 22:00:02 UTC 2014, machine x86_64. Hostname ip-10-164-116-170.ec2.internal, IP 10.164.116.170. Libxml version 2.9.1. Using OpenSSL 1.0.1k-fips 8 Jan 2015. Compiled with MySQL 5.5.38, using MySQL 5.5.38. Using native malloc. Br , Shabana
