Alejandro.
works fine.

thanks!!!

________________________________
From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2008 10:48 AM
To: Villada, Gustavo
Cc: [email protected]
Subject: Re: trouble with smpp optional parameter

Ah, if you copied the patch from the HTML, the whitespaces are probably wrong.

Try adding --ignore-whitespace and you should be ok.

Hope it helps,

Alejandro

On Tue, Oct 7, 2008 at 11:17 AM, Villada, Gustavo <[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:
Alejandro,
I haven' t access to CVS because security politics :S

I download last night snapshot (Snapshot build starts: Tue Oct  7 06:00:03 CEST 
2008)
but when apply below patch I get lot of errors.

what I doing bad?

$ patch -p0 <parche.patch
patching file gw/urltrans.c
patching file gw/bb_smscconn.c
Hunk #1 succeeded at 92 (offset 1 line).
Hunk #2 succeeded at 647 with fuzz 1 (offset 6 lines).
Hunk #3 succeeded at 846 (offset 1 line).
patching file gw/msg-decl.h
Hunk #1 FAILED at 109.
1 out of 1 hunk FAILED -- saving rejects to file gw/msg-decl.h.rej
patching file gw/smsbox.c
Hunk #1 FAILED at 506.
Hunk #2 FAILED at 596.
Hunk #4 succeeded at 838 with fuzz 2.
Hunk #5 FAILED at 884.
Hunk #8 FAILED at 1146.
Hunk #9 FAILED at 1166.
Hunk #10 FAILED at 1176.
Hunk #12 FAILED at 1196.
Hunk #14 FAILED at 1479.
Hunk #15 FAILED at 1638.
Hunk #16 FAILED at 1983.
Hunk #17 succeeded at 2311 with fuzz 1.
Hunk #18 FAILED at 2495.
Hunk #20 FAILED at 2593.
Hunk #21 succeeded at 2611 with fuzz 1.
Hunk #22 FAILED at 2623.
Hunk #23 FAILED at 2639.
Hunk #24 FAILED at 2647.
Hunk #25 FAILED at 2704.
Hunk #28 FAILED at 2748.
17 out of 28 hunks FAILED -- saving rejects to file gw/smsbox.c.rej
patching file gw/smsc/smpp_pdu.h
patching file gw/smsc/smpp_pdu.c
patching file gw/smsc/smsc_smpp.c
Hunk #5 succeeded at 1378 (offset 14 lines).
patching file doc/userguide/userguide.xml
patching file gwlib/cfg.def
patching file gw/meta_data.c
patching file gw/meta_data.h

regards
Gustavo



________________________________

From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>]
Sent: Friday, October 03, 2008 7:18 PM
To: Villada, Gustavo
Cc: [email protected]<mailto:[email protected]>
Subject: Re: trouble with smpp optional parameter


Hi,

You need the meta-data patch, which is not (yet) part of the core Kannel 
distribution.

Check here:

http://www.nabble.com/-PATCH--meta-data-branch-vs.-CVS-HEAD-td19468597.html

I've made a patch that documents it's functionality, which is available here:

http://www.magicom-bcn.net/kannel/userguide-meta-data-cleanup-20080922.patch

Hope it helps,

Alejandro




On Fri, Oct 3, 2008 at 6:10 PM, Villada, Gustavo <[EMAIL 
PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:


       Hello everyone,

       Our smsc provider require that we must send an optional parameter in the 
message that we response.

       we must set the optional parameter 0x01D 
(SMPP_additional_status_info_text) with our short number.

       We saw in gw/smsc/smpp_pdu_opt.def are defined this flag, but we don't 
saw where is used or how.

       anyone can help us?

       copy our config file and part of log
       we are using 1.4.1


       regards in advance
       Gustavo
       PS: sorry any language mistake

       #########################################################################
       # CORE
       group = core
       admin-port = 13000
       admin-password = x
       status-password = x
       admin-deny-ip = "*.*.*.*"
       admin-allow-ip = "127.0.0.1<http://127.0.0.1>;10.240.*.*"
       smsbox-port = 13001
       #wapbox-port = 13002
       box-deny-ip = "*.*.*.*"
       box-allow-ip = "127.0.0.1<http://127.0.0.1>"
       wdp-interface-name = "*"
       log-file = "/var/log/kannel/bearerbox.log"
       log-level = 1
       sms-incoming-queue-limit = -1


       #SMPP 4545
       group = smsc
       smsc = smpp
       smsc-id = smpp
       host = iptoprovider
       port = 7010
       smsc-username = x
       smsc-password = x
       system-type = "VMA"
       my-number = 4545
       transceiver-mode=true
       log-file = "/var/log/kannel/smsc.log"
       log-level = 1

       #SMSBOX
       group = smsbox
       bearerbox-host = localhost
       sendsms-port = 13113
       sendsms-chars = "0123456789 +"
       access-log = "/var/log/kannel/kannel.access"
       log-file = "/var/log/kannel/smsbox.log"
       log-level = 1


       #SS-SERVICE 4545
       group = sms-service
       keyword = OP
       accepted-smsc = smpp
       catch-all = true
       concatenation = true
       assume-plain-text = true
       omit-empty = true
       text = "gracias por participar"
       #################################################


       (we edit the cell number)
       ---------------------------------------------
       kannel.access file:
       2008-10-03 16:02:22 Log begins
       2008-10-03 16:02:24 SMS request sender:+54911xxxx4165 request: 'OP' 
fixed answer: 'gracias por participar'


       -----------------------------------------
       smsbox.log file:
       2008-10-03 16:02:22 [13896] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `1'.
       2008-10-03 16:02:22 [13896] [0] INFO: Logging accesses to 
'/var/log/kannel/kannel.access'.
       2008-10-03 16:02:22 [13896] [0] INFO: Started access logfile 
`/var/log/kannel/kannel.access'.
       2008-10-03 16:02:22 [13896] [0] INFO: HTTP: Opening server at port 13113.
       2008-10-03 16:02:22 [13896] [0] INFO: Set up send sms service at port 
13113
       2008-10-03 16:02:22 [13896] [0] INFO: Connected to bearerbox at 
localhost port 13001.
       2008-10-03 16:02:24 [13896] [4] INFO: Starting to service <Op> from 
<+54911xxxx4165> to <4545>









Reply via email to