Re: Routing DLR to ESME using OpenSMPPBox

2022-05-09 Thread Ruben Melikyan
Hi,
According to provided log, it seems kannel does not find dlr record to process.
Returning to your configs It will be better to let CORE to handle dlr store and 
update process.
So, i suggest to remove dlr-storage=internal line from opensmppbox config and 
place it to core setup. 
Below is my working configs concerning dlr.

.
* core config
group= core
…….
…….
store-type= file
store-location= “your location here”/STORE
dlr-storage=spool
dlr-spool = “your location here”/DLR
.

Note: you do not need to create STORE and DLR flies in your location. Kannel 
will create them automatically on start.

Best regards,
Ruben Melikyan

> On 9 May 2022, at 05:48, christopher kamutumwa  
> wrote:
> 
> 
> Thank you ruben,
> added that line but still getting below in logs please advise
> 
> 2022-05-09 03:45:12 [20164] [11] INFO: We received an SMS message.
> 2022-05-09 03:45:12 [20164] [11] DEBUG: DLR[mysql]: Looking for DLR 
> smsc=smpp1, ts=a70c7834-3a07-43c0-9749-89cebfeedc85, dst=+260976198318, type=1
> 2022-05-09 03:45:12 [23636] [24] DEBUG: boxc_sender: sent message to 
> <127.0.0.1>
> 2022-05-09 03:45:12 [20164] [11] DEBUG: sql: SELECT `mask`, `service`, `url`, 
> `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 
> 1
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=mask buffer_type=253 
> max_length=0 length=4
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=service buffer_type=253 
> max_length=0 length=16
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=url buffer_type=253 
> max_length=0 length=2048
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=source buffer_type=253 
> max_length=0 length=32
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=destination buffer_type=253 
> max_length=0 length=32
> 2022-05-09 03:45:12 [20164] [11] DEBUG: column=boxcid buffer_type=253 
> max_length=0 length=16
> 2022-05-09 03:45:12 [20164] [11] WARNING: DLR[mysql]: DLR from SMSC 
> for DST<+260976198318> not found.
> 2022-05-09 03:45:12 [20164] [11] WARNING: msg_to_pdu failed, sending negative 
> ack
> 
>   Virus-free. www.avg.com
> 
>> On Sun, May 8, 2022 at 12:03 PM Ruben Melikyan  wrote:
>> Try to set in smsc config the following line:
>> reroute-dlr=true
>> 
>> Best regards,
>> Ruben Melikyan
>> 
 On 8 May 2022, at 10:32, christopher kamutumwa  
 wrote:
 
>>> 
>>> I have configured my servers to send from ESME to SMSC through OpenSMPPBox,
>>> i have applied the below flow
>>> ESME -->> OpenSMPPBox -->> SQLBox -->>Bearerbox -->> SMSC
>>> I have succeeded in sending the sms from ESME to the SMSC but my problem is
>>> related to the DLR.
>>> The Bearerbox actually received the DLR from the SMSC but it didn't route
>>> it to the ESME.
>>> 
>>> What is the required configurations that could resolve the above issue. i
>>> need to route the DLR to the ESME
>>> 
>>> Your help in this regard is highly appreciated and thanks in advance.i can 
>>> see entries in db when i send msg
>>> 
>>> Below are my config files and log error,
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: DLR[mysql]: Looking for DLR 
>>> smsc=smpp1, ts=1a11039a-901d-43e3-8f99-1b42fa14aacb, dst=+260976198318, 
>>> type=1
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: sql: SELECT `mask`, `service`, `url`, 
>>> `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND `ts`=?  
>>> LIMIT 1
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=mask buffer_type=253 
>>> max_length=0 length=4
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=service buffer_type=253 
>>> max_length=0 length=16
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=url buffer_type=253 
>>> max_length=0 length=2048
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=source buffer_type=253 
>>> max_length=0 length=32
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=destination buffer_type=253 
>>> max_length=0 length=32
>>> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=boxcid buffer_type=253 
>>> max_length=0 length=16
>>> 2022-05-07 14:36:47 [3023] [7] WARNING: DLR[mysql]: DLR from SMSC 
>>> for DST<+260976198318> not found.
>>> 2022-05-07 14:36:47 [3023] [7] WARNING: msg_to_pdu failed, sending negative 
>>> ack
>>> *** Kannel.conf 
>>> #-
>>> # core setup
>>> 
>>> group = core
>>> admin-port = 13000
>>> smsbox-port = 13001
>>> wapbox-port = 13002
>>> admin-password = admin123
>>> status-password = status123
>>> wdp-interface-name = "*"
>>> log-file = "/usr/local/kannel/bearerbox.log"
>>> log-level = 3
>>> access-log = "/usr/local/kannel/bearerboxaccess.log"
>>> store-type = spool
>>> store-location = "/usr/local/kannel/store"
>>> store-dump-freq = 60
>>> #-
>>> # smsc setup
>>> 
>>> group = smsc
>>> smsc = smpp
>>> smsc-id = VFSMPP1
>>> host = "x.x.x.x"
>>> port = 
>>> smsc-username = egypt321
>>> smsc-password = egypt321
>>> system-type = "egypt321"
>>> address-range = ""
>>> dest-addr-ton=1
>>> dest-addr-npi=1
>>> 

Re: Routing DLR to ESME using OpenSMPPBox

2022-05-08 Thread christopher kamutumwa
Thank you ruben,
added that line but still getting below in logs please advise

2022-05-09 03:45:12 [20164] [11] INFO: We received an SMS message.
2022-05-09 03:45:12 [20164] [11] DEBUG: DLR[mysql]: Looking for DLR
smsc=smpp1, ts=a70c7834-3a07-43c0-9749-89cebfeedc85, dst=+260976198318,
type=1
2022-05-09 03:45:12 [23636] [24] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2022-05-09 03:45:12 [20164] [11] DEBUG: sql: SELECT `mask`, `service`,
`url`, `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND
`ts`=?  LIMIT 1
2022-05-09 03:45:12 [20164] [11] DEBUG: column=mask buffer_type=253
max_length=0 length=4
2022-05-09 03:45:12 [20164] [11] DEBUG: column=service buffer_type=253
max_length=0 length=16
2022-05-09 03:45:12 [20164] [11] DEBUG: column=url buffer_type=253
max_length=0 length=2048
2022-05-09 03:45:12 [20164] [11] DEBUG: column=source buffer_type=253
max_length=0 length=32
2022-05-09 03:45:12 [20164] [11] DEBUG: column=destination buffer_type=253
max_length=0 length=32
2022-05-09 03:45:12 [20164] [11] DEBUG: column=boxcid buffer_type=253
max_length=0 length=16
2022-05-09 03:45:12 [20164] [11] WARNING: DLR[mysql]: DLR from SMSC
for DST<+260976198318> not found.
2022-05-09 03:45:12 [20164] [11] WARNING: msg_to_pdu failed, sending
negative ack


Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Sun, May 8, 2022 at 12:03 PM Ruben Melikyan  wrote:

> Try to set in smsc config the following line:
> reroute-dlr=true
>
> Best regards,
> Ruben Melikyan
>
> On 8 May 2022, at 10:32, christopher kamutumwa 
> wrote:
>
> 
>
> I have configured my servers to send from ESME to SMSC through OpenSMPPBox,
> i have applied the below flow
> ESME -->> OpenSMPPBox -->> SQLBox -->>Bearerbox -->> SMSC
>
> I have succeeded in sending the sms from ESME to the SMSC but my problem is
> related to the DLR.
> The Bearerbox actually received the DLR from the SMSC but it didn't route
> it to the ESME.
>
> What is the required configurations that could resolve the above issue. i
> need to route the DLR to the ESME
>
> Your help in this regard is highly appreciated and thanks in advance.i can 
> see entries in db when i send msg
>
> Below are my config files and log error,
> 2022-05-07 14:36:47 [3023] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=smpp1, 
> ts=1a11039a-901d-43e3-8f99-1b42fa14aacb, dst=+260976198318, type=1
> 2022-05-07 14:36:47 [3023] [7] DEBUG: sql: SELECT `mask`, `service`, `url`, 
> `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 
> 1
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=mask buffer_type=253 
> max_length=0 length=4
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=service buffer_type=253 
> max_length=0 length=16
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=url buffer_type=253 max_length=0 
> length=2048
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=source buffer_type=253 
> max_length=0 length=32
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=destination buffer_type=253 
> max_length=0 length=32
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=boxcid buffer_type=253 
> max_length=0 length=16
> 2022-05-07 14:36:47 [3023] [7] WARNING: DLR[mysql]: DLR from SMSC for 
> DST<+260976198318> not found.
> 2022-05-07 14:36:47 [3023] [7] WARNING: msg_to_pdu failed, sending negative 
> ack
>
> *** Kannel.conf 
> #-
> # core setup
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> wapbox-port = 13002
> admin-password = admin123
> status-password = status123
> wdp-interface-name = "*"
> log-file = "/usr/local/kannel/bearerbox.log"
> log-level = 3
> access-log = "/usr/local/kannel/bearerboxaccess.log"
> store-type = spool
> store-location = "/usr/local/kannel/store"
> store-dump-freq = 60
> #-
> # smsc setup
>
> group = smsc
> smsc = smpp
> smsc-id = VFSMPP1
> host = "x.x.x.x"
> port = 
> smsc-username = egypt321
> smsc-password = egypt321
> system-type = "egypt321"
> address-range = ""
> dest-addr-ton=1
> dest-addr-npi=1
> interface-version = 34
> enquire-link-interval = 25
> reconnect-delay = 15
> transceiver-mode = 1
> #max-pending-submits = 8
> throughput = 6
> #-
> # smsbox setup
>
> group = smsbox
> smsbox-id = smsbox1
> bearerbox-host = "127.0.0.1"
> sendsms-port = 13013
> sendsms-chars = "0123456789 +-"
> log-file = "/usr/local/kannel/smsbox.log"
> log-level = 3
> access-log = "/usr/local/kannel/smsboxaccess.log"
> mo-recode = true
> http-request-retry = 1000
> max-pending-requests = 33000
> #-
> # smsbox-route setup
>
> group = smsbox-route
> smsbox-id = smsc1
> smsc-id = VFSMPP1
> ###
>
> 

Re: Routing DLR to ESME using OpenSMPPBox

2022-05-08 Thread Ruben Melikyan
Try to set in smsc config the following line:
reroute-dlr=true

Best regards,
Ruben Melikyan

> On 8 May 2022, at 10:32, christopher kamutumwa  
> wrote:
> 
> 
> I have configured my servers to send from ESME to SMSC through OpenSMPPBox,
> i have applied the below flow
> ESME -->> OpenSMPPBox -->> SQLBox -->>Bearerbox -->> SMSC
> I have succeeded in sending the sms from ESME to the SMSC but my problem is
> related to the DLR.
> The Bearerbox actually received the DLR from the SMSC but it didn't route
> it to the ESME.
> 
> What is the required configurations that could resolve the above issue. i
> need to route the DLR to the ESME
> 
> Your help in this regard is highly appreciated and thanks in advance.i can 
> see entries in db when i send msg
> 
> Below are my config files and log error,
> 2022-05-07 14:36:47 [3023] [7] DEBUG: DLR[mysql]: Looking for DLR smsc=smpp1, 
> ts=1a11039a-901d-43e3-8f99-1b42fa14aacb, dst=+260976198318, type=1
> 2022-05-07 14:36:47 [3023] [7] DEBUG: sql: SELECT `mask`, `service`, `url`, 
> `source`, `destination`, `boxcid` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 
> 1
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=mask buffer_type=253 
> max_length=0 length=4
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=service buffer_type=253 
> max_length=0 length=16
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=url buffer_type=253 max_length=0 
> length=2048
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=source buffer_type=253 
> max_length=0 length=32
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=destination buffer_type=253 
> max_length=0 length=32
> 2022-05-07 14:36:47 [3023] [7] DEBUG: column=boxcid buffer_type=253 
> max_length=0 length=16
> 2022-05-07 14:36:47 [3023] [7] WARNING: DLR[mysql]: DLR from SMSC for 
> DST<+260976198318> not found.
> 2022-05-07 14:36:47 [3023] [7] WARNING: msg_to_pdu failed, sending negative 
> ack
> *** Kannel.conf 
> #-
> # core setup
> 
> group = core
> admin-port = 13000
> smsbox-port = 13001
> wapbox-port = 13002
> admin-password = admin123
> status-password = status123
> wdp-interface-name = "*"
> log-file = "/usr/local/kannel/bearerbox.log"
> log-level = 3
> access-log = "/usr/local/kannel/bearerboxaccess.log"
> store-type = spool
> store-location = "/usr/local/kannel/store"
> store-dump-freq = 60
> #-
> # smsc setup
> 
> group = smsc
> smsc = smpp
> smsc-id = VFSMPP1
> host = "x.x.x.x"
> port = 
> smsc-username = egypt321
> smsc-password = egypt321
> system-type = "egypt321"
> address-range = ""
> dest-addr-ton=1
> dest-addr-npi=1
> interface-version = 34
> enquire-link-interval = 25
> reconnect-delay = 15
> transceiver-mode = 1
> #max-pending-submits = 8
> throughput = 6
> #-
> # smsbox setup
> 
> group = smsbox
> smsbox-id = smsbox1
> bearerbox-host = "127.0.0.1"
> sendsms-port = 13013
> sendsms-chars = "0123456789 +-"
> log-file = "/usr/local/kannel/smsbox.log"
> log-level = 3
> access-log = "/usr/local/kannel/smsboxaccess.log"
> mo-recode = true
> http-request-retry = 1000
> max-pending-requests = 33000
> #-
> # smsbox-route setup
> 
> group = smsbox-route
> smsbox-id = smsc1
> smsc-id = VFSMPP1
> ###
> 
> *** OpenSMPPBox.conf **
> group = core
> dlr-storage = internal
> 
> group = opensmppbox
> bearerbox-host = 127.0.0.1
> bearerbox-port = 13005
> opensmppbox-id = opensmppbox1
> opensmppbox-port = 13003
> log-file = "/usr/local/kannel/smppbox.log"
> #log-level = 3
> our-system-id = Inaccess
> #route-to-smsc = cardboard
> smpp-logins = /usr/local/kannel/smpplogins.txt
> ###
> 
> *** smpplogins.txt***
> test testpw smsc1 *.*.*.*
> ###
> 
> *** SQLBox.conf ***
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> global-sender = ""
> bearerbox-host = 127.0.0.1
> bearerbox-port = 13001
> smsbox-port = 13005
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
> log-file = "/usr/local/kannel/kannel-sqlbox.log"
> 
> # MYSQL Connection
> group = mysql-connection
> id = sqlbox-db
> host = localhost
> username = root
> password = root
> database = mysqlbox
> ###
> 
> 
> 
> Regards,
> 
>   Virus-free. www.avg.com


Re: Migrate dlr store on PostgreSQL to Redis

2021-03-07 Thread Paulo Correia
Hi Sayed!

Meanwhile I've managed to create such a script as:

PGSQL_HOST=
PGSQL_PORT=
PGSQL_USERNAME=
PGSQL_DB=
PGSQL_DLR_TABLE=
DLR_TTL=604800

echo "SELECT 'HMSET \"bb_dlr:'||smsc||':'||ts||'\" smsc \"'||smsc||'\" ts 
\"'||ts||'\" source \"'||source||'\" destination \"'||destination||'\" service 
\"'||service||'\" url \"'||url||'\" mask \"'||mask||'\" boxc \"'||boxc||'\" 
status \"'||status||'\"' from $PGSQL_DLR_TABLE where creationdate > NOW() - 
INTERVAL '$DLR_TTL second' UNION SELECT 'EXPIRE \"bb_dlr:'||smsc||':'||ts||'\" 
'|| trunc(extract(epoch from NOW() - creationdate)) from $PGSQL_DLR_TABLE where 
creationdate > NOW() - INTERVAL '$DLR_TTL second';" | psql --set ON_ERROR_STOP 
-h $PGSQL_HOST -p $PGSQL_PORT -U $PGSQL_USERNAME $PGSQL_DB -At | sort -k2,2 
-k1,1r | redis-cli -u "$REDIS_URL" --pipe

Of course this will depend on the field names defined in the PGSQL table and in 
REDIS, but is quite simple to migrate.

Best regards,

Paulo Correia
Head of Development

telephone:+351210337760 fax: +351210337761
email: paulo.corr...@go4mobility.com<mailto:paulo.corr...@go4mobility.com> 
skype: pcorreia.g4m

[assinatura_email_go4mobility_comlogo]<https://go4mobility.com/en/>

[assinatura_email_go4mobility_followus]<https://www.linkedin.com/company/go4mobility/>

_

CONFIDENTIALITY

This message, as well as existing attached files, may be confidential and 
privileged. Use or disclosure by anyone other than an intended recipient is not 
authorised.

If you have received this message by error, you are kindly requested to delete 
it and notify the sender. Thank you for your cooperation.

<https://go4mobility.com/en>



From: Sayed Hadi Rastgou Haghi 
Sent: 05 March 2021 16:58
To: Paulo Correia 
Cc: users@kannel.org 
Subject: Re: Migrate dlr store on PostgreSQL to Redis


CAUTION: External E-mail


Hi Paulo,
You should write a migration tool. based on redis and PostgreSQL formats. It's 
straight forward based on your configs.

On Wed, Nov 18, 2020 at 3:18 PM Paulo Correia 
mailto:paulo.corr...@go4mobility.com>> wrote:
Hi Kannel Users,

Has anyone migrated a Kannel instance with dlr store in PostgreSQL to Redis?
How to migrate the records in the dlr store tablet?

Kind regards,
Paulo Correia

Obter o Outlook para Android<https://aka.ms/ghei36>


--
Sincerely,

Sayed Hadi Rastgou Haghi


Re: Migrate dlr store on PostgreSQL to Redis

2021-03-05 Thread Sayed Hadi Rastgou Haghi
Hi Paulo,
You should write a migration tool. based on redis and PostgreSQL formats.
It's straight forward based on your configs.

On Wed, Nov 18, 2020 at 3:18 PM Paulo Correia 
wrote:

> Hi Kannel Users,
>
> Has anyone migrated a Kannel instance with dlr store in PostgreSQL to
> Redis?
> How to migrate the records in the dlr store tablet?
>
> Kind regards,
> Paulo Correia
>
> Obter o Outlook para Android 
>


-- 
Sincerely,

Sayed Hadi Rastgou Haghi


Re: Force DLR since SMSC is not returning DLR

2021-02-13 Thread Jose N Figueroa
Hi,

Yes, that's what I thought. I'm reviewing the code already.

Thanks for the feedback.


On Sat, Feb 13, 2021 at 12:28:28PM +0100, mosbah abdelkader wrote:
> Hello Jose,
> 
> 
> This is not possible at the config level. You will need to modify
> bearerbox code to convert the submit_sm_resp into a deliver_sm for
> that smsc.
> 
> 
> BR.

-- 
Jose Figueroa



RE: Force DLR since SMSC is not returning DLR

2021-02-13 Thread mosbah abdelkader
Hello Jose,


This is not possible at the config level. You will need to modify
bearerbox code to convert the submit_sm_resp into a deliver_sm for
that smsc.


BR.



Re: Sending DLR messages from smsbox

2020-05-06 Thread Stipe Tolj

Am 05.05.20, 15:02, schrieb Robert Robinson:

Hello;

We currently use Kannel 1.4.5 as a middleware box which sits between our
network and our partner network. We call into smsbox, using the HTTP API
to submit outbound messages to bearerbox, and using the sms-service to
make HTTP calls into our network when bearerbox submits messages to
smsbox. We interface with our partner using the smpp SMSC module. This
works very well.

Today, we can receive DLR reports for the outbound messages that we send
to our partner by adding the dlr-mask and dlr-url parameters to the HTTP
call we make to smbox.

I would like to know how I can configure smsbox to allow for delivery
reports to be crafted for messages that sms-service delivers over HTTP.
Specifically, I am looking for a way to be able to signal back to our
partner specific SMPP deliver error codes when a message that is
received cannot be delivered. Is this possible with smsbox today? If so,
what would need to be included in the HTTP response returned on the call
made by sms-service?

Thank you for any insight you can provide.

~Robert

The sms-service config we use (callback host changed for sake of example):

group = sms-service

keyword-regex = .*

catch-all = yes

max-messages = 7

omit-empty = true

alt-charset = "UTF-8"

get-url =
http://sms.example.com/sms?to=%P=%p=%a=%u_message=%b

concatenation = true

accept-x-kannel-headers = true


Hi Robert,

does this means you want to:

a) send a corresponding deliver_sm_resp.command_status (error code) 
value when the MO is received on bearerbox side, and then being unable 
to forward to the sms-service defined URL by smsbox?, or


b) you want to send an ESME outbound DLR to the SMSC side via 
submit_sm/data_sm?


So, the question is, DO you want to send a delivery notification towards 
the SMSC that the ESME side has "accepted" the MO message? In SMPP this 
CAN be done by definition of the protocol, but rarely the SMSCs support 
this.


If you run a SMS hubbing configuration, which is presumably the 
intention when you interface via IP to the actual user agent on the 
device, then typically the communication parties maintain a 2 way 
connection by implementing both communication roles.


Example: Let's assume you have a number range that is "your network", 
and that number range is delivered to you via a signal link provider and 
it's SMSC. Then you would have the following:


operator(SMSC) <-MT- bearerbox <- smsbox <-HTTP- msg(to:yyy,from:xxx) APPL
operator(SMSC) -DLR-> bearerbox -> smsbox -HTTP-> DLR-URL

operator(ESME) msg(to:xxx,from:yyy) -MT-> smppbox -> 
bearerbox(smsc_http) -HTTP-> APPL

operator(ESME) <-DLR- smppbox <- bearerbox(smsc_http)

So, the DLR is send to the opreator being in the ESME (SMPP client role) 
from your SMPP server (Kannel smppbox) when bearerbox indicates that the 
message (MT) has been acknowledged by the HTTP APPL layer.


--
Best Regards,
Stipe

---
Koelner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture  Kannel Software Foundation (KSF)
http://www.tolj.org/  http://www.kannel.org/

mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
---



Re: Sending DLR messages from smsbox

2020-05-05 Thread Alvaro Cornejo
Hi Robert

Not sure I get right your question.

I think you can craft your dlr-url and/or the script called by the dlr-url
in order to, in addition to what you do now, pass that info to your
partner. ie generate the dlr with the specific info you want to forward.

For now your dlr-ulr is doing some magic to update the message status in
your DB. So you can add to this script some extra magic to, in addition to
what it does, do a call to the smsc box sending dlr info

Hope this helps.

Regards

Alvaro


||
*7* Switch off as you go / Apaga lo que no usas /  Débranchez au fur et à
mesure.
 *q *Recycle always / Recicla siempre / Recyclez toujours
 P Print only if absolutely necessary / Imprime solo si es necesario /
Imprimez seulement si nécessaire


Le mar. 5 mai 2020 à 08:09, Robert Robinson  a
écrit :

> Hello;
>
>
>
> We currently use Kannel 1.4.5 as a middleware box which sits between our
> network and our partner network. We call into smsbox, using the HTTP API to
> submit outbound messages to bearerbox, and using the sms-service to make
> HTTP calls into our network when bearerbox submits messages to smsbox. We
> interface with our partner using the smpp SMSC module. This works very well.
>
>
>
> Today, we can receive DLR reports for the outbound messages that we send
> to our partner by adding the dlr-mask and dlr-url parameters to the HTTP
> call we make to smbox.
>
>
>
> I would like to know how I can configure smsbox to allow for delivery
> reports to be crafted for messages that sms-service delivers over HTTP.
> Specifically, I am looking for a way to be able to signal back to our
> partner specific SMPP deliver error codes when a message that is received
> cannot be delivered. Is this possible with smsbox today? If so, what would
> need to be included in the HTTP response returned on the call made by
> sms-service?
>
>
>
> Thank you for any insight you can provide.
>
> ~Robert
>
>
>
> The sms-service config we use (callback host changed for sake of example):
>
>
>
> group = sms-service
>
> keyword-regex = .*
>
> catch-all = yes
>
> max-messages = 7
>
> omit-empty = true
>
> alt-charset = "UTF-8"
>
> get-url =
> http://sms.example.com/sms?to=%P=%p=%a=%u_message=%b
>
> concatenation = true
>
> accept-x-kannel-headers = true
>


RE: Adding dlr-storage = mysql , SMSBOX throws error , Connection Refused to Bearerbox

2020-04-23 Thread Rene Kluwen
If you post your bearerbox log files, maybe it will give a hint about why it 
doesn’t want to start.

 

== Rene

 

Van: users  Namens Arun
Verzonden: donderdag 23 april 2020 16:39
Aan: users@kannel.org
Onderwerp: Re: Adding dlr-storage = mysql , SMSBOX throws error , Connection 
Refused to Bearerbox

 

Another observation

when dlr-storage =mysql

 

netstat -lnptu  doesnt show up  bearerbox ports

 

kindly enlighten me please

 

On Thu, Apr 23, 2020 at 12:31 PM Arun mailto:arunbm...@gmail.com> > wrote:

hi all 

 

Below is my Kannel.conf

I want to store Dlr Messages in MySql

When I add  dlr-storage = mysql  to core Group and start smsbox I get the 
following error ( Without dlr-storage=mysql works fine)

 

0:02:34 [7000] [0] ERROR: connect to <127.0.0.1> failed
2020-04-23 10:02:34 [7000] [0] ERROR: System error 111: Connection refused
2020-04-23 10:02:34 [7000] [0] ERROR: error connecting to server `localhost' at 
port `13001'
2020-04-23 10:02:34 [7000] [0] PANIC: Couldn't connect to the bearerbox.
2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(gw_backtrace+0xf0) [0x560fad58c250]
2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(gw_panic+0x167) [0x560fad58c3c7]
2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(main+0xea7) [0x560fad557c07]
2020-04-23 10:02:34 [7000] [0] PANIC: 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f90da4341e3]
2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(_start+0x2e) [0x560fad55868e]


  **  ** ** ** ** **  
*KANNEL.conf *
group = core
admin-port = 13000
admin-password = test
admin-deny-ip = “*.*.*.*”
admin-allow-ip = “127.0.0.1”
smsbox-port = 13001
box-deny-ip = “*.*.*.*”
box-allow-ip = “127.0.0.1”
dlr-storage = mysql
log-level = 0
log-file=/home/arun/bearer.log


group = smsbox
smsbox-id = mysmsbox
bearerbox-host = localhost
sendsms-port = 13013
log-level = 1
log-file =/home/arun/smsbox.log

group =mysql-connection
id=mydlr
host=localhost
username=root
password =123
database=dlr
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

group = sendsms-user
username = simple
password = simple123

group = smsc
smsc = fake
smsc-id = FAKE
port = 1
log-level = 0

group = smsbox-route
smsbox-id = mysmsbox
smsc-id = FAKE

group = sms-service
keyword = default

text = “hi how are you”

 

-- 

- Thanks

  Arun

  Mobile : 9448420662

 




 

-- 

- Thanks

  Arun

  Mobile : 9448420662

 



Re: Adding dlr-storage = mysql , SMSBOX throws error , Connection Refused to Bearerbox

2020-04-23 Thread Arun
Another observation
when dlr-storage =mysql

netstat -lnptu  doesnt show up  bearerbox ports

kindly enlighten me please

On Thu, Apr 23, 2020 at 12:31 PM Arun  wrote:

> hi all
>
> Below is my Kannel.conf
> I want to store Dlr Messages in MySql
> When I add  *dlr-storage = mysql  *to core Group and start *smsbox *I get
> the following error ( Without dlr-storage=mysql works fine)
>
>
>
>
>
>
>
>
>
> *0:02:34 [7000] [0] ERROR: connect to <127.0.0.1> failed2020-04-23
> 10:02:34 [7000] [0] ERROR: System error 111: Connection refused2020-04-23
> 10:02:34 [7000] [0] ERROR: error connecting to server `localhost' at port
> `13001'2020-04-23 10:02:34 [7000] [0] PANIC: Couldn't connect to the
> bearerbox.2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(gw_backtrace+0xf0)
> [0x560fad58c250]2020-04-23 10:02:34 [7000] [0] PANIC:
> smsbox(gw_panic+0x167) [0x560fad58c3c7]2020-04-23 10:02:34 [7000] [0]
> PANIC: smsbox(main+0xea7) [0x560fad557c07]2020-04-23 10:02:34 [7000] [0]
> PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
> [0x7f90da4341e3]2020-04-23 10:02:34 [7000] [0] PANIC: smsbox(_start+0x2e)
> [0x560fad55868e]*
>
>   **  ** ** ** ** **
> 
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> **KANNEL.conf *group =
> coreadmin-port = 13000admin-password = testadmin-deny-ip =
> “*.*.*.*”admin-allow-ip = “127.0.0.1”smsbox-port = 13001box-deny-ip =
> “*.*.*.*”box-allow-ip = “127.0.0.1”dlr-storage = mysqllog-level =
> 0log-file=/home/arun/bearer.loggroup = smsboxsmsbox-id =
> mysmsboxbearerbox-host = localhostsendsms-port = 13013log-level = 1log-file
> =/home/arun/smsbox.loggroup
> =mysql-connectionid=mydlrhost=localhostusername=rootpassword
> =123database=dlrmax-connections=1group=dlr-dbid=mydlrtable=dlrfield-smsc
> =smscfield-timestamp=tsfield-destination =destinationfield-source
> =sourcefield-service=servicefield-url=urlfield-mask=maskfield-status
> =statusfield-boxc-id=boxcgroup = sendsms-userusername = simplepassword =
> simple123group = smscsmsc = fakesmsc-id = FAKEport = 1log-level =
> 0group = smsbox-routesmsbox-id = mysmsboxsmsc-id = FAKEgroup =
> sms-servicekeyword = default*
> *text = “hi how are you”*
>
> --
> *- Thanks*
> *  Arun*
> *  Mobile : 9448420662*
>
>

-- 
*- Thanks*
*  Arun*
*  Mobile : 9448420662*


Re: Kannel DLR with Redis Storage

2020-04-21 Thread Minh Tuan
Hi Filippo,
After received DLR from upstream SMSC, bearerbox will remove the DLR record
which is queued in redis storage, then nothing left to see after that.

On Fri, Apr 17, 2020 at 7:14 AM Filippo Durão 
wrote:

> Dears,
>
> I have a huge difficulty to make the DLR work, because I don't have an
> example script for use with networks.
>
> Could someone provide me with an example script for dlr-url using redis
> storage?
>
> My log says I received it, but the status does not appear in the redis
> database.
>
> Logs:
>
> 2020-04-16 23:52:16 [1] [3] INFO: sendsms sender: ()
> to: msg:
> 2020-04-16 23:52:16 send-SMS request added - sender:tester:X
> target:XXX request: 'TesteDLREngenhariaAkross'
> 2020-04-16 23:52:16 Sent SMS [SMSC:17004-TX] [SVC:tester] [ACT:] [BINF:]
> [FID:209462832] [META:?smpp_resp?] [from:X] [to:XXX]
> [flags:-1:0:-1:-1:31] [msg:24:TesteDLREngenhariaAkross] [udh:0:]
> 2020-04-16 23:52:16 *Receive DLR* [SMSC:17004-TX] [SVC:tester] [ACT:]
> [BINF:] [FID:209462832] [META:?smpp_resp??orig_msg?dlr_mask=31&]
> [from:53714] [to:XX] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
>
> Redis Database:
>
> [image: image.png]
>
> Help me?
>


-- 
  <((=o-( ',_,' )-o=))=>

Bản chất tốt nhưng cuộc đời xô đẩy!


Re: got DLR but could not find message, bug?

2020-03-31 Thread Willy Mularto
Share your configuration will be good to localize the possible problem.

Pada tanggal Rab, 1 Apr 2020 08.39, lbrezs...@gmx.co.uk 
menulis:

> Kannel 1.4.5 + redis is used to send sms via SMSC using smpp protocol.
>
> When processing dlrs, once in a while we receive an ERROR similar to the
> following:
>
> ERROR: SMPP[X]: got DLR but could not find message or was not
> interested in it id<143914440> dst
>
> If sms body is long, it becomes a real problem as almost every 2nd
> receipt can not be matched to the original submission.
>
> So let me explain what I believe is a serious bug:
>
> Kannel submits a request to send an sms to SMSC: smpp submit_sm
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   type_name: submit_sm
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   command_id: 4 = 0x0004
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sequence_number: 3305 = 0x0ce9
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   destination_addr: "XXX0842"
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sm_length: 159 = 0x009f
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   more_messages_to_send: 1 =
> 0x0001
> ...
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   type_name: submit_sm
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   command_id: 4 = 0x0004
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sequence_number: 3306 = 0x0cea
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   destination_addr: "XXX0842"
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sm_length: 48 = 0x0030
>
> It gets gets an ACK from the SMSC: smpp  submit_sm_resp
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   type_name: submit_sm_resp
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   command_id: 2147483652 =
> 0x8004
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sequence_number: 3305 = 0x0ce9
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   message_id: "0893F5C7"
>
> writes it to redis
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG: DLR[redis]: Adding DLR
> smsc=smsc_123, ts=143914439, src=XXX8356, dst=XXX0842, mask=31,
> boxc=
>
> It converts it to fake DLR8 and posts (actually http get) to our API. So
> far so good, sms is going to the recipient and we have ACK (fake DLR8 as
> a proof).
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   type_name: submit_sm_resp
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   command_id: 2147483652 =
> 0x8004
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sequence_number: 3306 = 0x0cea
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   message_id: "0893F5C8"
> 2020-03-31 22:53:43 [10846] [6] DEBUG: SMSC[smsc_123]: creating DLR message
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG: SMSC[smsc_123]: DLR = http://
>
> Note message_id is +1 to what redis has ( we will need it later).
>
> Now, sms is delivered and our provider sends us a delivery receipt.
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   type_name: deliver_sm
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   command_id: 5 = 0x0005
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sequence_number: 1650 = 0x0672
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   source_addr: "XXX0842"
> 2020-03-31 22:53:43 [10846] [6] DEBUG:   sm_length: 102 = 0x0066
>
> Kannel goes to redis but could not find the key needed:
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG: DLR[redis]: Looking for DLR
> smsc=smsc_123, ts=143914440, dst=XXX0842, type=2
> 2020-03-31 22:53:43 [10846] [6] WARNING: DLR[redis]: DLR from
> SMSC for DST not found.
> 2020-03-31 22:53:43 [10846] [6] ERROR: SMPP[smsc_123]: got DLR but could
> not find message or was not interested in it id<143914440>
> dst, type<2>
>
> Manually examining the redis confirms that there is no key:
>
> Message_id converted from hex to int: 0893F5C8 => 143914440
>
> redis-cli keys  "dlr:smsc_123:143914440"
> (empty list or set)
>
> Now to revisit on what was written to redis:
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG: DLR[redis]: Adding DLR
> smsc=smsc_123, ts=143914439, src=XXX8356, dst=XXX0842, mask=31,
> boxc=
>
> and compare to what is expected:
>
> 2020-03-31 22:53:43 [10846] [6] DEBUG: DLR[redis]: Looking for DLR
> smsc=smsc_123, ts=143914440, dst=XXX0842, type=2
>
> Now we getting somewhere:
>
> 0893F5C7 (part 1) => 143914439 is written to redis
> 0893F5C8 (part 2) => 143914440 is used to create DLR8
> 0893F5C8 (part 2) => 143914440 is used on receiving deliver_sm to
> look-up in redis.
> But in fact we should be looking for 0893F5C7 (part 1) => 143914439? no?
>
> Correct:
> redis-cli keys "dlr:smsc_123:143914439"
>
> 1) "dlr:smsc_123:143914439"
>
> As you see kannel writes to redis ts = message_id from part 1, but on
> receiving a dlr it is looking for ts = message_id from part 2, could not
> find it, and as a result dlr is lost.
>
> The puzzling part, as bug is not consistent. As I mentioned before, some
> of the message(s) are Ok (???).
>
> Not sure what trips kannel to look for a wrong message_id though.
> Sometimes it matches message_id from part2 to part2, and everything is
> good.
>
>
>
>


RE: Kannel DLR with MySQL

2019-07-31 Thread info.ubichip
Hello,

 

you should put dlr-mask=31 then you will be able to get all the DLR.

Dlr-url should be accessible, usually on the same machine, and then a script 
(php or other) is the solution to make the dlr process.

 

an example extract from my php script (not perfect but could be a good start)  :

 

 

$username = $_GET['username'];

$password = $_GET['password'];

$dlrmask  = $_GET['dlr-mask'];

$from = $_GET['from'];

$to = $_GET['to'];

$text = $_GET['text'];

$udh = $_GET['udh'];

$dlrurl = $_GET['dlr-url'];

$dlrtype = $_GET['dlr-type'];

$myid = $_GET['myid'];

$finalcallback = $_GET['finalcallback'];

$retry = $_GET['retry'];

$smscorig = $_GET['smscorig'];

$priority = $_GET['priority'];

 

 

if ($dlrtype && $myid )

{

$stat = 0;

switch ($dlrtype)

{

   case 1: $stat = 6; break;   // delivered to phone

   case 2: $stat = 6; break;   // non delivered to phone

   case 4: $stat = 3; break;   // queued on SMSC

   case 8: $stat = 4; break;   // delivered to SMSC

   case 16: $stat = 5; break;  // non delivered to SMSC

   case 9: $stat = 4; break;

   case 12: $stat = 4; break;

   //case 18: $stat = 5; break;   // not sure to have the case

}

 

if (($stat==5)||($retry>=$MAXRETRY)) // If SMS Failed and we retry MAXRETRY 
times

{ 

   if (!$retry)

   {

   $retry=0;

   }

   

   if ($retry<$MAXRETRY)

   { $retry=$retry+1 ;

   }

   

   else

 

   {

  // in other case, we sent the DLR status to the final server  

   //echo "SMS OK";

   

   header("Location: " . $finalcallback . "?dlr-type=" . $dlrtype ."=" 
. $myid . "=" . $retry . "=" . $smscorig);

   

 

   die();

   }

 

// Case of SMS FAILED, we retry

   //echo "SMS Failed";

header("Location: ". $mysendsms . "?username=" . $username .

"=" . $password .

"=" . $retry .

"=31" .

"=" . $from .

"=" . $to .

"=" . urlencode($text) .

"=" . $udh .

"=" . $priority .

"=" . urlencode($myproxy . $allvar . 
"=%d=%i=" . $myid . "=" . $retry)   );

 

}

else

{

   // in other case, the SMS state is sent to the main server

   //echo "SMS OK";

   if ($stat==4) 

{

// include "credit_eat.php"; // script to add billing feature

   }

   

 

   header("Location: " . $finalcallback . "?dlr-type=" . $dlrtype ."=" 
. $myid . "=" . $retry);

 

 

}

 

}

 

 

 

De : users [mailto:users-boun...@kannel.org] De la part de pape fall
Envoyé : mercredi 24 juillet 2019 12:42
À : users@kannel.org
Objet : Kannel DLR with MySQL

 

Hello,

I use kannel for sending sms. Now I want to get the dlr. After configuration, 
sent sms are inserted into mysql dlr table. The status of the sms are still 0. 

I add dlr-mask=7 to the request parameters for sending sms. After 
investigation, I understood that I have to put the dlr-url for updating the 
status of the sms.

 

Could someone help me to define the dlr-url and make the php file?

 

Could I retrieve the sent sms status thanks to an ID for updating another 
database?(the ID must be known when the sms are sent)

 

In attached my  kannel.conf

 

Regards,

Fall,



RE: Wrong DLR ID.

2017-08-16 Thread Wan Md Arif Noor Bin. Wan Nizam
Hi Davor,

Super, I didn’t notice the msg-id type in my configuration. I changed it and 
its working properly now. Thanks a lot for the assist.

Best Regards,
Arif Noor.

From: Davor Spasoski [mailto:davor.spaso...@onevip.mk]
Sent: Wednesday, August 16, 2017 6:41 PM
To: Wan Md Arif Noor Bin. Wan Nizam; users@kannel.org
Subject: RE: Wrong DLR ID.

Check your ID numbering bases for submit_sm and deliver_sm. Looks like you are 
not using the same base for submit and deliver.

3188534916 = 83101780110

Msg-id-type is the parameter you should be looking at

Davor Spasoski

From: users [mailto:users-boun...@kannel.org] On Behalf Of Wan Md Arif Noor 
Bin. Wan Nizam
Sent: Wednesday, August 16, 2017 11:40 AM
To: users@kannel.org<mailto:users@kannel.org>
Subject: Wrong DLR ID.

Hi Users,

I found weird thing with kannel today, where when submit an MT it was tagged 
with different ID but when I checked inside debug log, the ID was correct. This 
causing “got DLR but could not find message or was not interested in it 
id<31943697>” error. I don’t know where this  831017801 come from. Appreciate 
your help on this.

Kannel bearerbox version `svn-r5186M'.

Logs :

2017-08-16 17:11:28 [SMSC:6SeriesConn13] [from:*] [to:**] 
[msg:82:RM0: To unsubscribe, send OUT 69111..Tel] [FID:831017801] 
[State:?smpp_resp?]
2017-08-16 17:11:32 [SMSC:6SeriesConn13] [from:+**] [to:*] [msg:0:] 
[FID:31885349] [State:?smpp?Message+State=2&]

1687656:2017-08-16 17:11:28 [3552] [22] DEBUG:   type_name: submit_sm
1687657:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_id: 4 = 0x0004
1687658:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_status: 0 = 0x
1687659:2017-08-16 17:11:28 [3552] [22] DEBUG:   sequence_number: 619 = 
0x026b
1687660:2017-08-16 17:11:28 [3552] [22] DEBUG:   service_type: NULL
1687661:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr_ton: 0 = 0x
1687662:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr_npi: 1 = 0x0001
1687663:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr: "*"
1687664:2017-08-16 17:11:28 [3552] [22] DEBUG:   dest_addr_ton: 1 = 0x0001
1687665:2017-08-16 17:11:28 [3552] [22] DEBUG:   dest_addr_npi: 1 = 0x0001
1687666:2017-08-16 17:11:28 [3552] [22] DEBUG:   destination_addr: "***"
1687667:2017-08-16 17:11:28 [3552] [22] DEBUG:   esm_class: 0 = 0x
1687668:2017-08-16 17:11:28 [3552] [22] DEBUG:   protocol_id: 0 = 0x
1687669:2017-08-16 17:11:28 [3552] [22] DEBUG:   priority_flag: 0 = 0x
1687670:2017-08-16 17:11:28 [3552] [22] DEBUG:   schedule_delivery_time: NULL
1687671:2017-08-16 17:11:28 [3552] [22] DEBUG:   validity_period: NULL
1687672:2017-08-16 17:11:28 [3552] [22] DEBUG:   registered_delivery: 1 = 
0x0001
1687673:2017-08-16 17:11:28 [3552] [22] DEBUG:   replace_if_present_flag: 0 = 
0x
1687674:2017-08-16 17:11:28 [3552] [22] DEBUG:   data_coding: 0 = 0x
1687675:2017-08-16 17:11:28 [3552] [22] DEBUG:   sm_default_msg_id: 0 = 
0x
1687676:2017-08-16 17:11:28 [3552] [22] DEBUG:   sm_length: 82 = 0x0052
1687677:2017-08-16 17:11:28 [3552] [22] DEBUG:   short_message:
1687678:2017-08-16 17:11:28 [3552] [22] DEBUG:Octet string at 
0x7f32c4000b30:
1687679:2017-08-16 17:11:28 [3552] [22] DEBUG:  len:  82
1687680:2017-08-16 17:11:28 [3552] [22] DEBUG:  size: 83
1687681:2017-08-16 17:11:28 [3552] [22] DEBUG:  immutable: 0
1687682:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 52 4d 30 3a 20 54 6f 
20 75 6e 73 75 62 73 63 72   RM0: To unsubscr
1687683:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 69 62 65 2c 20 73 65 
6e 64 20 4f 55 54 20 36 39   ibe, send OUT 69
1687684:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 31 31 31 2e 0a 54 65 
6c 3a 20 36 30 33 38 36 30   111..Tel: 603860
1687685:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 31 30 31 30 37 2c 49 
6e 6x 6x 6x 6x 7x 2x 4x 7x   10107
1687686:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 69 61 20 50 61 63 69 
66 69 63 20 53 64 6e 20 42   
1687687:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 68 64
1687688:2017-08-16 17:11:28 [3552] [22] DEBUG:Octet string dump ends.
1687689:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU dump ends.
1687692:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP[6SeriesConn13]: Got PDU:
1687693:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU 0x7f32c4001e40 dump:
1687694:2017-08-16 17:11:28 [3552] [22] DEBUG:   type_name: submit_sm_resp
1687695:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_id: 2147483652 = 
0x8004
1687696:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_status: 0 = 0x
1687697:2017-08-16 17:11:28 [3552] [22] DEBUG:   sequence_number: 619 = 
0x026b
1687698:2017-08-16 17:11:28 [3552] [22] DEBUG:   message_id: "31885349"
1687699:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU dump ends.


1687802:2017-08-16 17:11:32 [3552] [22] DEBUG: SMPP PDU 0x7f32c4006850 dump:
1687803:2017

RE: Wrong DLR ID.

2017-08-16 Thread Davor Spasoski
Check your ID numbering bases for submit_sm and deliver_sm. Looks like you are 
not using the same base for submit and deliver.

3188534916 = 83101780110

Msg-id-type is the parameter you should be looking at

Davor Spasoski

From: users [mailto:users-boun...@kannel.org] On Behalf Of Wan Md Arif Noor 
Bin. Wan Nizam
Sent: Wednesday, August 16, 2017 11:40 AM
To: users@kannel.org
Subject: Wrong DLR ID.

Hi Users,

I found weird thing with kannel today, where when submit an MT it was tagged 
with different ID but when I checked inside debug log, the ID was correct. This 
causing "got DLR but could not find message or was not interested in it 
id<31943697>" error. I don't know where this  831017801 come from. Appreciate 
your help on this.

Kannel bearerbox version `svn-r5186M'.

Logs :

2017-08-16 17:11:28 [SMSC:6SeriesConn13] [from:*] [to:**] 
[msg:82:RM0: To unsubscribe, send OUT 69111..Tel] [FID:831017801] 
[State:?smpp_resp?]
2017-08-16 17:11:32 [SMSC:6SeriesConn13] [from:+**] [to:*] [msg:0:] 
[FID:31885349] [State:?smpp?Message+State=2&]

1687656:2017-08-16 17:11:28 [3552] [22] DEBUG:   type_name: submit_sm
1687657:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_id: 4 = 0x0004
1687658:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_status: 0 = 0x
1687659:2017-08-16 17:11:28 [3552] [22] DEBUG:   sequence_number: 619 = 
0x026b
1687660:2017-08-16 17:11:28 [3552] [22] DEBUG:   service_type: NULL
1687661:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr_ton: 0 = 0x
1687662:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr_npi: 1 = 0x0001
1687663:2017-08-16 17:11:28 [3552] [22] DEBUG:   source_addr: "*"
1687664:2017-08-16 17:11:28 [3552] [22] DEBUG:   dest_addr_ton: 1 = 0x0001
1687665:2017-08-16 17:11:28 [3552] [22] DEBUG:   dest_addr_npi: 1 = 0x0001
1687666:2017-08-16 17:11:28 [3552] [22] DEBUG:   destination_addr: "***"
1687667:2017-08-16 17:11:28 [3552] [22] DEBUG:   esm_class: 0 = 0x
1687668:2017-08-16 17:11:28 [3552] [22] DEBUG:   protocol_id: 0 = 0x
1687669:2017-08-16 17:11:28 [3552] [22] DEBUG:   priority_flag: 0 = 0x
1687670:2017-08-16 17:11:28 [3552] [22] DEBUG:   schedule_delivery_time: NULL
1687671:2017-08-16 17:11:28 [3552] [22] DEBUG:   validity_period: NULL
1687672:2017-08-16 17:11:28 [3552] [22] DEBUG:   registered_delivery: 1 = 
0x0001
1687673:2017-08-16 17:11:28 [3552] [22] DEBUG:   replace_if_present_flag: 0 = 
0x
1687674:2017-08-16 17:11:28 [3552] [22] DEBUG:   data_coding: 0 = 0x
1687675:2017-08-16 17:11:28 [3552] [22] DEBUG:   sm_default_msg_id: 0 = 
0x
1687676:2017-08-16 17:11:28 [3552] [22] DEBUG:   sm_length: 82 = 0x0052
1687677:2017-08-16 17:11:28 [3552] [22] DEBUG:   short_message:
1687678:2017-08-16 17:11:28 [3552] [22] DEBUG:Octet string at 
0x7f32c4000b30:
1687679:2017-08-16 17:11:28 [3552] [22] DEBUG:  len:  82
1687680:2017-08-16 17:11:28 [3552] [22] DEBUG:  size: 83
1687681:2017-08-16 17:11:28 [3552] [22] DEBUG:  immutable: 0
1687682:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 52 4d 30 3a 20 54 6f 
20 75 6e 73 75 62 73 63 72   RM0: To unsubscr
1687683:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 69 62 65 2c 20 73 65 
6e 64 20 4f 55 54 20 36 39   ibe, send OUT 69
1687684:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 31 31 31 2e 0a 54 65 
6c 3a 20 36 30 33 38 36 30   111..Tel: 603860
1687685:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 31 30 31 30 37 2c 49 
6e 6x 6x 6x 6x 7x 2x 4x 7x   10107
1687686:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 69 61 20 50 61 63 69 
66 69 63 20 53 64 6e 20 42   
1687687:2017-08-16 17:11:28 [3552] [22] DEBUG:  data: 68 64
1687688:2017-08-16 17:11:28 [3552] [22] DEBUG:Octet string dump ends.
1687689:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU dump ends.
1687692:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP[6SeriesConn13]: Got PDU:
1687693:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU 0x7f32c4001e40 dump:
1687694:2017-08-16 17:11:28 [3552] [22] DEBUG:   type_name: submit_sm_resp
1687695:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_id: 2147483652 = 
0x8004
1687696:2017-08-16 17:11:28 [3552] [22] DEBUG:   command_status: 0 = 0x
1687697:2017-08-16 17:11:28 [3552] [22] DEBUG:   sequence_number: 619 = 
0x026b
1687698:2017-08-16 17:11:28 [3552] [22] DEBUG:   message_id: "31885349"
1687699:2017-08-16 17:11:28 [3552] [22] DEBUG: SMPP PDU dump ends.


1687802:2017-08-16 17:11:32 [3552] [22] DEBUG: SMPP PDU 0x7f32c4006850 dump:
1687803:2017-08-16 17:11:32 [3552] [22] DEBUG:   type_name: deliver_sm
1687804:2017-08-16 17:11:32 [3552] [22] DEBUG:   command_id: 5 = 0x0005
1687805:2017-08-16 17:11:32 [3552] [22] DEBUG:   command_status: 0 = 0x
1687806:2017-08-16 17:11:32 [3552] [22] DEBUG:   sequence_number: 31885417 = 
0x01e68869
1687807:2017-08-16 17:11:32 [3552] [22] DEBUG:   service_type: NULL
1687808:2017-08-16 17:11:32 [3552] [22] DEBUG:   

Re: Force DLR Request in OpenSMPP Kannel

2016-11-29 Thread Amritesh Rachelwar
Hi,

I guess you can set dlr-url(URL encoded) and dlr-mask column value to a
default value for


Amritesh


> On Sat, Apr 16, 2016 at 12:56 AM, Gorki Alfaro <gork...@gmail.com> wrote:
>
>> Vangelis
>>
>> Thanks for your answer, yesterday I tried to do this setting a default
>> valué on the dlrmask  field (send_sms table), additionally using the
>> kannel.conf I tried using dlr-mask and  dlr-url under  send-sms group. Both
>> options Didn't work at all.
>> So, Do I have to set dlr-url and dlr-mask in the sqlbox config file?
>>
>> Thanks in advance,
>> Gorki
>>
>>
>> Enviado desde mi iPhone
>>
>> El 15 abr 2016, a las 13:12, Vangelis Typaldos <vty...@outlook.com>
>> escribió:
>>
>> Dear Gorki,
>>
>>
>>
>> Please refer to the kannel documentation.
>>
>>
>>
>> Like with sendsms API, sqlbox will request for a delivery report to the
>> smsc if you setup dlr-mask (with any valid value, not only 7) and define a
>> dlr-url .
>>
>>
>>
>> As per Rene comment I think this won’t be returned to the ESME client
>> that is connected on opensmppbox , but the intermediation of sqlbox alter
>> the original registered_delivery value of the submit_sm packet PDU
>> requesting a delivery receipt from smsc.
>>
>>
>>
>> The mentioned sql statement just set a default value for dlr-mask
>> column(maps to registered_delivery value) in sendsms table.
>>
>>
>>
>> BR
>>
>> Vangelis
>>
>>
>>
>> *From: *Gorki Alfaro <gork...@gmail.com>
>> *Sent: *Thursday, April 14, 2016 11:06 PM
>> *To: *Vangelis Typaldos <vty...@outlook.com>
>> *Cc: *Rene Kluwen <rene.klu...@chimit.nl>; users@kannel.org
>> *Subject: *Re: Force DLR Request in OpenSMPP Kannel
>>
>>
>> Hello Friends
>>
>> I have installed SQLBox between BearerBox and OpenSMPPBox, I will try
>> changing  the DRL-Mask to 7.
>> But how it works? How setting this value to 7 will force DRL Request to
>> be called?
>>
>> Thanks for your answer,
>>
>> Gorki
>>
>> On Thu, Apr 14, 2016 at 2:47 AM, Vangelis Typaldos <vty...@outlook.com>
>> wrote:
>>
>>
>>
>> A solution could be to use a sqlbox between opensmppbox and bearerbox and
>> set a default value for column dlr-mask  in your sendsms table
>>
>>
>>
>> ALTER TABLE sendsms ALTER COLUMN dlr-mask SET DEFAULT 7;
>>
>>
>>
>> BR
>>
>>
>>
>> *From: *Rene Kluwen <rene.klu...@chimit.nl>
>> *Sent: *Thursday, April 14, 2016 10:11 AM
>> *To: *'Gorki Alfaro' <gork...@gmail.com>; users@kannel.org
>> *Subject: *RE: Force DLR Request in OpenSMPP Kannel
>>
>>
>>
>> I don’t think this is possible without changing the source code.
>>
>>
>>
>> *Van:* users [mailto:users-boun...@kannel.org] *Namens *Gorki Alfaro
>> *Verzonden:* woensdag 13 april 2016 21:58
>> *Aan:* users@kannel.org
>> *Onderwerp:* Force DLR Request in OpenSMPP Kannel
>>
>>
>>
>> Hello friends
>>
>> Is there any way to enable a DLR request on OpenSMPP client even if this
>> is not requested by the SMPP client (ESME)?
>>
>>
>>
>> I would like to keep record of the delivery success rate for billing and
>> statistics purporses.
>>
>>
>>
>> Regards,
>>
>> Gorki
>>
>>
>>
>


Re: Fwd: DLR with SendOTA

2016-10-18 Thread bhavya
Please help me

On Oct 18, 2016 5:24 PM, "bhavya [via Kannel]" <
ml-node+s6189n32522...@n7.nabble.com> wrote:

> HI,
>
> Please help me on this issue, its pending from long time.
> Need to get delivery report while sending OTA from kannel.
>
> Regards,
> BHavya
>
>
> --
> If you reply to this email, your message will be added to the discussion
> below:
> http://kannel.6189.n7.nabble.com/Fwd-DLR-with-SendOTA-tp27933p32522.html
> To unsubscribe from Fwd: DLR with SendOTA, click here
> 
> .
> NAML
> 
>




--
View this message in context: 
http://kannel.6189.n7.nabble.com/Fwd-DLR-with-SendOTA-tp27933p32523.html
Sent from the Kannel - User mailing list archive at Nabble.com.

Re: Fwd: DLR with SendOTA

2016-10-18 Thread bhavya
HI,

Please help me on this issue, its pending from long time.
Need to get delivery report while sending OTA from kannel.

Regards,
BHavya 




--
View this message in context: 
http://kannel.6189.n7.nabble.com/Fwd-DLR-with-SendOTA-tp27933p32522.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: got DLR but could not find message or was not interested in it

2016-09-27 Thread Stipe Tolj

Am 31.07.2015 12:03, schrieb Achyut Raj:

Hi Kannel Users,

I am having issue with the DLR receiving.

I have attached the log and config file below.


the SMSC provides the msg ID as HEX notation in the 
submit_sm.message_id, AND then does provide it as DECIMAL notation in 
the DLR payload of the deliver_sm PDU.


So you need to set:

  group = smsc
  ...
  msg-id-type = 0x01

Please see the corresponding documentation part at:
http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN1936

--
Best Regards,
Stipe Tolj

---
Düsseldorf, NRW, Germany

Kannel Foundation tolj.org system architecture
http://www.kannel.org/http://www.tolj.org/

stolj at kannel.org   st at tolj.org
---



Re: kannel dlr configuration

2016-09-01 Thread Loyc Cossou
Hi,

You need to make a script/program that will collect the DLRs and update
field "status". That script must be reachable via the dlr_url addres. Your
field "status" will not be updated by magic :).
The dlr_url will be called by kannel when the DLR is received by kannel and
pass to it the DLR... then your script/progam needs to update the field
"status" accordingly.

Hope it helps.

Regards.





Sent with MailTrack



--
loyc Cossou

On 30 August 2016 at 10:33, JAHANZAIB SYED  wrote:

> Dear  mr.mahdi at gmail.com
>
> Hope you are doing well. and please accept my apology to contact you like
> this. I need some help regarding kannel. I tried to join the kannel mailing
> list  few times but didn't received any reply.
> I recently implemented kannel 1.4.x with sqlbox on ubuntu 12.4. all is
> working. If i add insert query in send_sms table , the kannel send the sms
> and move its entry to sent_sms. example:
>
> INSERT INTO send_sms (  momt, sender, receiver, msgdata, sms_type,
> smsc_id) VALUES (  'MT', 'TESTID', '0021909', 'test from zaib via mysql
> box', 2,'zaibgsmid');
>
> my send_sms and sent_sms table is as follows (both are same)
>
> mysql> describe send_sms;
> +---+-+--+-+-++
> | Field | Type| Null | Key | Default | Extra  |
> +---+-+--+-+-++
> | sql_id| bigint(20)  | NO   | PRI | NULL| auto_increment |
> | momt  | enum('MO','MT') | YES  | | NULL||
> | sender| varchar(20) | YES  | | NULL||
> | receiver  | varchar(20) | YES  | | NULL||
> | udhdata   | blob| YES  | | NULL||
> | msgdata   | text| YES  | | NULL||
> | time  | bigint(20)  | YES  | | NULL||
> | smsc_id   | varchar(255)| YES  | | NULL||
> | service   | varchar(255)| YES  | | NULL||
> | account   | varchar(255)| YES  | | NULL||
> | id| bigint(20)  | YES  | | NULL||
> | sms_type  | bigint(20)  | YES  | | NULL||
> | mclass| bigint(20)  | YES  | | NULL||
> | mwi   | bigint(20)  | YES  | | NULL||
> | coding| bigint(20)  | YES  | | NULL||
> | compress  | bigint(20)  | YES  | | NULL||
> | validity  | bigint(20)  | YES  | | NULL||
> | deferred  | bigint(20)  | YES  | | NULL||
> | dlr_mask  | bigint(20)  | YES  | | NULL||
> | dlr_url   | varchar(255)| YES  | | NULL||
> | pid   | bigint(20)  | YES  | | NULL||
> | alt_dcs   | bigint(20)  | YES  | | NULL||
> | rpi   | bigint(20)  | YES  | | NULL||
> | charset   | varchar(255)| YES  | | NULL||
> | boxc_id   | varchar(255)| YES  | | NULL||
> | binfo | varchar(255)| YES  | | NULL||
> | meta_data | text| YES  | | NULL||
> | status| varchar(10) | YES  | | NULL||
> +---+-+--+-+-++
> 28 rows in set (0.01 sec)
>
>
> But the only problem is that it does not update the status field. my goal
> is to see the result so that i can query for successfull/failed sent sms.
>
> I guess it have something to with the dlr, can some1 please help me howto
> configure dlr? howcan i submit dlr with url or directly in mysql?
>  any sample config?
>
>
>
>
> *Regards, *
> *JZ*
>


Re: re DLR Missing on Hug Request

2016-07-08 Thread Web Services
Hello Fajar,


thanks for your reply

can you please let me know what server configuration you using for sending
150k sms per day and what TPS you using for sending.

Thanks

Deepak

On Mon, Jul 4, 2016 at 5:39 AM, Fajar <bebas...@yahoo.com> wrote:

> if you sure you have map correctly msgid with DLR url. you'll need to
> check how fast you can submit message to SMSC, you'll need to match with
> your submit to kannel. i'm sending around 150k messages per day, only miss
> around 100 DLR if smsc work correctly. if smsc got slow, kannel will build
> queue upto 10k messages. at that that DLR miss will be more 1k...
>
> thanks
>
> fajar
>
>
> --
> *From:* Web Services <coinhost...@gmail.com>
> *To:* users@kannel.org
> *Sent:* Saturday, 2 July 2016, 18:55
> *Subject:* re DLR Missing on Hug Request
>
> Can anyone help on this ??
>
>
>
> Hello,
>
> am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
> volume of sms.
>
> i mean my application and kannel works perfectly if i send upto 100's
> message but on large volume like 10,000 or more i missed lots of DLR
> reports. am using external storage with spool and dlr url
>
>
>
> kindly suggest
>
> Deepak
>
>
>
>


Re: re DLR Missing on Hug Request

2016-07-03 Thread vinayak mv
Please use sqlbox so u dont miss any dlr

On Monday 4 July 2016, Fajar <bebas...@yahoo.com> wrote:

> if you sure you have map correctly msgid with DLR url. you'll need to
> check how fast you can submit message to SMSC, you'll need to match with
> your submit to kannel. i'm sending around 150k messages per day, only miss
> around 100 DLR if smsc work correctly. if smsc got slow, kannel will build
> queue upto 10k messages. at that that DLR miss will be more 1k...
>
> thanks
>
> fajar
>
>
> --
> *From:* Web Services <coinhost...@gmail.com
> <javascript:_e(%7B%7D,'cvml','coinhost...@gmail.com');>>
> *To:* users@kannel.org <javascript:_e(%7B%7D,'cvml','users@kannel.org');>
> *Sent:* Saturday, 2 July 2016, 18:55
> *Subject:* re DLR Missing on Hug Request
>
> Can anyone help on this ??
>
>
>
> Hello,
>
> am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
> volume of sms.
>
> i mean my application and kannel works perfectly if i send upto 100's
> message but on large volume like 10,000 or more i missed lots of DLR
> reports. am using external storage with spool and dlr url
>
>
>
> kindly suggest
>
> Deepak
>
>
>
>

-- 
Thanks & Regards,
Vinayak


Re: re DLR Missing on Hug Request

2016-07-03 Thread Fajar
if you sure you have map correctly msgid with DLR url. you'll need to check how 
fast you can submit message to SMSC, you'll need to match with your submit to 
kannel. i'm sending around 150k messages per day, only miss around 100 DLR if 
smsc work correctly. if smsc got slow, kannel will build queue upto 10k 
messages. at that that DLR miss will be more 1k...
thanks
fajar

  From: Web Services <coinhost...@gmail.com>
 To: users@kannel.org 
 Sent: Saturday, 2 July 2016, 18:55
 Subject: re DLR Missing on Hug Request
   
Can anyone help on this ??

Hello,

am using kannel 1.4.4 with Ubuntu 14.4 but am facing an issue with large
volume of sms.i mean my application and kannel works perfectly if i send upto 
100's
message but on large volume like 10,000 or more i missed lots of DLR
reports. am using external storage with spool and dlr url



kindly suggest

Deepak

   

Re: Force DLR Request in OpenSMPP Kannel

2016-04-15 Thread Gorki Alfaro
Vangelis 

Thanks for your answer, yesterday I tried to do this setting a default valué on 
the dlrmask  field (send_sms table), additionally using the kannel.conf I tried 
using dlr-mask and  dlr-url under  send-sms group. Both options Didn't work at 
all.
So, Do I have to set dlr-url and dlr-mask in the sqlbox config file? 

Thanks in advance,
Gorki


Enviado desde mi iPhone

> El 15 abr 2016, a las 13:12, Vangelis Typaldos <vty...@outlook.com> escribió:
> 
> Dear Gorki,
>  
> Please refer to the kannel documentation.
>  
> Like with sendsms API, sqlbox will request for a delivery report to the smsc 
> if you setup dlr-mask (with any valid value, not only 7) and define a dlr-url 
> .
>  
> As per Rene comment I think this won’t be returned to the ESME client that is 
> connected on opensmppbox , but the intermediation of sqlbox alter the 
> original registered_delivery value of the submit_sm packet PDU requesting a 
> delivery receipt from smsc.
>  
> The mentioned sql statement just set a default value for dlr-mask column(maps 
> to registered_delivery value) in sendsms table.
>  
> BR
> Vangelis
>  
> From: Gorki Alfaro
> Sent: Thursday, April 14, 2016 11:06 PM
> To: Vangelis Typaldos
> Cc: Rene Kluwen; users@kannel.org
> Subject: Re: Force DLR Request in OpenSMPP Kannel
>  
> Hello Friends
> 
> I have installed SQLBox between BearerBox and OpenSMPPBox, I will try 
> changing  the DRL-Mask to 7.
> But how it works? How setting this value to 7 will force DRL Request to be 
> called?
> 
> Thanks for your answer,
> 
> Gorki
> 
> On Thu, Apr 14, 2016 at 2:47 AM, Vangelis Typaldos <vty...@outlook.com> wrote:
>  
> 
> A solution could be to use a sqlbox between opensmppbox and bearerbox and set 
> a default value for column dlr-mask  in your sendsms table
> 
>  
> 
> ALTER TABLE sendsms ALTER COLUMN dlr-mask SET DEFAULT 7;
> 
>  
> 
> BR
> 
>  
> 
> From: Rene Kluwen
> Sent: Thursday, April 14, 2016 10:11 AM
> To: 'Gorki Alfaro'; users@kannel.org
> Subject: RE: Force DLR Request in OpenSMPP Kannel
> 
>  
> 
> I don’t think this is possible without changing the source code.
> 
>  
> 
> Van: users [mailto:users-boun...@kannel.org] Namens Gorki Alfaro
> Verzonden: woensdag 13 april 2016 21:58
> Aan: users@kannel.org
> Onderwerp: Force DLR Request in OpenSMPP Kannel
> 
>  
> 
> Hello friends 
> 
> Is there any way to enable a DLR request on OpenSMPP client even if this is 
> not requested by the SMPP client (ESME)?
> 
>  
> 
> I would like to keep record of the delivery success rate for billing and 
> statistics purporses.
> 
>  
> 
> Regards,
> 
> Gorki
> 
> 


RE: Force DLR Request in OpenSMPP Kannel

2016-04-15 Thread Vangelis Typaldos
Dear Gorki,

Please refer to the kannel documentation.

Like with sendsms API, sqlbox will request for a delivery report to the smsc if 
you setup dlr-mask (with any valid value, not only 7) and define a dlr-url .

As per Rene comment I think this won’t be returned to the ESME client that is 
connected on opensmppbox , but the intermediation of sqlbox alter the original 
registered_delivery value of the submit_sm packet PDU requesting a delivery 
receipt from smsc.

The mentioned sql statement just set a default value for dlr-mask column(maps 
to registered_delivery value) in sendsms table.

BR
Vangelis

From: Gorki Alfaro<mailto:gork...@gmail.com>
Sent: Thursday, April 14, 2016 11:06 PM
To: Vangelis Typaldos<mailto:vty...@outlook.com>
Cc: Rene Kluwen<mailto:rene.klu...@chimit.nl>; 
users@kannel.org<mailto:users@kannel.org>
Subject: Re: Force DLR Request in OpenSMPP Kannel

Hello Friends

I have installed SQLBox between BearerBox and OpenSMPPBox, I will try
changing  the DRL-Mask to 7.
But how it works? How setting this value to 7 will force DRL Request to be
called?

Thanks for your answer,

Gorki

On Thu, Apr 14, 2016 at 2:47 AM, Vangelis Typaldos <vty...@outlook.com>
wrote:

>
>
> A solution could be to use a sqlbox between opensmppbox and bearerbox and
> set a default value for column dlr-mask  in your sendsms table
>
>
>
> ALTER TABLE sendsms ALTER COLUMN dlr-mask SET DEFAULT 7;
>
>
>
> BR
>
>
>
> *From: *Rene Kluwen <rene.klu...@chimit.nl>
> *Sent: *Thursday, April 14, 2016 10:11 AM
> *To: *'Gorki Alfaro' <gork...@gmail.com>; users@kannel.org
> *Subject: *RE: Force DLR Request in OpenSMPP Kannel
>
>
>
> I don’t think this is possible without changing the source code.
>
>
>
> *Van:* users [mailto:users-boun...@kannel.org] *Namens *Gorki Alfaro
> *Verzonden:* woensdag 13 april 2016 21:58
> *Aan:* users@kannel.org
> *Onderwerp:* Force DLR Request in OpenSMPP Kannel
>
>
>
> Hello friends
>
> Is there any way to enable a DLR request on OpenSMPP client even if this
> is not requested by the SMPP client (ESME)?
>
>
>
> I would like to keep record of the delivery success rate for billing and
> statistics purporses.
>
>
>
> Regards,
>
> Gorki
>


Re: Force DLR Request in OpenSMPP Kannel

2016-04-14 Thread Gorki Alfaro
Hello Friends

I have installed SQLBox between BearerBox and OpenSMPPBox, I will try
changing  the DRL-Mask to 7.
But how it works? How setting this value to 7 will force DRL Request to be
called?

Thanks for your answer,

Gorki

On Thu, Apr 14, 2016 at 2:47 AM, Vangelis Typaldos <vty...@outlook.com>
wrote:

>
>
> A solution could be to use a sqlbox between opensmppbox and bearerbox and
> set a default value for column dlr-mask  in your sendsms table
>
>
>
> ALTER TABLE sendsms ALTER COLUMN dlr-mask SET DEFAULT 7;
>
>
>
> BR
>
>
>
> *From: *Rene Kluwen <rene.klu...@chimit.nl>
> *Sent: *Thursday, April 14, 2016 10:11 AM
> *To: *'Gorki Alfaro' <gork...@gmail.com>; users@kannel.org
> *Subject: *RE: Force DLR Request in OpenSMPP Kannel
>
>
>
> I don’t think this is possible without changing the source code.
>
>
>
> *Van:* users [mailto:users-boun...@kannel.org] *Namens *Gorki Alfaro
> *Verzonden:* woensdag 13 april 2016 21:58
> *Aan:* users@kannel.org
> *Onderwerp:* Force DLR Request in OpenSMPP Kannel
>
>
>
> Hello friends
>
> Is there any way to enable a DLR request on OpenSMPP client even if this
> is not requested by the SMPP client (ESME)?
>
>
>
> I would like to keep record of the delivery success rate for billing and
> statistics purporses.
>
>
>
> Regards,
>
> Gorki
>


RE: Force DLR Request in OpenSMPP Kannel

2016-04-14 Thread Vangelis Typaldos

A solution could be to use a sqlbox between opensmppbox and bearerbox and set a 
default value for column dlr-mask  in your sendsms table

ALTER TABLE sendsms ALTER COLUMN dlr-mask SET DEFAULT 7;

BR

From: Rene Kluwen<mailto:rene.klu...@chimit.nl>
Sent: Thursday, April 14, 2016 10:11 AM
To: 'Gorki Alfaro'<mailto:gork...@gmail.com>; 
users@kannel.org<mailto:users@kannel.org>
Subject: RE: Force DLR Request in OpenSMPP Kannel

I don’t think this is possible without changing the source code.



Van: users [mailto:users-boun...@kannel.org] Namens Gorki Alfaro
Verzonden: woensdag 13 april 2016 21:58
Aan: users@kannel.org
Onderwerp: Force DLR Request in OpenSMPP Kannel



Hello friends

Is there any way to enable a DLR request on OpenSMPP client even if this is not 
requested by the SMPP client (ESME)?



I would like to keep record of the delivery success rate for billing and 
statistics purporses.



Regards,

Gorki



RE: Force DLR Request in OpenSMPP Kannel

2016-04-14 Thread Rene Kluwen
I don’t think this is possible without changing the source code.

 

Van: users [mailto:users-boun...@kannel.org] Namens Gorki Alfaro
Verzonden: woensdag 13 april 2016 21:58
Aan: users@kannel.org
Onderwerp: Force DLR Request in OpenSMPP Kannel

 

Hello friends 

Is there any way to enable a DLR request on OpenSMPP client even if this is not 
requested by the SMPP client (ESME)?

 

I would like to keep record of the delivery success rate for billing and 
statistics purporses.

 

Regards,

Gorki



Re: Receive DLR if transceiver-mode = false

2015-12-07 Thread Robin C
Hi Bronislav,

set
 receive-port = 'your port number'

and # trasceiver-mode = 1


On Mon, Dec 7, 2015 at 9:05 PM, Bronislav Essikman 
wrote:

> Can i receive DLR if transceiver-mode = false
> If i set it to true it works fine.
> But i need only DLR receiving. SMS receiving should be disable.
> Many thanks
> Slawa
>



-- 

   *Thanks & Regards,*



  Robin C

 Linux System Administrator



*ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
Development, Web & Graphic Designing.*


*www.zincron.co.in  | www. easyhops.co.in
 | www.equipe.co.in   *

*Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*


*Mobile: +919544861010 *| Phone: 91-471- 4140414 |  Fax : 91-471-4010413 |
Raise Your Ticket: zincron-ticketing.com


Connect with us @ Facebook

 | LinkedIn


Disclaimer:  This message contains confidential information and is intended
only for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please notify the
sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system.  E-mail transmission cannot be
guaranteed to be secure or error-free as information could be intercepted,
corrupted, lost, destroyed, arrive late or incomplete, or contain
viruses.  The sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a result of
e-mail transmission.  If verification is required please request a
hard-copy version.

*7* Switch off as you go |*q *Recycle always | P Print only if absolutely
necessary


Re: Parsing DLR from HTTP SMSC

2015-11-19 Thread ha...@aeon.pk
Thanks. After I have extracted it, how will I pass it on the application?

On Thu, Nov 19, 2015 at 11:04 PM, Lamasuta, Franck, Vodafone Automotive <
franck.lamas...@vodafonetelematics.com> wrote:

> Hi Hamza,
>
>
>
> In your specific case, I think you should set this to retrieve the message
> id from the XML response:
>
> *generic-foreign-id-regex =
> "Successful:([0-9]+)"*
>
>
>
> Regards,
>
> Franck
>
>
>
>
>
> *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *
> ha...@aeon.pk
> *Sent:* Wednesday, November 18, 2015 1:02 PM
> *To:* kannel users
> *Subject:* Parsing DLR from HTTP SMSC
>
>
>
> Hi,
>
>
>
> I am hitting an HTTP SMSC with this configuration:
>
>
>
> group = smsc
> smsc = http
> smsc-id = abc
> system-type = generic
> port = 13001
> send-url = "http://XXX;
> status-success-regex = "Successful"
> status-permfail-regex = "Invalid"
> status-tempfail-regex = "Expired"
> generic-foreign-id-regex = "(.+)"
> generic-param-from = "phoneNumber"
> generic-param-to = "shortCode"
> generic-message-sent = "Message sent with ID: %I"
> generic-status-sent = 200
> generic-status-error = 404
>
>
>
> And getting following response in XML:
>
>
>
> 
>
> 0
>
> Successful:2482493
>
> 
>
>
>
> Can someone tell me how to pick up DLR from this response via any config
> parameter? Is this number 2482493 the DLR ID? How will I map it to my
> request?
>
>
>
> Thanks,
>
> Hamza
>
>
> This message and any files or documents attached are strictly confidential
> or otherwise legally protected. It is intended only for the individual or
> entity named. If you are not the named addressee or have received this
> email in error, please inform the sender immediately, delete it from your
> system and do not copy or disclose it or its contents or use it for any
> purpose. Please also note that transmission cannot be guaranteed to be
> secure or error-free.
>


RE: Parsing DLR from HTTP SMSC

2015-11-19 Thread Lamasuta, Franck, Vodafone Automotive
Hi Hamza,

In your specific case, I think you should set this to retrieve the message id 
from the XML response:
generic-foreign-id-regex = "Successful:([0-9]+)"

Regards,
Franck


From: users [mailto:users-boun...@kannel.org] On Behalf Of ha...@aeon.pk
Sent: Wednesday, November 18, 2015 1:02 PM
To: kannel users
Subject: Parsing DLR from HTTP SMSC

Hi,

I am hitting an HTTP SMSC with this configuration:

group = smsc
smsc = http
smsc-id = abc
system-type = generic
port = 13001
send-url = "http://XXX;
status-success-regex = "Successful"
status-permfail-regex = "Invalid"
status-tempfail-regex = "Expired"
generic-foreign-id-regex = "(.+)"
generic-param-from = "phoneNumber"
generic-param-to = "shortCode"
generic-message-sent = "Message sent with ID: %I"
generic-status-sent = 200
generic-status-error = 404

And getting following response in XML:


0
Successful:2482493


Can someone tell me how to pick up DLR from this response via any config 
parameter? Is this number 2482493 the DLR ID? How will I map it to my request?

Thanks,
Hamza

This message and any files or documents attached are strictly confidential or 
otherwise legally protected. It is intended only for the individual or entity 
named. If you are not the named addressee or have received this email in error, 
please inform the sender immediately, delete it from your system and do not 
copy or disclose it or its contents or use it for any purpose. Please also note 
that transmission cannot be guaranteed to be secure or error-free.


RE: OpenSMPPBox DLR Routing

2015-05-18 Thread Rene Kluwen
Maybe you can post some logs of a submit_sm operation, on both sides 
(opensmppbox and SMSC1).

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Ammar Ali
Sent: maandag 18 mei 2015 16:03
To: users@kannel.org
Subject: OpenSMPPBox DLR Routing

 

Hello Everyone,



I'm configuring OpenSMPPBox with Kannel and It works fine.

I'm testing this with NOWSMS SMPP simulator. I'm sending sms through this 
simulator, I'm getting sms on cell phone. But there is an issue with DLR, I'm 
not getting DLR.

 

This is my configuration files:

Kannel.conf


group = core
admin-port = 13000
admin-port-ssl=no
admin-password = 
status-password = 
admin-deny-ip=*.*.*.*
admin-allow-ip=*.*.*.*
smsbox-interface =127.0.0.1
smsbox-port = 13001
log-file = /var/logs/kannel.log
log-level = 0
access-log = /var/logs/access.access
dlr-storage = mysql
sms-incoming-queue-limit = -1
sms-outgoing-queue-limit = 1000
smsbox-max-pending = 100
sms-resend-freq = 60
sms-resend-retry = -1

group = smsbox
smsbox-id = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
sendsms-port = 13010
log-file = /var/logs/smsbox.log
log-level = 0
access-log=/var/logs/smsaccess.access
sendsms-chars = 0123456789+ 
sendsms-url=/cgi-bin/sendsms
mo-recode='1'

group = smsc
smsc = smpp
smsc-id = SMSC1
log-file = /var/logs/SMSC1_LOG.log
log-level = 0
host = xxx.xxx.xxx.xxx
port = 
smsc-username = x
smsc-password = x
allowed-smsc-id = SMSC1
preferred-smsc-id = SMSC1
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 1
dest-addr-npi = 1
service-type = CMT
system-type = SMPP
alt-charset=ASCII
bind-addr-ton = 0
bind-addr-npi = 0
enquire-link-interval = 120
reconnect-delay = 0
transceiver-mode = true
interface-version = 34
connection-timeout = 0
throughput = 100
reroute-dlr=1

group = smsbox-route
smsbox-id = sqlbox
smsc-id = SMSC1

group = sms-service
keyword = default
text = No service specified
accept-x-kannel-headers = true
concatenation = true
catch-all = true

group = sendsms-user
name = sendsmsuser
username = tester
password = tester
forced-smsc = SMSC1
max-messages=10

group = mysql-connection
id = mydlr
host=localhost
username = xx
password = xx
database = x
max-connections = 10

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

SLQBOX.conf

group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
global-sender = 
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
smsbox-port = 13002
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = /var/logs/sqlbox.log
log-level = 0

group = mysql-connection
id = sqlbox-db
host=localhost
port = 3306
username = x
password = xx
database = xx
max-connections = 10

SMPPBOX.conf

group = core
dlr-storage = mysql

group = opensmppbox
smpp-logins = clients.txt
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
log-file = /var/logs/opensmppbox.log
log-level = 0
opensmppbox-id = opensmppbox
use-systemid-as-smsboxid = true
opensmppbox-port = 2345
our-system-id = opensmppbox
route-to-smsc = SMSC1
use-systemid-as-smsboxid = 1

group = mysql-connection
id = sqlbox-db
host=localhost
port = 3306
username = x
password = xx
database = xx
max-connections = 10


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



Thanks in advance



Thanks

Ammar Ali

Pune (M.H.)

 



Re: Muti Dlr URL for XML POST

2014-12-02 Thread Alvaro Cornejo
Hi

Never worked with xml post but I assume bearerbox treats it the same way
as coming from smsbox; therefore:

- You can't get individual dlr when sending group messages. If you need
individual dlrs, you must submit them individually.
- in xml there should be a tag equivalent to smsbox ...smsc=xxx...;
something like:

smscMySmscRoute/smsc

inside your submit tag

Hope helps

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 Tue, Dec 2, 2014 at 5:13 AM, michael osakede ire...@yahoo.com wrote:

 Hello All,

 I am sending messages using XML POST, but I am unable to change the
 dynamic parrameter for the dlr url.
 my XML contains multiple numbers, i need to pass a dynamic variable for
 each number as one number can be subscribed to multiple services.

 How do I send multiple dynamic variables through the dlr url?
 Also how do I route a message from XML POST to a particular smsc?

 $gid=2;
 $xml = '?xml version=1.0?
 message
 submit
 danumber+23480XX/number/da
 danumber+2347XXX/number/da
 oanumber35747/number/oa
 uduser data/ud
 statusrequest
   dlr-mask31/dlr-mask
   dlr-url
 http://localhost/dlrnewXX.php?status=%damp;answer=%Aamp;to=%Pamp;from=%pamp;dlr=yesamp;messageid='.$gid.'amp;smsc=%i
 /dlr-url
 /statusrequest
 from
 usernametester/username
 passwordfoobar/password
 /from
 /submit
 /message';

 Regards,
 Michael



Re: Incorrect DLR mapping in kannel 1.5.0

2014-11-24 Thread Christopher Burke
When the DLR-URL was called 4 times, what was the status of the DLR 
(ACCEPTED/DELIVRD/ERROR etc). I suspect you’ll need to provide logs  
configuration for additional assistance.

Cheers,
Christopher Burke
http://simulity.com
Office: +44 (0) 1248 679 281
Fax: +44 (0) 1248 660 323
Skype:krslynx



UK
Unit 8, Ash Court,
Parc Menai, Bangor,
Gwynedd, LL57 4DF,
Wales, UK

Malaysia
Level 30,
The Gardens North Tower,
Mid Valley City,
Lingkaran Syed Putra,
59200, Kuala Lumpur,
Malaysia

NOTICE: This message contains privileged  confidential information intended 
only for the use of the addressee named above. If you are not the intended 
recipient of this message, you are hereby notified that you must not 
disseminate, copy or take any action in reliance on it. If you have received 
this message in error, please notify Simulity Labs immediately. Any views 
expressed in this message are those of the individual sender except where the 
sender specifically states them to be the view of Simulity Labs


On 24 November 2014 at 08:03:22, Tanja Kipreska (tanja.kipre...@gmail.com) 
wrote:

Dear Kannel users,

We have a problem with incorrect delivery reports mapping in kannel 1.5.0. 
Problem is not constant and it usually occurs when there is increased number of 
AO-MT SMSes sent from various senders (originating addresses) that are 
requesting DLRs. 
 
I have managed to reproduce the problem with following test. In the busy hour 
(period when there is increased number of SMSes requesting DLR from kannel) I 
have sent 4 SMSes (requesting DLR) to detached mobile subscriber. Surprisingly 
(within several minutes) dlr-url that I have set in messages towards detached 
subscriber was called 4 times, although SMSes were still waiting to be 
delivered on the SMSC. I have analyzed SMPP communication between SMS gateway 
(kannel) and SMSC for the period when test was conducted and SMSC does 
everything correctly. 
 
We are using kannel 1.5.0 svn version from 25.07.2012 and mysql 5.0.95 for 
external dlr storage.
 
Please advise what might be causing this irregular behavior.
 
Looking forward to your answer,
Tanja

Re: Incorrect DLR mapping in kannel 1.5.0

2014-11-24 Thread Tanja Kipreska
First 3 DLRs were with status=1(DELIVERED) and the 4th DLR was with
status=2 (EXPIRED). Here are access.log details for the MSISDN I've tested
with:
 2014-11-20 11:21:11 Sent SMS [SMSC:smsc4.7] [SVC:bulk] [ACT:] [BINF:]
[FID:9223372036854775807] [META:] [from:ONE] [to:076514006]
[flags:1:0:-1:-1:3] [msg:15:Test za DLR ONE]  [udh:0:]
2014-11-20 11:23:17 Receive DLR [SMSC:smsc4.7] [SVC:bulk] [ACT:vasgw]
[BINF:] [FID:9223372036854775807] [META:?smpp?dlr_err=%03%00%00]
[from:ONE] [to:076514006] [flags:-1:-1: -1:-1:1]
[msg:126:id:ff02553314cb sub:001 dlvrd:001 submit date:1411201123 done
date:1411201123 stat:DELIVRD err:0 text:message Pocituvani t] [udh:0:]
2014-11-20 11:36:46 Sent SMS [SMSC:smsc4.7] [SVC:bulk] [ACT:] [BINF:]
[FID:9223372036854775807] [META:] [from:ONE] [to:076514006]
[flags:1:0:-1:-1:3] [msg:15:Test za DLR ONE]  [udh:0:]
2014-11-20 11:37:16 Receive DLR [SMSC:smsc4.7] [SVC:bulk] [ACT:vasgw]
[BINF:] [FID:9223372036854775807] [META:?smpp?dlr_err=%03%00%00]
[from:ONE] [to:076514006] [flags:-1:-1: -1:-1:1]
[msg:126:id:ff0455332830 sub:001 dlvrd:001 submit date:1411201137 done
date:1411201137 stat:DELIVRD err:0 text:message Pocituvani t] [udh:0:]
2014-11-20 11:39:53 Sent SMS [SMSC:smsc4.7] [SVC:bulk] [ACT:] [BINF:]
[FID:9223372036854775807] [META:] [from:ONE] [to:076514006]
[flags:1:0:-1:-1:3] [msg:15:Test za DLR ONE]  [udh:0:]
2014-11-20 11:40:13 Receive DLR [SMSC:smsc4.7] [SVC:bulk] [ACT:vasgw]
[BINF:] [FID:9223372036854775807] [META:?smpp?dlr_err=%03%06%00]
[from:ONE] [to:076514006] [flags:-1:-1: -1:-1:1]
[msg:126:id:ff082e0a7867 sub:001 dlvrd:001 submit date:1411200908 done
date:1411201140 stat:DELIVRD err:0 text:message Pocituvani t] [udh:0:]
2014-11-20 11:40:54 Sent SMS [SMSC:smsc4.7] [SVC:bulk] [ACT:] [BINF:]
[FID:9223372036854775807] [META:] [from:ONE] [to:076514006]
[flags:1:0:-1:-1:3] [msg:15:Test za DLR ONE]  [udh:0:]
2014-11-20 11:48:08 Receive DLR [SMSC:smsc4.7] [SVC:bulk] [ACT:vasgw]
[BINF:] [FID:9223372036854775807] [META:?smpp?dlr_err=%03%06%00]
[from:ONE] [to:076514006] [flags:-1:-1: -1:-1:2]
[msg:127:id:ff05551a6099 sub:001 dlvrd:001 submit date:1411151148 done
date:1411201148 stat:EXPIRED err:58 text:message Pocituvani t] [udh:0:]

I am forwarding you details, SMPP deliver_sm PDUs received from the SMSC,
that kannel mapped into last 3 DLRs shown above. As you can see from the
attached traces, DLRs are intended for completely different initiated SMSes
(they have different originating and destination addresses). Please note
that traces(tcdumps) are taken from the production environment (having
commercial MSISDNs)thus i had to obfuscate them in the provided traces.

At your disposal for further clarifications,
Tanja

On Mon, Nov 24, 2014 at 9:19 AM, Christopher Burke 
christopher.bu...@simulity.com wrote:

 When the DLR-URL was called 4 times, what was the status of the DLR
 (ACCEPTED/DELIVRD/ERROR etc). I suspect you’ll need to provide logs 
 configuration for additional assistance.

 Cheers,


 *Christopher Burke*http://simulity.com
 Office: +44 (0) 1248 679 281
 Fax: +44 (0) 1248 660 323
 Skype:krslynx



 *UK*Unit 8, Ash Court,
 Parc Menai, Bangor,
 Gwynedd, LL57 4DF,
 Wales, UK


 *Malaysia*Level 30,
 The Gardens North Tower,
 Mid Valley City,
 Lingkaran Syed Putra,
 59200, Kuala Lumpur,
 Malaysia

 NOTICE: This message contains privileged  confidential information
 intended only for the use of the addressee named above. If you are not the
 intended recipient of this message, you are hereby notified that you must
 not disseminate, copy or take any action in reliance on it. If you have
 received this message in error, please notify Simulity Labs immediately.
 Any views expressed in this message are those of the individual sender
 except where the sender specifically states them to be the view of Simulity
 Labs

 On 24 November 2014 at 08:03:22, Tanja Kipreska (tanja.kipre...@gmail.com)
 wrote:

  Dear Kannel users,


 We have a problem with incorrect delivery reports mapping in kannel 1.5.0.
 Problem is not constant and it usually occurs when there is increased
 number of AO-MT SMSes sent from various senders (originating addresses)
 that are requesting DLRs.



 I have managed to reproduce the problem with following test. In the busy
 hour (period when there is increased number of SMSes requesting DLR from
 kannel) I have sent 4 SMSes (requesting DLR) to detached mobile subscriber.
 Surprisingly (within several minutes) dlr-url that I have set in messages
 towards detached subscriber was called 4 times, although SMSes were still
 waiting to be delivered on the SMSC. I have analyzed SMPP communication
 between SMS gateway (kannel) and SMSC for the period when test was
 conducted and SMSC does everything correctly.



 We are using kannel 1.5.0 svn version from 25.07.2012 and mysql 5.0.95 for
 external dlr storage.



 Please advise what 

RE: Opensmppbox DLR question

2014-09-28 Thread Rene Kluwen
I believe so, yes.

 

From: Lam Nguyen Tuong [mailto:lam...@outlook.com] 
Sent: zaterdag 27 september 2014 18:01
To: Rene Kluwen; users@kannel.org
Subject: RE: Opensmppbox DLR question

 

Thanks Rene,
So in case there is no DLR configured in opensmppbox.conf, the pending
dlr's to the esme's will be held in Memory?

:: Lamnt

  _  

From: rene.klu...@chimit.nl
To: lam...@outlook.com; users@kannel.org
Subject: RE: Opensmppbox DLR question
Date: Fri, 26 Sep 2014 21:13:36 +0200

Bearerbox keep track of the dlr's that are generated by the carrier smsc's.

Opensmppbox dlr table keeps track of pending dlr's to the esme's.

Kind of the same, but just the other way around.

 

== Rene

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Lam Nguyen Tuong
Sent: vrijdag 26 september 2014 16:53
To: users@kannel.org
Subject: Opensmppbox DLR question

 


Dear list,
We already have DLR which managed by bearerbox. What is DLR configured by
opensmppbox and its purpose?

Thank you.

Lamnt.



RE: Opensmppbox DLR question

2014-09-28 Thread Lam Nguyen Tuong
Thank you for your time, sir.

From: rene.klu...@chimit.nl
To: lam...@outlook.com; users@kannel.org
Subject: RE: Opensmppbox DLR question
Date: Sun, 28 Sep 2014 10:56:35 +0200

I believe so, yes. From: Lam Nguyen Tuong [mailto:lam...@outlook.com] 
Sent: zaterdag 27 september 2014 18:01
To: Rene Kluwen; users@kannel.org
Subject: RE: Opensmppbox DLR question Thanks Rene,
So in case there is no DLR configured in opensmppbox.conf, the pending dlr's 
to the esme's will be held in Memory?

:: LamntFrom: rene.klu...@chimit.nl
To: lam...@outlook.com; users@kannel.org
Subject: RE: Opensmppbox DLR question
Date: Fri, 26 Sep 2014 21:13:36 +0200Bearerbox keep track of the dlr’s that are 
generated by the carrier smsc’s.Opensmppbox dlr table keeps track of pending 
dlr’s to the esme’s.Kind of the same, but just the other way around. == Rene  
From: users [mailto:users-boun...@kannel.org] On Behalf Of Lam Nguyen Tuong
Sent: vrijdag 26 september 2014 16:53
To: users@kannel.org
Subject: Opensmppbox DLR question 
Dear list,
We already have DLR which managed by bearerbox. What is DLR configured by 
opensmppbox and its purpose?

Thank you.

Lamnt.

RE: Opensmppbox DLR question

2014-09-27 Thread Lam Nguyen Tuong
Thanks Rene,
So in case there is no DLR configured in opensmppbox.conf, the pending dlr's 
to the esme's will be held in Memory?

:: Lamnt

From: rene.klu...@chimit.nl
To: lam...@outlook.com; users@kannel.org
Subject: RE: Opensmppbox DLR question
Date: Fri, 26 Sep 2014 21:13:36 +0200

Bearerbox keep track of the dlr’s that are generated by the carrier 
smsc’s.Opensmppbox dlr table keeps track of pending dlr’s to the esme’s.Kind of 
the same, but just the other way around. == Rene  From: users 
[mailto:users-boun...@kannel.org] On Behalf Of Lam Nguyen Tuong
Sent: vrijdag 26 september 2014 16:53
To: users@kannel.org
Subject: Opensmppbox DLR question 
Dear list,
We already have DLR which managed by bearerbox. What is DLR configured by 
opensmppbox and its purpose?

Thank you.

Lamnt.

RE: Opensmppbox DLR question

2014-09-26 Thread Rene Kluwen
Bearerbox keep track of the dlr's that are generated by the carrier smsc's.

Opensmppbox dlr table keeps track of pending dlr's to the esme's.

Kind of the same, but just the other way around.

 

== Rene

 

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Lam Nguyen Tuong
Sent: vrijdag 26 september 2014 16:53
To: users@kannel.org
Subject: Opensmppbox DLR question

 


Dear list,
We already have DLR which managed by bearerbox. What is DLR configured by
opensmppbox and its purpose?

Thank you.

Lamnt.



Re: OTA DLR help needed!!!

2014-07-07 Thread bhavya
Hi,

I have also find the solution of this question.

DLR is not hit while sending ota messages.

Please guide me.


Regards,
Bhavya




--
View this message in context: 
http://kannel.6189.n7.nabble.com/OTA-DLR-help-needed-tpp30311.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: OTA DLR help needed!!!

2014-07-07 Thread bhavya
Hi,

If anybody know the answer then please share us.

This is very important for our project , i have tried a lot but unable to
find the solution.

Please HELP us.


Thanks  Regards,
Bhavya 



--
View this message in context: 
http://kannel.6189.n7.nabble.com/OTA-DLR-help-needed-tpp30312.html
Sent from the Kannel - User mailing list archive at Nabble.com.



Re: Kannel DLR Storage

2014-06-06 Thread Alvaro Cornejo
Hi

Have you installed mysql-devel libs and compiled kannel with it?

Can you post logs?

You also need to create a mysql config block in kannel config file

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, Jun 6, 2014 at 2:02 AM, Loyc Cossou loycos...@gmail.com wrote:
 Hello friends,

 I have kannel correctly installed and running very well and am very happy of
 it, but... I am unable to save the DLR in my MySQL.
 I am using CentOs as Linux distribution and installed Kannel directly with
 yum install Kannel
 Like I said, everything is Ok until I add the line  dlr-storage = mysql  in
 my group Core. If I do that, Kannel just crashes.

 Any idea?

 Cheers

 --
 loyc Cossou



RE: OpenSMPPBox: DLR Routing to connected SMPP client

2014-04-26 Thread Rene Kluwen
Have the client set registered_delivery to 2.

 

== Rene

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Saurabh Pandey
Sent: vrijdag 25 april 2014 17:06
To: users@kannel.org
Subject: OpenSMPPBox: DLR Routing to connected SMPP client

 

Hi,

I am stuck in a problem which seems to have a simple solution. Here is my 
system:

SMSC---Kannel---Sqlbox---OpenSMPPbox---SMPP Client

Now when SMPP client submits a message, it only gets the intermediate DLR i.e. 
8 (Submitted to SMSC). It never receives the final DLR. But when I send SMS 
from Kannel, I get full DLR (1-delivered).

I'm not able to reach a solution. What could be the possible reasons? Anybody 
knows some fix or suggestion that I could try?

Note: There is one line in the Bearerbox log which seems kinda suspicious. 


INFO: DLR rerouting for smsc id my-smsc disabled.

If this is the reason, I didn't find anywhere how to enable DLR rerouting for a 
particular SMSC.

Please help me here. I appreciate your support

-Thanks in advance

Sam



RE: SMPP DLR

2014-02-28 Thread Porter, Kelvin
Hi,

Yes.  Rene is correct.

I think that I was misreading the SMPP v3.4 Section 5.2.17 
registered_delivery.

If I set the value to 1.  Everything appears to work up to a point.  I see DLR 
records created in my bearerbox DLR queue and in my opensmppbox DLR queue.  The 
DLR entries look correct.

My next question is about the fact that the DLRs stay in their respective 
queues.  Is that because I have separate transmit and receive binds for my 
client(s)?  Does delivery only occur on transceiver binds?

Any pointers are appreciated.

Thank you.

Regards,

Kelvin R. Porter

From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Porter, Kelvin
Sent: Friday, February 14, 2014 3:45 PM
To: Rene Kluwen
Cc: de...@kannel.org
Subject: RE: SMPP DLR

Hi,

Thank you for the corrections.  I will investigate further.

Regards,

Kelvin R. Porter

From: Rene Kluwen [mailto:rene.klu...@chimit.nl]
Sent: Friday, February 14, 2014 6:13 AM
To: Porter, Kelvin
Cc: de...@kannel.orgmailto:de...@kannel.org
Subject: RE: SMPP DLR

Your implementation is not correct.

Also the original value of 0x1f for registered_delivery is invalid.
Setting both the 2 last significant bits is a reserved value and hence not 
supported.
If you follow the smpp specifications, you will get proper results.

== Rene

[...elided erroneous proposal...]



RE: SMPP DLR

2014-02-13 Thread Rene Kluwen
I see that’s a bug in opensmppbox.

 

Try to set registered_delivery to 1 instead, meanwhile I come up with a fix.

 

== Rene

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Porter, Kelvin
Sent: woensdag 12 februari 2014 23:52
To: users@kannel.org
Subject: SMPP DLR

 

Hi,

 

I have a simple problem.  I have the following set up:

 

Client –[SMPP]à opensmppbox à sqlbox à bearerbox –[SMPP]à
SMSC

 

My clients sends a submit_sm request into the opensmppbox, I can see that
the submit_sm message is marked requested_delivery: 31 = 0x001f in the
logs; however, when I see the corresponding submit_sm sent to the SMSC, I
see that requested_delivery is set to 0, in the logs for the SMSC
connection.  

 

The only impediment that I can think of is that my client(s) bind as
transmitter and receiver separately and not as a transceiver.  I can send
and receive messages with no problem.

 

What do I need to do to insure that the requested_delivery flag is correctly
relayed to the SMSC?

 

Thank you.

 

Regards,

 

Kelvin R. Porter

 

 



Re: mysql DLR update

2014-02-13 Thread Willy Mularto
AFAIK it deletes success DLR from the row. It is better for you to have a
simple http script to handle DLR.

Sent from my Sony Xperia(tm) smartphone
On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?






Re: mysql DLR update

2014-02-13 Thread [Digital^Dude] ®
As for me, its not touching the rows inserted in the dlr table, no deletes,
no updates, for success or failure.
I agree dlr-url is a better way, but its strange how/why a built-in feature
is not working in kannel. I'm suspicious of any configuration error, and/or
known bug in the r5053 version..


On Thu, Feb 13, 2014 at 6:53 PM, Willy Mularto sangpr...@gmail.com wrote:

 AFAIK it deletes success DLR from the row. It is better for you to have a
 simple http script to handle DLR.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?






Re: mysql DLR update

2014-02-13 Thread Willy Mularto
Try to set all log-level=0 and watch it. I think it cant find the row.

Sent from my Sony Xperia(tm) smartphone
On 13 Feb 2014 21:01, [Digital^Dude] (R) millennium@gmail.com wrote:

 As for me, its not touching the rows inserted in the dlr table, no
 deletes, no updates, for success or failure.
 I agree dlr-url is a better way, but its strange how/why a built-in
 feature is not working in kannel. I'm suspicious of any configuration
 error, and/or known bug in the r5053 version..


 On Thu, Feb 13, 2014 at 6:53 PM, Willy Mularto sangpr...@gmail.comwrote:

 AFAIK it deletes success DLR from the row. It is better for you to have a
 simple http script to handle DLR.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?







RE: SMPP DLR

2014-02-13 Thread Porter, Kelvin
Hi Renee,

Thank you for your response.  I will try it with the registered_delivery set to 
1.

Can you please give a hint as to where you think that the bug might reside in 
opensmppbox?  I can take a look at the source and see if anything sticks out?

Regards,

Kelvin R. Porter

From: Rene Kluwen [mailto:rene.klu...@chimit.nl]
Sent: Thursday, February 13, 2014 5:12 AM
To: Porter, Kelvin; users@kannel.org
Subject: RE: SMPP DLR

I see that's a bug in opensmppbox.

Try to set registered_delivery to 1 instead, meanwhile I come up with a fix.

== Rene

From: users [mailto:users-boun...@kannel.org] On Behalf Of Porter, Kelvin
Sent: woensdag 12 februari 2014 23:52
To: users@kannel.orgmailto:users@kannel.org
Subject: SMPP DLR

Hi,

I have a simple problem.  I have the following set up:

Client -[SMPP]-- opensmppbox -- sqlbox -- bearerbox 
-[SMPP]-- SMSC

My clients sends a submit_sm request into the opensmppbox, I can see that the 
submit_sm message is marked requested_delivery: 31 = 0x001f in the logs; 
however, when I see the corresponding submit_sm sent to the SMSC, I see that 
requested_delivery is set to 0, in the logs for the SMSC connection.

The only impediment that I can think of is that my client(s) bind as 
transmitter and receiver separately and not as a transceiver.  I can send and 
receive messages with no problem.

What do I need to do to insure that the requested_delivery flag is correctly 
relayed to the SMSC?

Thank you.

Regards,

Kelvin R. Porter




Re: mysql DLR update

2014-02-13 Thread [Digital^Dude] ®
Hello,

Here is the relevant log dump:

DEBUG: SMPP[abcdef] handle_pdu, got DLR
DEBUG: SMPP[abcdef]: *Couldnot parse DLR string sscanf way,fallback to old
way. Please report!*
DEBUG: DLR[mysql]: Looking for DLR smsc=abcdef, ts=0120338847, dst=msisdn,
type=1
DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`,
`boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 1
DEBUG: column=mask buffer_type=3 max_length=0 length=10
DEBUG: column=service buffer_type=253 max_length=0 length=40
DEBUG: column=url buffer_type=253 max_length=0 length=255
DEBUG: column=source buffer_type=253 max_length=0 length=40
DEBUG: column=destination buffer_type=253 max_length=0 length=40
DEBUG: column=boxc buffer_type=253 max_length=0 length=40
WARNING: DLR[mysql]: *DLR from SMSCabcdef for DSTmsisdn not found.*
ERROR: SMPP[abcdef]: *got DLR but could not find message or was not
interested in it id0120338847 dstmsisdn, type1*

I wonder why it can't look up the message when
source/destnation/format/messageID are identical

Regards.


On Thu, Feb 13, 2014 at 7:25 PM, Willy Mularto sangpr...@gmail.com wrote:

 Try to set all log-level=0 and watch it. I think it cant find the row.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 21:01, [Digital^Dude] (R) millennium@gmail.com wrote:

 As for me, its not touching the rows inserted in the dlr table, no
 deletes, no updates, for success or failure.
 I agree dlr-url is a better way, but its strange how/why a built-in
 feature is not working in kannel. I'm suspicious of any configuration
 error, and/or known bug in the r5053 version..


 On Thu, Feb 13, 2014 at 6:53 PM, Willy Mularto sangpr...@gmail.comwrote:

 AFAIK it deletes success DLR from the row. It is better for you to have
 a simple http script to handle DLR.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?







Re: mysql DLR update

2014-02-13 Thread John alero
Hii,


Kindly use below parameters in SMSC.conf file.

msg-id-type= 0x01



On Fri, Feb 14, 2014 at 11:44 AM, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 Hello,

 Here is the relevant log dump:

 DEBUG: SMPP[abcdef] handle_pdu, got DLR
 DEBUG: SMPP[abcdef]: *Couldnot parse DLR string sscanf way,fallback to
 old way. Please report!*
 DEBUG: DLR[mysql]: Looking for DLR smsc=abcdef, ts=0120338847, dst=msisdn,
 type=1
 DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`,
 `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 1
 DEBUG: column=mask buffer_type=3 max_length=0 length=10
 DEBUG: column=service buffer_type=253 max_length=0 length=40
 DEBUG: column=url buffer_type=253 max_length=0 length=255
 DEBUG: column=source buffer_type=253 max_length=0 length=40
 DEBUG: column=destination buffer_type=253 max_length=0 length=40
 DEBUG: column=boxc buffer_type=253 max_length=0 length=40
 WARNING: DLR[mysql]: *DLR from SMSCabcdef for DSTmsisdn not found.*
 ERROR: SMPP[abcdef]: *got DLR but could not find message or was not
 interested in it id0120338847 dstmsisdn, type1*

 I wonder why it can't look up the message when
 source/destnation/format/messageID are identical

 Regards.


 On Thu, Feb 13, 2014 at 7:25 PM, Willy Mularto sangpr...@gmail.comwrote:

 Try to set all log-level=0 and watch it. I think it cant find the row.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 21:01, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 As for me, its not touching the rows inserted in the dlr table, no
 deletes, no updates, for success or failure.
 I agree dlr-url is a better way, but its strange how/why a built-in
 feature is not working in kannel. I'm suspicious of any configuration
 error, and/or known bug in the r5053 version..


 On Thu, Feb 13, 2014 at 6:53 PM, Willy Mularto sangpr...@gmail.comwrote:

 AFAIK it deletes success DLR from the row. It is better for you to have
 a simple http script to handle DLR.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is 
 received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?








Re: mysql DLR update

2014-02-13 Thread [Digital^Dude] ®
On Fri, Feb 14, 2014 at 11:32 AM, John alero johnale...@gmail.com wrote:

 Hii,


 Kindly use below parameters in SMSC.conf file.

 msg-id-type= 0x01

 My bad, it worked. thanks.




 On Fri, Feb 14, 2014 at 11:44 AM, [Digital^Dude] (R) 
 millennium@gmail.com wrote:

 Hello,

 Here is the relevant log dump:

 DEBUG: SMPP[abcdef] handle_pdu, got DLR
 DEBUG: SMPP[abcdef]: *Couldnot parse DLR string sscanf way,fallback to
 old way. Please report!*
 DEBUG: DLR[mysql]: Looking for DLR smsc=abcdef, ts=0120338847,
 dst=msisdn, type=1
 DEBUG: sql: SELECT `mask`, `service`, `url`, `source`, `destination`,
 `boxc` FROM `dlr` WHERE `smsc`=? AND `ts`=?  LIMIT 1
 DEBUG: column=mask buffer_type=3 max_length=0 length=10
 DEBUG: column=service buffer_type=253 max_length=0 length=40
 DEBUG: column=url buffer_type=253 max_length=0 length=255
 DEBUG: column=source buffer_type=253 max_length=0 length=40
 DEBUG: column=destination buffer_type=253 max_length=0 length=40
 DEBUG: column=boxc buffer_type=253 max_length=0 length=40
 WARNING: DLR[mysql]: *DLR from SMSCabcdef for DSTmsisdn not found.*
 ERROR: SMPP[abcdef]: *got DLR but could not find message or was not
 interested in it id0120338847 dstmsisdn, type1*

 I wonder why it can't look up the message when
 source/destnation/format/messageID are identical

 Regards.


 On Thu, Feb 13, 2014 at 7:25 PM, Willy Mularto sangpr...@gmail.comwrote:

 Try to set all log-level=0 and watch it. I think it cant find the row.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 21:01, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 As for me, its not touching the rows inserted in the dlr table, no
 deletes, no updates, for success or failure.
 I agree dlr-url is a better way, but its strange how/why a built-in
 feature is not working in kannel. I'm suspicious of any configuration
 error, and/or known bug in the r5053 version..


 On Thu, Feb 13, 2014 at 6:53 PM, Willy Mularto sangpr...@gmail.comwrote:

 AFAIK it deletes success DLR from the row. It is better for you to
 have a simple http script to handle DLR.

 Sent from my Sony Xperia(tm) smartphone
 On 13 Feb 2014 20:49, [Digital^Dude] (R) millennium@gmail.com
 wrote:

 Hi all,

 I just need to be clear here, when dlr-storage=mysql, and I specify a
 valid dlr-mask, does kannel update the field status when a dlr is 
 received?

 I get rows inserted in my dlr mysql table correctly, but they never
 update, although the message ID, source and destination addresses match
 exactly.

 The function dlr_mysql_update() seems to be never called
 why is that?









Re: got DLR but could not find message

2013-11-19 Thread spameden
Check msg-type-id parameter, it might be your SMSC returning different
msg-id in hex or reversed order.

Also do not forget if you're sending concatenated message (1 part) kannel
will only ask for first part DLR, some SMSC providers are forcing sending
all DLR reports even if you ask only for DLR on 1st part.


2013/11/19 Qqblog Qqblog qqb...@ymail.com

 I find this problem not related to how long DLR return. This problem is
 always happened. I am using DLR Spool storage. Is it not reliable and loss
 some DLR?  using mysql is better or not ?


   Qqblog Qqblog qqb...@ymail.com 於 2013年11月19日 (週二) 10:54 AM 寫道﹕
   I am using DLR spool storage

 The message sent on 15 Nov 13 and DLR received on 19 Nov 13.  The log
 shows error is got DLR but could not find message or was not interested in
 it ...

 If DLR received within 3 days, no such problem occurred.

 Is there any setting for expiry date on waiting DLR ? Pls advice.







RE: Routing DLR to ESME using OpenSMPPBox

2013-11-12 Thread Rene Kluwen
It should route automatically.

Could you share your logs?

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Amir Mahmoud
Sent: maandag 28 oktober 2013 20:38
To: users
Subject: Routing DLR to ESME using OpenSMPPBox

 

Dears,

 

I have configured my servers to send from ESME to SMSC through OpenSMPPBox,
i have applied the below flow

ESME -- OpenSMPPBox -- SQLBox --Bearerbox -- SMSC

 

I have succeeded in sending the sms from ESME to the SMSC but my problem is
related to the DLR.

The Bearerbox actually received the DLR from the SMSC but it didn't route it
to the ESME.

 

What is the required configurations that could resolve the above issue. i
need to route the DLR to the ESME

 

Your help in this regard is highly appreciated and thanks in advance.

 

Below are my config files,

 

*** Kannel.conf 

#-

# core setup

 

group = core

admin-port = 13000

smsbox-port = 13001

wapbox-port = 13002

admin-password = admin123

status-password = status123

wdp-interface-name = *

log-file = /usr/local/kannel/bearerbox.log

log-level = 3

access-log = /usr/local/kannel/bearerboxaccess.log

store-type = spool

store-location = /usr/local/kannel/store

store-dump-freq = 60

#-

# smsc setup

 

group = smsc

smsc = smpp

smsc-id = VFSMPP1

host = x.x.x.x

port = 

smsc-username = egypt321

smsc-password = egypt321

system-type = egypt321

address-range = 

dest-addr-ton=1

dest-addr-npi=1

interface-version = 34

enquire-link-interval = 25

reconnect-delay = 15

transceiver-mode = 1

#max-pending-submits = 8

throughput = 6

#-

# smsbox setup

 

group = smsbox

smsbox-id = smsbox1

bearerbox-host = 127.0.0.1

sendsms-port = 13013

sendsms-chars = 0123456789 +-

log-file = /usr/local/kannel/smsbox.log

log-level = 3

access-log = /usr/local/kannel/smsboxaccess.log

mo-recode = true

http-request-retry = 1000

max-pending-requests = 33000

#-

# smsbox-route setup

 

group = smsbox-route

smsbox-id = smsc1

smsc-id = VFSMPP1

###

 

*** OpenSMPPBox.conf **

group = core

dlr-storage = internal

 

group = opensmppbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

opensmppbox-id = opensmppbox1

opensmppbox-port = 13003

log-file = /usr/local/kannel/smppbox.log

#log-level = 3

our-system-id = Inaccess

#route-to-smsc = cardboard

smpp-logins = /usr/local/kannel/smpplogins.txt

###

 

*** smpplogins.txt***

test testpw smsc1 *.*.*.*

###

 

*** SQLBox.conf ***

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

global-sender = 

bearerbox-host = 127.0.0.1

bearerbox-port = 13001

smsbox-port = 13005

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = /usr/local/kannel/kannel-sqlbox.log

 

# MYSQL Connection

group = mysql-connection

id = sqlbox-db

host = localhost

username = root

password = root

database = mysqlbox

###

 

 

 

Regards,

Amir



Re: Routing DLR to ESME using OpenSMPPBox

2013-11-12 Thread Amir Mahmoud
Hello Rene,
Thanks a lot for you reply.

below is my configuration files followed by sample of the logs, please let
me know for any further details.

*Configuration Files*

*1)**Kannel.conf*

#-

# core setup



group = core

admin-port = 13000

smsbox-port = 13001

wapbox-port = 13002

admin-password = admin123456

status-password = admin123456

wdp-interface-name = *

log-file = /usr/local/kannel/bearerbox.log

log-level = 3

access-log = /usr/local/kannel/bearerboxaccess.log

store-type = spool

store-location = /usr/local/kannel/store

store-dump-freq = 60

#-

# smsc setup



group = smsc

smsc = smpp

smsc-id = VFSMPP1

host = x.x.x.x

port = 

smsc-username = 

smsc-password = xxx

system-type = 

address-range = 

dest-addr-ton=1

dest-addr-npi=1

interface-version = 34

enquire-link-interval = 25

reconnect-delay = 15

transceiver-mode = 1

#max-pending-submits = 8

throughput = 6

#-

# smsbox setup



group = smsbox

smsbox-id = smsbox1

bearerbox-host = 127.0.0.1

sendsms-port = 13013

sendsms-chars = 0123456789 +-

log-file = /usr/local/kannel/smsbox.log

log-level = 3

access-log = /usr/local/kannel/smsboxaccess.log

mo-recode = true

http-request-retry = 1000

max-pending-requests = 33000

#-

# smsbox-route setup



group = smsbox-route

smsbox-id = ops

smsc-id = VFSMPP1







*2)**OpenSMPPBox.conf*

#--

group = core

dlr-storage = mysql



group = opensmppbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

opensmppbox-id = opensmppbox1

opensmppbox-port = 13003

log-file = /usr/local/kannel/smppbox.log

our-system-id = opensmppbox1

use-systemid-as-smsboxid = true

smpp-logins = /usr/local/kannel/smpplogins.txt

box-dlr-storage = mysql



group = mysql-connection
id = mydlr
host = localhost
username = 
password = 
database = kannel
max-connections = 2

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source = source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc







*3)**smpplogins.txt*

ops testpw smsc1 *.*.*.*







*4)**SQLBox.conf*

#--

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

global-sender = 

bearerbox-host = 127.0.0.1

bearerbox-port = 13001

smsbox-port = 13005

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = /usr/local/kannel/kannel-sqlbox.log



# MYSQL Connection

group = mysql-connection

id = sqlbox-db

host = localhost

username = 

password = 

database = mysqlbox


Error Log Sample



2013-10-29 17:59:02 [29615] [1] DEBUG: DLR[mysql]: Looking for DLR
smsc=ops, ts=be18a733, dst=201068827073, type=1
2013-10-29 17:59:02 [29615] [1] DEBUG: sql: SELECT `mask`, `service`,
`url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND
`ts`=?  LIMIT 1
2013-10-29 17:59:02 [29615] [1] DEBUG: column=mask buffer_type=3
max_length=0 length=10
2013-10-29 17:59:02 [29615] [1] DEBUG: column=service buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=url buffer_type=253
max_length=0 length=255
2013-10-29 17:59:02 [29615] [1] DEBUG: column=source buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=destination
buffer_type=253 max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=boxc buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] WARNING: DLR[mysql]: DLR from
SMSCops for DST201068827073 not found.
2013-10-29 17:59:02 [29615] [1] WARNING: opensmppbox: msg_to_pdu: no
msg corresponding dlr, ignoring
2013-10-29 17:59:02 [29615] [1] WARNING: msg_to_pdu failed, sending
negative ack


On Tue, Nov 12, 2013 at 4:08 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

 It should route automatically.

 Could you share your logs?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Amir
 Mahmoud
 *Sent:* maandag 28 oktober 2013 20:38
 *To:* users
 *Subject:* Routing DLR to ESME using OpenSMPPBox



 Dears,



 I have configured my servers to send from ESME to SMSC through
 OpenSMPPBox, i have applied the below flow

 ESME -- OpenSMPPBox -- SQLBox --Bearerbox -- SMSC



 I have succeeded in sending the sms from ESME to the SMSC but my problem
 is related to the DLR.

 The Bearerbox actually received the DLR from the SMSC but it didn't route
 it to the ESME.



 What is the required configurations that could resolve the above issue. i
 need to route the DLR to the ESME



 Your help in this regard is highly appreciated and thanks in advance.



 Below are my config files,



 *** Kannel.conf 

 #-

 # core setup



 group 

RE: Routing DLR to ESME using OpenSMPPBox

2013-11-12 Thread Rene Kluwen
Are there even any entries in your dlr table? They should have accumulated
by now.

What is the sql type of your ts and destination field? Is it at least 12
characters or more?

 

== Rene

 

 

From: Amir Mahmoud [mailto:amir.mahm...@egyptlinx.com] 
Sent: dinsdag 12 november 2013 17:25
To: Rene Kluwen
Cc: users
Subject: Re: Routing DLR to ESME using OpenSMPPBox

 

Hello Rene,

Thanks a lot for you reply.

 

below is my configuration files followed by sample of the logs, please let
me know for any further details.

 

Configuration Files

1)Kannel.conf

#-

# core setup

 

group = core

admin-port = 13000

smsbox-port = 13001

wapbox-port = 13002

admin-password = admin123456

status-password = admin123456

wdp-interface-name = *

log-file = /usr/local/kannel/bearerbox.log

log-level = 3

access-log = /usr/local/kannel/bearerboxaccess.log

store-type = spool

store-location = /usr/local/kannel/store

store-dump-freq = 60

#-

# smsc setup

 

group = smsc

smsc = smpp

smsc-id = VFSMPP1

host = x.x.x.x

port = 

smsc-username = 

smsc-password = xxx

system-type = 

address-range = 

dest-addr-ton=1

dest-addr-npi=1

interface-version = 34

enquire-link-interval = 25

reconnect-delay = 15

transceiver-mode = 1

#max-pending-submits = 8

throughput = 6

#-

# smsbox setup

 

group = smsbox

smsbox-id = smsbox1

bearerbox-host = 127.0.0.1

sendsms-port = 13013

sendsms-chars = 0123456789 +-

log-file = /usr/local/kannel/smsbox.log

log-level = 3

access-log = /usr/local/kannel/smsboxaccess.log

mo-recode = true

http-request-retry = 1000

max-pending-requests = 33000

#-

# smsbox-route setup

 

group = smsbox-route

smsbox-id = ops

smsc-id = VFSMPP1

 

 

 

2)OpenSMPPBox.conf

#--

group = core

dlr-storage = mysql

 

group = opensmppbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

opensmppbox-id = opensmppbox1

opensmppbox-port = 13003

log-file = /usr/local/kannel/smppbox.log

our-system-id = opensmppbox1

use-systemid-as-smsboxid = true

smpp-logins = /usr/local/kannel/smpplogins.txt

box-dlr-storage = mysql

 

group = mysql-connection
id = mydlr
host = localhost
username = 
password = 
database = kannel
max-connections = 2

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source = source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

 

 

 

3)smpplogins.txt

ops testpw smsc1 *.*.*.*

 

 

 

4)SQLBox.conf

#--

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

global-sender = 

bearerbox-host = 127.0.0.1

bearerbox-port = 13001

smsbox-port = 13005

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = /usr/local/kannel/kannel-sqlbox.log

 

# MYSQL Connection

group = mysql-connection

id = sqlbox-db

host = localhost

username = 

password = 

database = mysqlbox

 

Error Log Sample

 

2013-10-29 17:59:02 [29615] [1] DEBUG: DLR[mysql]: Looking for DLR
smsc=ops, ts=be18a733, dst=201068827073, type=1
2013-10-29 17:59:02 [29615] [1] DEBUG: sql: SELECT `mask`, `service`,
`url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND
`ts`=?  LIMIT 1
2013-10-29 17:59:02 [29615] [1] DEBUG: column=mask buffer_type=3
max_length=0 length=10
2013-10-29 17:59:02 [29615] [1] DEBUG: column=service buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=url buffer_type=253
max_length=0 length=255
2013-10-29 17:59:02 [29615] [1] DEBUG: column=source buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=destination
buffer_type=253 max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] DEBUG: column=boxc buffer_type=253
max_length=0 length=40
2013-10-29 17:59:02 [29615] [1] WARNING: DLR[mysql]: DLR from
SMSCops for DST201068827073 not found.
2013-10-29 17:59:02 [29615] [1] WARNING: opensmppbox: msg_to_pdu: no
msg corresponding dlr, ignoring
2013-10-29 17:59:02 [29615] [1] WARNING: msg_to_pdu failed, sending negative
ack

 

On Tue, Nov 12, 2013 at 4:08 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

It should route automatically.

Could you share your logs?

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Amir Mahmoud
Sent: maandag 28 oktober 2013 20:38
To: users
Subject: Routing DLR to ESME using OpenSMPPBox

 

Dears,

 

I have configured my servers to send from ESME to SMSC through OpenSMPPBox,
i have applied the below flow

ESME -- OpenSMPPBox -- SQLBox --Bearerbox -- SMSC

 

I have succeeded in sending the sms from ESME to the SMSC but my problem is
related to the DLR.

The Bearerbox actually received the DLR from the SMSC but it didn't route

Re: Routing DLR to ESME using OpenSMPPBox

2013-11-12 Thread Amir Mahmoud
The table is empty, and the type of both ts and destination columns is
varchar(40)


On Tue, Nov 12, 2013 at 6:34 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

 Are there even any entries in your dlr table? They should have accumulated
 by now.

 What is the sql type of your ts and destination field? Is it at least 12
 characters or more?



 == Rene





 *From:* Amir Mahmoud [mailto:amir.mahm...@egyptlinx.com]
 *Sent:* dinsdag 12 november 2013 17:25
 *To:* Rene Kluwen
 *Cc:* users
 *Subject:* Re: Routing DLR to ESME using OpenSMPPBox



 Hello Rene,

 Thanks a lot for you reply.



 below is my configuration files followed by sample of the logs, please let
 me know for any further details.



 *Configuration Files*

 *1)**Kannel.conf*

 #-

 # core setup



 group = core

 admin-port = 13000

 smsbox-port = 13001

 wapbox-port = 13002

 admin-password = admin123456

 status-password = admin123456

 wdp-interface-name = *

 log-file = /usr/local/kannel/bearerbox.log

 log-level = 3

 access-log = /usr/local/kannel/bearerboxaccess.log

 store-type = spool

 store-location = /usr/local/kannel/store

 store-dump-freq = 60

 #-

 # smsc setup



 group = smsc

 smsc = smpp

 smsc-id = VFSMPP1

 host = x.x.x.x

 port = 

 smsc-username = 

 smsc-password = xxx

 system-type = 

 address-range = 

 dest-addr-ton=1

 dest-addr-npi=1

 interface-version = 34

 enquire-link-interval = 25

 reconnect-delay = 15

 transceiver-mode = 1

 #max-pending-submits = 8

 throughput = 6

 #-

 # smsbox setup



 group = smsbox

 smsbox-id = smsbox1

 bearerbox-host = 127.0.0.1

 sendsms-port = 13013

 sendsms-chars = 0123456789 +-

 log-file = /usr/local/kannel/smsbox.log

 log-level = 3

 access-log = /usr/local/kannel/smsboxaccess.log

 mo-recode = true

 http-request-retry = 1000

 max-pending-requests = 33000

 #-

 # smsbox-route setup



 group = smsbox-route

 smsbox-id = ops

 smsc-id = VFSMPP1







 *2)**OpenSMPPBox.conf*

 #--

 group = core

 dlr-storage = mysql



 group = opensmppbox

 bearerbox-host = 127.0.0.1

 bearerbox-port = 13005

 opensmppbox-id = opensmppbox1

 opensmppbox-port = 13003

 log-file = /usr/local/kannel/smppbox.log

 our-system-id = opensmppbox1

 use-systemid-as-smsboxid = true

 smpp-logins = /usr/local/kannel/smpplogins.txt

 box-dlr-storage = mysql



 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = 
 database = kannel
 max-connections = 2

 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source = source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc







 *3)**smpplogins.txt*

 ops testpw smsc1 *.*.*.*







 *4)**SQLBox.conf*

 #--

 group = sqlbox

 id = sqlbox-db

 smsbox-id = sqlbox

 global-sender = 

 bearerbox-host = 127.0.0.1

 bearerbox-port = 13001

 smsbox-port = 13005

 smsbox-port-ssl = false

 sql-log-table = sent_sms

 sql-insert-table = send_sms

 log-file = /usr/local/kannel/kannel-sqlbox.log



 # MYSQL Connection

 group = mysql-connection

 id = sqlbox-db

 host = localhost

 username = 

 password = 

 database = mysqlbox



 Error Log Sample



 2013-10-29 17:59:02 [29615] [1] DEBUG: DLR[mysql]: Looking for DLR
 smsc=ops, ts=be18a733, dst=201068827073, type=1
 2013-10-29 17:59:02 [29615] [1] DEBUG: sql: SELECT `mask`, `service`,
 `url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND
 `ts`=?  LIMIT 1
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=mask buffer_type=3
 max_length=0 length=10
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=service buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=url buffer_type=253
 max_length=0 length=255
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=source buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=destination
 buffer_type=253 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=boxc buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] WARNING: DLR[mysql]: DLR from
 SMSCops for DST201068827073 not found.
 2013-10-29 17:59:02 [29615] [1] WARNING: opensmppbox: msg_to_pdu: no
 msg corresponding dlr, ignoring
 2013-10-29 17:59:02 [29615] [1] WARNING: msg_to_pdu failed, sending
 negative ack



 On Tue, Nov 12, 2013 at 4:08 PM, Rene Kluwen rene.klu...@chimit.nl
 wrote:

 It should route automatically.

 Could you share your logs?



 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Amir
 Mahmoud
 *Sent:* maandag 28 oktober 2013 20:38
 *To:* users
 *Subject:* Routing DLR to ESME using OpenSMPPBox



 Dears,



 I have

Re: Routing DLR to ESME using OpenSMPPBox

2013-11-12 Thread Amir Mahmoud
No i don't, how could i troubleshoot the dlr record insertion to know
whether the problem is related to the insertion or not ?



On Tue, Nov 12, 2013 at 7:58 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

 Then the problem seems to be whilst inserting the messages into the dlr
 table.

 Do you have a log entry of that as well?



 *From:* Amir Mahmoud [mailto:amir.mahm...@egyptlinx.com]
 *Sent:* dinsdag 12 november 2013 18:13

 *To:* Rene Kluwen
 *Cc:* users
 *Subject:* Re: Routing DLR to ESME using OpenSMPPBox



 The table is empty, and the type of both ts and destination columns is
 varchar(40)



 On Tue, Nov 12, 2013 at 6:34 PM, Rene Kluwen rene.klu...@chimit.nl
 wrote:

 Are there even any entries in your dlr table? They should have accumulated
 by now.

 What is the sql type of your ts and destination field? Is it at least 12
 characters or more?



 == Rene





 *From:* Amir Mahmoud [mailto:amir.mahm...@egyptlinx.com]
 *Sent:* dinsdag 12 november 2013 17:25
 *To:* Rene Kluwen
 *Cc:* users
 *Subject:* Re: Routing DLR to ESME using OpenSMPPBox



 Hello Rene,

 Thanks a lot for you reply.



 below is my configuration files followed by sample of the logs, please let
 me know for any further details.



 *Configuration Files*

 *1)**Kannel.conf*

 #-

 # core setup



 group = core

 admin-port = 13000

 smsbox-port = 13001

 wapbox-port = 13002

 admin-password = admin123456

 status-password = admin123456

 wdp-interface-name = *

 log-file = /usr/local/kannel/bearerbox.log

 log-level = 3

 access-log = /usr/local/kannel/bearerboxaccess.log

 store-type = spool

 store-location = /usr/local/kannel/store

 store-dump-freq = 60

 #-

 # smsc setup



 group = smsc

 smsc = smpp

 smsc-id = VFSMPP1

 host = x.x.x.x

 port = 

 smsc-username = 

 smsc-password = xxx

 system-type = 

 address-range = 

 dest-addr-ton=1

 dest-addr-npi=1

 interface-version = 34

 enquire-link-interval = 25

 reconnect-delay = 15

 transceiver-mode = 1

 #max-pending-submits = 8

 throughput = 6

 #-

 # smsbox setup



 group = smsbox

 smsbox-id = smsbox1

 bearerbox-host = 127.0.0.1

 sendsms-port = 13013

 sendsms-chars = 0123456789 +-

 log-file = /usr/local/kannel/smsbox.log

 log-level = 3

 access-log = /usr/local/kannel/smsboxaccess.log

 mo-recode = true

 http-request-retry = 1000

 max-pending-requests = 33000

 #-

 # smsbox-route setup



 group = smsbox-route

 smsbox-id = ops

 smsc-id = VFSMPP1







 *2)**OpenSMPPBox.conf*

 #--

 group = core

 dlr-storage = mysql



 group = opensmppbox

 bearerbox-host = 127.0.0.1

 bearerbox-port = 13005

 opensmppbox-id = opensmppbox1

 opensmppbox-port = 13003

 log-file = /usr/local/kannel/smppbox.log

 our-system-id = opensmppbox1

 use-systemid-as-smsboxid = true

 smpp-logins = /usr/local/kannel/smpplogins.txt

 box-dlr-storage = mysql



 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = 
 database = kannel
 max-connections = 2

 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source = source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc







 *3)**smpplogins.txt*

 ops testpw smsc1 *.*.*.*







 *4)**SQLBox.conf*

 #--

 group = sqlbox

 id = sqlbox-db

 smsbox-id = sqlbox

 global-sender = 

 bearerbox-host = 127.0.0.1

 bearerbox-port = 13001

 smsbox-port = 13005

 smsbox-port-ssl = false

 sql-log-table = sent_sms

 sql-insert-table = send_sms

 log-file = /usr/local/kannel/kannel-sqlbox.log



 # MYSQL Connection

 group = mysql-connection

 id = sqlbox-db

 host = localhost

 username = 

 password = 

 database = mysqlbox



 Error Log Sample



 2013-10-29 17:59:02 [29615] [1] DEBUG: DLR[mysql]: Looking for DLR
 smsc=ops, ts=be18a733, dst=201068827073, type=1
 2013-10-29 17:59:02 [29615] [1] DEBUG: sql: SELECT `mask`, `service`,
 `url`, `source`, `destination`, `boxc` FROM `dlr` WHERE `smsc`=? AND
 `ts`=?  LIMIT 1
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=mask buffer_type=3
 max_length=0 length=10
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=service buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=url buffer_type=253
 max_length=0 length=255
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=source buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=destination
 buffer_type=253 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] DEBUG: column=boxc buffer_type=253
 max_length=0 length=40
 2013-10-29 17:59:02 [29615] [1] WARNING: DLR[mysql]: DLR from
 SMSCops for DST201068827073 not found.
 2013

Re: got DLR but could not find message or was not interested in it id

2013-11-04 Thread Willy Mularto
Does all smsc connect with same telco and account? If yes you just need to
set the smsc_id with the same name.
On 4 Nov 2013 10:11, Qqblog Qqblog qqb...@ymail.com wrote:

 I have 3 smsc

 two smsc are load balancing and one is backup
 e.g
 smsc  = mysmsc
 smsc-admin-id = mysmsc1
 
 smsc  = mysmsc
 smsc-admin-id = mysmsc2
 
 smsc  = mysmsc_backup
 smsc-admin-id = mysmsc3

 I find some messages sent out via
 mysmsc2, but DLR Returned via mysmsc3 and produce error like this got
 DLR but could not find message or was not interested in it id






RE: sqlbox, dlr-url

2013-09-20 Thread Rene Kluwen
Please always copy the users list.
Post your log files and config. And maybe there is a user here that can help
you.

-Original Message-
From: iqbal [mailto:iq...@dv9.com] 
Sent: vrijdag 20 september 2013 11:24
To: rene.klu...@chimit.nl
Subject: sqlbox, dlr-url

Hi Rene,

your advice about
add smsbox_id = dlr-ulr
insert boxc_id with dlr-url when insert a new record at sqlbox and it is
success !! the dlr-url is invoked well

but i got another issue

the get-url isnt invoked in the sms-service group if smsbox_id = dlr-url
is exist

do you have any advice, ive searched this for 2 days, and still got nothing
please help me


Regards,
Iqbal





Re: Received dlr with sscanf warning and set always type=2

2013-09-18 Thread Anton Raharja
Hi,

I have tried to edit gw/smsc/smsc_smpp.c my self, to match with the dlr I
received from certain provider, with no luck. Kannel still ignores the
stat value. Received stat:DELIVRD but Kannel passed type=2 instead of
type=1.

Example DLR I received:

id:0160925202 submit date:1209190919 done date:1209190919 stat:DELIVRD

Please advice.

Thanks,
anton



On Sun, Sep 15, 2013 at 6:59 AM, Anton Raharja an...@ngoprek.org wrote:

 Hi,

 I found this URL:
 http://www.mail-archive.com/users@kannel.org/msg27152.html

 The dlr received is exactly like I received:
 http://old.nabble.com/file/p34450678/bearerlog.txt

 I also found that all dlr I received were set as type=2, its delivery
 failure. For example a dlr is received with stat:DELIVRD, I was hoping even
 when Kannel didn't recognize it because its format is different but with
 the old-way method Kannel recognized the stat:DELIVRD and pass dlr to
 type=1.

 I wonder if this issue has been fixed in daily snapshots or someone
 already provide a patch for this issue.

 Thanks,
 anton




RE: Kannel dlr-url hit limited:

2013-08-14 Thread Rene Kluwen
See userguide on max-pending-requests in group = smsbox.

 

From: users [mailto:users-boun...@kannel.org] On Behalf Of Himanshu Matta
Sent: woensdag 14 augustus 2013 15:49
To: users@kannel.org
Subject: Kannel dlr-url hit limited:

 

Hello,

 

I am using kannel to send bulk messages. I am facing problem related to
dlr-url hit. 

At a time kannel is hitting maximum 500 dlr-url. Due to this I am getting
delivery report very late. How to increase this hit ?


 

-- 

Thanks and regards,
Himanshu Matta



Re: Re: DLR

2013-08-08 Thread Rodrigo Rocco
If your SMSC is transceiver mode, you should have transceiver-mode = true
in your *craftmobile *block. Or else it works as transmitter only.

--
Rodrigo Rocco Rubim
Cel: (21)97445317


On Thu, Aug 8, 2013 at 9:52 AM, dorin dorinafte...@mail.ru wrote:

  Hello Alejandro!
  Thank for your reply.

 dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
 They told me that they use only transceiver mode.
 If dlrs are disabled on SMSC, I wouldn't receive nothing.

 And I'm not shure that I recieve first dlr from SMSC.
 All time when is started dlr-url by kannel, means that SMSC responded?

 When I saw logs, i paid attention on
 Sent SMS ...[flags:-1:0:-1:-1:*31*]...
 Receive DLR ...[flags:-1:-1:-1:-1:*8*]...

 When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct
 But receiver have this flag set at 8. In this way we get the status?
 on second request dlr_mask is set to 8.
 Maybe this is the problem that I recieve only one time?

 What do you think guys, the problem is clear and it goes only from SMSC?
 or maybe problem it's in Kannel?

 I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG:
 boxc_receiver: heartbeat with load value 0 received)
 like SMSC returned nothig. Or im wrong?


 On 08.08.2013 14:58, Alejandro Guerrieri wrote:

 The smsc must have dlrs enabled on their side as well, contact them and
 ask if it's enabled.


 Hope it helps,
 --
 Alex Guerrieri

 On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote:

   Hello,
 please please please help me!
 I have a problem that I can't solve.
 I use Bearerbox - SMSbox - SQLBox
 All works fine except DLR. I can't recieve delivery status.
 Wen I send an SMS, kannel start php script from dlr-url only one time and
 return status 8 (smsc submit), after that no more responses.
 But I expect from him other statuses: error, success. etc.
 I will be grateful for any help.

 Next I give some server configguration files and logs:

 my logs:
 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:
 2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:0:-1:-1:31] [msg:15:??$
 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:]
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc:
 mysqlbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc:
 mysmsbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to
 127.0.0.1
 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load
 value 0 received
 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


 Look at my configuration files kannel.conf and sqlbox.conf:
 #KANNEL CONFIG FILE
 group = core
 admin-port = 13000
 admin-password = **
 smsbox-port = 13001
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access_kannel.log
 store-file = /var/log/kannel/store_sms
 dlr-storage = mysql


 group = smsc
 smsc = smpp
 smsc-id = craftmobile
 host = 89.249.18.53
 port = 27703
 smsc-username = **
 smsc-password = **
 system-type = VMA
 log-file = /var/log/kannel/smpp-smsc.log log-level = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 #alt-charset = UCS-2

 group = smsbox
 bearerbox-host = localhost
 smsbox-id = mysmsbox
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = smsbox-route
 smsbox-id = mysmsbox
 smsc-id = craftmobile
 #shortcode = 2288

 group = sendsms-user
 dlr-url = http://134.0.113.138/dlr.php?type=%d;
 concatenation = true
 max-messages = 5
 username = 
 password = **
 default-smsc = SMSC

 group = dlr-db
 id = mydlr
 table = oempro_kannel_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


 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 # -- SQLBOX GROUP --
 group = sqlbox
 id = sqlbox-db
 smsbox-id = mysqlbox
 bearerbox-port = 13001
 smsbox-port = 13003
 smsbox-port-ssl = false
 sql-log-table = oempro_kannel_sqlbox_sent_sms
 sql-insert-table = oempro_kannel_sqlbox_send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 3

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 query that I use for sending an SMS:

 INSERT INTO oempro_kannel_sqlbox_send_sms (
   momt, sender, receiver, msgdata, sms_type, dlr_mask, dlr_url, boxc_id
 ) VALUES (
   'MT', '8902110', '7925740', 'Test message', 2, 31,
 '

Re: Re: DLR

2013-08-08 Thread Alejandro Guerrieri
The first dlr doesn't come from the smsc, Kannel creates that one
internally on the submit_sm_resp. As long as you set the dlr-mask to 31 you
should receive all dlrs for that message, assuming the carrier has enabled
dlrs. If they didn't you'll only receive the one from kannel.


On Thu, Aug 8, 2013 at 8:52 AM, dorin dorinafte...@mail.ru wrote:

  Hello Alejandro!
  Thank for your reply.

 dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
 They told me that they use only transceiver mode.
 If dlrs are disabled on SMSC, I wouldn't receive nothing.

 And I'm not shure that I recieve first dlr from SMSC.
 All time when is started dlr-url by kannel, means that SMSC responded?

 When I saw logs, i paid attention on
 Sent SMS ...[flags:-1:0:-1:-1:*31*]...
 Receive DLR ...[flags:-1:-1:-1:-1:*8*]...

 When an SMS is sent, fifth falg (dlr_mask) goes like 31, and it's correct
 But receiver have this flag set at 8. In this way we get the status?
 on second request dlr_mask is set to 8.
 Maybe this is the problem that I recieve only one time?

 What do you think guys, the problem is clear and it goes only from SMSC?
 or maybe problem it's in Kannel?

 I understand last log message (2013-08-08 14:07:29 [11003] [9] DEBUG:
 boxc_receiver: heartbeat with load value 0 received)
 like SMSC returned nothig. Or im wrong?

 On 08.08.2013 14:58, Alejandro Guerrieri wrote:

 The smsc must have dlrs enabled on their side as well, contact them and
 ask if it's enabled.


 Hope it helps,
 --
 Alex Guerrieri

 On Aug 8, 2013, at 7:42, Dorin Aftenii dorinafte...@mail.ru wrote:

   Hello,
 please please please help me!
 I have a problem that I can't solve.
 I use Bearerbox - SMSbox - SQLBox
 All works fine except DLR. I can't recieve delivery status.
 Wen I send an SMS, kannel start php script from dlr-url only one time and
 return status 8 (smsc submit), after that no more responses.
 But I expect from him other statuses: error, success. etc.
 I will be grateful for any help.

 Next I give some server configguration files and logs:

 my logs:
 2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:] [ACT:] [BINF:] [FID:
 2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:0:-1:-1:31] [msg:15:??$
 2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:] [ACT:] [BINF:]
 [FID:2518700643] [META:] [from:89021104107] [to:79257405404]
 [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

 2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms received
 2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending msg to boxc:
 mysqlbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending msg to boxc:
 mysmsbox
 2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent message to
 127.0.0.1
 2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got ack
 2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver: heartbeat with load
 value 0 received
 2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to store
 2013-08-08 15:03:26 [11003] [7] DEBUG: clear_old_concat_parts called


 Look at my configuration files kannel.conf and sqlbox.conf:
 #KANNEL CONFIG FILE
 group = core
 admin-port = 13000
 admin-password = **
 smsbox-port = 13001
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access_kannel.log
 store-file = /var/log/kannel/store_sms
 dlr-storage = mysql


 group = smsc
 smsc = smpp
 smsc-id = craftmobile
 host = 89.249.18.53
 port = 27703
 smsc-username = **
 smsc-password = **
 system-type = VMA
 log-file = /var/log/kannel/smpp-smsc.log log-level = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 #alt-charset = UCS-2

 group = smsbox
 bearerbox-host = localhost
 smsbox-id = mysmsbox
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0

 group = smsbox-route
 smsbox-id = mysmsbox
 smsc-id = craftmobile
 #shortcode = 2288

 group = sendsms-user
 dlr-url = http://134.0.113.138/dlr.php?type=%d;
 concatenation = true
 max-messages = 5
 username = 
 password = **
 default-smsc = SMSC

 group = dlr-db
 id = mydlr
 table = oempro_kannel_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


 group = mysql-connection
 id = mydlr
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 # -- SQLBOX GROUP --
 group = sqlbox
 id = sqlbox-db
 smsbox-id = mysqlbox
 bearerbox-port = 13001
 smsbox-port = 13003
 smsbox-port-ssl = false
 sql-log-table = oempro_kannel_sqlbox_sent_sms
 sql-insert-table = oempro_kannel_sqlbox_send_sms
 log-file = /var/log/kannel/sqlbox.log
 log-level = 3

 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = 
 password = **
 database = sender
 max-connections = 1

 query that I use for sending an SMS:

 INSERT INTO oempro_kannel_sqlbox_send_sms (
   momt, sender, receiver, msgdata, sms_type, 

Re[3]: DLR

2013-08-08 Thread Dorin Aftenii
 I have tried with transceiver-mode = true - no changes.

Четверг,  8 августа 2013, 10:11 -03:00 от Rodrigo Rocco rodri...@gmail.com:
If your SMSC is transceiver mode, you should have transceiver-mode = true in 
your  craftmobile  block. Or else it works as transmitter only.

--
Rodrigo Rocco Rubim
Cel: (21)97445317


On Thu, Aug 8, 2013 at 9:52 AM, dorin   dorinafte...@mail.ru  wrote:
Hello Alejandro! 
Thank for your reply.

dlr - are you meaning BIND_RECEIVER and BIND_RECEIVER_RESP?
They told me that they use only transceiver mode. 
If dlrs are disabled on SMSC, I wouldn't receive nothing.

And I'm not shure that I recieve first dlr from SMSC.
All time when is started dlr-url by kannel, means that SMSC
responded?

When I saw logs, i paid attention on 
Sent SMS ...[flags:-1:0:-1:-1: 31 ]...
Receive DLR ...[flags:-1:-1:-1:-1: 8 ]...

When an SMS is sent, fifth falg (dlr_mask) goes like 31, and
it's correct
But receiver have this flag set at 8.  In this way we get the status?
on second request dlr_mask is set to 8. 
Maybe this is the problem that I recieve only one time?

What do you think guys, the problem is clear and it goes only
from SMSC? 
or maybe problem it's in Kannel?

I understand last log message (2013-08-08 14:07:29 [11003] [9]
DEBUG: boxc_receiver: heartbeat with load value 0 received)
like SMSC returned nothig. Or im wrong?


On 08.08.2013 14:58, Alejandro Guerrieri wrote:
The smsc must have dlrs enabled on their side as well,
  contact them and ask if it's enabled.


Hope it helps,
--
Alex Guerrieri

On Aug 8, 2013, at 7:42, Dorin Aftenii  dorinafte...@mail.ru 

  wrote:

Hello, 
please please please help me!
I have a problem that I can't solve. 
I use Bearerbox - SMSbox - SQLBox
All works fine except DLR. I can't recieve delivery status.
Wen I send an SMS, kannel start php script from dlr-url only
one time and return status 8 (smsc submit), after that no
more responses.
But I expect from him other statuses: error, success. etc.
I will be grateful for any
help.

Next I give some server configguration files and logs:

my logs:
2013-08-08 14:07:22 Sent SMS [SMSC:craftmobile] [SVC:]
[ACT:] [BINF:] [FID: 2518700643 ] [META:] [from:89021104107]
[to:79257405404] [flags:-1:0:-1:-1:31] [msg:15:??$
2013-08-08 14:07:22 Receive DLR [SMSC:craftmobile] [SVC:]
[ACT:] [BINF:] [FID: 2518700643 ] [META:] [from:89021104107]
[to:79257405404] [flags:-1:-1:-1:-1:8] [msg:4:ACK/$

2013-08-08 14:07:22 [11003] [11] DEBUG: boxc_receiver: sms
received
2013-08-08 14:07:22 [11003] [11] DEBUG: send_msg: sending
msg to boxc: mysqlbox
2013-08-08 14:07:22 [11003] [10] DEBUG: send_msg: sending
msg to boxc: mysmsbox
2013-08-08 14:07:22 [11003] [10] DEBUG: boxc_sender: sent
message to 127.0.0.1
2013-08-08 14:07:22 [11003] [9] DEBUG: boxc_receiver: got
ack
2013-08-08 14:07:29 [11003] [9] DEBUG: boxc_receiver:
heartbeat with load value 0 received
2013-08-08 14:07:36 [11003] [8] DEBUG: Dumping 0 messages to
store
2013-08-08 15:03:26 [11003] [7] DEBUG:
clear_old_concat_parts called


Look at my configuration files kannel.conf and sqlbox.conf:
#KANNEL CONFIG FILE 
group = core 
admin-port = 13000 
admin-password = ** 
smsbox-port = 13001 
log-file = /var/log/kannel/kannel.log 
log-level = 0 
access-log = /var/log/kannel/access_kannel.log 
store-file = /var/log/kannel/store_sms 
dlr-storage = mysql 


group = smsc 
smsc = smpp 
smsc-id = craftmobile 
host = 89.249.18.53 
port = 27703 
smsc-username = ** 
smsc-password = ** 
system-type = VMA 
log-file = /var/log/kannel/smpp-smsc.log log-level = 1 
dest-addr-ton = 1 
dest-addr-npi = 1 
#alt-charset = UCS-2 

group = smsbox 
bearerbox-host = localhost 
smsbox-id = mysmsbox 
sendsms-port = 13013 
log-file = /var/log/kannel/smsbox.log 
log-level = 0 

group = smsbox-route 
smsbox-id = mysmsbox 
smsc-id = craftmobile 
#shortcode = 2288 

group = sendsms-user 
dlr-url =  http://134.0.113.138/dlr.php?type=%d;
concatenation = true 
max-messages = 5 
username =  
password = ** 
default-smsc = SMSC 

group = dlr-db 
id = mydlr 
table = oempro_kannel_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 


group = mysql-connection 
id = mydlr 
host = localhost 
username =  
password = ** 
database = sender 
max-connections = 1 

# -- SQLBOX GROUP -- 
group = sqlbox 
id = sqlbox-db 
smsbox-id = mysqlbox 
bearerbox-port = 13001 
smsbox-port = 13003 
smsbox-port-ssl = false 
sql-log-table = oempro_kannel_sqlbox_sent_sms 
sql-insert-table = oempro_kannel_sqlbox_send_sms 
log-file = /var/log/kannel/sqlbox.log 
log-level = 3 

group = mysql-connection 
id = sqlbox-db 
host = 

Re: clear DLR Queue using spool storage

2013-07-31 Thread Alvaro Cornejo
Hi

Check admin interface options. There is a flush-dlr option

On 7/31/13, Qqblog Qqblog qqb...@ymail.com wrote:
 How to clear DLR Queue using spool storage ?



-- 
|-|
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.NET www.smsglobal.com.mx y
www.pravcom.com



Re: got DLR but could not find message or was not interested in for some messages

2013-06-23 Thread Willy Mularto
I don't see any dlr-storage defined in your configuration :)



Willy Mularto
sangpr...@gmail.com

On Jun 23, 2013, at 12:36 PM, Majid Azimi azimi.ma...@yahoo.com wrote:

 Hi guys,
 
 can someone help with this question:
 
 http://serverfault.com/questions/517765/got-dlr-but-could-not-find-message-or-was-not-interested-in-for-some-messages
 
 thank you very much



Re: got DLR but could not find message or was not interested in for some messages

2013-06-23 Thread Majid Azimi
user guide says dlr-storage = internal is the default option. should I mention 
it again?

 I don't see any dlr-storage defined in your configuration :)


Hi guys,


can someone help with this question:


http://serverfault.com/questions/517765/got-dlr-but-could-not-find-message-or-was-not-interested-in-for-some-messages


thank you very much



Re: got DLR but could not find message or was not interested in for some messages

2013-06-23 Thread Willy Mularto
Yes you are correct, but keep in mind that this internal type stores your DLRs 
temporary in memory, which means you will lost them when you restart Bearerbox. 
It is recommended to use spool or db-based DLR type. Will be helpful if you set 
the log-level to 0 so we can analyse what is going on.


Willy Mularto
sangpr...@gmail.com

On Jun 23, 2013, at 1:31 PM, Majid Azimi azimi.ma...@yahoo.com wrote:

 user guide says dlr-storage = internal is the default option. should I 
 mention it again?
 
 I don't see any dlr-storage defined in your configuration :)
 
 
 Hi guys,
 
 
 can someone help with this question:
 
 
 http://serverfault.com/questions/517765/got-dlr-but-could-not-find-message-or-was-not-interested-in-for-some-messages
 
 
 thank you very much
 




Re: mysql-dlr storage problem

2013-06-14 Thread testn4n1
Hi,

I found another thing. I am unable to receive parameters when i insert into
mysql.
But when i use the sendsms url i.e.


http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=919067184864from=TESTSMStext=messagedlr-mask=31dlr-url=http://192.168.111.151:8085/Kannel_Test/Receive_dlr?timestamp=%25t%26sender=%25p%26receiver=%25P%26smsc_id=%25i%26dlr_value=%25d%26msg_id=%25F%26sendsms_user=%25n%26message=%25a

i receive all the parameters with values. I get the following response:

http://192.168.111.151:8085/Kannel_Test/Receive_dlr?timestamp=2013-06-1413:41:54sender=919067184864receiver=TESTSMSsmsc_id=smpp-nexmodlr_value=8msg_id=288230376273092639sendsms_user=usersmessage=ACK/


Here, i sent the text as message but i received message=ACK/. But atleast
i am able to receive other parameters.

How do i achieve this using mysql?
When i execute the insert query, i am unable to achieve this. Please help
me. Its been a long time and i am stuck.

Regards,
James

On 13 June 2013 15:04, testn4n1 testn...@gmail.com wrote:

 Here are my configurations again.

 Kannel.conf
 ===


 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1


 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 2
 connect-allow-ip = 127.0.0.1



 group = smsbox
 smsbox-id = box1

 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar
 #user-deny-ip = 
 #user-allow-ip = 




 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = sms-service
 keyword = default
 text = No service specified




 group = smsc
 smsc = smpp
 smsc-id = smpp-nexmo
 host = smpp0.nexmo.com

 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = ***
 smsc-password = 
 system-type = nexmo
 dest-addr-ton=1
 msg-id-type=0x01
 alt-charset = LATIN1
 enquire-link-interval = 30




 group = sendsms-user
 username = tester
 password = foobar
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1



 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 sqlbox.conf
 ==


 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 #global-sender = 

 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 Please verify these and tell me if anything is wrong or missing.



 On 13 June 2013 14:28, testn4n1 testn...@gmail.com wrote:

 Ya i compiled it from latest source only but still facing this problem.


 On 13 June 2013 14:21, spameden spame...@gmail.com wrote:

 I was wrong, you need to urlencode each parameter passed, i.e:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message=%25atimestamp=%25t'

 so your previous URL should work actually



 2013/6/13 testn4n1 testn...@gmail.com

 No, this is also not working. Same result as before.


 On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 

Re: mysql-dlr storage problem

2013-06-14 Thread spameden
Try this (quoting Alejandro Guerrieri):

–Yes, SqlBox can handle MO Traffic as well. To do that, you need to put
SqlBox between
–smsbox and bearerbox, so all traffic intented for smsbox would pass thru
SqlBox before.

–To achieve that, you need to configure smsbox to use the SqlBox port
instead of
–bearerbox’s. You need to start SqlBox before smsbox, otherwise smsbox
would fail to start


This is because you need separate configuration files for bearerbox,
smsbox and sqlbox. Under “normal” circumstances, bearerbox and smsbox could
share the configuration file, but if you intend to put sqlbox in the
middle, you need smsbox to point to sqlbox’s port and not bearerbox:

For example, to use this setup:
bearerbox  --[13001]-- sqlbox  --[13005]-- smsbox

You’d need something like this:

kannel.conf (to use with bearerbox):
group = core
smsbox-port = 13001
…

sqlbox.conf:
group = sqlbox
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13005
…

smsbox.conf:
group = core
smsbox-port = 13005
…

smsbox.conf can be exactly the same file as kannel.conf, you only need to
change the smsbox-port.

Hope this helps clarifying how it works.

Regards,

Alex



2013/6/14 testn4n1 testn...@gmail.com

 Hi,

 I found another thing. I am unable to receive parameters when i insert
 into mysql.
 But when i use the sendsms url i.e.



 http://localhost:13013/cgi-bin/sendsms?username=testerpassword=foobarto=919067184864from=TESTSMStext=messagedlr-mask=31dlr-url=http://192.168.111.151:8085/Kannel_Test/Receive_dlr?timestamp=%25t%26sender=%25p%26receiver=%25P%26smsc_id=%25i%26dlr_value=%25d%26msg_id=%25F%26sendsms_user=%25n%26message=%25a

 i receive all the parameters with values. I get the following response:

 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?timestamp=2013-06-1413:41:54sender=919067184864receiver=TESTSMSsmsc_id=smpp-nexmodlr_value=8msg_id=288230376273092639sendsms_user=usersmessage=ACK/


 Here, i sent the text as message but i received message=ACK/. But
 atleast i am able to receive other parameters.

 How do i achieve this using mysql?
 When i execute the insert query, i am unable to achieve this. Please help
 me. Its been a long time and i am stuck.

 Regards,
 James


 On 13 June 2013 15:04, testn4n1 testn...@gmail.com wrote:

 Here are my configurations again.

 Kannel.conf
 ===


 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1


 group = smsc
 smsc = fake
 smsc-id = FAKE
 port = 2
 connect-allow-ip = 127.0.0.1



 group = smsbox
 smsbox-id = box1

 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar
 #user-deny-ip = 
 #user-allow-ip = 




 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = sms-service
 keyword = default
 text = No service specified




 group = smsc
 smsc = smpp
 smsc-id = smpp-nexmo
 host = smpp0.nexmo.com

 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = ***
 smsc-password = 
 system-type = nexmo
 dest-addr-ton=1
 msg-id-type=0x01
 alt-charset = LATIN1
 enquire-link-interval = 30




 group = sendsms-user
 username = tester
 password = foobar
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1



 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 sqlbox.conf
 ==


 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 #global-sender = 

 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 Please verify these and tell me if anything is wrong or missing.



 On 13 June 2013 14:28, testn4n1 testn...@gmail.com wrote:

 Ya i compiled it from latest source only but still facing this problem.


 On 13 June 2013 14:21, spameden spame...@gmail.com wrote:

 I was wrong, you need to urlencode each parameter passed, i.e:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message=%25atimestamp=%25t'

 so your previous URL should work actually



 2013/6/13 testn4n1 testn...@gmail.com

 No, this is also not working. Same result as before.


 On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as 

Re: mysql-dlr storage problem

2013-06-13 Thread testn4n1
Hi,

Did you find any solution to my problem?

Regards,
James

On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url is
 called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
 not replced with actual values. After the actual delivery report arrives,
 the same url is called again without actual values i.e %i, %t, %P etc. are
 passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
 '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
 , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi




 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from SMSCsmpp
 for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could not
 find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it specifies %D as value for the meta-data key. Is it
 something that kannel replaces %D with some other value and then calls 
 the
 specified url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into
 the send_sms table but no parameters are passed. i printed 

Re: mysql-dlr storage problem

2013-06-13 Thread spameden
try urlencoding whole parameter string, i.e.:

insert this value as dlr_url:

'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

hope it helps



2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url is
 called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
 not replced with actual values. After the actual delivery report arrives,
 the same url is called again without actual values i.e %i, %t, %P etc. are
 passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
 '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi





 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 Messages section. but it does not specify what are the key and values 
 for
 the parameters. i.e. which are the common parameters we need to pass 
 in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it specifies %D as value for the meta-data key. Is it
 something that kannel replaces %D with some other value and then calls 
 the
 specified url? if yes, then what are the other such 

Re: mysql-dlr storage problem

2013-06-13 Thread spameden
What kannel version you're using btw?


2013/6/13 spameden spame...@gmail.com

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi






 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 Messages section. but it does not specify what are the key and values 
 for
 the parameters. i.e. which are the common parameters we need to pass 
 in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it specifies %D as value for the meta-data key. Is it
 something that kannel replaces %D with some 

Re: mysql-dlr storage problem

2013-06-13 Thread testn4n1
Kannel 1.5.0
sqlbo 0.7.2

On 13 June 2013 12:39, spameden spame...@gmail.com wrote:

 What kannel version you're using btw?


 2013/6/13 spameden spame...@gmail.com

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi







 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 Messages section. but it does not specify what are the key and 
 values for
 the parameters. i.e. which are the common parameters we need to pass 
 in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it 

Re: mysql-dlr storage problem

2013-06-13 Thread testn4n1
No, this is also not working. Same result as before.

On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi






 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 Messages section. but it does not specify what are the key and values 
 for
 the parameters. i.e. which are the common parameters we need to pass 
 in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it specifies %D as value for the meta-data key. Is it
 something that 

Re: mysql-dlr storage problem

2013-06-13 Thread spameden
Try building kannel from latest SVN and sqlbox.


2013/6/13 testn4n1 testn...@gmail.com

 Kannel 1.5.0
 sqlbo 0.7.2


 On 13 June 2013 12:39, spameden spame...@gmail.com wrote:

 What kannel version you're using btw?


 2013/6/13 spameden spame...@gmail.com

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi








 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 
 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 Messages section. but it does not specify what are the key and 
 values for
 the parameters. i.e. which are the common parameters we need to 
 pass in the
 dlr-url.
 Only an example is given like this:

 

Re: mysql-dlr storage problem

2013-06-13 Thread spameden
I was wrong, you need to urlencode each parameter passed, i.e:

'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
message=%25atimestamp=%25t'

so your previous URL should work actually



2013/6/13 testn4n1 testn...@gmail.com

 No, this is also not working. Same result as before.


 On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi







 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO
 

Re: mysql-dlr storage problem

2013-06-13 Thread testn4n1
Ya i compiled it from latest source only but still facing this problem.

On 13 June 2013 14:21, spameden spame...@gmail.com wrote:

 I was wrong, you need to urlencode each parameter passed, i.e:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message=%25atimestamp=%25t'

 so your previous URL should work actually



 2013/6/13 testn4n1 testn...@gmail.com

 No, this is also not working. Same result as before.


 On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the dlr_url
 is called instantly and it is called as-it-is. i.e. the %i, %p etc. values
 are not replced with actual values. After the actual delivery report
 arrives, the same url is called again without actual values i.e %i, %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi








 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from
 SMSCsmpp for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could
 not find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 
 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. 

Re: mysql-dlr storage problem

2013-06-13 Thread testn4n1
Here are my configurations again.

Kannel.conf
===

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
dlr-storage = mysql
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1


group = smsc
smsc = fake
smsc-id = FAKE
port = 2
connect-allow-ip = 127.0.0.1



group = smsbox
smsbox-id = box1
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013


group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 



group = sms-service
keyword = nop
text = You asked nothing and I did it!


group = sms-service
keyword = default
text = No service specified



group = smsc
smsc = smpp
smsc-id = smpp-nexmo
host = smpp0.nexmo.com
port = 8000
transceiver-mode = true
throughput = 10
smsc-username = ***
smsc-password = 
system-type = nexmo
dest-addr-ton=1
msg-id-type=0x01
alt-charset = LATIN1
enquire-link-interval = 30



group = sendsms-user
username = tester
password = foobar
name = users
#user-deny-ip = *.*.*.*
user-allow-ip = *.*.*.*
max-messages = 3
concatenation = 1
omit-empty = 1



group = mysql-connection
id = mydlr
host = localhost
username = root
password = root
database = kannel


group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc


sqlbox.conf
==

group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
#global-sender = 
bearerbox-host = localhost
bearerbox-port = 13001
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms



# MYSQL Connection
group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = root
database = kannel


Please verify these and tell me if anything is wrong or missing.


On 13 June 2013 14:28, testn4n1 testn...@gmail.com wrote:

 Ya i compiled it from latest source only but still facing this problem.


 On 13 June 2013 14:21, spameden spame...@gmail.com wrote:

 I was wrong, you need to urlencode each parameter passed, i.e:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message=%25atimestamp=%25t'

 so your previous URL should work actually



 2013/6/13 testn4n1 testn...@gmail.com

 No, this is also not working. Same result as before.


 On 13 June 2013 12:37, spameden spame...@gmail.com wrote:

 try urlencoding whole parameter string, i.e.:

 insert this value as dlr_url:

 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr?http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 message%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n'

 hope it helps



 2013/6/13 testn4n1 testn...@gmail.com

 Hi,

 Did you find any solution to my problem?

 Regards,
 James


 On 12 June 2013 09:45, testn4n1 testn...@gmail.com wrote:

 Yes, that problem is solved. But now i am having another problem.


 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, %t, 
 %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
 '
  , 'box1');


 On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi










 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the
 dlr_url is called instantly and it is called as-it-is. i.e. the %i, %p 
 etc.
 values are not replced with actual values. After the actual delivery 
 report
 arrives, the same url is called again without actual values i.e %i, 
 %t, %P
 etc. are passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata,
 sms_type, dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234',
 'smpp-clickatell', '919067184864', 'Abbe russsh', 2, 31, '
 

Re: mysql-dlr storage problem

2013-06-11 Thread testn4n1
Hi,

Hi tried the following insert query with the encoded url:

INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type, dlr_mask,
dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
2, 31,
'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
'box1');


Kannel gives the following error:

ERROR: URL
http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
doesn't start with `http://' nor `https://'


Regards,
James

On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into the
 send_sms table but no parameters are passed. i printed all the request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr', 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and
 want to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe 
 russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me
 what is wrong here?

 Regards,
 James




 On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   
 NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| 
 NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the
 source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url

 but it would be easier and more proper to modify sqlbox code to
 store where you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr
 reports also. But, these reports do not go in the table that i 
 specify.
 Instead, the reports are stored in sent_sms table. Below is my
 configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 

Re: mysql-dlr storage problem

2013-06-11 Thread Jacob Eiler
Hi James

It is only the query parameter values part that should be encoded:

http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

Jacob Eiler
Apide ApS
e: jacob.ei...@apide.com
t: +45 2374 0486
w: apide.com


Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

Hi,

Hi tried the following insert query with the encoded url:

INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type, dlr_mask,
dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
2, 31,
'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
'box1');


Kannel gives the following error:

ERROR: URL
http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
doesn't start with `http://' nor `https://'


Regards,
James

On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into the
 send_sms table but no parameters are passed. i printed all the request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr', 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and
 want to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe 
 russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me
 what is wrong here?

 Regards,
 James




 On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   
 NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| 
 NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the
 source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url

 but it would be easier and more proper to modify sqlbox code to
 store where you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr
 reports also. But, these reports do not go in the table that i 
 specify.
 Instead, the reports are 

Re: mysql-dlr storage problem

2013-06-11 Thread testn4n1
I am getting this error:

2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from SMSCsmpp for
DST919067184864 not found.
2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could not
find message or was not interested in it id40007077826
dst919067184864, type1

I read on a blog where it says try the smsc group parameter msg-id-type =
0x01

In my configuration, i have already set this but its not working.


On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type, dlr_mask,
 dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into the
 send_sms table but no parameters are passed. i printed all the request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr', 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and
 want to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe 
 russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me
 what is wrong here?

 Regards,
 James




 On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   
 NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| 
 NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the
 source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url


Re: mysql-dlr storage problem

2013-06-11 Thread testn4n1
Hi,

I am facing some problems.
When i insert into the database using the following query, the dlr_url is
called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
not replced with actual values. After the actual delivery report arrives,
the same url is called again without actual values i.e %i, %t, %P etc. are
passed. Please help.

INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
'919067184864', 'Abbe russsh', 2, 31, '
http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
'box1');

On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from SMSCsmpp
 for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could not
 find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter msg-id-type
 = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into the
 send_sms table but no parameters are passed. i printed all the request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr', 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and
 want to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe 
 russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me
 what is wrong here?

 Regards,
 James




 On 10 

Re: mysql-dlr storage problem

2013-06-11 Thread spameden
Quoting Rene on this one:

On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl
http://www.kannel.org/mailman/listinfo/users wrote:

The error is self-explanatory.

You should just dlrencode your parameters in the dlr-url. Not the url
itself.


So 
insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi




2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url is
 called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
 not replced with actual values. After the actual delivery report arrives,
 the same url is called again without actual values i.e %i, %t, %P etc. are
 passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
 '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from SMSCsmpp
 for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could not
 find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter msg-id-type
 = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into
 the send_sms table but no parameters are passed. i printed all the 
 request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr', 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and
 want to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 

Re: mysql-dlr storage problem

2013-06-11 Thread testn4n1
Yes, that problem is solved. But now i am having another problem.

When i insert into the database using the following query, the dlr_url is
called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
not replced with actual values. After the actual delivery report arrives,
the same url is called again without actual values i.e %i, %t, %P etc. are
passed. Please help.

INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
'919067184864', 'Abbe russsh', 2, 31, '
http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n
'
, 'box1');


On 11 June 2013 19:29, spameden spame...@gmail.com wrote:

 Quoting Rene on this one:

 On Wed, Aug 1, 2012 at 3:05 PM, Rene Kluwen rene.kluwen at chimit.nl 
 http://www.kannel.org/mailman/listinfo/users wrote:

 The error is self-explanatory.

 You should just dlrencode your parameters in the dlr-url. Not the url
 itself.


 So 
 insert:http://10.0.0.1/sms/dlrNEW.php?dlr=%25d%26to%3D%25p%26smsID%3D%25A%26BatchID%3Dravi123-5d12d21asdq1asravi




 2013/6/11 testn4n1 testn...@gmail.com

 Hi,

 I am facing some problems.
 When i insert into the database using the following query, the dlr_url is
 called instantly and it is called as-it-is. i.e. the %i, %p etc. values are
 not replced with actual values. After the actual delivery report arrives,
 the same url is called again without actual values i.e %i, %t, %P etc. are
 passed. Please help.

 INSERT INTO send_sms (momt, sender, smsc_id, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', 'smpp-clickatell',
 '919067184864', 'Abbe russsh', 2, 31, '
 http://192.168.111.151:8085/Kannel_Test/Receive_dlr?message=%25atimestamp=%25tsender=%25preceiver=%25Psmsc_id=%25idlr_value=%25dmsg_id=%25Fsendsms_user=%25n',
 'box1');


 On 11 June 2013 13:12, testn4n1 testn...@gmail.com wrote:

 I am getting this error:

 2013-06-11 12:27:07 [4669] [7] WARNING: DLR[mysql]: DLR from SMSCsmpp
 for DST919067184864 not found.
 2013-06-11 12:27:07 [4669] [7] ERROR: SMPP[smpp]: got DLR but could not
 find message or was not interested in it id40007077826
 dst919067184864, type1

 I read on a blog where it says try the smsc group parameter
 msg-id-type = 0x01

 In my configuration, i have already set this but its not working.



 On 11 June 2013 12:12, Jacob Eiler jacob.ei...@apide.com wrote:

 Hi James

 It is only the query parameter values part that should be encoded:


 http://192.168.111.151:8085/Kannel_Test/Recieve_dlr?message=%25atimestamp=%25tetc

 Jacob Eiler
 Apide ApS
 e: jacob.ei...@apide.com
 t: +45 2374 0486
 w: apide.com


 Den 11/06/2013 kl. 08.26 skrev testn4n1 testn...@gmail.com:

 Hi,

 Hi tried the following insert query with the encoded url:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31,
 'http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n',
 'box1');


 Kannel gives the following error:

 ERROR: URL
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fmessage%3D%25a%26timestamp%3D%25t%26sender%3D%25p%26receiver%3D%25P%26smsc_id%3D%25i%26dlr_value%3D%25d%26msg_id%3D%25F%26sendsms_user%3D%25n
 doesn't start with `http://' nor `https://'


 Regards,
 James

 On 10 June 2013 19:27, spameden spame...@gmail.com wrote:

 check page 91 of the guide (Table 6-9. Parameters (Escape Codes))


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I read the user-guide. It says about url encoding in the MO Messages
 section. but it does not specify what are the key and values for the
 parameters. i.e. which are the common parameters we need to pass in the
 dlr-url.
 Only an example is given like this:

 http://localhost/myscript?...meta-data=%D;...

 can you please tell me which are the other parameters and their
 values?
 also, it specifies %D as value for the meta-data key. Is it something
 that kannel replaces %D with some other value and then calls the 
 specified
 url? if yes, then what are the other such values for the keys?

 Regards,
 James


 On 10 June 2013 18:23, spameden spame...@gmail.com wrote:

 Yes, you need to:

 1) URLENCODE URL before inserting into database
 2) pass parameters into URL, i.e.

 example:
 http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

 Once again, read user-guide.


 2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into
 the send_sms table but no parameters are passed. i printed all the 
 request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need 

Re: mysql-dlr storage problem

2013-06-10 Thread spameden
dlr table only used to track which messages are awaiting reports

you need to modify sqlbox source if you need to store DLR entries separately


2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports also.
 But, these reports do not go in the table that i specify. Instead, the
 reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel

 ---

 The sms are sent successfully from send_sms and transferred to the table
 sent_sms but the delivery reports are also stored in the same table and the
 dlr table is always empty.

 If anyone has come accross this problem, please help me.



Re: mysql-dlr storage problem

2013-06-10 Thread testn4n1
i want dlrs but not in the sent_sms table

On 10 June 2013 17:04, spameden spame...@gmail.com wrote:

 If you don't want to receive DLR's you can use different dlr_mask.

 Read User-Guide about it.


 2013/6/10 testn4n1 testn...@gmail.com

 also, i have two dlr entries for every sms sent. the following are these:

 | 11 | DLR  | 1234   | 919067184864 | NULL| ACK%2F | 1370495085 |
 smpp-nexmo | NULL| NULL | NULL |3 |   NULL | NULL |   NULL
 | NULL | NULL | NULL |8 | NULL| NULL |NULL |
 NULL | NULL| sqlbox  | NULL  | NULL |


 | 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |


 On 10 June 2013 17:00, testn4n1 testn...@gmail.com wrote:

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the source?


 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports
 also. But, these reports do not go in the table that i specify. Instead,
 the reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 ---

 The sms are sent successfully from send_sms and transferred to the
 table sent_sms but the delivery reports are also stored in the same table
 and the dlr table is always empty.

 If anyone has come accross this problem, please help me.








Re: mysql-dlr storage problem

2013-06-10 Thread spameden
2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the source?


because sqlbox moves everything into sent_sms table.

you can process DLRs with a script supplied to dlr_url

but it would be easier and more proper to modify sqlbox code to store where
you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports also.
 But, these reports do not go in the table that i specify. Instead, the
 reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 ---

 The sms are sent successfully from send_sms and transferred to the table
 sent_sms but the delivery reports are also stored in the same table and the
 dlr table is always empty.

 If anyone has come accross this problem, please help me.






Re: mysql-dlr storage problem

2013-06-10 Thread testn4n1
i am trying to send sms by inserting data into send_sms table and want to
process dlrs with script using dlr_url. So, i have changed the
configuration to the following but i cannot receive anything in my
application:

group = sendsms-user
username = tester
password = foobar
forced-smsc = smpp-nexmo
name = users
dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr
#user-deny-ip = *.*.*.*
user-allow-ip = *.*.*.*
max-messages = 3
concatenation = 1
omit-empty = 1


I am executing the following query for inserting the data:

INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type, dlr_mask,
dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe russsh', 2, 31, '
http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

The dlr is not routed to my specified url. Can you please tell me what is
wrong here?

Regards,
James



On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url

 but it would be easier and more proper to modify sqlbox code to store
 where you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports
 also. But, these reports do not go in the table that i specify. Instead,
 the reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 ---

 The sms are sent successfully from send_sms and transferred to the
 table sent_sms but the delivery reports are also stored in the same table
 and the dlr table is always empty.

 If anyone has come accross this problem, please help me.







Re: mysql-dlr storage problem

2013-06-10 Thread testn4n1
ok...the url i provided gets called the second i insert data into the
send_sms table but no parameters are passed. i printed all the request
parameters but got nothing.

On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type, dlr_mask,
 dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr',
 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and want to
 process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me what is
 wrong here?

 Regards,
 James




 On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url

 but it would be easier and more proper to modify sqlbox code to store
 where you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports
 also. But, these reports do not go in the table that i specify. Instead,
 the reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 ---

 The sms are sent successfully from send_sms and transferred to the
 table sent_sms but the delivery reports are also stored in the same table
 and the dlr table is always empty.

 If anyone has come accross this problem, please help me.









Re: mysql-dlr storage problem

2013-06-10 Thread spameden
Yes, you need to:

1) URLENCODE URL before inserting into database
2) pass parameters into URL, i.e.

example:
http%3A%2F%2F192.168.111.151%3A8085%2FKannel_Test%2FReceive_dlr%3Fsmsc-id%3D%25i%22%22

Once again, read user-guide.


2013/6/10 testn4n1 testn...@gmail.com

 ok...the url i provided gets called the second i insert data into the
 send_sms table but no parameters are passed. i printed all the request
 parameters but got nothing.


 On 10 June 2013 17:58, spameden spame...@gmail.com wrote:

 To achieve this you need to put smsbox in between of the sqlbox and
 bearerbox or enforce smsbox id into boxc_id field, i.e.:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url, boxc_id) VALUES ('MT', '1234', '919067184864', 'Abbe
 russsh', 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr',
 'smsbox_id');



 2013/6/10 testn4n1 testn...@gmail.com

 i am trying to send sms by inserting data into send_sms table and want
 to process dlrs with script using dlr_url. So, i have changed the
 configuration to the following but i cannot receive anything in my
 application:


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = smpp-nexmo
 name = users
 dlr-url = http://192.168.111.151:8085/Kannel_Test/Receive_dlr

 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 I am executing the following query for inserting the data:

 INSERT INTO send_sms (momt, sender, receiver, msgdata, sms_type,
 dlr_mask, dlr_url) VALUES ('MT', '1234', '919067184864', 'Abbe russsh',
 2, 31, 'http://192.168.111.151:8085/Kannel_Test/Receive_dlr');

 The dlr is not routed to my specified url. Can you please tell me what
 is wrong here?

 Regards,
 James




 On 10 June 2013 17:06, spameden spame...@gmail.com wrote:

 2013/6/10 testn4n1 testn...@gmail.com

 ok...but then why are there entries in my sent_sms table like the
 following:

 12 | DLR  | 1234   | 919067184864 | NULL|
 id%3A288230376265477711+sub%3A001+dlvrd%3A001+submit+date%3A1306061034+done+date%3A1306060504+stat%3ADELIVRD+err%3A000+text%3Anone
 | 1370495099 | smpp-nexmo | NULL| 51dc0ffb | NULL |3 |   NULL 
 |
 NULL |   NULL | NULL | NULL | NULL |1 | NULL| NULL
 |NULL | NULL | NULL| sqlbox  | NULL  | ?smpp?dlr_err=000 |

 what are the other ways to handle dlr instead of modifying the source?


 because sqlbox moves everything into sent_sms table.

 you can process DLRs with a script supplied to dlr_url

 but it would be easier and more proper to modify sqlbox code to store
 where you want them.





 On 10 June 2013 16:55, spameden spame...@gmail.com wrote:

 dlr table only used to track which messages are awaiting reports

 you need to modify sqlbox source if you need to store DLR entries
 separately


 2013/6/10 testn4n1 testn...@gmail.com

 Hi,

 I am able to send sms using sqlbox and able to receive dlr reports
 also. But, these reports do not go in the table that i specify. Instead,
 the reports are stored in sent_sms table. Below is my configuration:

 Kannel.conf
 --

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 dlr-storage = mysql


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = 13013


 group = sendsms-user
 username = tester
 password = foobar


 group = sms-service
 keyword = nop
 text = You asked nothing and I did it!


 group = smsc
 smsc = smpp
 smsc-id = server1
 host = smpp0.net
 port = 8000
 transceiver-mode = true
 throughput = 10
 smsc-username = **
 smsc-password = **


 group = sendsms-user
 username = tester
 password = foobar
 forced-smsc = server1
 name = users
 #user-deny-ip = *.*.*.*
 user-allow-ip = *.*.*.*
 max-messages = 3
 concatenation = 1
 omit-empty = 1


 group = mysql-connection
 id = mydlr
 host = localhost
 username = root
 password = root
 database = kannel


 group = dlr-db
 id = mydlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
 field-source=source
 field-destination = destination
 field-service = service
 field-url = url
 field-mask = mask
 field-status = status
 field-boxc-id = boxc


 --
 -

 sqlbox.conf
 --

 group = sqlbox
 id = sqlbox-db
 smsbox-id = sqlbox
 bearerbox-host = localhost
 bearerbox-port = 13001
 smsbox-port = 13005
 smsbox-port-ssl = false
 sql-log-table = sent_sms
 sql-insert-table = send_sms



 # MYSQL Connection
 group = mysql-connection
 id = sqlbox-db
 host = localhost
 username = root
 password = root
 database = kannel


 ---

 The sms are sent successfully from send_sms and transferred to the
 table sent_sms but the delivery reports are also stored in the same 
 table
 and the dlr table is always empty.

 If anyone has come accross this problem, please help me.

Re: inject DLR : Unknown DLR, not accepted

2012-12-07 Thread Ali Kashif
Dear Alvaro,

i am passing the internal message id, obtained from send-url. with %I code.

i think issue is something different, and i suspect that is something with
http generic SMSC

now look at this
i changed the generic SMSC to kannel.
here is the conf.


# http smsc with system type kannel

group = smsc
smsc = http
*system-type = kannel*
smsc-id = localpars
log-file = /var/log/kannel/httpkannel.log
host = 172.18.4.100
port = 8998
send-url = http://localhost/asd.php;
connect-allow-ip = *.*.*.*
reroute-dlr = true
smsc-username = user
smsc-password = password
status-success-regex = 
status-permfail-regex = failure
status-tempfail-regex = retry later


#  My php file received this data

Array
(
username=user
[password] = password
[to] = +9
[text] = test rerout message test
[from] = 21234A
[mclass] = 1
[coding] = 0
[charset] = UTF-8
[binfo] = 11223
[smsc] = localpars
[dlr-url] = 3b6555b1
[dlr-mask] = 19
)



now system type kannel do not send the internal message id in send-url

so i looked at kannel access log.

and got the message id .


#
#   My Kannel Access log
##

2012-12-07 14:44:04 Sent SMS [SMSC:localpars] [SVC:ali-KSA] [ACT:]
[BINF:11223] *[FID:a548e4db-7400-43e1-892d-f51858bdb11c]* [META:?smpp?]
[from:21234A] [to:+9] [flags:1:0:-1:-1:19] [msg:24:test rerout
message test] [udh:0:]





# when the message is received at http SMSC following is generated in http
smsc log, with system-type= kannel, but when the system type is changed to
generic, there is nothing like this in log file, infact the log file is
totally silent when an incomming message is received, and it silently
passed data to send-url.


2012-12-07 14:44:04 [22045] [8] DEBUG: DLR[internal]: Adding DLR
smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, src=21234A,
dst=+9x, mask=19, boxc=ali-KSA



# now i passed the message ID to my url to inject dlr and it worked
perfectly

http://172.18.4.24:8998/sms?username=userpassword=passworddlr-mask=1to=9dlr-mid=a548e4db-7400-43e1-892d-f51858bdb11c






and finally here is the http smsc log file which says DLR is received and
processed.

###
2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Got request `/sms'
2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received an HTTP
request
2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: Looking for DLR
smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, dst=9,
type=1
2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: created DLR message
for URL a548e4db
2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received DLR for
DLR-URL a548e4db
2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Sending reply
###



so i think there is something to do with smsc http with system type
generic. (not sure at all...)


i hope this will explain my concerns.


Thanks
Ali


On Fri, Dec 7, 2012 at 5:32 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi the issue is that kannel uses its own id for each MT creating a
 unique dest-number/id.

 When you submit the dlr you are using your own ID, therefore kannel
 have a no match pair dest_number/id.

 Regards

 Alvaro

 On 12/7/12, Ali Kashif syedalikas...@gmail.com wrote:
  Dear users,
 
  my goal is to manually inject DLR to kannel.
  for this is have created a http generic smsc with send-url, i am getting
  proper data in my php file.
 
  after parsing my message data in need to inject DLR back to my http smsc,
  ,but when i try that i face Unknown DLR, not accepted
 
  here is my http smsc conf and the data i am receiving in my php and the
 URL
  to inject DLR,
 
  can anyone advise me what wrong i am doing?
 
  #
  # My generic SMSC
  #
  group = smsc
  smsc = http
  system-type = generic
  smsc-id = localpars
  log-file = /var/log/kannel/generic.log
  port = 8998
  send-url = 
 
 http://localhost/asd.php?date=%tunified_sender=%Qunified_receiver=%qmessage=%alocalsmsc=%idlr-mask=%dservice=%nbinfo=%Bsender=%Preceiver=%pmid=%Idlr-url=%Rcoding=%ccharset=%CFID=%Fmclass=%m
  
  connect-allow-ip = *.*.*.*
  reroute-dlr = true
  smsc-username = user
  smsc-password = pass
  status-success-regex = 
  status-permfail-regex = failure
  status-tempfail-regex = retry later
 
 
 
  #
  # data received in my php file
  #
  Array
  (
  [date] = 2012-12-07 07:47:20
  [unified_sender] = 21234A
  [unified_receiver] = +9X
  [message] = test rerout message
  [localsmsc] = localpars
  

Re: inject DLR : Unknown DLR, not accepted

2012-12-07 Thread Alvaro Cornejo
Hi

Have you tried urlencoding your dlr?

Which store have you setup in kannel for dlr? if it is a database, can
you check how reccords are stored and which values it has? They should
still be there since kannel has not received any validdlr.

Else you can temporarily set kannel storage to a database and look at
how it is storing the pair destination/id.

Regards

Alvaro


On 12/7/12, Ali Kashif syedalikas...@gmail.com wrote:
 Dear Alvaro,

 i am passing the internal message id, obtained from send-url. with %I code.

 i think issue is something different, and i suspect that is something with
 http generic SMSC

 now look at this
 i changed the generic SMSC to kannel.
 here is the conf.

 
 # http smsc with system type kannel
 
 group = smsc
 smsc = http
 *system-type = kannel*
 smsc-id = localpars
 log-file = /var/log/kannel/httpkannel.log
 host = 172.18.4.100
 port = 8998
 send-url = http://localhost/asd.php;
 connect-allow-ip = *.*.*.*
 reroute-dlr = true
 smsc-username = user
 smsc-password = password
 status-success-regex = 
 status-permfail-regex = failure
 status-tempfail-regex = retry later

 
 #  My php file received this data
 
 Array
 (
 username=user
 [password] = password
 [to] = +9
 [text] = test rerout message test
 [from] = 21234A
 [mclass] = 1
 [coding] = 0
 [charset] = UTF-8
 [binfo] = 11223
 [smsc] = localpars
 [dlr-url] = 3b6555b1
 [dlr-mask] = 19
 )

 

 now system type kannel do not send the internal message id in send-url

 so i looked at kannel access log.

 and got the message id .


 #
 #   My Kannel Access log
 ##

 2012-12-07 14:44:04 Sent SMS [SMSC:localpars] [SVC:ali-KSA] [ACT:]
 [BINF:11223] *[FID:a548e4db-7400-43e1-892d-f51858bdb11c]* [META:?smpp?]
 [from:21234A] [to:+9] [flags:1:0:-1:-1:19] [msg:24:test rerout
 message test] [udh:0:]




 
 # when the message is received at http SMSC following is generated in http
 smsc log, with system-type= kannel, but when the system type is changed to
 generic, there is nothing like this in log file, infact the log file is
 totally silent when an incomming message is received, and it silently
 passed data to send-url.
 

 2012-12-07 14:44:04 [22045] [8] DEBUG: DLR[internal]: Adding DLR
 smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, src=21234A,
 dst=+9x, mask=19, boxc=ali-KSA


 
 # now i passed the message ID to my url to inject dlr and it worked
 perfectly

 http://172.18.4.24:8998/sms?username=userpassword=passworddlr-mask=1to=9dlr-mid=a548e4db-7400-43e1-892d-f51858bdb11c


 



 and finally here is the http smsc log file which says DLR is received and
 processed.

 ###
 2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Got request `/sms'
 2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received an HTTP
 request
 2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, dst=9,
 type=1
 2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: created DLR message
 for URL a548e4db
 2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received DLR for
 DLR-URL a548e4db
 2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Sending reply
 ###



 so i think there is something to do with smsc http with system type
 generic. (not sure at all...)


 i hope this will explain my concerns.


 Thanks
 Ali


 On Fri, Dec 7, 2012 at 5:32 PM, Alvaro Cornejo
 cornejo.alv...@gmail.comwrote:

 Hi the issue is that kannel uses its own id for each MT creating a
 unique dest-number/id.

 When you submit the dlr you are using your own ID, therefore kannel
 have a no match pair dest_number/id.

 Regards

 Alvaro

 On 12/7/12, Ali Kashif syedalikas...@gmail.com wrote:
  Dear users,
 
  my goal is to manually inject DLR to kannel.
  for this is have created a http generic smsc with send-url, i am
  getting
  proper data in my php file.
 
  after parsing my message data in need to inject DLR back to my http
  smsc,
  ,but when i try that i face Unknown DLR, not accepted
 
  here is my http smsc conf and the data i am receiving in my php and the
 URL
  to inject DLR,
 
  can anyone advise me what wrong i am doing?
 
  #
  # My generic SMSC
  #
  group = smsc
  smsc = http
  system-type = generic
  smsc-id = localpars
  log-file = /var/log/kannel/generic.log
  port = 8998
  send-url = 
 
 

Re: inject DLR : Unknown DLR, not accepted

2012-12-07 Thread Ali Kashif
HI,

the dlr storage was internal, i have changed that to mysql for testing.
here are the results,

if my http smsc has system-type = generic  == no dlr is created at all in
mysql
and when the system-type= kannel == dlr is generated and my dlr injection
works perfectly.


and thanks for advising for switching to mysql, now atleast we know that
http smsc with system type generic . for some reason the dlr is not being
created.

so now question is how to solve this :)


Thanks
Ali


On Fri, Dec 7, 2012 at 7:36 PM, Alvaro Cornejo cornejo.alv...@gmail.comwrote:

 Hi

 Have you tried urlencoding your dlr?

 Which store have you setup in kannel for dlr? if it is a database, can
 you check how reccords are stored and which values it has? They should
 still be there since kannel has not received any validdlr.

 Else you can temporarily set kannel storage to a database and look at
 how it is storing the pair destination/id.

 Regards

 Alvaro


 On 12/7/12, Ali Kashif syedalikas...@gmail.com wrote:
  Dear Alvaro,
 
  i am passing the internal message id, obtained from send-url. with %I
 code.
 
  i think issue is something different, and i suspect that is something
 with
  http generic SMSC
 
  now look at this
  i changed the generic SMSC to kannel.
  here is the conf.
 
  
  # http smsc with system type kannel
  
  group = smsc
  smsc = http
  *system-type = kannel*
  smsc-id = localpars
  log-file = /var/log/kannel/httpkannel.log
  host = 172.18.4.100
  port = 8998
  send-url = http://localhost/asd.php;
  connect-allow-ip = *.*.*.*
  reroute-dlr = true
  smsc-username = user
  smsc-password = password
  status-success-regex = 
  status-permfail-regex = failure
  status-tempfail-regex = retry later
 
  
  #  My php file received this data
  
  Array
  (
  username=user
  [password] = password
  [to] = +9
  [text] = test rerout message test
  [from] = 21234A
  [mclass] = 1
  [coding] = 0
  [charset] = UTF-8
  [binfo] = 11223
  [smsc] = localpars
  [dlr-url] = 3b6555b1
  [dlr-mask] = 19
  )
 
  
 
  now system type kannel do not send the internal message id in send-url
 
  so i looked at kannel access log.
 
  and got the message id .
 
 
  #
  #   My Kannel Access log
  ##
 
  2012-12-07 14:44:04 Sent SMS [SMSC:localpars] [SVC:ali-KSA] [ACT:]
  [BINF:11223] *[FID:a548e4db-7400-43e1-892d-f51858bdb11c]* [META:?smpp?]
  [from:21234A] [to:+9] [flags:1:0:-1:-1:19] [msg:24:test rerout
  message test] [udh:0:]
 
 
 
 
  
  # when the message is received at http SMSC following is generated in
 http
  smsc log, with system-type= kannel, but when the system type is changed
 to
  generic, there is nothing like this in log file, infact the log file is
  totally silent when an incomming message is received, and it silently
  passed data to send-url.
  
 
  2012-12-07 14:44:04 [22045] [8] DEBUG: DLR[internal]: Adding DLR
  smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, src=21234A,
  dst=+9x, mask=19, boxc=ali-KSA
 
 
  
  # now i passed the message ID to my url to inject dlr and it worked
  perfectly
 
 
 http://172.18.4.24:8998/sms?username=userpassword=passworddlr-mask=1to=9dlr-mid=a548e4db-7400-43e1-892d-f51858bdb11c
 
 
  
 
 
 
  and finally here is the http smsc log file which says DLR is received and
  processed.
 
  ###
  2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Got request
 `/sms'
  2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received an HTTP
  request
  2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: Looking for DLR
  smsc=localpars, ts=a548e4db-7400-43e1-892d-f51858bdb11c, dst=9,
  type=1
  2012-12-07 14:46:11 [22045] [7] DEBUG: DLR[internal]: created DLR message
  for URL a548e4db
  2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Received DLR for
  DLR-URL a548e4db
  2012-12-07 14:46:11 [22045] [7] DEBUG: HTTP[localpars]: Sending reply
  ###
 
 
 
  so i think there is something to do with smsc http with system type
  generic. (not sure at all...)
 
 
  i hope this will explain my concerns.
 
 
  Thanks
  Ali
 
 
  On Fri, Dec 7, 2012 at 5:32 PM, Alvaro Cornejo
  cornejo.alv...@gmail.comwrote:
 
  Hi the issue is that kannel uses its own id for each MT creating a
  unique dest-number/id.
 
  When you submit the dlr you are using your own ID, therefore kannel
  have a no match pair dest_number/id.
 
  Regards
 
  Alvaro
 
  On 12/7/12, Ali Kashif syedalikas...@gmail.com wrote:
   Dear users,
  
   my goal is to manually inject DLR to kannel.
   for this is have created 

Re: kannel DLR states

2012-04-11 Thread Alexander Malysh
Hi,

rejected will be generated in the upper layer so no need to patch anything.
As to the status codes: you don't really need status code what you need is the 
error code, check meta data errorcode field.

Alex

Am 10.04.2012 um 23:22 schrieb spameden:

 Hello, list.
 
 Sometimes it's good to know the exact reason why sms was failed.
 
 Is there any way I can get extended information about message delivery status?
 
 i.e. if it was REJECTED / UNDELIVERABLE / DELETED / EXPIRED
 
 According to SMPP v3.4 message states are:
 
 Message State Value Description
 ENROUTE 1 The message is in enroute
 state.
 DELIVERED 2 Message is delivered to
 destination
 EXPIRED 3 Message validity period has
 expired.
 DELETED 4 Message has been deleted.
 UNDELIVERABLE 5 Message is undeliverable
 ACCEPTED 6 Message is in accepted state
 (i.e. has been manually read
 on behalf of the subscriber by
 customer service)
 UNKNOWN 7 Message is in invalid state
 REJECTED 8 Message is in a rejected state
 
 Kannel seems to give status = 1 for delivered messages and status = 2 for all 
 other failed messages (i.e. EXPIRED / REJECTED / UNDELIVERABLE, etc).
 
 Kannel's documentation says there is a 16 status for REJECTED messages, but 
 kannel still gives status 2 instead. SMSC sends correct message state 8.
 
 I checked the source also it seems there is no handling of additional 
 statuses in code (from gw/smsc/smsc_smpp.c):
 
 /* first check for SMPP v3.4 and above */
 1291 if (smpp-version  0x33  receipted_message_id) {
 1292 msgid = octstr_duplicate(receipted_message_id);
 1293 switch(message_state) {
 1294 case 1: /* ENROUTE */
 1295 case 6: /* ACCEPTED */
 1296 dlrstat = DLR_BUFFERED;
 1297 break;
 1298 case 2: /* DELIVERED */
 1299 dlrstat = DLR_SUCCESS;
 1300 break;
 1301 case 3: /* EXPIRED */
 1302 case 4: /* DELETED */
 1303 case 5: /* UNDELIVERABLE */
 1304 case 7: /* UNKNOWN */
 1305 case 8: /* REJECTED */
 1306 dlrstat = DLR_FAIL;
 1307 break;
 1308 case -1: /* message state is not present, partial SMPP v3.4 */
 1309 debug(bb.sms.smpp, 0, SMPP[%s]: Partial SMPP v3.4, 
 receipted_message_id present but not message_state.,
 1310 octstr_get_cstr(smpp-conn-id));
 1311 dlrstat = -1;
 1312 break;
 1313 default:
 1314 warning(0, SMPP[%s]: Got DLR with unknown 'message_state' 
 (%ld).,
 1315 octstr_get_cstr(smpp-conn-id), message_state);
 1316 dlrstat = DLR_FAIL;
 1317 break;
 1318 }
 1319 }
 
 
 What's the right way to get additional information about message state from 
 kannel? 
 
 Should I modify source or I can use somehow msgdata field from DLR somehow 
 with stat code (REJECTD/DELIVRD/etc) ?
 
 Thanks in advance.
 
 
 




Re: kannel DLR states

2012-04-11 Thread spameden
How I can get this value without parsing msgdata field of incoming DLR?

(I'm on sqlbox, inserting records to send sms, sqlbox is between berarerbox
and smsbox).


2012/4/11 Alexander Malysh amal...@kannel.org

 Hi,

 rejected will be generated in the upper layer so no need to patch anything.
 As to the status codes: you don't really need status code what you need is
 the error code, check meta data errorcode field.

 Alex

 Am 10.04.2012 um 23:22 schrieb spameden:

  Hello, list.
 
  Sometimes it's good to know the exact reason why sms was failed.
 
  Is there any way I can get extended information about message delivery
 status?
 
  i.e. if it was REJECTED / UNDELIVERABLE / DELETED / EXPIRED
 
  According to SMPP v3.4 message states are:
 
  Message State Value Description
  ENROUTE 1 The message is in enroute
  state.
  DELIVERED 2 Message is delivered to
  destination
  EXPIRED 3 Message validity period has
  expired.
  DELETED 4 Message has been deleted.
  UNDELIVERABLE 5 Message is undeliverable
  ACCEPTED 6 Message is in accepted state
  (i.e. has been manually read
  on behalf of the subscriber by
  customer service)
  UNKNOWN 7 Message is in invalid state
  REJECTED 8 Message is in a rejected state
 
  Kannel seems to give status = 1 for delivered messages and status = 2
 for all other failed messages (i.e. EXPIRED / REJECTED / UNDELIVERABLE,
 etc).
 
  Kannel's documentation says there is a 16 status for REJECTED messages,
 but kannel still gives status 2 instead. SMSC sends correct message state 8.
 
  I checked the source also it seems there is no handling of additional
 statuses in code (from gw/smsc/smsc_smpp.c):
 
  /* first check for SMPP v3.4 and above */
  1291 if (smpp-version  0x33  receipted_message_id) {
  1292 msgid = octstr_duplicate(receipted_message_id);
  1293 switch(message_state) {
  1294 case 1: /* ENROUTE */
  1295 case 6: /* ACCEPTED */
  1296 dlrstat = DLR_BUFFERED;
  1297 break;
  1298 case 2: /* DELIVERED */
  1299 dlrstat = DLR_SUCCESS;
  1300 break;
  1301 case 3: /* EXPIRED */
  1302 case 4: /* DELETED */
  1303 case 5: /* UNDELIVERABLE */
  1304 case 7: /* UNKNOWN */
  1305 case 8: /* REJECTED */
  1306 dlrstat = DLR_FAIL;
  1307 break;
  1308 case -1: /* message state is not present, partial SMPP v3.4
 */
  1309 debug(bb.sms.smpp, 0, SMPP[%s]: Partial SMPP v3.4,
 receipted_message_id present but not message_state.,
  1310 octstr_get_cstr(smpp-conn-id));
  1311 dlrstat = -1;
  1312 break;
  1313 default:
  1314 warning(0, SMPP[%s]: Got DLR with unknown
 'message_state' (%ld).,
  1315 octstr_get_cstr(smpp-conn-id), message_state);
  1316 dlrstat = DLR_FAIL;
  1317 break;
  1318 }
  1319 }
 
 
  What's the right way to get additional information about message state
 from kannel?
 
  Should I modify source or I can use somehow msgdata field from DLR
 somehow with stat code (REJECTD/DELIVRD/etc) ?
 
  Thanks in advance.
 
 
 




Re: kannel DLR states

2012-04-11 Thread Alexander Malysh
Recent SVN version of Kannel does this for you. No need todo anything, check 
metadata field in your DLR.

Alex

Am 11.04.2012 um 10:46 schrieb spameden:

 How I can get this value without parsing msgdata field of incoming DLR?
 
 (I'm on sqlbox, inserting records to send sms, sqlbox is between berarerbox 
 and smsbox).
 
 
 2012/4/11 Alexander Malysh amal...@kannel.org
 Hi,
 
 rejected will be generated in the upper layer so no need to patch anything.
 As to the status codes: you don't really need status code what you need is 
 the error code, check meta data errorcode field.
 
 Alex
 
 Am 10.04.2012 um 23:22 schrieb spameden:
 
  Hello, list.
 
  Sometimes it's good to know the exact reason why sms was failed.
 
  Is there any way I can get extended information about message delivery 
  status?
 
  i.e. if it was REJECTED / UNDELIVERABLE / DELETED / EXPIRED
 
  According to SMPP v3.4 message states are:
 
  Message State Value Description
  ENROUTE 1 The message is in enroute
  state.
  DELIVERED 2 Message is delivered to
  destination
  EXPIRED 3 Message validity period has
  expired.
  DELETED 4 Message has been deleted.
  UNDELIVERABLE 5 Message is undeliverable
  ACCEPTED 6 Message is in accepted state
  (i.e. has been manually read
  on behalf of the subscriber by
  customer service)
  UNKNOWN 7 Message is in invalid state
  REJECTED 8 Message is in a rejected state
 
  Kannel seems to give status = 1 for delivered messages and status = 2 for 
  all other failed messages (i.e. EXPIRED / REJECTED / UNDELIVERABLE, etc).
 
  Kannel's documentation says there is a 16 status for REJECTED messages, but 
  kannel still gives status 2 instead. SMSC sends correct message state 8.
 
  I checked the source also it seems there is no handling of additional 
  statuses in code (from gw/smsc/smsc_smpp.c):
 
  /* first check for SMPP v3.4 and above */
  1291 if (smpp-version  0x33  receipted_message_id) {
  1292 msgid = octstr_duplicate(receipted_message_id);
  1293 switch(message_state) {
  1294 case 1: /* ENROUTE */
  1295 case 6: /* ACCEPTED */
  1296 dlrstat = DLR_BUFFERED;
  1297 break;
  1298 case 2: /* DELIVERED */
  1299 dlrstat = DLR_SUCCESS;
  1300 break;
  1301 case 3: /* EXPIRED */
  1302 case 4: /* DELETED */
  1303 case 5: /* UNDELIVERABLE */
  1304 case 7: /* UNKNOWN */
  1305 case 8: /* REJECTED */
  1306 dlrstat = DLR_FAIL;
  1307 break;
  1308 case -1: /* message state is not present, partial SMPP v3.4 */
  1309 debug(bb.sms.smpp, 0, SMPP[%s]: Partial SMPP v3.4, 
  receipted_message_id present but not message_state.,
  1310 octstr_get_cstr(smpp-conn-id));
  1311 dlrstat = -1;
  1312 break;
  1313 default:
  1314 warning(0, SMPP[%s]: Got DLR with unknown 'message_state' 
  (%ld).,
  1315 octstr_get_cstr(smpp-conn-id), message_state);
  1316 dlrstat = DLR_FAIL;
  1317 break;
  1318 }
  1319 }
 
 
  What's the right way to get additional information about message state from 
  kannel?
 
  Should I modify source or I can use somehow msgdata field from DLR somehow 
  with stat code (REJECTD/DELIVRD/etc) ?
 
  Thanks in advance.
 
 
 
 
 



RE: Incorrect DLR mapping

2012-04-03 Thread Sudeep Kumar

Hi All,
Got the problem, just posting here so that it could be of help to others.
Since the mgs-id returned by the SMSC is neither decimal nor hexadecimal, it 
requires the msg-id-type field to be undefined making the bearerbox then fall 
back to the C string option which works well.
Regards,Sudeep.

From: foxdev...@hotmail.com
To: users@kannel.org
Subject: Incorrect DLR mapping
Date: Sun, 1 Apr 2012 16:49:16 +0530







Hi,
I searched the list for incorrect Dlr mapping and found some of the threads 
discussing what was close to our issue, but that was with CIMD and other smsc 
types not with SMPP. Hence I ask the following:

Bearerbox puts 13 as the 'ts' field value which is also found in the Sent Sms 
entry in access_server.log. Mentioned below is an example trace:

Subtmit_sm:
2012-03-22 11:28:01 [5391] [32] DEBUG: SMPP[R05]: Sending PDU:
2012-03-22 11:28:01 [5391] [32] DEBUG: SMPP PDU 0xff37170 dump:
2012-03-22 11:28:01 [5391] [32] DEBUG:   type_name: submit_sm
2012-03-22 11:28:01 [5391] [32] DEBUG:   command_id: 4 = 0x0004
2012-03-22 11:28:01 [5391] [32] DEBUG:   command_status: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   sequence_number: 1147800 = 0x00118398
2012-03-22 11:28:01 [5391] [32] DEBUG:   service_type: NULL
2012-03-22 11:28:01 [5391] [32] DEBUG:   source_addr_ton: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   source_addr_npi: 1 = 0x0001
2012-03-22 11:28:01 [5391] [32] DEBUG:   source_addr: Demo
2012-03-22 11:28:01 [5391] [32] DEBUG:   dest_addr_ton: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   dest_addr_npi: 1 = 0x0001
2012-03-22 11:28:01 [5391] [32] DEBUG:   destination_addr: xxx9209x
2012-03-22 11:28:01 [5391] [32] DEBUG:   esm_class: 3 = 0x0003
2012-03-22 11:28:01 [5391] [32] DEBUG:   protocol_id: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   priority_flag: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   schedule_delivery_time: NULL
2012-03-22 11:28:01 [5391] [32] DEBUG:   validity_period: NULL
2012-03-22 11:28:01 [5391] [32] DEBUG:   registered_delivery: 1 = 0x0001
2012-03-22 11:28:01 [5391] [32] DEBUG:   replace_if_present_flag: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   data_coding: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   sm_default_msg_id: 0 = 0x
2012-03-22 11:28:01 [5391] [32] DEBUG:   sm_length: 159 = 0x009f
2012-03-22 11:28:01 [5391] [32] DEBUG:   short_message:
2012-03-22 11:28:01 [5391] [32] DEBUG:Octet string at 0xbd3fa20:
2012-03-22 11:28:01 [5391] [32] DEBUG:  len:  159
2012-03-22 11:28:01 [5391] [32] DEBUG:  size: 160
2012-03-22 11:28:01 [5391] [32] DEBUG:  immutable: 0
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 53 70 65 63 69 61 6c 20 50 72 
69 63 65 20 46 6f   Special Price Fo
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 72 20 33 20 44 61 79 73 20 46 
6f 72 20 50 72 65   r 3 Days For Pre
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 2d 4c 61 75 6e 63 68 20 50 72 
6f 6a 65 63 74 20   -Launch Project 
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 49 6e 20 54 68 61 6e 65 20 28 
77 29 2e 20 31 2c   In Thane (w). 1,
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 20 31 2e 35 2c 20 32 20 26 20 
33 20 42 48 4b 731.5, 2  3 BHKs
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 20 34 35 20 6c 61 63 73 20 4f 
6e 77 61 72 64 7345 lacs Onwards
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 2e 20 52 69 76 65 72 20 26 20 
4d 6f 75 6e 74 61   . River  Mounta
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 69 6e 20 56 69 65 77 2e 20 41 
6c 6c 20 4d 6f 64   in View. All Mod
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 65 72 6e 20 41 6d 65 6e 69 74 
69 65 73 2e 20 43   ern Amenities. C
2012-03-22 11:28:01 [5391] [32] DEBUG:  data: 61 6c 6c 20 39 39 33 30 32 35 
34 38 38 33 2e  all xxx.
2012-03-22 11:28:01 [5391] [32] DEBUG:Octet string dump ends.
2012-03-22 11:28:01 [5391] [32] DEBUG: SMPP PDU dump ends.

submit_sm_resp:
===
2012-03-22 11:28:02 [5391] [32] DEBUG: SMPP[R05]: Got PDU:
2012-03-22 11:28:02 [5391] [32] DEBUG: SMPP PDU 0xff37170 dump:
2012-03-22 11:28:02 [5391] [32] DEBUG:   type_name: submit_sm_resp
2012-03-22 11:28:02 [5391] [32] DEBUG:   command_id: 2147483652 = 0x8004
2012-03-22 11:28:02 [5391] [32] DEBUG:   command_status: 0 = 0x
2012-03-22 11:28:02 [5391] [32] DEBUG:   sequence_number: 1147800 = 0x00118398
2012-03-22 11:28:02 [5391] [32] DEBUG:   message_id:
2012-03-22 11:28:02 [5391] [32] DEBUG:Octet string at 0xa9f2ba0:
2012-03-22 11:28:02 [5391] [32] DEBUG:  len:  29
2012-03-22 11:28:02 [5391] [32] DEBUG:  size: 30
2012-03-22 11:28:02 [5391] [32] DEBUG:  immutable: 0
2012-03-22 11:28:02 [5391] [32] DEBUG:  data: 64 74 65 63 68 70 6c 2d 31 33 
33 32 33 39 35 37   dtechpl-13323957
2012-03-22 11:28:02 [5391] [32] DEBUG:  data: 31 33 33 35 37 2d 34 30 2d 30 
32 30 3213357-40-0202
2012-03-22 11:28:02 [5391] [32] DEBUG:

  1   2   3   4   >