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 = 0x00000005
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   command_status: 0 = 0x00000000
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   sequence_number: 52081 = 0x0000cb71
> 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 = 0x00000001
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   source_addr_npi: 1 = 0x00000001
> 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 = 0x00000002
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   dest_addr_npi: 1 = 0x00000001
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   destination_addr: "1244"
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   esm_class: 4 = 0x00000004
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   protocol_id: 0 = 0x00000000
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   priority_flag: 0 = 0x00000000
> 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 = 0x00000001
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   replace_if_present_flag: 0 = 
> 0x00000000
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   data_coding: 0 = 0x00000000
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_default_msg_id: 0 = 0x00000000
> 2013-10-23 18:20:41 [2247] [7] DEBUG:   sm_length: 121 = 0x00000079
> 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 31    submit 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 = 0x00000002
> 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 
> SMSC<SMPP:200.85.32.114:5600/5600:w3:VMA> for DST<595981434xxx> 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 id<10939229b39> dst<595981434xxx>, type<1>
> 
> Here is what i send to kannel:
> http://xxx.xxx.xx:13013/cgi-bin/sendsms?username=xxx&password=xxx&to=+595981434xxx&from=1244&binfo=YYYYY&text=bla+bla+bla+blaaaaa&dlr-url=http://xxx.xxx.xxx/sms/api/dlr.php?myId=181&type=%d&dlr-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.com> 
> wrote:
> 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 starting
> with 31. It does ask for all available status, included intermediates.
> 
> Manual provides values for other statuses.
> 
> Also note that eventhough you request "all" statuses; its the operator
> who decides which dlrs is willing to send you.... if any :(
> 
> Hope helps
> 
> 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, Oct 21, 2013 at 8:35 AM, Alejandro Mussi <alemu...@gmail.com> wrote:
> > Hi Alvaro,
> >
> > Thanks for the response. I am new using kannel and i think i am missing some
> > info. I also tried sending my own url to the message i submit to kannel.
> > When a send to sms-service cgi i add these two parameters:
> > ..&dlr-url=$dlr_url_encoded&dlr-mask=1+2
> >
> > where $dlr_url_encoded = http://xxx.xxx.xxx.dlr.php?myId=YYY&type=%d
> >
> > Message are sent successfully but i do not get the call back to the url i
> > defined above in order to process.
> >
> > Thanks
> >
> >
> >
> >
> >
> > On Fri, Oct 18, 2013 at 7:56 PM, Alvaro Cornejo <cornejo.alv...@gmail.com>
> > wrote:
> >>
> >> Hi
> >>
> >> The table defined in kannel config is only for kannel usage. kannel
> >> stores dlr there only until message is delivered, then reccord is
> >> deleted. That is why it is normally empty.
> >>
> >> If you do want to store dlrs, you should add your own ulr to the
> >> message you submit to kannel. Then you do whatever you want with that
> >> info. Check user manual for dlr-url and related.
> >>
> >> 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 Fri, Oct 18, 2013 at 2:30 PM, Alejandro Mussi <alemu...@gmail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > I am trying to save dlr on a persistant system in order to check
> >> > messages
> >> > that were successfully delivered or not,  but i am having problems to
> >> > run
> >> > dlr on mysql or using dlr-url. Here is my kannel.conf file
> >> >
> >> > group = core
> >> > admin-port = 13000
> >> > admin-password = xxx
> >> > status-password = xxx
> >> > admin-deny-ip = "*.*.*.*"
> >> > admin-allow-ip = "127.0.0.1"
> >> > smsbox-port = 13001
> >> > #wapbox-port = 13002
> >> > box-deny-ip = "*.*.*.*"
> >> > box-allow-ip = "127.0.0.1"
> >> > wdp-interface-name = "*"
> >> > log-file = "/var/log/kannel/bearerbox.log"
> >> > log-level = 0
> >> >
> >> > group = mysql-connection
> >> > id = mydlr
> >> > host = localhost
> >> > username = xx
> >> > password = xx
> >> > database = xx
> >> > 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
> >> >
> >> >
> >> > Attach goes the dlr table structure.
> >> >
> >> > If I add on the core group dlr-storage = mysql, Kannnel does not start.
> >> >
> >> >
> >> >
> >> > #Using dlr-url
> >> >
> >> > I tried also using dlr-url on sms-service adding the following data:
> >> >
> >> > $url = Constant::$KANNEL_SMS_SENDER_URL .
> >> >
> >> > "to=$to_number&from=$src_number&binfo=$service_type&text=$text_encoded&dlr-url=$dlr_url_encoded&dlr-mask=1+2";
> >> >
> >> > Kannel receives and process the message but i could not get the response
> >> > from kannel to the url i especified.
> >> >
> >> > I tried to add also in kannel.conf dlr-url and dlr-mas (see below) but
> >> > kannel does not start when i add those two lines.
> >> >
> >> >
> >> > group = sms-service
> >> > keyword = default
> >> > get-url =
> >> > "http://xxx.xxx.file.php?binfo=%B&keyword=%k&from=%p&to=%P&text=%a";
> >> > accept-x-kannel-headers = true
> >> > max-messages = 3
> >> > concatenation = true
> >> > catch-all = true
> >> > omit-empty = true
> >> > dlr-url = "http://xxx.xxx.dlr.php?type=%d";
> >> > dlr-mask = 1+2
> >> >
> >> >
> >> >
> >> > Any help with this issue??
> >> >
> >> > Thanks
> >> >
> >> > --
> >> > ---------------------------------------------------------
> >> > Alejandro Mussi Campos Cervera
> >
> >
> >
> >
> > --
> > ---------------------------------------------------------
> > Alejandro Mussi Campos Cervera
> 
> 
> 
> -- 
> ---------------------------------------------------------
> Alejandro Mussi Campos Cervera

Reply via email to