OPENSMPP LOGIN ISSUE
Hi, I am having issues login into my opensmppbox from a remote kannel gateway. This is my smpplogin.txt precin4 precin4 vma 208.109.186.98 Kannel Config(Remote Server) # SMSC SMPP group = smsc smsc-id = precin4 smsc = smpp host = xx.xxx.xx.xxx port = 2346 receive-port = 2346 smsc-username = precin4 smsc-password = precin4 system-type = VMA interface-version = 52 keepalive = 50 allowed-smsc-id = precin4 transceiver-mode = true msg-id-type = 0x00 throughput = 12 max-pending-submits = 10 wait-ack = 600 OPENSMPP LOG 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP[abcd]: Got PDU: 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP PDU 0x7fe1dd50 dump: 2013-04-10 13:05:14 [20962] [2] DEBUG: type_name: bind_transceiver 2013-04-10 13:05:14 [20962] [2] DEBUG: command_id: 9 = 0x0009 2013-04-10 13:05:14 [20962] [2] DEBUG: command_status: 0 = 0x 2013-04-10 13:05:14 [20962] [2] DEBUG: sequence_number: 1 = 0x0001 2013-04-10 13:05:14 [20962] [2] DEBUG: system_id: precin4 2013-04-10 13:05:14 [20962] [2] DEBUG: password: precin4 2013-04-10 13:05:14 [20962] [2] DEBUG: system_type: VMA 2013-04-10 13:05:14 [20962] [2] DEBUG: interface_version: 82 = 0x0052 2013-04-10 13:05:14 [20962] [2] DEBUG: addr_ton: 0 = 0x 2013-04-10 13:05:14 [20962] [2] DEBUG: addr_npi: 0 = 0x 2013-04-10 13:05:14 [20962] [2] DEBUG: address_range: NULL 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP PDU dump ends. 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP[abcd]: Sending PDU: 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP PDU 0x7fe1d0001050 dump: 2013-04-10 13:05:14 [20962] [2] DEBUG: type_name: bind_transceiver_resp 2013-04-10 13:05:14 [20962] [2] DEBUG: command_id: 2147483657 = 0x8009 2013-04-10 13:05:14 [20962] [2] DEBUG: command_status: 13 = 0x000d 2013-04-10 13:05:14 [20962] [2] DEBUG: sequence_number: 1 = 0x0001 2013-04-10 13:05:14 [20962] [2] DEBUG: system_id: NULL 2013-04-10 13:05:14 [20962] [2] DEBUG: SMPP PDU dump ends. 2013-04-10 13:05:15 [20962] [2] ERROR: Invalid SMPP PDU received. 2013-04-10 13:05:15 [20962] [2] DEBUG: Thread 2 (opensmppbox.c:smpp_to_bearerbox) terminates. 2013-04-10 13:05:16 [20962] [1] DEBUG: Thread 1 (opensmppbox.c:function) terminates. BEARERBOX LOG(remote server) 2013-10-23 12:15:31 [1433] [6] DEBUG: Connecting to xx.xx.xx.xxx 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP[precin4]: Sending PDU: 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP PDU 0x7f0f2c000a10 dump: 2013-10-23 12:15:31 [1433] [6] DEBUG: type_name: bind_transceiver 2013-10-23 12:15:31 [1433] [6] DEBUG: command_id: 9 = 0x0009 2013-10-23 12:15:31 [1433] [6] DEBUG: command_status: 0 = 0x 2013-10-23 12:15:31 [1433] [6] DEBUG: sequence_number: 36 = 0x0024 2013-10-23 12:15:31 [1433] [6] DEBUG: system_id: precin4 2013-10-23 12:15:31 [1433] [6] DEBUG: password: precin4 2013-10-23 12:15:31 [1433] [6] DEBUG: system_type: 2013-10-23 12:15:31 [1433] [6] DEBUG: interface_version: 82 = 0x0052 2013-10-23 12:15:31 [1433] [6] DEBUG: addr_ton: 0 = 0x 2013-10-23 12:15:31 [1433] [6] DEBUG: addr_npi: 0 = 0x 2013-10-23 12:15:31 [1433] [6] DEBUG: address_range: NULL 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP PDU dump ends. 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP[precin4]: Got PDU: 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP PDU 0x7f0f2c000a10 dump: 2013-10-23 12:15:31 [1433] [6] DEBUG: type_name: bind_transceiver_resp 2013-10-23 12:15:31 [1433] [6] DEBUG: command_id: 2147483657 = 0x8009 2013-10-23 12:15:31 [1433] [6] DEBUG: command_status: 13 = 0x000d 2013-10-23 12:15:31 [1433] [6] DEBUG: sequence_number: 36 = 0x0024 2013-10-23 12:15:31 [1433] [6] DEBUG: system_id: NULL 2013-10-23 12:15:31 [1433] [6] DEBUG: SMPP PDU dump ends. 2013-10-23 12:15:31 [1433] [6] ERROR: SMPP[precin4]: SMSC rejected login to transmit, code 0x000d (Bind Failed). 2013-10-23 12:15:31 [1433] [6] ERROR: SMPP[precin4]: Couldn't connect to SMS center (retrying in 10 seconds). What am I doing wrong? Michael
Help Routing from Bearerbox to OpenSMPPBox
Hi, I have setup 2 servers: Server 1: Bearerbox | SMSbox | SQLBox | OpenSMPPBox Server 2: Bearerbox | SMSBox | SQLBox How do I route all sms coming into an SMSC on Server one to server 2m and how do I route the response from Server 2 back to Server 1? Bearerbox 1 = Opensmppbox1 = Bearerbox 2 =SMSBox 2 = and return the response back to Bearerbox 1. How can I achieve this? Michael
Kannel and SSL
Hello all, Does anyone knows if kannel can be compiled using SSL? Is that possible? I read some notes from http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#SSL-ENABLING but I need some more notes if possible. Thank you
Re: Kannel and SSL
Sure it can, the doc said so right? On 23 Oct 2013 22:18, george petrakis gpetra...@gmail.com wrote: Hello all, Does anyone knows if kannel can be compiled using SSL? Is that possible? I read some notes from http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#SSL-ENABLING but I need some more notes if possible. Thank you
Re: dlr
Hi Alvaro, I tried with dlr-mask=31 and i here is what i get on the logs regarding dlr, see below: 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP: 200.85.32.114:5600/5600:w3:VMA]: Got PDU: 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump: 2013-10-23 18:20:41 [2247] [7] DEBUG: type_name: deliver_sm 2013-10-23 18:20:41 [2247] [7] DEBUG: command_id: 5 = 0x0005 2013-10-23 18:20:41 [2247] [7] DEBUG: command_status: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sequence_number: 52081 = 0xcb71 2013-10-23 18:20:41 [2247] [7] DEBUG: service_type: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr_ton: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr_npi: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr: 595981434xx 2013-10-23 18:20:41 [2247] [7] DEBUG: dest_addr_ton: 2 = 0x0002 2013-10-23 18:20:41 [2247] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: destination_addr: 1244 2013-10-23 18:20:41 [2247] [7] DEBUG: esm_class: 4 = 0x0004 2013-10-23 18:20:41 [2247] [7] DEBUG: protocol_id: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: priority_flag: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: schedule_delivery_time: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: validity_period: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: registered_delivery: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: replace_if_present_flag: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: data_coding: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sm_default_msg_id: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sm_length: 121 = 0x0079 2013-10-23 18:20:41 [2247] [7] DEBUG: short_message: 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string at 0x7fdfac000c70: 2013-10-23 18:20:41 [2247] [7] DEBUG: len: 121 2013-10-23 18:20:41 [2247] [7] DEBUG: size: 122 2013-10-23 18:20:41 [2247] [7] DEBUG: immutable: 0 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 69 64 3a 31 30 39 33 39 32 32 39 62 33 39 20 73 id:10939229b39 s 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 75 62 3a 30 30 31 20 64 6c 76 72 64 3a 30 30 31 ub:001 dlvrd:001 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 20 73 75 62 6d 69 74 20 64 61 74 65 3a 31 33 31submit date:131 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 30 32 33 31 38 30 31 20 64 6f 6e 65 20 64 61 74 0231801 done dat 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 65 3a 31 33 31 30 32 33 31 38 30 31 20 73 74 61 e:1310231801 sta 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 74 3a 44 45 4c 49 56 52 44 20 65 72 72 3a 30 20 t:DELIVRD err:0 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 74 65 78 74 3a 6d 65 73 73 61 67 65 20 53 61 62 text:message Sab 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 69 61 73 20 71 75 65 20 74 ias que t 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string dump ends. 2013-10-23 18:20:41 [2247] [7] DEBUG: message_state: 2 = 0x0002 2013-10-23 18:20:41 [2247] [7] DEBUG: receipted_message_id: 10939229b39 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU dump ends. 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP: 200.85.32.114:5600/5600:w3:VMA] handle_pdu, got DLR 2013-10-23 18:20:41 [2247] [7] DEBUG: DLR[internal]: Looking for DLR smsc=SMPP:200.85.32.114:5600/5600:w3:VMA, ts=10939229b39, dst=595981434xxx, type=1 2013-10-23 18:20:41 [2247] [7] WARNING: DLR[internal]: DLR from SMSCSMPP: 200.85.32.114:5600/5600:w3:VMA for DST595981434xxx not found. 2013-10-23 18:20:41 [2247] [7] ERROR: SMPP[SMPP: 200.85.32.114:5600/5600:w3:VMA]: got DLR but could not find message or was not interested in it id10939229b39 dst595981434xxx, type1 Here is what i send to kannel: http://xxx.xxx.xx:13013/cgi-bin/sendsms?username=xxxpassword=xxxto=+595981434xxxfrom=1244binfo=Ytext=bla+bla+bla+bladlr-url=http://xxx.xxx.xxx/sms/api/dlr.php?myId=181type=%ddlr-mask=31 I expect a http call with the type argument set but i got a GET resquest with only myId set: 192.168.1.1 - - [23/Oct/2013:18:20:37 -0300] GET /sms/api/dlr.php?myId=189 HTTP/1.1 200 - Any idea why i do not get the type parameter set back? What i actually need is the command_status of the submit_sm_resp of the corresponding submit_sm i sent. When i look in the bearbox logs i know with the sequence_number the corresponding submit_sm message i sent, and with the command_status on the submit_sm_resp i can check what happened with the message (i know what operator means with different status code), but this process i need to automate and the closest solution i found is using DLR. Thanks for the help. Best On Mon, Oct 21, 2013 at 2:43 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote: Hi Alejandro dlr-mask indicates which reports you want to receive. According to that, you add the values for each status and that is what you use. If you want status 1 and 2 use a value of 3 (1+2). Else try
Re: dlr
Hello Alvaro, Can you try %26type= instead of type= in the Kannel URL ? Best Regards, Le 24 oct. 2013 à 00:18, Alejandro Mussi alemu...@gmail.com a écrit : Hi Alvaro, I tried with dlr-mask=31 and i here is what i get on the logs regarding dlr, see below: 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: Got PDU: 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU 0x7fdfac000a70 dump: 2013-10-23 18:20:41 [2247] [7] DEBUG: type_name: deliver_sm 2013-10-23 18:20:41 [2247] [7] DEBUG: command_id: 5 = 0x0005 2013-10-23 18:20:41 [2247] [7] DEBUG: command_status: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sequence_number: 52081 = 0xcb71 2013-10-23 18:20:41 [2247] [7] DEBUG: service_type: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr_ton: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr_npi: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: source_addr: 595981434xx 2013-10-23 18:20:41 [2247] [7] DEBUG: dest_addr_ton: 2 = 0x0002 2013-10-23 18:20:41 [2247] [7] DEBUG: dest_addr_npi: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: destination_addr: 1244 2013-10-23 18:20:41 [2247] [7] DEBUG: esm_class: 4 = 0x0004 2013-10-23 18:20:41 [2247] [7] DEBUG: protocol_id: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: priority_flag: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: schedule_delivery_time: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: validity_period: NULL 2013-10-23 18:20:41 [2247] [7] DEBUG: registered_delivery: 1 = 0x0001 2013-10-23 18:20:41 [2247] [7] DEBUG: replace_if_present_flag: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: data_coding: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sm_default_msg_id: 0 = 0x 2013-10-23 18:20:41 [2247] [7] DEBUG: sm_length: 121 = 0x0079 2013-10-23 18:20:41 [2247] [7] DEBUG: short_message: 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string at 0x7fdfac000c70: 2013-10-23 18:20:41 [2247] [7] DEBUG: len: 121 2013-10-23 18:20:41 [2247] [7] DEBUG: size: 122 2013-10-23 18:20:41 [2247] [7] DEBUG: immutable: 0 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 69 64 3a 31 30 39 33 39 32 32 39 62 33 39 20 73 id:10939229b39 s 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 75 62 3a 30 30 31 20 64 6c 76 72 64 3a 30 30 31 ub:001 dlvrd:001 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 20 73 75 62 6d 69 74 20 64 61 74 65 3a 31 33 31submit date:131 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 30 32 33 31 38 30 31 20 64 6f 6e 65 20 64 61 74 0231801 done dat 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 65 3a 31 33 31 30 32 33 31 38 30 31 20 73 74 61 e:1310231801 sta 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 74 3a 44 45 4c 49 56 52 44 20 65 72 72 3a 30 20 t:DELIVRD err:0 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 74 65 78 74 3a 6d 65 73 73 61 67 65 20 53 61 62 text:message Sab 2013-10-23 18:20:41 [2247] [7] DEBUG: data: 69 61 73 20 71 75 65 20 74 ias que t 2013-10-23 18:20:41 [2247] [7] DEBUG:Octet string dump ends. 2013-10-23 18:20:41 [2247] [7] DEBUG: message_state: 2 = 0x0002 2013-10-23 18:20:41 [2247] [7] DEBUG: receipted_message_id: 10939229b39 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP PDU dump ends. 2013-10-23 18:20:41 [2247] [7] DEBUG: SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA] handle_pdu, got DLR 2013-10-23 18:20:41 [2247] [7] DEBUG: DLR[internal]: Looking for DLR smsc=SMPP:200.85.32.114:5600/5600:w3:VMA, ts=10939229b39, dst=595981434xxx, type=1 2013-10-23 18:20:41 [2247] [7] WARNING: DLR[internal]: DLR from SMSCSMPP:200.85.32.114:5600/5600:w3:VMA for DST595981434xxx not found. 2013-10-23 18:20:41 [2247] [7] ERROR: SMPP[SMPP:200.85.32.114:5600/5600:w3:VMA]: got DLR but could not find message or was not interested in it id10939229b39 dst595981434xxx, type1 Here is what i send to kannel: http://xxx.xxx.xx:13013/cgi-bin/sendsms?username=xxxpassword=xxxto=+595981434xxxfrom=1244binfo=Ytext=bla+bla+bla+bladlr-url=http://xxx.xxx.xxx/sms/api/dlr.php?myId=181type=%ddlr-mask=31 I expect a http call with the type argument set but i got a GET resquest with only myId set: 192.168.1.1 - - [23/Oct/2013:18:20:37 -0300] GET /sms/api/dlr.php?myId=189 HTTP/1.1 200 - Any idea why i do not get the type parameter set back? What i actually need is the command_status of the submit_sm_resp of the corresponding submit_sm i sent. When i look in the bearbox logs i know with the sequence_number the corresponding submit_sm message i sent, and with the command_status on the submit_sm_resp i can check what happened with the message (i know what operator means with different status code), but this process i need to automate and the closest solution i found is using DLR. Thanks for the help. Best On Mon,