RE: Stopping reconnecting after unbing

2011-05-24 Thread Rene Kluwen
I think your smsc is "incorrect" rather than Kannel.

Issue a support ticket with them, because Kannel does the right thing (tm).


- Oorspronkelijk bericht -
Van: Ivan Kurnosov 
Verzonden: woensdag 25 mei 2011 2:53
Aan: Nikos Balkanas 
CC: us...@vm1.kannel.org
Onderwerp: Re: Stopping reconnecting after unbing

Also the weird thing is that after SMSC has been disconnected - all messages 
that have been tried to sent through that broken kannel instance was marked as 
"16: smsc reject". In this case I'm not able to get in my program side whether 
it was rejected by my SMSC or by broken kannel. I think it is absolutely 
incorrect - I think that delivery report types should be expanded...

2011/5/25 Nikos Balkanas 
Hi,

 The SMSc error you got was one of invalid username. I don't know why your SMSc 
returned this error, since you can obviously connect fine, but since this is a 
terminal error that cannot be corrected by itself, there is no sense in 
reconnecting. Of course you don't need to restart kannel, you can just restart 
the smsc from the web interface.

 BR,
 Nikos
 - Original Message - From: Ivan Kurnosov
 To: users@kannel.org
 Sent: Wednesday, May 25, 2011 2:55 AM
 Subject: Stopping reconnecting after unbing



 Hi there.


 Just some minutes ago something strange has happened that I cannot explain:


 2011-05-25 10:17:51 [11434] [6] DEBUG: SMPP[sv]: Got PDU:
 2011-05-25 10:17:51 [11434] [6] DEBUG: SMPP PDU 24d080 dump:
 2011-05-25 10:17:51 [11434] [6] DEBUG:   type_name: unbind
 2011-05-25 10:17:51 [11434] [6] DEBUG:   command_id: 6 = 0x0006
 2011-05-25 10:17:51 [11434] [6] DEBUG:   command_status: 0 = 0x
 2011-05-25 10:17:51 [11434] [6] DEBUG:   sequence_number: 8244 = 0x000

[Het originele bericht is niet volledig opgenomen]

RE: Stopping reconnecting after unbing

2011-05-24 Thread Rene Kluwen
Rejected is an smsc issue in both cases.
Kannel just obeys what your smsc says.

- Oorspronkelijk bericht -
Van: Ivan Kurnosov 
Verzonden: woensdag 25 mei 2011 3:39
Aan: Rene Kluwen 
CC: Nikos Balkanas ; us...@vm1.kannel.org
Onderwerp: Re: Stopping reconnecting after unbing

So you think that type: 16 does it work fine? I cannot determine if it was 
kannel issue or smsc issue. In both cases I get "REJECTED" and I have no idea 
why it is rejected.

Am I missing something?

On Wed, May 25, 2011 at 12:36 PM, Rene Kluwen  wrote:
I think your smsc is "incorrect" rather than Kannel.

Issue a support ticket with them, because Kannel does the right thing (tm).
 

Van: Ivan Kurnosov 
Verzonden: woensdag 25 mei 2011 2:53
Aan: Nikos Balkanas 
CC: us...@vm1.kannel.org
Onderwerp: Re: Stopping reconnecting after unbing


Also the weird thin

[Het originele bericht is niet volledig opgenomen]

RE: SQLBOX

2011-05-25 Thread Rene Kluwen
I know when I first made sqlbox, it did have freetds support.

Since then, nobody asked for it. So I am not sure if it still works.

I would say: Just give it a try and post your comments here on the
mailinglist.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of João Gil
Sent: Wednesday, 25 May, 2011 15:27
To: users@kannel.org
Subject: SQLBOX

 

Hi,

 

I need some answers, SQLBOX it’s the same thing as freeTDS? 

If yes, what you advise to use? 

I’m trying to connect kannel to a MSSQL Server 2008 DB.

I already search on User Guide, but didn’t find nothing.

 

Thanks in advance,

Regards,

João Gil 



smime.p7s
Description: S/MIME cryptographic signature


RE: smsbox-route sender patch

2011-05-26 Thread Rene Kluwen
Post in in de devel list.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Imran Aghayev
Sent: Thursday, 26 May, 2011 17:01
To: us...@vm1.kannel.org
Subject: smsbox-route sender patch

 

I have a patch which will add routing based on sender number.

Does anyone need it, I am happy to share ?

Should I submit it to cvs/svn ?


Thanks,
Imran



smime.p7s
Description: S/MIME cryptographic signature


Re: Behavior of multiple binds with the same smsc-id

2011-05-26 Thread Rene Kluwen
Yes, it will load balance.
But as far as I recall, not in a round robin fashion.

Messages will be sent to the smsc with the least messages in queue. Which
will always be the first one, if load is low.

== Rene


> It will load balance.
>
> I believe it does it on a round robin fashion
>
>
> On Thursday, May 26, 2011, Garth Patil  wrote:
>> Hi All,
>> I have a question I was unable to reconcile from the documentation
>> regarding the behavior of multiple binds with the same smsc-id. I have
>> 2 pairs of TX an RX binds, with each pair connected to different data
>> centers of the same operator. If I assign the same smsc-id to all 4
>> binds, what is the behavior of kannel when I send an SMS that
>> specifies that smsc-id? Does it choose one of the TX binds at random,
>> or load balance between the two?
>> Thanks,
>> Garth
>>
>>
>
>
>




Re: Route sms to different ESME's

2011-05-26 Thread Rene Kluwen
If you don't need smsbox, you might just as well not start it.
However, as far as I remember you do need to group = smsbox in your
kannel.conf or else bearerbox won't start.

About your other question: I don't know, maybe somebody else does.

== Rene

>
> Ok. Well, in my tests bearerbox can store the messages and send it later
> when
> the esme is connected again. I hope i'm not bothering you too much, but i
> have one more question. It's something i noticed, maybe is a concept about
> opensmppbox that i'm not aware. It's like this: i have my smpp server with
> bearerbox initiated and opensmppbox initiated, if the esme is down,
> bearerbox stores the messages sent to the esme, and send it later when the
> esme is up. But if i start smsbox in my smpp server with bearerbox and
> opensmppbox when the esme is down, than bearerbox doesn't store the
> messages, it just send request failed to the subscriber. So, if i only use
> it as a smppbox server, do i need smsbox or not? And why if smsbox is
> started it won't store the messages? Well, i really apreciated all your
> help
> you've given me.
> Best regards
> Denilson
>
>
> Nikos Balkanas wrote:
>>
>> You can always check kannel's web site under authors. There you can find
>> 2
>> mails for Stipe. I am sure he won't mind you getting in touch with him.
>>
>> BR,
>> Nikos
>> - Original Message -
>> From: "Denilson Silva" 
>> To: 
>> Sent: Thursday, May 26, 2011 6:30 PM
>> Subject: Re: Route sms to different ESME's
>>
>>
>>>
>>> Ok. I would like to know how can i contact Stipe? I tried once some
>>> time
>>> ago
>>> to know about his commercial version with no success, because i could
>>> be
>>> interested in the commercial version. Well, Thanks a lot.
>>>
>>> Denilson
>>>
>>>
>>> Nikos Balkanas wrote:

 Hi,

 Opensmppbox doesn't have permanent storage, so it can't store SMS.
 There
 is
 a commercial version by Stipe that does that. Having said that, your
 SMS
 will be stored in bb's storage, until the ESME comes back on line.
 This
 will
 work most of the time, but I am not sure if it is 100% reliable,
 though,
 openssmppbox have had some issues with its ACKs in the past.

 BR,
 Nikos
 - Original Message -
 From: "Denilson Silva" 
 To: 
 Sent: Thursday, May 26, 2011 4:36 PM
 Subject: Re: Route sms to different ESME's


>
> Hi, thanks for the response. It works with smsbox-route. There is
> another
> question i have, i don't know if i should make another thread. Well,
> here
> it
> is: does opensmppbox support storing messages destined to an esme if
> this
> esme is offline, and send it later to this esme when it's connected?
> How
> can
> it be done? Or do i have to create a solution for this kind of
> situation?
> Thanks.
>
> Denilson
>
>
> Nikos Balkanas wrote:
>>
>> Hi,
>>
>> Yes you should. You are talking about MOs. There is no reason you
>> shouldn't
>> be able to do it, but I have never tried it. Read about group
>> smsbox-route
>> in UG.
>>
>> BR,
>> Nikos
>> - Original Message -
>> From: "Denilson Silva" 
>> To: 
>> Sent: Tuesday, May 17, 2011 9:07 PM
>> Subject: Route sms to different ESME's
>>
>>
>>>
>>> Greetings to all. I would be very thankfull if i can have an
>>> information.
>>> I
>>> woukd like to know if there is a way of routing SMS's from
>>> subscribers
>>> to
>>> an
>>> ESME client with opensmppbox or kannel. For example, i am connected
>>> with
>>> two
>>> different ESME's, and if a subscriber send an SMS to a number
>>> configured
>>> in
>>> my SMSC, then i route it to ESME 1, if it is to other number i
>>> route
>>> it
>>> to
>>> ESME 2. What i can do now is connect an ESME to my opensmppbox
>>> which
>>> is
>>> connected to bearerbox->SMSC.
>>> Hope i explained well.
>>> Thank you in advance.
>>> Denilson Silva
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Route-sms-to-different-ESME%27s-tp31640431p31640431.html
>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Route-sms-to-different-ESME%27s-tp31640431p31708102.html
> Sent from the Kannel - User mailing list archive at Nabble.com.
>
>




>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Route-sms-to-different-ESME%27s-tp31640431p31709160.html
>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Route-sms-to-different-ESME%27s-tp31640431p31711287.html
> Sent from the Kannel - User mailing list archive at N

RE: Behavior of multiple binds with the same smsc-id

2011-05-27 Thread Rene Kluwen
Look for smsc2_rout() in gw/bb_smscconn.c.

== Rene

-Original Message-
From: Garth Patil [mailto:garthpa...@gmail.com] 
Sent: Friday, 27 May, 2011 05:33
To: Rene Kluwen
Cc: Juan Nin; Users mailing list
Subject: Re: Behavior of multiple binds with the same smsc-id

Thanks Rene. Can you point me to the part of the code that does this?

On Thu, May 26, 2011 at 2:02 PM, Rene Kluwen  wrote:
> Yes, it will load balance.
> But as far as I recall, not in a round robin fashion.
>
> Messages will be sent to the smsc with the least messages in queue. Which
> will always be the first one, if load is low.
>
> == Rene
>
>
>> It will load balance.
>>
>> I believe it does it on a round robin fashion
>>
>>
>> On Thursday, May 26, 2011, Garth Patil  wrote:
>>> Hi All,
>>> I have a question I was unable to reconcile from the documentation
>>> regarding the behavior of multiple binds with the same smsc-id. I have
>>> 2 pairs of TX an RX binds, with each pair connected to different data
>>> centers of the same operator. If I assign the same smsc-id to all 4
>>> binds, what is the behavior of kannel when I send an SMS that
>>> specifies that smsc-id? Does it choose one of the TX binds at random,
>>> or load balance between the two?
>>> Thanks,
>>> Garth
>>>
>>>
>>
>>
>>
>
>




smime.p7s
Description: S/MIME cryptographic signature


RE: Route sms to different ESME's

2011-05-27 Thread Rene Kluwen
I guess that if your problem is solved, then it is okay.

- Oorspronkelijk bericht -
Van: Denilson Silva 
Verzonden: vrijdag 27 mei 2011 19:06
Aan: users@kannel.org
Onderwerp: Re: Route sms to different ESME's


Hi again. For now i think i have solved my problem, at least for my needs
right now. What i did was just put an smsbox-id on the smsgroup of kannel
conf file. So, when there is request from a subscriber to a number specified
the routing is done by the smsbox-route configuration. And if the ESME
client is not online, it is stored to be sent later. This way i start smsbox
and it works well. Below you can see the configuration file. Please refer to
me if the configuration is really ok. Thank you.

# CORE

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = "/kannel_logs/core.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/kannel_logs/core_access.log"
store-type = file
store-location = "/kannel_store/kannel.store"

# SMSC CONNECTIONS

group = smsc
smsc = smpp
host = x.x.x.x
port = 
receive-port = 
smsc-username = "username"
smsc-password = 
system-type = "Y"
address-range = ""
source-addr-ton = 0
source-addr-npi = 0
dest-addr-ton = 1
dest-addr-npi = 1
allowed-prefix = "+238910;+238912;+238915"

# SMSBOX SETUP

group = smsbox
smsbox-id = my_smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-file = "/kannel_logs/smsbox.log"
log-level = 0
access-log = "/kannel_logs/smsbox_access.log"

group = smsbox-route
smsbox-id = esme1
shortcode = "777"

group = smsbox-route
smsbox-id = esme2
shortcode = "789"

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
max-messages = 4
concatenation = true

# SERVICES

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

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

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


Nikos Balkanas wrote:
> 
> Actually bearerbox doesn't need an smsbox group or a connected one to
> start. 
> Let's not forget that for historical reasons it was first created for 

[Het originele bericht is niet volledig opgenomen]



RE: Delivery Reports Help

2011-05-28 Thread Rene Kluwen
DLR's won't get retried. Or otherwise you would need a delivery report of a 
delivery report... And so on...

-- Rene...


- Oorspronkelijk bericht -
Van: JAmes 
Verzonden: zaterdag 28 mei 2011 14:34
Aan: users@kannel.org
Onderwerp: Delivery Reports Help

Hi,

Just trying to understand the DLR system in kannel a bit better.

when bearerbox received a DLR, it sends to SQLBOX, and SQLBOX puts it in the DB.

In this case, SQLBOX didn't send an ACK (I made it do this on purpose to test 
retry method). But to me it looks like BB has deleted the DLR. Is this true? Is 
the DLR now lost? If not, when does it resend?

I sent another SMS shortly after this with the SQLBOX replying with an ACK, and 
that sms worked fine, but the previous DLR still has not come through.

2011-05-28 22:16:21 [8601] [8] DEBUG: removing DLR from database
2011-05-28 22:16:21 [8601] [8] DEBUG: sql: DELETE FROM `tmp_kannel_dlr` WHERE 
`smsc`=? AND `timestamp`=?  LIMIT 1
2011-05-28 22:16:21 [8601] [8] DEBUG: new group created `smpp'
2011-05-28 22:16:21 [8601] [8] DEBUG: group=`smpp' key=`dlr_err' value=`000'
 2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP[smsc_1_2]: Sending PDU:
2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP PDU 0x61552f0 dump:
2011-05-28 22:16:21 [8601] [17] DEBUG: send_msg: sending msg to boxc: 
 2011-05-28 22:16:21 [8601] [8] DEBUG:   type_name: deliver_sm_resp
2011-05-28 22:16:21 [8601] [8] DEBUG:   command_id: 2147483653 = 0x8005
2011-05-28 22:16:21 [8601] [8] DEBUG:   command_status: 0 = 0x
 2011-05-28 22:16:21 [8601] [8] DEBUG:   sequence_number: 6 = 0x0006
2011-05-28 22:16:21 [8601] [8] DEBUG:   message_id: NULL
2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP PDU dump ends.
2011-05-28 22:16:21 [8601] [17] DEBUG: boxc_sender: sent message to <127.0.0.1>

Regards,
J

RE: Delivery Reports Help

2011-05-28 Thread Rene Kluwen
I assume not. But look at the code to make sure.

 

== Rene

 

From: JAmes [mailto:jam...@gmail.com] 
Sent: Saturday, 28 May, 2011 17:28
To: Rene Kluwen; users@kannel.org
Subject: Re: Delivery Reports Help

 

But if they are not ACK'ed by the receiving box, wont they try again later?

 

James

On Sat, May 28, 2011 at 8:52 PM, Rene Kluwen  wrote:

DLR's won't get retried. Or otherwise you would need a delivery report of a
delivery report... And so on...

-- Rene...



  _  

Van: JAmes 
Verzonden: zaterdag 28 mei 2011 14:34
Aan: users@kannel.org
Onderwerp: Delivery Reports Help



Hi,

Just trying to understand the DLR system in kannel a bit better.

 

when bearerbox received a DLR, it sends to SQLBOX, and SQLBOX puts it in the
DB.

 

In this case, SQLBOX didn't send an ACK (I made it do this on purpose to
test retry method). But to me it looks like BB has deleted the DLR. Is this
true? Is the DLR now lost? If not, when does it resend?

 

I sent another SMS shortly after this with the SQLBOX replying with an ACK,
and that sms worked fine, but the previous DLR still has not come through.

2011-05-28 22:16:21 [8601] [8] DEBUG: removing DLR from database
2011-05-28 22:16:21 [8601] [8] DEBUG: sql: DELETE FROM `tmp_kannel_dlr`
WHERE `smsc`=? AND `timestamp`=?  LIMIT 1
2011-05-28 22:16:21 [8601] [8] DEBUG: new group created `smpp'
2011-05-28 22:16:21 [8601] [8] DEBUG: group=`smpp' key=`dlr_err' value=`000'
2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP[smsc_1_2]: Sending PDU:
2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP PDU 0x61552f0 dump:
2011-05-28 22:16:21 [8601] [17] DEBUG: send_msg: sending msg to boxc:

2011-05-28 22:16:21 [8601] [8] DEBUG:   type_name: deliver_sm_resp
2011-05-28 22:16:21 [8601] [8] DEBUG:   command_id: 2147483653 = 0x8005
2011-05-28 22:16:21 [8601] [8] DEBUG:   command_status: 0 = 0x
2011-05-28 22:16:21 [8601] [8] DEBUG:   sequence_number: 6 = 0x0006
2011-05-28 22:16:21 [8601] [8] DEBUG:   message_id: NULL
2011-05-28 22:16:21 [8601] [8] DEBUG: SMPP PDU dump ends.
2011-05-28 22:16:21 [8601] [17] DEBUG: boxc_sender: sent message to
<127.0.0.1>

 

Regards,

J

 



smime.p7s
Description: S/MIME cryptographic signature


RE: Wrong timezone BB and Smsbox

2011-05-28 Thread Rene Kluwen
Dlr's are always expressed in UTC.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Andreas Bergman
Sent: Saturday, 28 May, 2011 22:29
To: users@kannel.org
Subject: Wrong timezone BB and Smsbox

 

Hi, 

I just noticed something strange,

This is a snippet from the accesslog

:?smpp?dlr_err=000&] [from:abergman] [to:46708768300] [flags:-1:-1:-1:-1:1]
[msg:115:id:6866161306613694689 sub:001 dlvrd:001 submit date:1105282214
done date:1105282214 stat:DELIVRD err:000 Text:test] [udh:0:]

As you can see the time is noted to 22:14, same thing in the PDU from SMSC.

But when smsbox is parsing the DLR, it looks like this:

id=308&dlrDate=2011-05-28+20:14:55&status=1&reply=id%3A68661613
06613694689+sub%3A001+dlvrd%3A001+submit+date%3A1105282214+done+date%3A11052
82214+stat%3ADELIVRD+err%3A000+Text
%3Atest

The dlrDate is 20:14 (%t) but the reply from the SMSC still says 22:14.
Which means that the dlrDate is formated as GMT (Sweden is GMT+2). Kannel is
compiled with --enable-localtime and the machine runs on CEST (GMT+2).

Any ideas on whats wrong here?

/Andreas

-- 
Andreas Bergman
www.abergman.se
0708-768300
andr...@abergman.se



smime.p7s
Description: S/MIME cryptographic signature


RE: HTTP Generic relay and prevent splitting long messages

2011-05-30 Thread Rene Kluwen
Try concatenation = false in group = sendsms-user.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Tomasz
Sent: Monday, 30 May, 2011 22:38
To: users@kannel.org
Subject: HTTP Generic relay and prevent splitting long messages

Hello group,

The company I'm working in need access to specific SMSC which
doesn't provide SMPP access. I'm forced to use their HTTP API and
connect to it using Kannel HTTP-based relay (generic system-type).
Everything works fine if message is up to 160 chars. Above Kannel
splits messages as normally, adds UDH for each part and sends
it independently to SMSC.

But the SMSC doesn't support UDH, and it want to get one long message
(in one string) - splitting and concatenating is done at their side.

If kannel splits message, the recipient receives several messages which
are not concatenated on his mobile but they are independent ones.

Is it possible to configure Kannel to not splitting messages when
using http based relay (generic) but to send them at one part to SMSC?

BR,
Tomasz





smime.p7s
Description: S/MIME cryptographic signature


RE: request

2011-05-31 Thread Rene Kluwen
Check the users manual about dlr-mask & dlr-url.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of mathiyalakan mathi
Sent: Tuesday, 31 May, 2011 12:13
To: users@kannel.org
Subject: request

 

 

hi ,How to see the  kannel sms delivery report in our application .

-- 

Regards
P.Mathiyalakan

Amrita School of Engineering,
Amrita Vishwa Vidyapeetham,
Ettimadai,Coimbatore - 641 105.

  mathiyalak...@gmail.com

mathiyalakan.webs.com

09626969304(TN)

08129231992(kerala)

 







smime.p7s
Description: S/MIME cryptographic signature


Huawei

2011-06-01 Thread Rene Kluwen
Does anybody know some good CNMI settings for the Huawei K3765 (Vodafone)
modem?

 

I cannot seem to find it's data sheet.

 

== Rene

 



smime.p7s
Description: S/MIME cryptographic signature


RE: Wappush not working in Android

2011-06-03 Thread Rene Kluwen
If it works to other phones, but not just to the Androids,  the possibility 
exists that they don't support wap push. I know for once that my Windows Mobile 
HTC cannot receive wap push messages either, for some reason.

-- Rene...


- Oorspronkelijk bericht -
Van: Rob GB 
Verzonden: vrijdag 3 juni 2011 17:20
Aan: users@kannel.org
Onderwerp: RE: Wappush not working in Android


Hi,
Anyone knows? Thanks!


> From: rob_gar_...@hotmail.com
> To: users@kannel.org
> Subject: Wappush not working in Android
> Date: Thu, 2 Jun 2011 06:17:16 -0500
>
>
> Hi all,
> I use Kannel to send wappushes, and my customer complains that several 
> Android devices such as Samsung Galaxy cannot open wap-pushes.
> I send wap-pushes like this:
> http://kannelserver:780/cgi-bin/sendsms?username=user&password=pass&from=995111&to=99000&coding=1&udh=%06%05%04%0b%84%23%f0&text=%01%06%04%03%B0%81%EA%02%06%6A%00%85%09%03%6D%65%73%73%65%6E%67%65%72%2E%63%6C%61%72%6F%2E%63%6F%6D%2E%6E%69%2F%67%65%74%2F%00%06%01]
> the config is
> group = smscsmsc = smppsmsc-id = myidhost = 00.00.00.00port = 
> 1234smsc-username = usersmsc-password = passsystem-type = "smpp"log-file = 
> "/opt/kannel/log/customer.log"keepalive = 55throughput = 1transceiver-mode = 
> "true"source-addr-ton = 1source-addr-npi = 1dest-addr-ton = 1dest-addr-npi = 1
>
> Thanks in advanced.
> ///RGB
>
  





Re: The wap gateway

2011-06-04 Thread Rene Kluwen
The wireless session protocol can be used on any ip network. Including
gprs/umts/hsdpa.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of mattias
Sent: Saturday, 04 June, 2011 21:09
To: users@kannel.org
Subject: The wap gateway

So the gateway are only for old dialup on mobile phones
Not for modern gprs?





smime.p7s
Description: S/MIME cryptographic signature


RE: The wap gateway

2011-06-04 Thread Rene Kluwen
The settings for gprs are similar to the ones that you use for dial-up.
Your mobile operator charges you for any data traffic. But usually gprs is a
lot cheaper than CSD (dial-up).
Just enter the ip address of your Kannel instance in your WAP gateway
settings.
I think that should do the trick.

== Rene

-Original Message-
From: mattias [mailto:m...@mjw.se] 
Sent: Saturday, 04 June, 2011 21:21
To: 'Rene Kluwen'
Subject: RE: The wap gateway

Sorry for private mail
But in the faq I only see a section for dialup
But 
How should the settings for gprs look like?
And
If I understand this correct can I surf the net from my phone and not pay my
mobele operator?
-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Rene Kluwen
Sent: Saturday, June 04, 2011 9:16 PM
To: users@kannel.org
Subject: Re: The wap gateway


The wireless session protocol can be used on any ip network. Including
gprs/umts/hsdpa.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of mattias
Sent: Saturday, 04 June, 2011 21:09
To: users@kannel.org
Subject: The wap gateway

So the gateway are only for old dialup on mobile phones
Not for modern gprs?







smime.p7s
Description: S/MIME cryptographic signature


RE: Charset encofing problem using sqlbox

2011-06-05 Thread Rene Kluwen
ç replaced by Ç and ê replaced by ? is smsc-related. You will notice that if 
you do not have sqlbox in between then you will get the same results.

 

About the different tables: Try to change the msg_data field from text to blob.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Emmanuel CHANSON
Sent: Sunday, 05 June, 2011 13:39
To: users
Subject: Charset encofing problem using sqlbox

 

Hello,

I may ask a question that has maybe already been resolved but I did not find 
the solution.

My architecture:
PHP/Mysql -> smsbox HTTP api -> smsbox -> sqlbox -> bearerbox -> GSM modem

Using smsbox HTTP api I am sending the following message using PHP:

test l'e é ç à @ ê

in PHP/Mysql table Outgoing SMS I have:
test l'e é ç à @ ê

in sqlbox sent_sms table I can see:
test l'e é Ç à @ ?

And I receive on my mobile:
test l'e é Ç à @ ?

So ç replaced by Ç and ê replaced by ?

Any ideas to this problem?

BR

Emmanuel



smime.p7s
Description: S/MIME cryptographic signature


RE: Charset encofing problem using sqlbox

2011-06-05 Thread Rene Kluwen
Issue the correct charset when sending through the http interface. Kannel 
should be able to convert it.

 

 

From: Emmanuel CHANSON [mailto:emmanuelchan...@gmail.com] 
Sent: Sunday, 05 June, 2011 14:03
To: Rene Kluwen
Cc: users
Subject: Re: Charset encofing problem using sqlbox

 

ç replaced by Ç and ê replaced by ? is smsc-related. You will notice that if 
you do not have sqlbox in between then you will get the same results.

==> So how can I send and receive these corrects characters ? I tried unicode 
but same result. When you said smsc-related you you mean GSM modem in my case ? 
I am using GSM modem to send SMS.

 

About the different tables: Try to change the msg_data field from text to blob.

==> I changed send_sms/sent_sms sqlbox table msgdata field from text to blob 
but same result.

 

Thanks

 

Emmanuel

2011/6/5 Rene Kluwen 

ç replaced by Ç and ê replaced by ? is smsc-related. You will notice that if 
you do not have sqlbox in between then you will get the same results.

 

About the different tables: Try to change the msg_data field from text to blob.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Emmanuel CHANSON
Sent: Sunday, 05 June, 2011 13:39
To: users
Subject: Charset encofing problem using sqlbox

 

Hello,

I may ask a question that has maybe already been resolved but I did not find 
the solution.

My architecture:
PHP/Mysql -> smsbox HTTP api -> smsbox -> sqlbox -> bearerbox -> GSM modem

Using smsbox HTTP api I am sending the following message using PHP:

test l'e é ç à @ ê

in PHP/Mysql table Outgoing SMS I have:
test l'e é ç à @ ê

in sqlbox sent_sms table I can see:
test l'e é Ç à @ ?

And I receive on my mobile:
test l'e é Ç à @ ?

So ç replaced by Ç and ê replaced by ?

Any ideas to this problem?

BR

Emmanuel

 



smime.p7s
Description: S/MIME cryptographic signature


RE: Different TON/NPI for text originators

2011-06-10 Thread Rene Kluwen
See the user guide about source-addr-autodetect.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Rob GB
Sent: Friday, 10 June, 2011 16:13
To: users@kannel.org
Subject: Different TON/NPI for text originators


Hi all,
My customer wants me to send different ton and npis depending upon the
source/destination number, for instance, for normal msisdns like "55678990"
they want me to send this:
source-addr-ton = 1source-addr-npi = 1
but for short numbers like "2003" or labels like "HotTunes" they want me to
send these settings:
source-addr-ton = 5source-addr-npi = 0
How can I get Kannel doing that?
Thanks in advanced
///RGB
  





RE: MySQL issue

2011-06-12 Thread Rene Kluwen
Did you try to send messages with dlr-mask > 0?
If not, Kannel won't insert anything in the dlr table.
And even so -like Nikos said- the entries will be deleted when the message
reaches a final state.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Michael vd Poel
Sent: Sunday, 12 June, 2011 06:43
To: users@kannel.org
Subject: MySQL issue

Hi all,

I have Kannel running on CentOS and it is sending messages. I have
configured
with '--with-mysql' and when Kannel is starting, it shows "2011-06-12
01:10:05
[7937] [0] INFO: MYSQL: Connected to server at localhost."

In the configuration file, I have:

dlr-storage=mysql

group = mysql-connection
id = mydlr
host = localhost
username = gebruiker
password = password
database = sms
max-connections = 10

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

The MySQL user 'gebruiker' has INSERT privilege.

I have a table with corresponding fields in the database. But the table
isn't
populating.  

Does anyone see what I am overlooking?

Thanks for any help!


Michael







RE: MySQL issue

2011-06-12 Thread Rene Kluwen
A possible solution would be using sqlbox in between your smsbox and
bearerbox.
Read the documentation about it.

== Rene

-Original Message-
From: Michael van der Poel [mailto:movdp...@gmail.com] 
Sent: Sunday, 12 June, 2011 16:23
To: Rene Kluwen; users@kannel.org
Subject: Re: MySQL issue

Hi Rene,

Thanks for your feedback. I was using 'dlr-mask=17' but now have tried with
'dlr-mask > 0': the message sends okay but no trace in the logs of anything
being inserted into the 'log' table.

Still, from your and Nikos' comment, I now understand that if working
properly, Kannel will not leave anything in the table. That isn't what I was
assuming. One would like to have a record of the details. How could that be
achieved within Kannel?

Any pointers would be much appreciated!


Michael


On 12/6/11 11:21, "Rene Kluwen"  wrote:

> Did you try to send messages with dlr-mask > 0?
> If not, Kannel won't insert anything in the dlr table.
> And even so -like Nikos said- the entries will be deleted when the message
> reaches a final state.
> 
> == Rene
> 
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Michael vd Poel
> Sent: Sunday, 12 June, 2011 06:43
> To: users@kannel.org
> Subject: MySQL issue
> 
> Hi all,
> 
> I have Kannel running on CentOS and it is sending messages. I have
> configured
> with '--with-mysql' and when Kannel is starting, it shows "2011-06-12
> 01:10:05
> [7937] [0] INFO: MYSQL: Connected to server at localhost."
> 
> In the configuration file, I have:
> 
> dlr-storage=mysql
> 
> group = mysql-connection
> id = mydlr
> host = localhost
> username = gebruiker
> password = password
> database = sms
> max-connections = 10
> 
> group = dlr-db
> id = mydlr
> table=log
> field-smsc=smsc
> field-timestamp=timestamp
> field-destination=destination
> field-source=source
> field-service=service
> field-url=url
> field-mask=mask
> 
> The MySQL user 'gebruiker' has INSERT privilege.
> 
> I have a table with corresponding fields in the database. But the table
> isn't
> populating.  
> 
> Does anyone see what I am overlooking?
> 
> Thanks for any help!
> 
> 
> Michael
> 
> 
> 
> 







RE: Problems to connect to SMSC

2011-06-17 Thread Rene Kluwen
Maybe you need a different port for your transmitter session?

Can you log in as transceiver? (which could also possibly solve your
problem).

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Eduardo Alfaia
Sent: Friday, 17 June, 2011 15:48
To: Nikos Balkanas; users@kannel.org
Subject: Fwd: Problems to connect to SMSC

 

FYI

 

Regards

-- Forwarded message --
From: Eduardo Alfaia 
Date: 2011/6/16
Subject: Re: Problems to connect to SMSC
To: Nikos Balkanas 


Hi Nikos follow the bind_transmitter PDU

 

SMPP[internal]: Sending PDU:

2011-06-16 09:20:24 [26505] [6] DEBUG: SMPP PDU 0x9c26058 dump:

2011-06-16 09:20:24 [26505] [6] DEBUG:   type_name: bind_transmitter

2011-06-16 09:20:24 [26505] [6] DEBUG:   command_id: 2 = 0x0002

2011-06-16 09:20:24 [26505] [6] DEBUG:   command_status: 0 = 0x

2011-06-16 09:20:24 [26505] [6] DEBUG:   sequence_number: 1 = 0x0001

2011-06-16 09:20:24 [26505] [6] DEBUG:   system_id: "kannel"

2011-06-16 09:20:24 [26505] [6] DEBUG:   password: "kannel"

2011-06-16 09:20:24 [26505] [6] DEBUG:   system_type: "SMPP"

2011-06-16 09:20:24 [26505] [6] DEBUG:   interface_version: 52 = 0x0034

2011-06-16 09:20:24 [26505] [6] DEBUG:   addr_ton: 0 = 0x

2011-06-16 09:20:24 [26505] [6] DEBUG:   addr_npi: 0 = 0x

2011-06-16 09:20:24 [26505] [6] DEBUG:   address_range: NULL

2011-06-16 09:20:24 [26505] [6] DEBUG: SMPP PDU dump ends.

 

 

2011/6/15 Nikos Balkanas 

Hi,

 

1.4.2 is very outdated (~10 yr!). Upgrade to latest SVN.

 

You are missing the bind_transmitter PDU from kannel. Please repost.

 

BR,

Nikos

 

On Wed, Jun 15, 2011 at 5:56 PM, Eduardo Alfaia 
wrote:

Hi guys

 

I am having a problem with kannel to connect my NokiaSMSC, I'm using the
version 1.4.2 to redhat el4. I'm getting this error below:

PS. I've tested this user and password in another application and it's work.

 

2011-06-14 16:40:44 [22638] [0] INFO: Kannel bearerbox II version 1.4.2
starting

2011-06-14 16:40:44 [22638] [0] INFO: MAIN: Start-up done, entering mainloop

2011-06-14 16:40:44 [22638] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 22638.

2011-06-14 16:40:44 [22638] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_receiver)
maps to pid 22638.

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP[Nokiasmsc]: Sending PDU:

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP PDU 0x984c7b8 dump:

2011-06-14 16:40:44 [22638] [7] DEBUG:   type_name: bind_receiver

2011-06-14 16:40:44 [22638] [7] DEBUG:   command_id: 1 = 0x0001

2011-06-14 16:40:44 [22638] [7] DEBUG:   command_status: 0 = 0x

2011-06-14 16:40:44 [22638] [7] DEBUG:   sequence_number: 2 = 0x0002

2011-06-14 16:40:44 [22638] [7] DEBUG:   system_id: "kannel"

2011-06-14 16:40:44 [22638] [7] DEBUG:   password: "kannel"

2011-06-14 16:40:44 [22638] [7] DEBUG:   system_type: "SMPP"

2011-06-14 16:40:44 [22638] [7] DEBUG:   interface_version: 52 = 0x0034

2011-06-14 16:40:44 [22638] [7] DEBUG:   addr_ton: 0 = 0x

2011-06-14 16:40:44 [22638] [7] DEBUG:   addr_npi: 0 = 0x

2011-06-14 16:40:44 [22638] [7] DEBUG:   address_range: "''"

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP PDU dump ends.

2011-06-14 16:40:44 [22638] [5] INFO: Client connected from <10.1.25.12>

2011-06-14 16:40:44 [22638] [5] DEBUG: Started thread 14
(gw/bb_boxc.c:function)

2011-06-14 16:40:44 [22638] [14] DEBUG: Thread 14 (gw/bb_boxc.c:function)
maps to pid 22638.

2011-06-14 16:40:44 [22638] [14] DEBUG: Started thread 15
(gw/bb_boxc.c:boxc_sender)

2011-06-14 16:40:44 [22638] [15] DEBUG: Thread 15 (gw/bb_boxc.c:boxc_sender)
maps to pid 22638.

2011-06-14 16:40:44 [22638] [7] DEBUG: Optional parameter tag (0x0210)

2011-06-14 16:40:44 [22638] [7] DEBUG: Optional parameter length read as 1

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP[Nokiasmsc]: Got PDU:

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP PDU 0x9851030 dump:

2011-06-14 16:40:44 [22638] [7] DEBUG:   type_name: bind_receiver_resp

2011-06-14 16:40:44 [22638] [7] DEBUG:   command_id: 2147483649 = 0x8001

2011-06-14 16:40:44 [22638] [7] DEBUG:   command_status: 0 = 0x

2011-06-14 16:40:44 [22638] [7] DEBUG:   sequence_number: 2 = 0x0002

2011-06-14 16:40:44 [22638] [7] DEBUG:   system_id: "NokiaSMSC"

2011-06-14 16:40:44 [22638] [7] DEBUG:   sc_interface_version: 52 =
0x0034

2011-06-14 16:40:44 [22638] [7] DEBUG: SMPP PDU dump ends.

2011-06-14 16:40:54 [22638] [6] DEBUG: SMPP[Nokiasmsc]: Sending enquire
link:

2011-06-14 16:40:54 [22638] [6] DEBUG: SMPP PDU 0x9851030 dump:

2011-06-14 16:40:54 [22638] [6] DEBUG:   type_name: enquire_link

2011-06-14 16:40:54 [22638] [6] DEBUG:   command_id: 21 = 0x0015

2011-06-14 16:40:54 [22638] [6] DEBUG:   command_status: 0 = 0x

2011-06-14 16:40:54 [22638] [6] DEBUG:   sequence_number: 3 = 0x0003

2011-06-14 16:40:54 [22638] [6] DEBUG: SMPP PDU dump ends.

2011-06-14 16:40:54 [22638] [7] DEBUG: SMPP[Nokiasmsc]: Sending e

RE: opensmppbox and route-to-smsc

2011-06-20 Thread Rene Kluwen
In smsc-id = smsc1, also specify allowed-smsc-id = smsc1. And the same for
the other two smsc's.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Miranda Weasley
Sent: Monday, 20 June, 2011 09:21
To: users@kannel.org
Subject: opensmppbox and route-to-smsc

 

Hi All!

 

I have installed and configured kannel, sqlbox and opensmppbox (svn-r4910) .
It works fine. Bearerbox is connected to the 3 smsc: smsc1, smsc2, smsc3 and
there are also 3 instances of opensmppbox: opensmppbox1, opensmppbox2,
opensmppbox3:

 

smsc1,2,3 <=> bearerbox (port 13001) <=> sqlbox (port 13005) <=>
(opensmppbox1,2,3 + smsbox)

 

Now I want MT from opensmppbox1 to pass through smsc1, MT from opensmppbox2
to pass through smsc2 and so on.

 

I try to use route-to-smsc option in each opensmppbox configuration file but
it does not work. Bearerbox continues to do load balancing through the all
smsc. 

 

Any suggestion on why this is happening would be greatly appreciated.

 

The following are the snippets from my configuration files:

 

/etc/kannel/kannel.conf:

 

group = core

admin-port = 13000

admin-port-ssl = 1

ssl-server-cert-file = /etc/pki/CA/server.pem

ssl-server-key-file = /etc/pki/CA/serverkeys.pem

admin-password = 

status-password=

smsbox-port = 13001

log-file = /var/log/kannel/kannel.log

log-level = 0

access-log = /var/log/kannel/access.log

store-type = spool

store-location = /var/spool/kannel

store-dump-freq = 9

dlr-storage = mysql

 

group = smsbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

smsbox-id = smsbox-in

log-file = /var/log/kannel/smsbox-in.log

log-level = 0

sendsms-port = 13003

 

group = smsc

smsc = smpp

smsc-id = smsc1

host = X.X.X.X

log-file = /var/log/kannel/smsc1.log

log-level = 0

port = 

receive-port = 

service-type = smpp

smsc-password = 

smsc-username = 

system-type = 

transceiver-mode = 0

 

group = smsc

smsc = smpp

smsc-id = smsc2

host = X.X.X.X

log-file = /var/log/kannel/smsc2.log

log-level = 0

port = 

receive-port = 

service-type = smpp

smsc-password = 

smsc-username = 

system-type = 

transceiver-mode = 0

 

...

 

group = mysql-connection

id = dlr-db

host = 127.0.0.1

username = 

password = 

database = 

max-connections = 5

 

group = dlr-db

id = dlr-db

table = dlr

field-smsc = smsc

field-timestamp = timestamp

field-source = source

field-destination = destination

field-service = service

field-url = url

field-mask = mask

field-status = status

field-boxc-id = boxc_id

  

/etc/kannel/sqlbox.conf

 

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13001

smsbox-port = 13005

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = "/var/log/kannel/sqlbox.log"

log-level = 0

 

group = mysql-connection

id = sqlbox-db

host = 127.0.0.1

port = 3306

username = 

password = 

database = 

 

/etc/kannel/opensmppbox1.conf

 

group = core

dlr-storage = internal

 

group = opensmppbox

smpp-logins = /etc/kannel/smpplogins.txt

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

enable-pam = 1

log-file = /var/log/kannel/opensmppbox1.log

log-level = 0

opensmppbox-id = opensmppbox1

opensmppbox-port = XXX1

our-system-id = opensmppbox

pam-acl = kannel

route-to-smsc = smsc1

use-systemid-as-smsboxid = 1

 

/etc/kannel/opensmppbox2.conf

 

group = core

dlr-storage = internal

 

group = opensmppbox

smpp-logins = /etc/kannel/smpplogins.txt

bearerbox-host = 127.0.0.1

bearerbox-port = 13005

enable-pam = 1

log-file = /var/log/kannel/opensmppbox2.log

log-level = 0

opensmppbox-id = opensmppbox2

opensmppbox-port = XXX2

our-system-id = opensmppbox

pam-acl = kannel

route-to-smsc = smsc2

use-systemid-as-smsboxid = 1

 

...

 

Best regards,

Miranda Weasley

ITProfStudio



RE: Compiling SQLBOX prob

2011-06-23 Thread Rene Kluwen
Did you "make install" on the Kannel sources first? Possibly with
--prefix=..

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of JAmes
Sent: Thursday, 23 June, 2011 13:01
To: users@kannel.org
Subject: Compiling SQLBOX prob

 

Hi,

I am compiling SQLBOX on a fresh Ubuntu 11.04 install and latest kannel
gateway trunk.

I am getting this error even after declaring the kannel source dir with
--with-kannel-dir

.
checking for cfg_create in -lgwlib... no
configure: error: Kannel gwlib is required!
.

I have done this same install many times on CentOS, what am I missing, what
should I check?

Regards,
James



RE: sms not being sent "+CMS ERROR: +CMS ERROR: 500 "

2011-06-23 Thread Rene Kluwen
I think you just answered your own question.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Harbhag Singh Sohal
Sent: Thursday, 23 June, 2011 16:34
To: users@kannel.org
Subject: Re: sms not being sent "+CMS ERROR: +CMS ERROR: 500 "

I am using normal SIM, can this be due to the ZERO credit in the SIM ?
I cant check the SIM for credit now because its installed on the
remote server and the server is far away from my place.

On Thu, Jun 23, 2011 at 7:57 PM, Jim Wilde (CP)  wrote:
> Harbhang,
>
> I have seen this same issue with a Huawei modem. Seems to mean that the
SIM
> card rejected the message.
> I only see it on my attempts to send binary messages.
>
> A SIM card from a different network in the same modem will send OK.
>
> Jim
>
> On Thu, 23 Jun 2011 22:21:30 +0800, Harbhag Singh Sohal
>  wrote:
>
>> Everything was working fine till yesterday and suddenly today, kannel
>> stopped send SMS. Below is the excerpt from the bb log
>>
>>
>> 2011-06-23 19:44:04 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:44:04 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd40d0 vs 0x9bd40d0)
>> 2011-06-23 19:44:04 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:44:04 [3009] [7] DEBUG: sms_router: time to sleep 30.00
>> secs.
>> 2011-06-23 19:44:28 [3009] [6] DEBUG: AT2[huawei_e220]: --> AT+CPMS?^M
>> 2011-06-23 19:44:28 [3009] [6] DEBUG: AT2[huawei_e220]: <-- +CPMS:
>> "SM",0,20,"SM",0,20,"SM",0,20
>> 2011-06-23 19:44:28 [3009] [6] DEBUG: AT2[huawei_e220]: <-- OK
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: sms_router: gwlist_len = 1
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd40d0 vs 0x9bd40d0)
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd40d0 vs 0x9bd40d0)
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:44:34 [3009] [7] DEBUG: sms_router: time to sleep 30.00
>> secs.
>> 2011-06-23 19:45:04 [3009] [7] DEBUG: sms_router: gwlist_len = 1
>> 2011-06-23 19:45:04 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd40d0 vs 0x9bd40d0)
>> 2011-06-23 19:45:04 [3009] [7] DEBUG: Message routed successfully.
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]:
>> TP-Validity-Period: 24.0 hours
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: --> AT+CMGS=47^M
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: <-- >
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: send command
>> status: 1
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: -->
>>
>>
0011000A814936307031A726AD56ABA14086E56274F80C9AA6DD673468FA4687D9A81CCD
3683CD60B7D82CD55000
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: --> ^Z
>> 2011-06-23 19:45:04 [3009] [6] DEBUG: AT2[huawei_e220]: <-- >
>> 2011-06-23 19:45:06 [3009] [6] DEBUG: AT2[huawei_e220]: <-- +CMS ERROR:
>> 500
>> 2011-06-23 19:45:06 [3009] [6] ERROR: AT2[huawei_e220]: +CMS ERROR:
>> +CMS ERROR: 500
>> 2011-06-23 19:45:06 [3009] [6] ERROR: AT2[huawei_e220]: +CMS ERROR: An
>> unknown error occurred (500)
>> 2011-06-23 19:45:06 [3009] [6] DEBUG: AT2[huawei_e220]: send command
>> status: 1
>> 2011-06-23 19:45:06 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd3fe8 vs 0x9bd3fe8)
>> 2011-06-23 19:45:06 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:45:06 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd3fe8 vs 0x9bd3fe8)
>> 2011-06-23 19:45:06 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:45:06 [3009] [7] DEBUG: sms_router: time to sleep 30.00
>> secs.
>> 2011-06-23 19:45:30 [3009] [6] DEBUG: AT2[huawei_e220]: --> AT+CPMS?^M
>> 2011-06-23 19:45:30 [3009] [6] DEBUG: AT2[huawei_e220]: <-- +CPMS:
>> "SM",0,20,"SM",0,20,"SM",0,20
>> 2011-06-23 19:45:30 [3009] [6] DEBUG: AT2[huawei_e220]: <-- OK
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: sms_router: gwlist_len = 1
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd3fe8 vs 0x9bd3fe8)
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: sms_router: handling message
>> (0x9bd3fe8 vs 0x9bd3fe8)
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: re-queing SMS not-yet-to-be resent
>> 2011-06-23 19:45:36 [3009] [7] DEBUG: sms_router: time to sleep 30.00
>> secs.
>>
>
>
> --
> Critical Path APAC
>
>



-- 
Regards
Harbhag Singh Sohal
www.harbhag.wordpress.com






RE: understanding DLR

2011-06-24 Thread Rene Kluwen
Don't use the dlr database table for that.
Instead specify dlr-mask & dlr-url. See the users guide.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Harbhag Singh Sohal
Sent: Friday, 24 June, 2011 08:22
To: users@kannel.org
Subject: understanding DLR

HI,

I am using mysql as dlr-storage. When I send SMS I can see dlr table
get populated but after its gets deleted. Now in the access.log file,
I see the following entries

2011-06-24 11:42:58 Sent SMS [SMSC:huawei_e220] [SVC:] [ACT:] [BINF:]
[FID:62] [META:] [from:+9194] [to:94]
[flags:-1:0:-1:-1:31] [msg:38:---..Harbhag Singh Sohal.] [udh:0:]
2011-06-24 11:42:58 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
[BINF:] [FID:62] [META:] [from:+9194] [to:94***]
[flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2011-06-24 11:43:57 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
[BINF:] [FID:62] [META:] [from:+9194**] [to:94***]
[flags:-1:-1:-1:-1:1] [msg:7:Success] [udh:0:]

>From above i can see that message was delivered successfully. What is
[FID:62] , is it being used to associate a particular message to its
dlr. How can store the above information to the database so that I can
notify the users that the message has been delivered successfully ?

-- 
Regards
Harbhag Singh Sohal
www.harbhag.wordpress.com






FW: understanding DLR

2011-06-24 Thread Rene Kluwen
 

 

From: Mpeirwe Benjamin [mailto:bmpei...@gmail.com] 
Sent: Friday, 24 June, 2011 15:54
To: Rene Kluwen
Subject: Re: understanding DLR

 

dlr you specified is a temporary storagedo what rene told you

On Fri, Jun 24, 2011 at 2:07 PM, Rene Kluwen  wrote:

Don't use the dlr database table for that.
Instead specify dlr-mask & dlr-url. See the users guide.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Harbhag Singh Sohal
Sent: Friday, 24 June, 2011 08:22
To: users@kannel.org
Subject: understanding DLR


HI,

I am using mysql as dlr-storage. When I send SMS I can see dlr table
get populated but after its gets deleted. Now in the access.log file,
I see the following entries

2011-06-24 11:42:58 Sent SMS [SMSC:huawei_e220] [SVC:] [ACT:] [BINF:]
[FID:62] [META:] [from:+9194] [to:94]
[flags:-1:0:-1:-1:31] [msg:38:---..Harbhag Singh Sohal.] [udh:0:]
2011-06-24 11:42:58 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
[BINF:] [FID:62] [META:] [from:+9194] [to:94***]
[flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
2011-06-24 11:43:57 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
[BINF:] [FID:62] [META:] [from:+9194**] [to:94***]
[flags:-1:-1:-1:-1:1] [msg:7:Success] [udh:0:]

>From above i can see that message was delivered successfully. What is
[FID:62] , is it being used to associate a particular message to its
dlr. How can store the above information to the database so that I can
notify the users that the message has been delivered successfully ?

--
Regards
Harbhag Singh Sohal
www.harbhag.wordpress.com








-- 
"The Scientist explores what is,
the Engineer creates what has never been." 
Theodore von Karman





RE: Invalid SMPP PDU received with opensmpp

2011-06-24 Thread Rene Kluwen
The system-type should be “sboxk”.

 

=+= Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Ivan Martinez
Sent: Friday, 24 June, 2011 17:55
To: Nikos Balkanas
Cc: us...@vm1.kannel.org
Subject: Re: Invalid SMPP PDU received with opensmpp

 

Hi Nikos,

Thanks for your answer...

With emgload software:

# /opt/emgload --protocol smpp --port 1 --threads 1 --messages
1000 --username usuario --password clave
--
EMGLOAD 1.0.10459/20070316 (Linux)
--
Host: 127.0.0.1 Port: 1
Sending 1000 messages per thread via smpp.
Using 1 threads.

smpp_read: Non-zero status (0x000d) in response to operation
0x0002
send_smpp: Login failed
Completed in 0 secs.

opensmpp.log:

2011-06-24 15:48:28 [29550] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.
2011-06-24 15:48:28 [29550] [0] INFO: Waiting for SMPP connections on
port 1.
2011-06-24 15:49:54 [29550] [0] DEBUG: Started thread 1
(opensmppbox.c:function)
2011-06-24 15:49:54 [29550] [1] DEBUG: Thread 1
(opensmppbox.c:function) maps to pid 29550.
2011-06-24 15:49:54 [29550] [1] INFO: Client connected from <127.0.0.1>
2011-06-24 15:49:54 [29550] [1] DEBUG: Connecting to <127.0.0.1>
2011-06-24 15:49:54 [29550] [1] INFO: Connected to bearerbox at
localhost port 13000.
2011-06-24 15:49:54 [29550] [1] DEBUG: Started thread 2
(opensmppbox.c:smpp_to_bearerbox)
2011-06-24 15:49:54 [29550] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) maps to pid 29550.
2011-06-24 15:49:54 [29550] [2] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-24 15:49:54 [29550] [2] DEBUG: SMPP PDU 0x9b50720 dump:
2011-06-24 15:49:54 [29550] [2] DEBUG:   type_name: bind_transmitter
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_id: 2 = 0x0002
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_status: 0 = 0x
2011-06-24 15:49:55 [29550] [2] DEBUG:   sequence_number: 1 = 0x0001
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_id: "usuario"
2011-06-24 15:49:55 [29550] [2] DEBUG:   password: "clave"
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_type: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG:   interface_version: 52 =
0x0034
2011-06-24 15:49:55 [29550] [2] DEBUG:   addr_ton: 0 = 0x
2011-06-24 15:49:55 [29550] [2] DEBUG:   addr_npi: 0 = 0x
2011-06-24 15:49:55 [29550] [2] DEBUG:   address_range: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU dump ends.
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP[smppbox]: Sending PDU:
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU 0x9b50828 dump:
2011-06-24 15:49:55 [29550] [2] DEBUG:   type_name: bind_transmitter_resp
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_id: 2147483650 =
0x8002
2011-06-24 15:49:55 [29550] [2] DEBUG:   command_status: 13 = 0x000d
2011-06-24 15:49:55 [29550] [2] DEBUG:   sequence_number: 1 = 0x0001
2011-06-24 15:49:55 [29550] [2] DEBUG:   system_id: NULL
2011-06-24 15:49:55 [29550] [2] DEBUG: SMPP PDU dump ends.
2011-06-24 15:49:56 [29550] [2] ERROR: Invalid SMPP PDU received.
2011-06-24 15:49:56 [29550] [2] DEBUG: Thread 2
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-24 15:49:57 [29550] [1] DEBUG: Thread 1
(opensmppbox.c:function) terminates.

Thanks!



El 23/06/11 21:20, Nikos Balkanas escribió:
> Hi,



  >



  > You should post your logs at maximum detail (debug) when

  posting to



  > this list. Do not post about SMPP PDU problems, without

  posting the



  > actual PDU data. Besides it looks like you send the wrong

  SMPP PDU



  > from your app.



  >



  >



  > BR,



  > Nikos



  > - Original Message - From: Ivan Martinez



  > To: users@kannel.org



  > Sent: Friday, June 24, 2011 12:13 AM



  > Subject: Invalid SMPP PDU received with opensmpp



  >



  >



  > Hi there,



  >



  > I'm try to test opensmpp but when i try connect trought a

  php smpp



  > client and other tools to test the smpp performance like

  "SMPP



  > benchmarking"[1] i get this error:



  >



  > "[12] ERROR: Invalid SMPP PDU received."



  >



  >



  > 2011-06-23 21:17:10 [19106] [7] INFO: Client connected from

  <127.0.0.1>



  > 2011-06-23 21:17:10 [19106] [7] INFO: Connected to

  bearerbox at



  > localhost port 13000.



  > 2011-06-23 21:17:11 [19106] [8] ERROR: Invalid SMPP PDU

  received.



  >



  >



  > I'm newbie with Kannel...



  >



  > My configuration is:



  >



  >



  > group = core



  > admin-port = 13000



  > admin-password = 12345



  > #status-password = 123456



  > #admin-deny-ip = "*.*.*.*"



  > admin-allow-ip = "0.0.0.0"



  > wapbox-port = 13001



  > smsbox-port = 13002



  > wdp-interface-name = "*"



  > log-file = "/var/log/kannel/kannel.log"



  > #box-de

RE: FW: understanding DLR

2011-06-26 Thread Rene Kluwen
t; Sometimes the dlr is stored in the table specified by me via the
>> >> dlr-url script and sometimes it get stored in the sent_sms table of
>> >> sqlbox. Why is this happening ?
>> >>
>> >> On Sat, Jun 25, 2011 at 5:39 PM, Nikos Balkanas 
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > Your php is not kannel's problem. This is not a php forum. There are
>> >> > 2
>> >> > ways
>> >> > to match dlrs to original SMS.
>> >> > 1) access.log
>> >> > 2) Specify your own msgid in your dlr-url:
>> >> > &msgid=
>> >> > wehere id=1,2.....
>> >> > You know what sms you are sending when you specify your dlr-url. You
>> >> > also
>> >> > get back that id once the relevant DLR arrives. You can match those
>> >> > two.
>> >> > BR,
>> >> > Nikos
>> >> >
>> >> >
>> >> > On Sat, Jun 25, 2011 at 1:29 PM, Harbhag Singh Sohal
>> >> >  wrote:
>> >> >>
>> >> >> but how would I know that which dlr is from which SMS ?
>> >> >> is it being identified by msgid parameter ?
>> >> >>
>> >> >>
>> >> >> I am using sqlbox to send sms so in the dlr-url column I have added
>> >> >> http://localhost/dlr.php  as the dlr-url and dlr-mask is set to 31.
>> >> >>
>> >> >> and the dlr.php file contains
>> >> >>
>> >> >> $conn = mysql_connect("localhost","foo","bar");
>> >> >> mysql_select_db("adbook",$conn);
>> >> >> mysql_query("INSERT INTO tdlr ('dlr') VALUES ('1')");
>> >> >>
>> >> >> mysql_close($conn);
>> >> >>
>> >> >> this is the only code that is there in dlr.php file and according
to
>> >> >> this an new row should be inserted into the database everytime dlr
>> >> >> is
>> >> >> received, but its not happening.
>> >> >>
>> >> >> On Sat, Jun 25, 2011 at 1:41 PM, Harbhag Singh Sohal
>> >> >>  wrote:
>> >> >> > but how would I know that which dlr is from which SMS ?
>> >> >> > is it being identified by msgid parameter ?
>> >> >> >
>> >> >> > On Fri, Jun 24, 2011 at 9:03 PM, Rene Kluwen
>> >> >> > 
>> >> >> > wrote:
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> From: Mpeirwe Benjamin [mailto:bmpei...@gmail.com]
>> >> >> >> Sent: Friday, 24 June, 2011 15:54
>> >> >> >> To: Rene Kluwen
>> >> >> >> Subject: Re: understanding DLR
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> dlr you specified is a temporary storagedo what rene told
you
>> >> >> >>
>> >> >> >> On Fri, Jun 24, 2011 at 2:07 PM, Rene Kluwen
>> >> >> >> 
>> >> >> >> wrote:
>> >> >> >>
>> >> >> >> Don't use the dlr database table for that.
>> >> >> >> Instead specify dlr-mask & dlr-url. See the users guide.
>> >> >> >>
>> >> >> >> -Original Message-
>> >> >> >> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org]
>> >> >> >> On
>> >> >> >> Behalf
>> >> >> >> Of Harbhag Singh Sohal
>> >> >> >> Sent: Friday, 24 June, 2011 08:22
>> >> >> >> To: users@kannel.org
>> >> >> >> Subject: understanding DLR
>> >> >> >>
>> >> >> >> HI,
>> >> >> >>
>> >> >> >> I am using mysql as dlr-storage. When I send SMS I can see dlr
>> >> >> >> table
>> >> >> >> get populated but after its gets deleted. Now in the access.log
>> >> >> >> file,
>> >> >> >> I see the following entries
>> >> >> >>
>> >> >> >> 2011-06-24 11:42:58 Sent SMS [SMSC:huawei_e220] [SVC:] [ACT:]
>> >> >> >> [BINF:]
>> >> >> >> [FID:62] [META:] [from:+9194] [to:94]
>> >> >> >> [flags:-1:0:-1:-1:31] [msg:38:---..Harbhag Singh Sohal.]
[udh:0:]
>> >> >> >> 2011-06-24 11:42:58 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
>> >> >> >> [BINF:] [FID:62] [META:] [from:+9194] [to:94***]
>> >> >> >> [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:]
>> >> >> >> 2011-06-24 11:43:57 Receive DLR [SMSC:huawei_e220] [SVC:] [ACT:]
>> >> >> >> [BINF:] [FID:62] [META:] [from:+9194**] [to:94***]
>> >> >> >> [flags:-1:-1:-1:-1:1] [msg:7:Success] [udh:0:]
>> >> >> >>
>> >> >> >> From above i can see that message was delivered successfully.
>> >> >> >> What
>> >> >> >> is
>> >> >> >> [FID:62] , is it being used to associate a particular message to
>> >> >> >> its
>> >> >> >> dlr. How can store the above information to the database so that
>> >> >> >> I
>> >> >> >> can
>> >> >> >> notify the users that the message has been delivered
successfully
>> >> >> >> ?
>> >> >> >>
>> >> >> >> --
>> >> >> >> Regards
>> >> >> >> Harbhag Singh Sohal
>> >> >> >> www.harbhag.wordpress.com
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> "The Scientist explores what is,
>> >> >> >> the Engineer creates what has never been."
>> >> >> >> Theodore von Karman
>> >> >> >>
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Regards
>> >> >> > Harbhag Singh Sohal
>> >> >> > www.harbhag.wordpress.com
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Regards
>> >> >> Harbhag Singh Sohal
>> >> >> www.harbhag.wordpress.com
>> >> >>
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Regards
>> >> Harbhag Singh Sohal
>> >> www.harbhag.wordpress.com
>> >>
>> >
>> >
>
>






RE: Invalid SMPP PDU received with opensmpp

2011-06-27 Thread Rene Kluwen
In group = opensmppbox, you should set bearerbox-port to 13002.

 

=+= Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Ivan Martinez
Sent: Monday, 27 June, 2011 18:36
To: users@kannel.org
Subject: RE: Invalid SMPP PDU received with opensmpp

 

Hi Rene,

Thanks for your answer...

Unfortunately I get the same result.

Forwarding logs, configuration files and file authentication.

It will be a problem in the tab authentication file?

I need a install specific library before compile opensmppbox?

Thanks for your help...

Great work!

[root@sms opt]# /opt/emgload --protocol smpp --port 1 --threads 1 
--messages 1000 --username usuario --password clave
--
EMGLOAD 1.0.10459/20070316 (Linux)
--
Host: 127.0.0.1 Port: 1
Sending 1000 messages per thread via smpp.
Using 1 threads.

smpp_read: Non-zero status (0x000d) in response to operation 0x0002
send_smpp: Login failed
Completed in 0 secs.

opensmpp.log:

2011-06-27 14:20:09 [30294] [3] DEBUG: Thread 3 (opensmppbox.c:function) maps 
to pid 30294.
2011-06-27 14:20:09 [30294] [0] DEBUG: Started thread 3 (opensmppbox.c:function)
2011-06-27 14:20:09 [30294] [3] INFO: Client connected from <127.0.0.1>
2011-06-27 14:20:09 [30294] [3] DEBUG: Connecting to <127.0.0.1>
2011-06-27 14:20:09 [30294] [3] INFO: Connected to bearerbox at localhost port 
13000.
2011-06-27 14:20:09 [30294] [3] DEBUG: Started thread 4 
(opensmppbox.c:smpp_to_bearerbox)
2011-06-27 14:20:09 [30294] [4] DEBUG: Thread 4 
(opensmppbox.c:smpp_to_bearerbox) maps to pid 30294.
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP[smppbox]: Got PDU:
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU 0x95e5748 dump:
2011-06-27 14:20:09 [30294] [4] DEBUG:   type_name: bind_transmitter
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_id: 2 = 0x0002
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_status: 0 = 0x
2011-06-27 14:20:09 [30294] [4] DEBUG:   sequence_number: 1 = 0x0001
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_id: "usuario"
2011-06-27 14:20:09 [30294] [4] DEBUG:   password: "clave"
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_type: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG:   interface_version: 52 = 0x0034
2011-06-27 14:20:09 [30294] [4] DEBUG:   addr_ton: 0 = 0x
2011-06-27 14:20:09 [30294] [4] DEBUG:   addr_npi: 0 = 0x
2011-06-27 14:20:09 [30294] [4] DEBUG:   address_range: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU dump ends.
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP[smppbox]: Sending PDU:
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU 0x95e5858 dump:
2011-06-27 14:20:09 [30294] [4] DEBUG:   type_name: bind_transmitter_resp
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_id: 2147483650 = 0x8002
2011-06-27 14:20:09 [30294] [4] DEBUG:   command_status: 13 = 0x000d
2011-06-27 14:20:09 [30294] [4] DEBUG:   sequence_number: 1 = 0x0001
2011-06-27 14:20:09 [30294] [4] DEBUG:   system_id: NULL
2011-06-27 14:20:09 [30294] [4] DEBUG: SMPP PDU dump ends.
2011-06-27 14:20:10 [30294] [4] ERROR: Invalid SMPP PDU received.
2011-06-27 14:20:10 [30294] [4] DEBUG: Thread 4 
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-27 14:20:11 [30294] [3] DEBUG: Thread 3 (opensmppbox.c:function) 
terminates.

Config Files: 

group = core
admin-port = 13000
admin-password = 12345
admin-allow-ip = "0.0.0.0"
wapbox-port = 13001
smsbox-port = 13002
wdp-interface-name = "*"
log-file = "/var/log/kannel/kannel.log"
box-allow-ip = "0.0.0.0"
dlr-storage = mysql
log-level = 0

group = wapbox
bearerbox-host = localhost
log-file = "/var/log/kannel/wapbox.log"

group = smsc
smsc = fake
smsc-id = fc
port = 13003
connect-allow-ip = 0.0.0.0
system-type = "sboxk"
log-level = 0

group = smsbox
smsbox-id = sboxk
bearerbox-host = localhost
sendsms-port = 13010
global-sender = "0412999"
access-log = "/var/log/kannel/kannel.access"
log-file = "/var/log/kannel/smsbox.log"
log-level = 1

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

group = dlr-db
id = mysql-logs
table = logs
field-smsc = smsc
field-timestamp = time
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 = kannel
password = kannel
concatenation = true

group = opensmppbox
opensmppbox-id = smppbox
opensmppbox-port = 1
bearerbox-host = localhost
bearerbox-port = 13000
log-level = 0
log-file = /var/log/kannel/opensmppbox.log
our-system-id = opensmppid
route-to-smsc = fc
smpp-logins = "/etc/kannel/smpplogins.txt"

smpplogins.txt:
usuario clave sboxk *.*.*.*




El 24/06/11 12:01, Rene Kluwen escribió:




 

The system-type should be “sboxk”.

 

=

RE: What happens to MO if kannel is stopped

2011-06-27 Thread Rene Kluwen
There might be some race conditions here.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of ha...@aeon.pk
Sent: Monday, 27 June, 2011 16:23
To: Harbhag Singh Sohal
Cc: users@kannel.org
Subject: Re: What happens to MO if kannel is stopped

 

There is a limit of storage on SMSC over each ESME account or SMS shortcode
account.  The figure is customized for every operator, but generally its in
hundreds or something. If  your session is disconnected for a long time,
there would be a long queue of SMS stored in the buffers against your
account. SMSC will start rejecting messages if that buffer is full.

 

get-url always gets triggered, if you turn kannel on in sequence. I hope you
know this already, but just explaining in case it is unknown. Following is
the order:

 

- Enable bearerbox

- Enable sqlbox (if you have configured one)

- Enable smsbox

 

Your application sits behind SMSbox, so get-url will be triggered and
message will reach application when you enable smsbox.

 

 

On Mon, Jun 27, 2011 at 7:13 PM, Harbhag Singh Sohal
 wrote:

yes I can confirm that get-url is not getting triggered even though
SMS is received.

On Mon, Jun 27, 2011 at 7:37 PM, Harbhag Singh Sohal

 wrote:
> And what are chances that MO gets rejected by SMSC ?
> And when the MO is received after kannel is up again, will it run get-url
?
> bcoz I think its not running get-url
>
> On Mon, Jun 27, 2011 at 7:33 PM, ha...@aeon.pk  wrote:
>> It will get stored in the SMSC, to be delivered to you kannel whenever it
>> gets up.
>>
>> On Mon, Jun 27, 2011 at 6:53 PM, Harbhag Singh Sohal
>>  wrote:
>>>
>>> Suppose I have bearerbox,smsbox and sqlbox stopped and someone sends
>>> me SMS, where this MO will go ? What will happen to it ?
>>>
>>> --
>>> Regards
>>> Harbhag Singh Sohal
>>> www.harbhag.wordpress.com
>>>
>>
>>
>
>
>
> --
> Regards
> Harbhag Singh Sohal
> www.harbhag.wordpress.com
>




--

Regards
Harbhag Singh Sohal
www.harbhag.wordpress.com

 



RE: Invalid SMPP PDU received with opensmpp

2011-06-28 Thread Rene Kluwen
[1]: I know that software and I know it works.

[2]: I don’t know this software, contact it’s author.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Ivan Martinez
Sent: Tuesday, 28 June, 2011 17:29
To: users@kannel.org
Subject: RE: Invalid SMPP PDU received with opensmpp

 

Hi Rene...
 
Thanks for your answer...
 
it's wrrrkk!!
 
I made the change in opensmppbox group and define the system-type in the client.
 
But i have another question...
 
Is neccesary the system-type definition in the client software?
 
With this class[1] work fine with the system-type definition, but with this 
software[2] don't work... i got the system_type: NULL in the log.
 
Thanks for your help...
 
[1] 
http://www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html
[2] http://www.smpp.com/smpp-benchmarking.html
 
 
 
El 27/06/11 16:21, Rene Kluwen escribió:
 
In group = opensmppbox, you should set bearerbox-port to 13002.
 
=+= Rene



RE: Invalid SMPP PDU received with opensmpp

2011-06-28 Thread Rene Kluwen
 [32074] [42] DEBUG: SMPP PDU 0x878d730 dump:
2011-06-28 16:29:36 [32074] [42] DEBUG:   type_name: unbind_resp
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_id: 2147483654 = 0x8006
2011-06-28 16:29:36 [32074] [42] DEBUG:   command_status: 0 = 0x
2011-06-28 16:29:36 [32074] [42] DEBUG:   sequence_number: 3 = 0x0003
2011-06-28 16:29:36 [32074] [42] DEBUG: SMPP PDU dump ends.
2011-06-28 16:29:36 [32074] [42] DEBUG: Thread 42 
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-06-28 16:29:37 [32042] [62] INFO: Connection closed by the box <127.0.0.1>
2011-06-28 16:29:37 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) 
terminates.
2011-06-28 16:29:37 [32042] [63] DEBUG: send_msg: sending msg to boxc: 
2011-06-28 16:29:37 [32042] [63] DEBUG: Thread 63 (gw/bb_boxc.c:boxc_sender) 
terminates.
2011-06-28 16:29:37 [32042] [62] DEBUG: Thread 62 (gw/bb_boxc.c:function) 
terminates.
2011-06-28 16:29:37 [32074] [41] DEBUG: Thread 41 (opensmppbox.c:function) 
terminates.
 
 
I'm try with this methot too:
$smpp->SendMulti("31648072766+31651931985", "This is my PHP message Multi");
$smpp->SendMulti("31648072766 31651931985", "This is my PHP message Multi");
 
any idea?
 
With the single mensaje work fine!
 
$smpp->Send("31651931985", "This is my PHP message");
 
 
Thanks for your help...
 
[1] 
http://www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html
 
 
El 28/06/11 11:04, Rene Kluwen escribió:
>
> [1]: I know that software and I know it works.
>
> [2]: I don’t know this software, contact it’s author.
>
>  
>
> == Rene
>
>  



RE: Bearerbox and smsbox

2011-06-28 Thread Rene Kluwen
Check: http://www.kannel.org/pipermail/users/2010-July/011810.html

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of victor katemana
Sent: Tuesday, 28 June, 2011 22:01
To: users@kannel.org
Subject: Bearerbox and smsbox

 

 hello everyone,

 

 My problem is, everytime i have to use kannel i start my bearerbox and
smsbox manually on a command-line.

 is there a way of starting it automatically soon after logging into into my
pc?  

 below is what i do

 

 sudo bearerbox -v 1 path to/kannel.conf

 sudo smsbox -v 1 path to/kannel.conf

 

 is there a way of the bearerbox and smsbox auto detecting my configuration
in kannel.conf. soon after logging in?

 



RE: Problem configuring opensmppbox

2011-06-28 Thread Rene Kluwen
In group = opensmppbox, you need to set bearerbox-port = 13005 in order for
sqlbox to "see" the messages.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Michael van der Poel
Sent: Tuesday, 28 June, 2011 21:27
To: users@kannel.org
Subject: Problem configuring opensmppbox

Hi everyone,

I am connecting to my SMSC through SMPP and I am impressed by Kannel's
performance. I have HTTP before and I am glad, I have moved to Kannel.

Kannel and sqlbox are working fine and now I would like to get delivery
reports
and store these in a MySQL database (tekstberichten) with a table called
'verslag'. A few days ago I have installed opensmppbox for that reason,
hoping
that thus I could link bearerbox to sqlbox to opensmppbox. opensmppbox seems
to
start ok but seems to be idle while I sent 3 messages:

2011-06-28 18:25:09 [28589] [0] INFO: MYSQL: Connected to server at
localhost.
2011-06-28 18:25:09 [28589] [0] INFO: MYSQL: server version
5.0.92-community,
client version 5.0.92.
2011-06-28 18:25:09 [28589] [0] INFO: DLR using storage type: mysql
2011-06-28 18:25:09 [28589] [0] INFO: Starting to log to file
/var/log/kannel/opensmppbox.log level 0
2011-06-28 18:25:09 [28589] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.
2011-06-28 18:25:09 [28589] [0] INFO: Waiting for SMPP connections on port
8000.
2011-06-28 18:58:06 [28589] [0] ERROR: SIGINT received, aborting program...
2011-06-28 18:58:06 [28589] [0] INFO: No more waiting for SMPP connections.

Kannel starts:

2011-06-28 18:18:08 [28382] [0] INFO: MYSQL: Connected to server at
localhost.
2011-06-28 18:18:08 [28382] [0] INFO: MYSQL: server version
5.0.92-community,
client version 5.0.92.
2011-06-28 18:18:08 [28382] [0] INFO: DLR using storage type: mysql
2011-06-28 18:18:08 [28382] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `0'.
2011-06-28 18:18:08 [28382] [0] INFO: HTTP: Opening server at port 13000.
2011-06-28 18:18:08 [28382] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using
default (100).
2011-06-28 18:18:08 [28382] [0] INFO: Set SMS resend frequency to 60
seconds.
2011-06-28 18:18:08 [28382] [0] INFO: SMS resend retry set to unlimited.
2011-06-28 18:18:08 [28382] [0] INFO: Set throughput to 10.000 for smsc id

2011-06-28 18:18:08 [28382] [0] INFO: DLR rerouting for smsc id 
disabled.
2011-06-28 18:18:08 [28382] [0] INFO: Added logfile
`/var/log/kannel/smpp-SMSC.log' with level `0'.
2011-06-28 18:18:08 [28382] [0] WARNING: SMPP: receive-port for transceiver
mode
defined, ignoring.
2011-06-28 18:18:08 [28382] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/smpp-SMSC.log' with level `0'.
2011-06-28 18:18:08 [28382] [0] INFO:

2011-06-28 18:18:08 [28382] [0] INFO: Kannel bearerbox II version 1.5.0
starting
2011-06-28 18:18:08 [28382] [0] INFO: MAIN: Start-up done, entering mainloop
2011-06-28 18:19:07 [28382] [5] INFO: Client connected from <127.0.0.1>

and closes:

2011-06-28 18:38:12 [28382] [8] INFO: Connection closed by the box
<127.0.0.1>
2011-06-28 18:38:13 [28382] [0] INFO: All flow threads have died, killing
core
2011-06-28 18:38:13 [28382] [0] INFO: Total WDP messages: received 0, sent 0
2011-06-28 18:38:13 [28382] [0] INFO: Total SMS messages: received 0, dlr 3,
sent 3, dlr 0

The "DLR rerouting disabled" and transceiver port ignored messages I find
strange.


This is my Kannel config file:

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13003
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
dlr-storage=mysql
log-level=0

group = smsbox
bearerbox-host="localhost"
sendsms-port = 13013
sendsms-chars = "+0123456789"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
log-level = 0
mo-recode = 1

group = smsc
smsc = smpp
smsc-id = smpp-SMSC
host = msg1.SMSC.com
port = 8000
receive-port = 8000
transceiver-mode = 1
throughput = 10
smsc-username = USERNAME
smsc-password = PASSWORD
system-type = bijzonder
dest-addr-ton=1
log-file = "/var/log/kannel/smpp-SMSC.log"
log-level = 0
msg-id-type=0x01
enquire-link-interval = 30

group = sendsms-user
username = username
password = pwd
forced-smsc =  smpp-SMSC
name = users
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
max-messages = 3
concatenation = 1
omit-empty = 1

# DLR SETUP
#mysql connection
group = mysql-connection
id = mydlr
host = localhost
username = gebruikersnaam
password = geheimwoord
database = tekstberichten
max-connections = 10

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

group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0

sqlbox config file:

group = sqlbox
id = sql

RE: Problem configuring opensmppbox

2011-06-28 Thread Rene Kluwen
Your opensmppbox logs don't show any connection.

How do you send messages? If by smsbox, please post the url that you are
sending from.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Michael van der Poel
Sent: Tuesday, 28 June, 2011 22:40
To: users@kannel.org
Subject: Re: Problem configuring opensmppbox

 

Thanks, Rene! I have made that change.

I just sent a message: still no joy. below is what the logs show. I am
afraid, there is more to it. Maybe you spot something else. 
Any help you could give, would be great. Today, I am at a loss, after  many
hours reading, testing..

Thanks,


Michael 

Bearerbox log:

2011-06-28 20:13:17 [31932] [5] DEBUG: Started thread 8
(gw/bb_boxc.c:function) 2011-06-28 20:13:17 [31932] [8] DEBUG: Thread 8
(gw/bb_boxc.c:function) maps to pid 31932.
2011-06-28 20:13:17 [31932] [8] DEBUG: Started thread 9
(gw/bb_boxc.c:boxc_sender) 2011-06-28 20:13:17 [31932] [9] DEBUG: Thread 9
(gw/bb_boxc.c:boxc_sender) maps to pid 31932.
2011-06-28 20:13:17 [31932] [8] DEBUG: boxc_receiver: got boxc_id 
from <127.0.0.1>
2011-06-28 20:13:48 [31932] [8] DEBUG: boxc_receiver: sms received
2011-06-28 20:13:48 [31932] [8] DEBUG: send_msg: sending msg to boxc:

2011-06-28 20:13:49 [31932] [9] DEBUG: send_msg: sending msg to boxc:

2011-06-28 20:13:49 [31932] [9] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2011-06-28 20:13:49 [31932] [8] DEBUG: boxc_receiver: got ack

Sqlbox log:

2011-06-28 18:38:12 [28464] [0] DEBUG: Immutable octet strings: 65.
2011-06-28 20:13:17 [31945] [0] INFO: Added logfile
`/var/log/kannel/kannel-sqlbox.log' with level `0'. 2011-06-28 20:13:17
[31945] [0] INFO: MYSQL: Connected to server at localhost. 2011-06-28
20:13:17 [31945] [0] INFO: MYSQL: server version 5.0.92-community, client
version 5.0.92.
2011-06-28 20:13:17 [31945] [0] DEBUG: Started thread 1
(sqlbox.c:sql_to_bearerbox)
2011-06-28 20:13:17 [31945] [1] DEBUG: Thread 1 (sqlbox.c:sql_to_bearerbox)
maps to pid 31945.
2011-06-28 20:13:17 [31945] [1] DEBUG: Connecting to <127.0.0.1>
2011-06-28 20:13:17 [31945] [1] INFO: Connected to bearerbox at localhost
port 13003. 2011-06-28 20:13:17 [31945] [1] DEBUG: Started thread 2
(sqlbox.c:bearerbox_to_sql) 2011-06-28 20:13:17 [31945] [2] DEBUG: Thread 2
(sqlbox.c:bearerbox_to_sql) maps to pid 31945.

smpp-SMSC log:

2011-06-28 20:18:11 [31932] [6] DEBUG: SMPP[smpp-SMSC]: throughput
(0.00,10.00) 2011-06-28 20:18:11 [31932] [6] DEBUG: SMPP[smpp-nexmo]:
throughput (0.00,10.00) 2011-06-28 20:18:11 [31932] [6] DEBUG:
SMPP[smpp-nexmo]: Got PDU:
2011-06-28 20:18:11 [31932] [6] DEBUG: SMPP PDU 0x11852750 dump:
2011-06-28 20:18:11 [31932] [6] DEBUG:   type_name: enquire_link_resp
2011-06-28 20:18:11 [31932] [6] DEBUG:   command_id: 2147483669 = 0x8015
2011-06-28 20:18:11 [31932] [6] DEBUG:   command_status: 0 = 0x
2011-06-28 20:18:11 [31932] [6] DEBUG:   sequence_number: 14 = 0x000e
2011-06-28 20:18:11 [31932] [6] DEBUG: SMPP PDU dump ends.
2011-06-28 20:18:11 [31932] [6] DEBUG: SMPP[smpp-nexmo]: throughput
(0.00,10.00)


Opensmppbox log:

2011-06-28 17:01:03 [26262] [0] INFO: Waiting for SMPP connections on port
8.
2011-06-28 17:20:38 [26262] [0] WARNING: SIGHUP received, catching and
re-opening logs
2011-06-28 17:20:38 [26262] [0] WARNING: SIGHUP received, catching and
re-opening logs
2011-06-28 18:25:09 [28589] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.
2011-06-28 18:25:09 [28589] [0] INFO: Waiting for SMPP connections on port
8000.
2011-06-28 18:58:06 [28589] [0] ERROR: SIGINT received, aborting program...
2011-06-28 18:58:06 [28589] [0] INFO: No more waiting for SMPP connections.
2011-06-28 18:58:06 [28589] [0] DEBUG: Immutable octet strings: 112.
2011-06-28 20:12:46 [31943] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'. 2011-06-28 20:12:46
[31943] [0] INFO: Waiting for SMPP connections on port 8000.



On 28/6/11 21:04, "Rene Kluwen"  wrote:

> In group = opensmppbox, you need to set bearerbox-port = 13005 in order
for
> sqlbox to "see" the messages.
> 
> == Rene
> 
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Michael van der Poel
> Sent: Tuesday, 28 June, 2011 21:27
> To: users@kannel.org
> Subject: Problem configuring opensmppbox
> 
> Hi everyone,
> 
> I am connecting to my SMSC through SMPP and I am impressed by Kannel's
> performance. I have HTTP before and I am glad, I have moved to Kannel.
> 
> Kannel and sqlbox are working fine and now I would like to get delivery
> reports
> and store these in a MySQL database (tekstberichten) with a table called
> 'verslag'. A few days ago I have installed opensmppbox for that reason,
> hoping
> that thus I could link bearerbox to sqlbox to opensmppbox. opensmppbox
seems
> to
>

RE: Problem configuring opensmppbox

2011-06-29 Thread Rene Kluwen
To send messages via smpp, you don't need opensmppbox.

Just insert an entry in the send_sms table of sqlbox. If you fill in the
proper values, the message gets sent.

 

== Rene

 

 

From: Michael van der Poel [mailto:movdp...@gmail.com] 
Sent: Wednesday, 29 June, 2011 06:59
To: Rene Kluwen; users@kannel.org
Subject: Re: Problem configuring opensmppbox

 

Well, I have cleaned up the opensmpp config file (I hope):

group = core dlr-storage = internal

group = opensmppbox opensmppbox-id = smppbox opensmppbox-port = 1
bearerbox-host = localhost bearerbox-port = 13005 log-level = 0 log-file =
/var/log/kannel/opensmppbox.log our-system-id = opensmppid route-to-smsc =
smpp-SMSC smpp-logins = "/usr/local/kannel.1.5/smpplogins.txt"

This should now correspond with the below SMSC values in the kannel config
file:

group = smsc smsc = smpp smsc-id = smpp- SMSC host = msg1. SMSC.com port =
8000 receive-port = 8000 transceiver-mode = false throughput = 10
smsc-username = USERNAME smsc-password = PASSWORD system-type = USERNAME
dest-addr-ton=1 log-file = "/var/log/kannel/smpp- SMSC.log" log-level = 0
msg-id-type=0x01 enquire-link-interval = 30

And with the values in smpplogins.txt: USERNAME PASSWORD USERNAME *.*.*.*

But opensmpp log shows that there is no record of 2 messages being sent: 

2011-06-29 03:19:27 [11361] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'. 2011-06-29 03:19:27
[11361] [0] INFO: Waiting for SMPP connections on port 1.

whereas the bearerbox log shows those 2 messages being sent and
acknowledged:

2011-06-29 03:27:25 [11312] [9] DEBUG: boxc_receiver: sms received
2011-06-29 03:27:25 [11312] [9] DEBUG: send_msg: sending msg to boxc:
 2011-06-29 03:27:25 [11312] [10] DEBUG: send_msg: sending msg to
boxc:  2011-06-29 03:27:25 [11312] [10] DEBUG: boxc_sender: sent
message to <127.0.0.1> 2011-06-29 03:27:25 [11312] [9] DEBUG: boxc_receiver:
got ack 2011-06-29 03:33:45 [11312] [9] DEBUG: boxc_receiver: sms received
2011-06-29 03:33:45 [11312] [9] DEBUG: send_msg: sending msg to boxc:
 2011-06-29 03:33:45 [11312] [10] DEBUG: send_msg: sending msg to
boxc:  2011-06-29 03:33:45 [11312] [10] DEBUG: boxc_sender: sent
message to <127.0.0.1> 2011-06-29 03:33:45 [11312] [9] DEBUG: boxc_receiver:
got ack

I am running out of ideas. Any suggestions are most welcome!


Michael





RE: questions regarding kannel

2011-06-29 Thread Rene Kluwen
The cheapest solutions depends on which network you will send the messages
to. Also it depends on the volume that you send.

If you google for "cheap sms gateway" then you will get a lot of results.
You don't need this list for that.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Jose Sanchez
Sent: Wednesday, 29 June, 2011 07:33
To: Mutuku Ndeti
Cc: users@kannel.org
Subject: Re: questions regarding kannel

Anyone?

--- On Mon, 6/27/11, Jose Sanchez  wrote:

> From: Jose Sanchez 
> Subject: Re: questions regarding kannel
> To: "Mutuku Ndeti" 
> Date: Monday, June 27, 2011, 6:31 PM
> Hello,
> 
> Thanks for the response!
> Can you point me to some documentaiton or tutorial on how
> to achieve this with kannel? 
> What would you recommend in terms of setting up the
> cheapest solution (with kannel of course)?
> 
> Thanks again, its very appreciated.
> 
> --- On Sat, 6/25/11, Mutuku Ndeti 
> wrote:
> 
> > From: Mutuku Ndeti 
> > Subject: Re: questions regarding kannel
> > To: "Jose Sanchez" 
> > Cc: users@kannel.org
> > Date: Saturday, June 25, 2011, 1:58 AM
> >  you can connect to  a mobile
> > service provider in your country. the
> > costs vary depending on the country and provider.
> > 
> > On 25/06/2011, Jose Sanchez 
> > wrote:
> > > Hey guys,
> > >
> > > Im thinking to setup a SMS gateway (w/kannel of
> > course) but Im not sure
> > > whats the cheapest way to do this. My server is
> on a
> > datacenter although it
> > > doesnt have a GSM modem, I was thinking to get a
> > cellphone and connect to
> > > the server over USB but Im not sure if the
> datacenter
> > will allow me to do
> > > this.
> > >
> > > I would like to know if there is any other
> option
> > available for my
> > > situation? I have hear about 3th party gateways,
> but I
> > dont know any. Is
> > > that cheap? I was unable to find any config
> > documentation from kannel about
> > > this or explanation about this kind of setup so
> any
> > advice will be very
> > > appreciated.
> > >
> > > Thanks a lot, have a great weekend!
> > >
> > >
> > 
> > 
> > -- 
> > Tel:254722490994
> > www.agile.co.ke | www.zetu.co.ke
> >
> 






RE: GSM modem

2011-06-29 Thread Rene Kluwen
Some USB dongles do work well.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Jalal Uddin
Sent: Wednesday, 29 June, 2011 18:18
To: users@kannel.org
Subject: GSM modem

 

Hello everyone,

can you please suggest me some good durable GSM modem to use with kannel. In
my country nothing more than a USB dongle is available, so i have to
purchase it from outside. So i want to buy something that will work, i hope
you understand.

i have found that  Siemens M35 and Wavecom fast track is an option, but can
you guys tell me whether these work well with kannel? I need something that
works with kannel.

Thank you



RE: questions regarding kannel

2011-06-30 Thread Rene Kluwen
See the users guide:
http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html

== Rene

-Original Message-
From: Jose Sanchez [mailto:josesan...@yahoo.com] 
Sent: Thursday, 30 June, 2011 19:12
To: 'Mutuku Ndeti'; Rene Kluwen
Cc: users@kannel.org
Subject: RE: questions regarding kannel

Hello,

Thanks for the response. 
Im not really asking for a cheap SMS gateway but configuring Kannel to
connect to the SMS gateway instead of a GSM modem because I cant find any
documentation for this.

Do you guys mind pointing me to some documentation/tutorial on how to
achieve this?

Thanks again!

--- On Wed, 6/29/11, Rene Kluwen  wrote:

> From: Rene Kluwen 
> Subject: RE: questions regarding kannel
> To: "'Jose Sanchez'" , "'Mutuku Ndeti'"

> Cc: users@kannel.org
> Date: Wednesday, June 29, 2011, 4:08 AM
> The cheapest solutions depends on
> which network you will send the messages
> to. Also it depends on the volume that you send.
> 
> If you google for "cheap sms gateway" then you will get a
> lot of results.
> You don't need this list for that.
> 
> == Rene
> 
> 
> -Original Message-
> From: users-boun...@kannel.org
> [mailto:users-boun...@kannel.org]
> On Behalf
> Of Jose Sanchez
> Sent: Wednesday, 29 June, 2011 07:33
> To: Mutuku Ndeti
> Cc: users@kannel.org
> Subject: Re: questions regarding kannel
> 
> Anyone?
> 
> --- On Mon, 6/27/11, Jose Sanchez 
> wrote:
> 
> > From: Jose Sanchez 
> > Subject: Re: questions regarding kannel
> > To: "Mutuku Ndeti" 
> > Date: Monday, June 27, 2011, 6:31 PM
> > Hello,
> > 
> > Thanks for the response!
> > Can you point me to some documentaiton or tutorial on
> how
> > to achieve this with kannel? 
> > What would you recommend in terms of setting up the
> > cheapest solution (with kannel of course)?
> > 
> > Thanks again, its very appreciated.
> > 
> > --- On Sat, 6/25/11, Mutuku Ndeti 
> > wrote:
> > 
> > > From: Mutuku Ndeti 
> > > Subject: Re: questions regarding kannel
> > > To: "Jose Sanchez" 
> > > Cc: users@kannel.org
> > > Date: Saturday, June 25, 2011, 1:58 AM
> > >  you can connect to  a mobile
> > > service provider in your country. the
> > > costs vary depending on the country and
> provider.
> > > 
> > > On 25/06/2011, Jose Sanchez 
> > > wrote:
> > > > Hey guys,
> > > >
> > > > Im thinking to setup a SMS gateway (w/kannel
> of
> > > course) but Im not sure
> > > > whats the cheapest way to do this. My server
> is
> > on a
> > > datacenter although it
> > > > doesnt have a GSM modem, I was thinking to
> get a
> > > cellphone and connect to
> > > > the server over USB but Im not sure if the
> > datacenter
> > > will allow me to do
> > > > this.
> > > >
> > > > I would like to know if there is any other
> > option
> > > available for my
> > > > situation? I have hear about 3th party
> gateways,
> > but I
> > > dont know any. Is
> > > > that cheap? I was unable to find any config
> > > documentation from kannel about
> > > > this or explanation about this kind of setup
> so
> > any
> > > advice will be very
> > > > appreciated.
> > > >
> > > > Thanks a lot, have a great weekend!
> > > >
> > > >
> > > 
> > > 
> > > -- 
> > > Tel:254722490994
> > > www.agile.co.ke | www.zetu.co.ke
> > >
> > 
> 
> 
> 
> 






RE: sql compilation error ?

2011-06-30 Thread Rene Kluwen
Recompile Kannel (and reinstall) using ./configure --with-mysql or any other
of the supported db engines.

The recompile sqlbox doing the same.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of amritpal pathak
Sent: Thursday, 30 June, 2011 17:07
To: users@kannel.org
Subject: sql compilation error ?

 

I compiled sqlbox using "make" and it gave following error at end 

 

sqlbox.c:95:2: error: #error You need support for at least one DB engine.
Please recompile Kannel.

make[2]: *** [sqlbox.o] Error 1

make[2]: Leaving directory `/home/amrit/kannel/sqlbox/gw'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/amrit/kannel/sqlbox'

make: *** [all] Error 2

 

  I again compiled kannel as per error
but it didn't help.same error came again.

 

any idea?

 

Thanks 

amritpalpathakgne.wordpress.com 



RE: MO Empty SMS Issue

2011-07-02 Thread Rene Kluwen
Try: omit-empty = true in group = sms-service.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amr Qanadilo
Sent: Saturday, 02 July, 2011 09:39
To: ha...@aeon.pk
Cc: users@kannel.org
Subject: Re: MO Empty SMS Issue

 

Dear Sir;

 

I have tried the reply-emptymessage but it didnt work... am afraid am doing
somethign wrong. below is the full configurations i have, can you please
(and thankfully the list) tell me if am doing something wrong.

 

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
log-file = "/var/log/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
box-allow-ip = "*.*.*.*"
#sms-resend-freq = 1800
sms-resend-retry = 0

 


group=smsc
smsc-id=SMSC1
smsc=smpp
interface-version=34
host=xx.xx.xx.xx
port=6000
system-id=AMC
smsc-password=
system-type="smpp"
transceiver-mode=0
service-type=
dest-addr-ton=1
dest-addr-npi=1
#receive-port=700
source-addr-ton=1
source-addr-npi=1
receive-port=6000
wait-ack-expire = 0x02
validityperiod = 60
throughput = 2

#group=smsc
#smsc-id=
#smsc=smpp
#interface-version=34
#host=10.1.250.82
#port=
#system-id=XXX
#smsc-password=20110504
#system-type="smpp"
#transceiver-mode=0
#service-type=
#dest-addr-ton=1
#dest-addr-npi=1
#receive-port=700
#source-addr-ton=1
#source-addr-npi=1
#receive-port=

group = smsbox
bearerbox-host = XX.XX.XX.XX
sendsms-port = 13013
global-sender = 13013
log-level = 0
# smsbox-id = internal
http-request-retry=5
mo-recode=true

group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 3
forced-smsc = 212_smsc
user-allow-ip = "*.*.*.*"

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 100
users = 1024
#ppg-allow-ip = *.*.*.*
#trusted-pi = false

group = wapbox
bearerbox-host = xx.xx.xx.xx
#log-file = "filename"
log-level = 0
syslog-level = none

group = wap-push-user
wap-push-user = picom
ppg-username = kannel
ppg-password = kannel
#allow-ip = *.*.*.*


group = sms-service
keyword=default
accepted-smsc = SMSC1
#keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
 "

 

#group = sms-service
#keyword=NOT
#accepted-smsc = 

#keyword-regex = .*
#catch-all = yes
#max-messages = 0
#get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
 "

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

 

 

 

 

 

 

 

 


 

On Thu, Jun 30, 2011 at 4:12 PM, ha...@aeon.pk  wrote:

Check reply-emptymessage in SMSBOX section in userguide. 

 

On Thu, Jun 30, 2011 at 12:55 PM, Amr Qanadilo  wrote:

Dear List;

 

I have a question regarding Kannel;

 

We are using a Redhat linux and the latest release of Kannel. We would
appreciate your help in knowing how can we handle empty SMS though Kannel.
The use case is as follows;

 

User sends empty SMS, Kannel receive it and send it to our application. The
URL when received by the application is not understood by the apache server
so the apache reject the URL. I would like to know if there is a way to tell
Kannel to respond automatically to the empty sms by sending text sms back
without coming in to the application

 

I look forward for your feedback

 

 

 



RE: MO Empty SMS Issue

2011-07-02 Thread Rene Kluwen
Why don't you send something like:

 

http://xx.xx.xx.xx/newamc/kannel_send?p=%p
<http://xx.xx.xx.xx/newamc/kannel_send?p=%25p&b=%25b/> &b=%b

 

== Rene

 

 

 

From: Amr Qanadilo [mailto:amr1...@gmail.com] 
Sent: Saturday, 02 July, 2011 16:01
To: Rene Kluwen
Cc: ha...@aeon.pk; users@kannel.org
Subject: Re: MO Empty SMS Issue

 

Dear Rene;

 

Then Kannel will send nothing at all in such a case. What i want is to make
kannel to respond to an empty MO SMS with a predefined Text. As you can see
from my configuration in the URL am using to send to my application  the URL
will send something like http:/999/ada/asdsa//asda, If you notice the
//. here the application server does not identify the // and reject it.
thats why i want kannel to send a predefined SMS back to the user when the
user sends empty SMS

 

Your feedback is highly appreciated

On Sat, Jul 2, 2011 at 3:29 PM, Rene Kluwen  wrote:

Try: omit-empty = true in group = sms-service.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amr Qanadilo
Sent: Saturday, 02 July, 2011 09:39
To: ha...@aeon.pk
Cc: users@kannel.org
Subject: Re: MO Empty SMS Issue

 

Dear Sir;

 

I have tried the reply-emptymessage but it didnt work... am afraid am doing
somethign wrong. below is the full configurations i have, can you please
(and thankfully the list) tell me if am doing something wrong.

 

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
log-file = "/var/log/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
box-allow-ip = "*.*.*.*"
#sms-resend-freq = 1800
sms-resend-retry = 0

 


group=smsc
smsc-id=SMSC1
smsc=smpp
interface-version=34
host=xx.xx.xx.xx
port=6000
system-id=AMC
smsc-password=
system-type="smpp"
transceiver-mode=0
service-type=
dest-addr-ton=1
dest-addr-npi=1
#receive-port=700
source-addr-ton=1
source-addr-npi=1
receive-port=6000
wait-ack-expire = 0x02
validityperiod = 60
throughput = 2

#group=smsc
#smsc-id=
#smsc=smpp
#interface-version=34
#host=10.1.250.82
#port=
#system-id=XXX
#smsc-password=20110504
#system-type="smpp"
#transceiver-mode=0
#service-type=
#dest-addr-ton=1
#dest-addr-npi=1
#receive-port=700
#source-addr-ton=1
#source-addr-npi=1
#receive-port=

group = smsbox
bearerbox-host = XX.XX.XX.XX
sendsms-port = 13013
global-sender = 13013
log-level = 0
# smsbox-id = internal
http-request-retry=5
mo-recode=true

group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 3
forced-smsc = 212_smsc
user-allow-ip = "*.*.*.*"

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 100
users = 1024
#ppg-allow-ip = *.*.*.*
#trusted-pi = false

group = wapbox
bearerbox-host = xx.xx.xx.xx
#log-file = "filename"
log-level = 0
syslog-level = none

group = wap-push-user
wap-push-user = picom
ppg-username = kannel
ppg-password = kannel
#allow-ip = *.*.*.*


group = sms-service
keyword=default
accepted-smsc = SMSC1
#keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
<http://xx.xx.xx.xx/newamc/kannel_send/%25p/%25b/> "

 

#group = sms-service
#keyword=NOT
#accepted-smsc = 

#keyword-regex = .*
#catch-all = yes
#max-messages = 0
#get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
<http://xx.xx.xx.xx/newamc/kannel_send/%25p/%25b/> "

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

 

 

 

 

 

 

 

 


 

On Thu, Jun 30, 2011 at 4:12 PM, ha...@aeon.pk  wrote:

Check reply-emptymessage in SMSBOX section in userguide. 

 

On Thu, Jun 30, 2011 at 12:55 PM, Amr Qanadilo  wrote:

Dear List;

 

I have a question regarding Kannel;

 

We are using a Redhat linux and the latest release of Kannel. We would
appreciate your help in knowing how can we handle empty SMS though Kannel.
The use case is as follows;

 

User sends empty SMS, Kannel receive it and send it to our application. The
URL when received by the application is not understood by the apache server
so the apache reject the URL. I would like to know if there is a way to tell
Kannel to respond automatically to the empty sms by sending text sms back
without coming in to the application

 

I look forward for your feedback

 

 

 

 



RE: MO Empty SMS Issue

2011-07-02 Thread Rene Kluwen
Or another options is to prefix your keywords:

 

http://xx.xx.xx.xx/newamc/kannel_send/key_%p/par_%b/
<http://xx.xx.xx.xx/newamc/kannel_send/key_%25p/par_%25b/> 

 

This way, if %p is empty, you still won't get //, but /par_/ in stead.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Rene Kluwen
Sent: Saturday, 02 July, 2011 16:30
To: 'Amr Qanadilo'
Cc: users@kannel.org
Subject: RE: MO Empty SMS Issue

 

Why don't you send something like:

 

http://xx.xx.xx.xx/newamc/kannel_send?p=%p
<http://xx.xx.xx.xx/newamc/kannel_send?p=%25p&b=%25b/> &b=%b

 

== Rene

 

 

 

From: Amr Qanadilo [mailto:amr1...@gmail.com] 
Sent: Saturday, 02 July, 2011 16:01
To: Rene Kluwen
Cc: ha...@aeon.pk; users@kannel.org
Subject: Re: MO Empty SMS Issue

 

Dear Rene;

 

Then Kannel will send nothing at all in such a case. What i want is to make
kannel to respond to an empty MO SMS with a predefined Text. As you can see
from my configuration in the URL am using to send to my application  the URL
will send something like http:/999/ada/asdsa//asda, If you notice the
//. here the application server does not identify the // and reject it.
thats why i want kannel to send a predefined SMS back to the user when the
user sends empty SMS

 

Your feedback is highly appreciated

On Sat, Jul 2, 2011 at 3:29 PM, Rene Kluwen  wrote:

Try: omit-empty = true in group = sms-service.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amr Qanadilo
Sent: Saturday, 02 July, 2011 09:39
To: ha...@aeon.pk
Cc: users@kannel.org
Subject: Re: MO Empty SMS Issue

 

Dear Sir;

 

I have tried the reply-emptymessage but it didnt work... am afraid am doing
somethign wrong. below is the full configurations i have, can you please
(and thankfully the list) tell me if am doing something wrong.

 

group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
log-file = "/var/log/kannel.log"
log-level = 0
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
box-allow-ip = "*.*.*.*"
#sms-resend-freq = 1800
sms-resend-retry = 0

 


group=smsc
smsc-id=SMSC1
smsc=smpp
interface-version=34
host=xx.xx.xx.xx
port=6000
system-id=AMC
smsc-password=
system-type="smpp"
transceiver-mode=0
service-type=
dest-addr-ton=1
dest-addr-npi=1
#receive-port=700
source-addr-ton=1
source-addr-npi=1
receive-port=6000
wait-ack-expire = 0x02
validityperiod = 60
throughput = 2

#group=smsc
#smsc-id=
#smsc=smpp
#interface-version=34
#host=10.1.250.82
#port=
#system-id=XXX
#smsc-password=20110504
#system-type="smpp"
#transceiver-mode=0
#service-type=
#dest-addr-ton=1
#dest-addr-npi=1
#receive-port=700
#source-addr-ton=1
#source-addr-npi=1
#receive-port=

group = smsbox
bearerbox-host = XX.XX.XX.XX
sendsms-port = 13013
global-sender = 13013
log-level = 0
# smsbox-id = internal
http-request-retry=5
mo-recode=true

group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 3
forced-smsc = 212_smsc
user-allow-ip = "*.*.*.*"

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 100
users = 1024
#ppg-allow-ip = *.*.*.*
#trusted-pi = false

group = wapbox
bearerbox-host = xx.xx.xx.xx
#log-file = "filename"
log-level = 0
syslog-level = none

group = wap-push-user
wap-push-user = picom
ppg-username = kannel
ppg-password = kannel
#allow-ip = *.*.*.*


group = sms-service
keyword=default
accepted-smsc = SMSC1
#keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
<http://xx.xx.xx.xx/newamc/kannel_send/%25p/%25b/> "

 

#group = sms-service
#keyword=NOT
#accepted-smsc = 

#keyword-regex = .*
#catch-all = yes
#max-messages = 0
#get-url = "http://xx.xx.xx.xx/newamc/kannel_send/%p/%b/
<http://xx.xx.xx.xx/newamc/kannel_send/%25p/%25b/> "

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

 

 

 

 

 

 

 

 


 

On Thu, Jun 30, 2011 at 4:12 PM, ha...@aeon.pk  wrote:

Check reply-emptymessage in SMSBOX section in userguide. 

 

On Thu, Jun 30, 2011 at 12:55 PM, Amr Qanadilo  wrote:

Dear List;

 

I have a question regarding Kannel;

 

We are using a Redhat linux and the latest release of Kannel. We would
appreciate your help in knowing how can we handle empty SMS though Kannel.
The use case is as follows;

 

User sends empty SMS, Kannel receive it and send it to our application. The
URL when received by the application is not understood by the apache server
so the apache reject the URL. I would like to know if there is a way to tell
Kannel to respond automatically to the empty sms by sending text sms back
without coming in to the application

 

I look forward for your feedback

 

 

 

 



RE: Regarding Database problem;

2011-07-05 Thread Rene Kluwen
Install package mysql-devel and re-run ./configure.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Tuesday, 05 July, 2011 14:51
To: users@kannel.org
Subject: Regarding Database problem;

Hello to all,
when i want to configuer the sqlbox then i face these problem, i am
using svn form of kannel,sqlbox. following command i used
and shows this problem.
svn co https://svn.kannel.org/sqlbox/trunk
./bootstrap
./ configuer
make
error you must neet at least one dbengine
so i install mysql  by yum
yum install mysql*
adduser foo
passwd hoo
# mysql -u root -p
Error 1045 (28000): Access denied for user ' root'@localhost (using
password: YES)


so please help me how i create database.
I am using kannel from last 15 days and i am never using mysql.
your support is needed.

-- 
Vijay Kr. Dadhich






RE: Patch: Problem with spool store missing sms type

2011-07-05 Thread Rene Kluwen
The patch is included in opensmppbox svn trunk version.

-- Rene...


- Oorspronkelijk bericht -
Van: Florent Bertero 
Verzonden: dinsdag 5 juli 2011 23:05
Aan: users@kannel.org
Onderwerp: RE: Patch: Problem with spool store missing sms type

Hello Kannel users,
  
I have been working with kannel for a few years now and pretty much start to 
know it well.
 
However, today, one of my kannel (1.5.0 svn + sqlbox + opensmpp) rebotted and 
"Paniced" because of bearerbox.store as below:
2011-07-05 22:29:04 [13861] [0] PANIC: Not handled sms_type within store!
Kannel doesn't restart unless I remove bearerbox.store.

I googled and saw that a patch was made to fix this pb.
http://www.kannel.org/pipermail/devel/2010-August/003855.html
 
I hope I could resent the message in my store file and fix this pb.
Would you be kind enough to let me know where I could download the patch?
 
Thanks in advance
 
Florent Bertero
 



RE: Patch: Problem with spool store missing sms type

2011-07-05 Thread Rene Kluwen
The sms_type patch was introduced on  2010-08-11 14:05:43.

This doesn't affect messages that were already in the store before that
time.

 

== Rene

 

 

From: Florent Bertero [mailto:flo.bert...@hotmail.fr] 
Sent: Tuesday, 05 July, 2011 23:38
To: rene.klu...@chimit.nl; users@kannel.org
Subject: RE: Patch: Problem with spool store missing sms type

 

Hello Rene,
 
I installed opensmppbox from svn in the 19th of may.
Do you think the patch was include after that?
If not, I don't really know what to think...
 
Thanks for your help,
 
Florent
 

 

  _  

From: rene.klu...@chimit.nl
Subject: RE: Patch: Problem with spool store missing sms type
Date: Tue, 5 Jul 2011 23:19:52 +0200
To: flo.bert...@hotmail.fr; users@kannel.org

The patch is included in opensmppbox svn trunk version.

-- Rene...



  _  

Van: Florent Bertero 
Verzonden: dinsdag 5 juli 2011 23:05
Aan: users@kannel.org
Onderwerp: RE: Patch: Problem with spool store missing sms type

Hello Kannel users,
 
I have been working with kannel for a few years now and pretty much start to
know it well.
 
However, today, one of my kannel (1.5.0 svn + sqlbox + opensmpp) rebotted
and "Paniced" because of bearerbox.store as below:
2011-07-05 22:29:04 [13861] [0] PANIC: Not handled sms_type within store!
Kannel doesn't restart unless I remove bearerbox.store.

I googled and saw that a patch was made to fix this pb.
http://www.kannel.org/pipermail/devel/2010-August/003855.html
 
I hope I could resent the message in my store file and fix this pb.
Would you be kind enough to let me know where I could download the patch?
 
Thanks in advance
 
Florent Bertero
 



RE: regarding mysql configuration;

2011-07-05 Thread Rene Kluwen
You need to have the mysql-devel package installed on your system.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Wednesday, 06 July, 2011 04:33
To: users@kannel.org
Cc: rajat goyal
Subject: regarding mysql configuration;

Hello,
I am sending messages successfully with dlr_storage = internal now i
want to connect the mysql with it so i
CREATE DATABASE sms_dlr;
USE sms_dlr;
CREATE TABLES dlr_kannel (smsc VARCHAR(30), ts VARCHAR (30),
destination (30), source VARCHAR(30), service(VARCHAR), url(30),
mask(VARCHAR), status(VARCHAR), boxcVARCHAR(30))
my kannel.conf file looklike as
group = core
admin-port = 13000
admin-password = hoo
status-password = hoo
smsbox-port = 13003
store-type = file
store-file = /knl_store
sms-incoming-queue-limit = -1
log-level = 4
access-log = /var/log/bearerbox1.access
dlr-storage = internal
log-file = /var/log/bearerbox1.log

group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
sendsms-url = "/"
log-level = 4
access-log = /var/log/smsbox1.access
# log-file = /var/log/smsbox1.log

include = "normal.conf"


group = sendsms-user
username = hookcity
password = hooindia
concatenation = true
max-messages = 7


group = mysql-connection
id = mydlr
host = localhost
username = root
password = hcl@121
database = sms_dlr
max-connections = 10

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

cd /usr/local/gateway/trunk
./configure
at there database engine is disabled
cd /usr/local/gateway/sqlbox/trunk
./configure
make shows error at least one dbengine is needed.
so plese guide me how i connected the mysql with kannel.
thanks in advance.

Vijay Kr. Dadhich






RE: Regarding sql and opensmppbox configuration;

2011-07-07 Thread Rene Kluwen
Use a separate config file for sqlbox.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Thursday, 07 July, 2011 00:53
To: users@kannel.org
Subject: Regarding sql and opensmppbox configuration;

Hello ,
I am download the svn form of sqlbox and opensmppbox,and successfully
run the command  .
./configure
make
make install
CFLAGS='-pthread' ./configure
CFLAGS='-Wall -02 -g' ./configure
but i execute this command show panic
./bearerbox
Error sqlbox is no valid group identifier
etc...
so please help me.
-- 
Vijay Kr. Dadhich






RE: Regarding sql and opensmppbox configuration;

2011-07-07 Thread Rene Kluwen
Don't include those files in kannel.conf. But in stead run each box 
(bearerbox/sqlbox/opensmppbox) each with their own config file.

- Oorspronkelijk bericht -
Van: Vijay kumar Dadhich 
Verzonden: donderdag 7 juli 2011 16:18
Aan: Rene Kluwen 
CC: users@kannel.org
Onderwerp: Re: Regarding sql and opensmppbox configuration;

Hii Renu,
Thanks for your guidence,but i have a query that what i seperate file
for both sqlbox.conf and opensmppbox.conf ?
i do the entry in kannel.conf file as..


group = core

include = "sqlbox.conf"
include = "opensmppbox.conf"


and my sqlbox.conf file like as

group = sqlbox
id = mydlr
smsbox-id = sqlbox
bearerbox-port = 13001
smsbox-port = 13003
smsbox_port_ssl = false
sql_log_table = send_sms
lof_file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 4

# Proxy configuration
 group = opensmppbox
 bearerbox-host = 127.0.0.1
 bearerbox-port = 13000
 opensmppbox-id = opensmppbox1
 opensmppbox-port = 2345
 log-file = /var/log/kannel/opensmppbox.log
  log-level = 0
 our-system-id = opensmppbox
 route-to-smsc = 184.173.64.242
 # New accounts
 smpp-logins = /etc/opensmppbox/clients

#opensmppbox configuration
include = "/etc/opensmppbox.conf/opensmppbox1.conf"

#opensmppbox1.conf

group = opensmppbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13002
opensmppbox-id = it  is optional I don't write
opensmppbox-port = 13003
log-file = "/var/log/kannel/opensmppbox.log"
log-level = 4
our-system-id = what i give
route-to-smsc = what i give
smpp-logins = /etc/clients
 plese help me i am try to do it from last one month.but even I am not
set the file where i set the proxy and opensmppbox.conf and any other
files...
your help is must needed.

Thanks a lot






RE: Regarding Opensmppbox;

2011-07-11 Thread Rene Kluwen
Are they not able to bind? Or can they bind and messages fail?
Everything you need to know is in the users manual.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Monday, 11 July, 2011 08:59
To: users@kannel.org
Subject: Regarding Opensmppbox;

Hello to all of You,
First of all Thank you very much for your quick help and guidence.
I am successfully execute the sqlbox and opensmppbox,So how to test
the opensmpp client account,client can't send the message. Now i want
to know that how I manage client in opensmppbox as they are not able
to send
message.

Vijay






RE: Regarding sms port on auto reply by sms service

2011-07-12 Thread Rene Kluwen
Use accept-x-kannel-headers = true and see:

http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4
010 (X-Kannel-UDH).

An alternative options is to not use the autoreply (max-messages = 0 and
omit-empty = true) and then send the reply via the sendsms interface from
within your service.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Adil Mohd
Sent: Tuesday, 12 July, 2011 14:44
To: users@kannel.org
Subject: Regarding sms port on auto reply by sms service

Hi,

I am trying to configure Kannel for my use. I have also configured a
service.
When ever I recieve an sms on my modem, my Http url configured under
get-url executes and the
results get smsed to the originating device.

Now, my problem is that I need these smses on a particular rather than
in Inbox of the device.

I know I can set UDH in send-url. But I want this in the auto-reply to
a service from kannel.

THanks,
Adil

#-
# CORE
#


group = core
admin-port = 13000
smsbox-port = 13003
admin-password = bar
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-file = "/etc/kannel/check_sendsms_smsc.log"
log-level = 0
store-file="/etc/kannel/check_rxdsms_smsc.log"

#-
# SMSC CONNECTIONS
#
group = smsc
smsc = at
smsc-id = mysmscenter
device=/dev/ttyS2
#my-number = "918802345723"
sms-center = "+919811009998"
port = 1
connect-allow-ip = 127.0.0.1
#send-url="http://127.0.0.1:13001/cgi-bin/sendsms";
#send-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=ag
ile&to=%p&text=%a"
send-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=agi
le&to=%p&text=%a&udh=%06%05%04%1D%4C%03%02"
#log-level = 0
modemtype = nokiaphone
#modemtype = auto
sim-buffering = true

#-
# SMSBOX SETUP
#
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13001
global-sender = "+919811009998"
#global-sender = "+919842201155"
#sendsms-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password
=agile&to=%p&text=%a&udh=%06%05%04%1D%4C%03%02"
#log-level = 0
log-file = "/etc/kannel/smsbox.log"
log-level = 0

#-
# SEND-SMS USERS
#
group = sendsms-user
username = agile
password = agile
default-smsc = mysmscenter
concatenation= true
max-messages = 100
#http://localhost:13003/cgi-bin/sendsms?username=agile&password=agile&to=880
2345723&text=Hello+world


#-
# SERVICES
#
group = sms-service
#get-url="http://www.google.com";
#get-url =
"http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=agile&to=%p&;
text=%a&udh=%06%05%04%1D%4C%03%02"
#get-url ="http://122.176.73.10:8080/MTSVIBE/DynamicPage";
get-url ="http://127.0.0.1/";
#get-url="http://127.0.0.1/udh=%06%05%04%1D%4C%01%01";
file="/etc/kannel/check_rxdsms_smsc.log"
keyword = default
#keyword-regex = .*
catch-all = yes
max-messages = 100
concatenation=true
accept-x-kannel-headers = true
#group = sms-service
#keyword = default
#text = "No service specified"


group = modems
id = nokiaphone
name = "nokiaphone"
detect-string = "Android"
#detect-string = "Nokia Mobile Phone"
need-sleep = true
speed = 115200
#message-storage = sm
#init-string="AT+CNMI=2,3,0,1,0;+CMEE=1"
keepalive-cmd = "AT+CSQ"
#enable-mms = true


#include = "/usr/local/include/kannel/modems.conf"






RE: Not able to access wml pages from winwap through kannel

2011-07-12 Thread Rene Kluwen
Winwap says it accepts xhtml. So google tries to send that. But Kannel
doesn't know anything about xhtml, just wml.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of santhosh M S
Sent: Tuesday, 12 July, 2011 08:27
To: users@kannel.org
Subject: Not able to access wml pages from winwap through kannel

 

 

Hi All,

 

I have installed cygwin on my windows xp machine and compiled and
installed kannel. I was able to start bearerbox & wapbox successfully on the
same machine. Problem is I am trying to fetch wap.google.com from winwap
browser emulator through kannel but I could not access that page. 

 

While retrieving the URL:   http://wap.google.com

the following error occurred:

HTTP error 502:

Bad Gateway

 

I get the following msg on my window. I have set IP to the IP of my machine
and it  in gateway mode. Also my machine is in DNS. PFA wapbox log file.

 

Please can anyone help me out how to access wml pages from my winwap browser
through kannel.

 


Regards,

Santhosh M S.



RE: Not able to access wml pages from winwap through kannel

2011-07-12 Thread Rene Kluwen
I just tried www.google.com/m with another way browser (home brew) and
Kannel as a gateway.

It works, except for the pictures that are image/gif.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nikos Balkanas
Sent: Tuesday, 12 July, 2011 17:02
To: santhosh M S
Cc: users@kannel.org
Subject: Re: Not able to access wml pages from winwap through kannel

 

Winwap has the option of sending wap1.x traffic when using a gateway. You
can specify port & protocol there. Beware, you need to use 32bit XP, I
haven't been able to make it work under 64bit systems.

It is not supported very well any more. You can try downloading Nokia'a
NDBMS or get Openwave.

 

BR,

Nikos

 

On Tue, Jul 12, 2011 at 4:14 PM, Rene Kluwen  wrote:

Winwap says it accepts xhtml. So google tries to send that. But Kannel
doesn't know anything about xhtml, just wml.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of santhosh M S
Sent: Tuesday, 12 July, 2011 08:27
To: users@kannel.org
Subject: Not able to access wml pages from winwap through kannel

 

 

Hi All,

 

I have installed cygwin on my windows xp machine and compiled and
installed kannel. I was able to start bearerbox & wapbox successfully on the
same machine. Problem is I am trying to fetch wap.google.com from winwap
browser emulator through kannel but I could not access that page. 

 

While retrieving the URL: http://wap.google.com <http://wap.google.com/> 

the following error occurred:

HTTP error 502:

Bad Gateway

 

I get the following msg on my window. I have set IP to the IP of my machine
and it  in gateway mode. Also my machine is in DNS. PFA wapbox log file.

 

Please can anyone help me out how to access wml pages from my winwap browser
through kannel.

 


Regards,

Santhosh M S.

 



RE: DLR using a phone

2011-07-12 Thread Rene Kluwen
Am I wrong or is this another thread with a wrong subject?

Smsc = at doesn't generate deliver_sm's... it's an smpp thingy.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nikos Balkanas
Sent: Tuesday, 12 July, 2011 14:39
To: Alejandro Mejia Evertsz
Cc: us...@vm1.kannel.org
Subject: Re: DLR using a phone

Hi,

I didn't see your initial post that you are getting DLRs through the phone. 
There is another possibility:

1) DLR = 8 is not really a DLR from your SMSc. It is just an ACK which is 
converted to DLR by kannel.
2) Look for deliver_sm in your logs. Are you getting any? If not check with 
your SMSc. They understand DLRs.
3) Else check logs for any Warnings immediately after, "Couldn't match DLR 
or...". If that's the case, read UG about msg-id-type.

BR,
Nikos
- Original Message - 
From: "Alejandro Mejia Evertsz" 
To: "Michael van der Poel" 
Cc: 
Sent: Tuesday, July 12, 2011 8:38 AM
Subject: Re: DLR using a phone


> Hola Michael,
>
> Are you sending through smsbox or mysqlbox?
> I'm using smsbox, and the URL I'm calling to send the message looks like 
> this:
>
>
http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuername&password=mypassword&;
to=mymobile&text=Hello+world&dlr-mask=31&dlr-url=http://y.y.y.y/dlr.cgi?id=m
ysmsID%26status=%d
> Please note the last & (ampersand) is url-encoded, so the script from 
> which I'm calling this URL doesn't think this is another parameter, and 
> not part of "dlr-url". (let me know if I'm not being clear hehehe)
>
> This way the dlr will call:
> http://y.y.y.y/dlr.cgi?id=mysmsID&status=%d
>
> Are you using Apache to run your dlr.cgi script on y.y.y.y ?
> If so, you could check your apache logs to see wether you're getting the 
> request from kannel or not.
>
> Another thing I use to debug is running bearerbox and smsbox directly from

> the shell so I'm able to see what kannel is doing, because first of all, 
> you should check if the smsc is posting the dlr to kannel or not. (maybe I

> should have started by saying this hehehe)
>
> Let me know if I can be of any help.
>
> Buena suerte!
>
> Alejandro
>
> On 11/07/2011 10:49 p.m., Michael van der Poel wrote:
>> Hi Alejandro,
>>
>> Sorry, I hadn't seen Nikos's reply.
>> I can see the "deliver_sm" with all the information (the "full dlr") in 
>> the
>> logs but so far I can't manage to capture it into my MySQL table. Tan 
>> cerca
>> pero tan lejos! Soon I will crack it, though.
>>
>> Best of luck with your endeavours!
>>
>>
>> Michael
>>
>> On 12/7/11 04:26, "Alejandro Mejia Evertsz"  wrote:
>>
>>> Hi Michael,
>>>
>>> I had this already figured out by reading the UG and experimenting a
>>> little. (maybe more than a little hehehe)
>>> I'm getting the first dlr from the smsc and it's calling my dlr-url
>>> correctly (I made a perl .cgi that get's the parameters and store the
>>> new dlr status on mysql).
>>> So far, I guess we both got to the same place ;)
>>>
>>> My doubt was about the dlr-mask I was using (because I thought I wasn't
>>> requesting smsc the right thing for it to give me full dlrs).
>>> Nikos confirmed that I'm using the right mask, so now I have to strugle
>>> with my operator's smsc.
>>> I guess I'll try the other 2 operators smsc with other sims on the same
>>> phone to check if any of them provide with full dlrs.
>>>
>>> Thanks a lot for the time you took to explain me how dlr-url works.
>>>
>>> Cheers!
>>>
>>> Alejandro
>>>
>>> On 11/07/2011 05:01 p.m., Michael van der Poel wrote:
 Hi Alejandro,

 I wish, I could give you the full answer to your question, but I am
 struggling now for some weeks to recover the full DLR and store it in a
 MySQL database. I have learned some things in those weeks and I hope, I

 will
 finally accomplish it soon.

 What I have figured out so far, is:

 - you receive a first DLR (the "submit_sm_resp ") that serves as an
 acknowledgement from your provider (e.g., 8). This just means, that the
 provider has received your request to send the SMS;
 - it is the second DLR (the "deliver_sm" that you are looking for where

 the
 provider confirms whether the message was actually delivered (or 
 whether the
 attempts to deliver the message failed, the mobile number was 
 incorrect,
 ect.).

 This second message is delivered over HTTP and you will have to set up 
 a
 Call Back URL (something like:

http://yourserver.com/dlr.php?smscID=%i&dlr=%d&answer=%A&to=%p&from=%P&ts=%T
 &smsID=07fceb25372fcc4cb847c7099008500e&charset=%C&kannel_id=%I)

 This is called the dlr-url which you will have to define in your kannel
 configuration, and on your server you will need a php script, that your
 provider can call and submit the values of the delivery report to. 
 These
 will come in the form of parameters such as '%p' and '%u' (see pggs. 
 94-95
 of the UG).
 The php script capt

RE: DLR using a phone [" Could not route message to smsbox id <0>, smsbox is gone!²]

2011-07-12 Thread Rene Kluwen
Whilst inserting your message in sqlbox, use as boxc_id the smsbox-id of
your (real) smsbox.

Besides that, set up a group = smsbox-route to make sure your dlr’s are
going to the proper smsbox.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Michael van der Poel
Sent: Tuesday, 12 July, 2011 22:00
To: Alejandro Mejia Evertsz
Cc: users@kannel.org
Subject: Re: DLR using a phone [" Could not route message to smsbox id <0>,
smsbox is gone!²]

 

Hola Alejandro:

Thanks for your kind offer. A pair of fresh eyes is always good. You (or
someone else) may spot things that I am overlooking!

I am sending through sqlbox over SMPP and this is the dlr-url I am using:

 
http://*.*.*.*/cgi-bin/dlr.php?to%3D%25to%26msisdn%3D%25msisdn%26status%3D%2
5status%26messagId%3D1008928%26scts%3D%25scts

[My provider uses the parameters ‘to’, ‘msisdn’, ‘status’ and ‘scts’ for the
Call Back].

I checked the Apache log and everything is 200 OK. A week ago I started
trying using only bearerbox and sqlbox but I have returned to using the
smsbox, too. I keep getting the message “WARNING: Could not route message to
smsbox id <0>, smsbox is gone!” (see “LOG smpp-provider” below).
I can see the values from the “deliver_sm” in that same log:

“id:0038791787 su b:001 dlvrd:001
submit date:1107122104 done date:1107121853 
stat:DELIVRD err:000 text:none”

But why do I fail to store it? The dlr.php is a very simple one:

>>> dlr.php <<<



Please have a look at the information. Any suggestions most welcome!

Regards,


Michael

PD La neciedad puede ser una virtud. Ya tengo semanas trabajando en esto!



On 12/7/11 06:38, "Alejandro Mejia Evertsz"  wrote:

> Hola Michael,
> 
> Are you sending through smsbox or mysqlbox?
> I'm using smsbox, and the URL I'm calling to send the message looks like 
> this:
> 
> http://x.x.x.x:8080/cgi-bin/sendsms?username=mysuername
 &password=mypassword&to
>
=mymobile&text=Hello+world&dlr-mask=31&dlr-url=http://y.y.y.y/dlr.cgi?id=mys
ms
> ID%26status=%d
> Please note the last & (ampersand) is url-encoded, so the script from 
> which I'm calling this URL doesn't think this is another parameter, and 
> not part of "dlr-url". (let me know if I'm not being clear hehehe)
> 
> This way the dlr will call:
> http://y.y.y.y/dlr.cgi?id=mysmsID
 &status=%d
> 
> Are you using Apache to run your dlr.cgi script on y.y.y.y ?
> If so, you could check your apache logs to see wether you're getting the 
> request from kannel or not.
> 
> Another thing I use to debug is running bearerbox and smsbox directly 
> from the shell so I'm able to see what kannel is doing, because first of 
> all, you should check if the smsc is posting the dlr to kannel or not. 
> (maybe I should have started by saying this hehehe)
> 
> Let me know if I can be of any help.
> 
> Buena suerte!
> 
> Alejandro
> 
> On 11/07/2011 10:49 p.m., Michael van der Poel wrote:
>> Hi Alejandro,
>> 
>> Sorry, I hadn't seen Nikos's reply.
>> I can see the "deliver_sm" with all the information (the "full dlr") in
the
>> logs but so far I can't manage to capture it into my MySQL table. Tan
cerca
>> pero tan lejos! Soon I will crack it, though.
>> 
>> Best of luck with your endeavours!
>> 
>> 
>> Michael
>> 
>> On 12/7/11 04:26, "Alejandro Mejia Evertsz"  wrote:
>> 
>>> Hi Michael,
>>> 
>>> I had this already figured out by reading the UG and experimenting a
>>> little. (maybe more than a little hehehe)
>>> I'm getting the first dlr from the smsc and it's calling my dlr-url
>>> correctly (I made a perl .cgi that get's the parameters and store the
>>> new dlr status on mysql).
>>> So far, I guess we both got to the same place ;)
>>> 
>>> My doubt was about the dlr-mask I was using (because I thought I wasn't
>>> requesting smsc the right thing for it to give me full dlrs).
>>> Nikos confirmed that I'm using the right mask, so now I have to strugle
>>> with my operator's smsc.
>>> I guess I'll try the other 2 operators smsc with other sims on the same
>>> phone to check if any of them provide with full dlrs.
>>> 
>>> Thanks a lot for the time you took to explain me how dlr-url works.
>>> 
>>> Cheers!
>>> 
>>> Alejandro
>>> 
>>> On 11/07/2011 05:01 p.m., Michael van der Poel wrote:
 Hi Alejandro,
 
 I wish, I could give you the full answer to your question, but I am
 struggling now for some weeks to recover the full DLR and store it in a
 MySQL database. I have learned some things in those weeks and I hope, I

 will
 finally accomplish it soon.
 
 What I have figured out so far, is:
 
 - you receive a first DLR (the "submit_sm_resp ") that serves as an
 acknowledgement from your provider (e.g., 8). This just means, that the
 provider has received your request to send the SMS;
 - it is the second DLR (the "deliver_sm" that you are looking for where
the

RE: communication between two ESMEs using opensmppbox

2011-07-13 Thread Rene Kluwen
Use the "loopback" smsc.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Francisco Andrades Grassi
Sent: Wednesday, 13 July, 2011 09:59
To: users@kannel.org
Subject: communication between two ESMEs using opensmppbox

Hi,

I've just compiled Kannel and openSMPPbox and I'm trying to use it as an
SMSC simulator: two ESMEs connected to the opensmppbox routing traffic
between them:

ESME1 <> opensmppbox <> ESME2

I have the bearer box and the opensmppbox running, connected to each other.
When I launch my ESMEs I can see they connect successfully to the
opensmppbox, and when I send a message from ESME1 to the opensmppbox I can
see the message is received and is delegated to the bearerbox. But that's as
far as I can get, the bearerbox never sends the message back to the
opensmppbox for it to deliver it to the ESME2, and instead it keeps trying
to route the message indefinitely:

2011-07-13 02:37:42 [13217] [14] DEBUG: boxc_receiver: got boxc_id 
from <127.0.0.1>
2011-07-13 02:38:10 [13217] [8] DEBUG: boxc_receiver: sms received
2011-07-13 02:38:10 [13217] [8] DEBUG: send_msg: sending msg to boxc: 
2011-07-13 02:38:10 [13217] [7] DEBUG: sms_router: handling message
(0x9f64378 vs 0x9f64378)
2011-07-13 02:38:10 [13217] [7] DEBUG: Routing failed, re-queued.
2011-07-13 02:38:10 [13217] [7] DEBUG: sms_router: handling message
(0x9f64378 vs 0x9f64378)
2011-07-13 02:38:10 [13217] [7] DEBUG: Routing failed, re-queued.
2011-07-13 02:38:10 [13217] [7] DEBUG: sms_router: time to sleep 30.00 secs.

I've tried using a 'smsbox-route' on my cannel.conf file, but I either do
not know how to tell it to route back to opensmppbox or that's the wrong
way? I've also tried using a loopback HTTP GET to return the message to the
bearerbox, but although I can see the message being delivered via HTTP, it
won't get back to opensmppbox:

2011-07-13 02:52:34 [13294] [21] DEBUG: Connecting nonblocking to
<127.0.0.1>
2011-07-13 02:52:34 [13294] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2011-07-13 02:52:34 [13294] [2] DEBUG: HTTP: Created HTTPClient area
0x8f5fc80.
...
2011-07-13 02:52:34 [13294] [20] DEBUG:   len:  193
2011-07-13 02:52:34 [13294] [20] DEBUG:   size: 1024
2011-07-13 02:52:34 [13294] [20] DEBUG:   immutable: 0
2011-07-13 02:52:34 [13294] [20] DEBUG:   data: 47 45 54 20 2f 63 67 69 2d
62 69 6e 2f 73 65 6e   GET /cgi-bin/sen
2011-07-13 02:52:34 [13294] [20] DEBUG:   data: 64 73 6d 73 3f 75 73 65 72
6e 61 6d 65 3d 74 65   dsms?username=te
2011-07-13 02:52:34 [13294] [20] DEBUG:   data: 73 74 65 72 26 70 61 73 73
77 6f 72 64 3d 66 6f   ster&password=fo
2011-07-13 02:52:34 [13294] [20] DEBUG:   data: 6f 62 61 72 26 74 6f 3d 25
32 42 31 32 33 34 35   obar&to=%2B12345
.
2011-07-13 02:52:34 [13294] [20] DEBUG: Octet string dump ends.
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP[MT2MO]: Got request
`/cgi-bin/sendsms'
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP[MT2MO]: Received an HTTP request
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP[MT2MO]: Constructing new SMS
2011-07-13 02:52:34 [13294] [8] WARNING: smsbox_list empty!
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP[MT2MO]: Sending reply
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2011-07-13 02:52:34 [13294] [8] DEBUG: HTTP[MT2MO]: Destroying client
information
2011-07-13 02:52:34 [13294] [4] WARNING: smsbox_list empty!
2011-07-13 02:52:34 [13294] [4] WARNING: smsbox_list empty!
...

Is there a way to use Kannel/smppbox under these conditions? How can I use
opensmppbox to route messages between two ESMEs?

Thanks a lot.

opensmppbox log
==

2011-07-13 03:05:09 [13426] [2] DEBUG: SMPP[SMS]: Got PDU:
2011-07-13 03:05:09 [13426] [2] DEBUG: SMPP PDU 0x96637f8 dump:
2011-07-13 03:05:09 [13426] [2] DEBUG:   type_name: submit_sm
2011-07-13 03:05:09 [13426] [2] DEBUG:   command_id: 4 = 0x0004
2011-07-13 03:05:09 [13426] [2] DEBUG:   command_status: 0 = 0x
2011-07-13 03:05:09 [13426] [2] DEBUG:   sequence_number: 3 = 0x0003
2011-07-13 03:05:09 [13426] [2] DEBUG:   service_type: NULL
2011-07-13 03:05:09 [13426] [2] DEBUG:   source_addr_ton: 1 = 0x0001
2011-07-13 03:05:09 [13426] [2] DEBUG:   source_addr_npi: 1 = 0x0001
2011-07-13 03:05:09 [13426] [2] DEBUG:   source_addr: "1234567"
2011-07-13 03:05:09 [13426] [2] DEBUG:   dest_addr_ton: 1 = 0x0001
2011-07-13 03:05:09 [13426] [2] DEBUG:   dest_addr_npi: 1 = 0x0001
2011-07-13 03:05:09 [13426] [2] DEBUG:   destination_addr: "7654321"
2011-07-13 03:05:09 [13426] [2] DEBUG:   esm_class: 0 = 0x
2011-07-13 03:05:09 [13426] [2] DEBUG:   protocol_id: 0 = 0x
2011-07-13 03:05:09 [13426] [2] DEBUG:   priority_flag: 0 = 0x
2011-07-13 03:05:09 [13426] [2] DEBUG:   schedule_delivery_time: NULL
2011-07-13 03:05:09 [13426] [2] DEBUG:   validity_period: NULL
2011-07-13 03:05:09 [13426] [2] DEBUG:   registered_delivery: 0 = 0x
2011-07-13 03:05:09 [13426] [2] DEBUG:   replace_if_

RE: Regarding sms port on auto reply by sms service

2011-07-13 Thread Rene Kluwen
Like I said:

In your response headers, include X-Kannel-UDH in hex format.
Example: "X-Kannel-UDH: 0605041582".

When using php, include Header("X-Kannel-UDH: 0605041582");

== Rene



-Original Message-
From: Adil Mohd [mailto:adil.m...@gmail.com] 
Sent: Wednesday, 13 July, 2011 02:51
To: Rene Kluwen; users@kannel.org
Subject: Re: Regarding sms port on auto reply by sms service

I already have "accept-x-kannel-headers = true" set in my kannel.conf.
How can I specify UDH to be used with auto-reply to a service..

THanks,
Adil


On Tue, Jul 12, 2011 at 6:38 PM, Rene Kluwen  wrote:
> Use accept-x-kannel-headers = true and see:
>
>
http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN4
> 010 (X-Kannel-UDH).
>
> An alternative options is to not use the autoreply (max-messages = 0 and
> omit-empty = true) and then send the reply via the sendsms interface from
> within your service.
>
> == Rene
>
>
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Adil Mohd
> Sent: Tuesday, 12 July, 2011 14:44
> To: users@kannel.org
> Subject: Regarding sms port on auto reply by sms service
>
> Hi,
>
> I am trying to configure Kannel for my use. I have also configured a
> service.
> When ever I recieve an sms on my modem, my Http url configured under
> get-url executes and the
> results get smsed to the originating device.
>
> Now, my problem is that I need these smses on a particular rather than
> in Inbox of the device.
>
> I know I can set UDH in send-url. But I want this in the auto-reply to
> a service from kannel.
>
> THanks,
> Adil
>
> #-
> # CORE
> #
>
>
> group = core
> admin-port = 13000
> smsbox-port = 13003
> admin-password = bar
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> log-file = "/etc/kannel/check_sendsms_smsc.log"
> log-level = 0
> store-file="/etc/kannel/check_rxdsms_smsc.log"
>
> #-
> # SMSC CONNECTIONS
> #
> group = smsc
> smsc = at
> smsc-id = mysmscenter
> device=/dev/ttyS2
> #my-number = "918802345723"
> sms-center = "+919811009998"
> port = 1
> connect-allow-ip = 127.0.0.1
> #send-url="http://127.0.0.1:13001/cgi-bin/sendsms";
>
#send-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=ag
> ile&to=%p&text=%a"
>
send-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=agi
> le&to=%p&text=%a&udh=%06%05%04%1D%4C%03%02"
> #log-level = 0
> modemtype = nokiaphone
> #modemtype = auto
> sim-buffering = true
>
> #-
> # SMSBOX SETUP
> #
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13001
> global-sender = "+919811009998"
> #global-sender = "+919842201155"
>
#sendsms-url="http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password
> =agile&to=%p&text=%a&udh=%06%05%04%1D%4C%03%02"
> #log-level = 0
> log-file = "/etc/kannel/smsbox.log"
> log-level = 0
>
> #-
> # SEND-SMS USERS
> #
> group = sendsms-user
> username = agile
> password = agile
> default-smsc = mysmscenter
> concatenation= true
> max-messages = 100
>
#http://localhost:13003/cgi-bin/sendsms?username=agile&password=agile&to=880
> 2345723&text=Hello+world
>
>
> #-
> # SERVICES
> #
> group = sms-service
> #get-url="http://www.google.com";
> #get-url =
>
"http://127.0.0.1:13001/cgi-bin/sendsms?username=agile&password=agile&to=%p&;
> text=%a&udh=%06%05%04%1D%4C%03%02"
> #get-url ="http://122.176.73.10:8080/MTSVIBE/DynamicPage";
> get-url ="http://127.0.0.1/";
> #get-url="http://127.0.0.1/udh=%06%05%04%1D%4C%01%01";
> file="/etc/kannel/check_rxdsms_smsc.log"
> keyword = default
> #keyword-regex = .*
> catch-all = yes
> max-messages = 100
> concatenation=true
> accept-x-kannel-headers = true
> #group = sms-service
> #keyword = default
> #text = "No service specified"
>
>
> group = modems
> id = nokiaphone
> name = "nokiaphone"
> detect-string = "Android"
> #detect-string = "Nokia Mobile Phone"
> need-sleep = true
> speed = 115200
> #message-storage = sm
> #init-string="AT+CNMI=2,3,0,1,0;+CMEE=1"
> keepalive-cmd = "AT+CSQ"
> #enable-mms = true
>
>
> #include = "/usr/local/include/kannel/modems.conf"
>
>
>
>






RE: Regarding opensmmbox problem;

2011-07-13 Thread Rene Kluwen
Please don't crosspost among the devel and users mailinglist.

In group = core, there's no smsbox-port.
The bearerbox-port in group = opensmppbox should match that value.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Wednesday, 13 July, 2011 03:22
To: users@kannel.org
Cc: de...@kannel.org
Subject: Fwd: Regarding opensmmbox problem;

Good morning to all,

We are configuering the kannel server so first of all we configuer the
sms gateway application  through it we are able to send the
messages, after it we enable the mysql for dlr storage.
now sms gateway application is completed so we are going to confgiuer
the SQLBox.
so we are able to store for dlr storage in mysql through sqlbox.

and finally we want to configuer the Opensmppbox,
we are configuer the opensmppbox and not only configuer also bind the
client but client can't able to send the messages, so problem is that
what we do next,
due to this client easily send the messages.
after configuer the Opensmppbox we reboot the server.and doing following
step..
1. (when we execute the bearerbox we hidden the opensmpp.conf in
kannel.conf file)
means in kannel.conf  #include = opensmppbox.conf
run the bearerbox   ./bearerbox
2. ./opensmppbox (before execute this command we remove the # in
kannel.conf in front of opensmppbox.conf)

here is problem in my arcitecture the offcourse you write me.
so now client is bind with opensmppbox.conf but can't able to send
message. my all file are look like as

kannel.conf

group = core
admin-port = 13000
admin-password = 123
status-password = 123
dlr-storage = mysql
smsbox-port = 13003
storage-type = file
storage-file = /knl_store
log-level = 4
access-log = /var/log/bearerbox1.access
log-file = /var/log/bearerbox1.log
unified-prefix = "+91;+,91"

include = "kannelserver.conf"
inculde = "opensmppbox.conf"

group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
log-level = 4
access-log = /var/log/smsbox1.access
log-file = /var/log/smsbox1.log


group = smsbox-route
smsbox-id = sqlbox
smsc-id = "KannelServer"


group = sendsms-user
username = 123india
password = 123city

# DLR Setup
group = mysql-connection
id = mydlr
host = localhost
username = root
password = redhat
database = sms_dlr
max-connections = 1

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


 # SMSC kannelserver.conf

group = smsc
smsc = smpp
smsc-id = kannelserve
host = "27.127.56.242"
port = "4252"
#transceiver-mode = true
smsc-username = acubeS1
smsc-password = acubeS1
system-type = "smpp"
address-range = ""
reconnect-delay = 2
alt-charset=1
reconnect-delay = 10
source-addr-ton = 1
throughput = 40
allowed-smsc-id = "kannelserver"
dest-addr-ton = 1
enquire-link-interval = 30
alt-charset = "ASCII;windows-1252"
alt-charset = "ISO-8859-1"
alt-charset = "ASCII"
alt-addr-charset = "GSM"

SQLBox Server Configuration
--


group = sqlbox
id = mydlr
smsbox-id = sqlbox
bearerbox-host = localhost
bearerbox-port = 13003
smsbox-port = 13005
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/var/log/sqlbox1.log"
log-level = 4

group = mysql-connection
id = mydlr
host = localhost
username = root
password = redhat
database = SQLBOX
max-connections = 10

group = sdb-connection
id = mydlr
url = mysql:host=localhost:db=SQLBOX:uid=root:pwd=root

OpenSMPPBox Configuration
--
# opensmppbox.conf

group = core
dlr-storage = mysql

group = opensmppbox
opensmppbox-id = OpenSMPPBox1
opensmppbox-port = 13001
bearerbox-host = 127.0.0.1
bearerbox-port = 13003
log-level = 4
log-file = "/var/log/opensmppbox.log"
our-system-id = OpenSMPPBox
route-to-smsc = kannelserver
# see sample smpplogins.txt
smpp-logins =
"/usr/local/gateway/trunk/addons/opensmppbox/example/smpplogins.txt.example"

# the following is just standard dlr configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = redhat
database = SMPPBOX
#max-connections = 1

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

In this configuration if you see any type of error then please write me and
this is the client smsc file of opensmppbox

group = smsc
smsc = smpp
smsc-id = Normal.conf
host = 184.148.68.143
port = "13001"
smsc-username = demo
smsc-password = demo
system-type = "smpp"
reconnect-delay = 2
alt-charset=1
transceiver-mode = true
allowed-smsc-id = "Normal"
alt-charset = "ASCII;windows-1252"
alt-charset = "ISO-8859-1"
alt-charset = "ASCII"
alt-addr-charset = "GSM"

please help meI am new in kannel 

RE: HUAWEI E 1550 Modem getting disconnected

2011-07-13 Thread Rene Kluwen
You are wrong.

Messages are always sent using AT+CMGS.

Sim buffering is just for incoming messages.

Afaik Kannel doesn’t issue AT+CMGW.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Alejandro Mejia Evertsz
Sent: Wednesday, 13 July, 2011 18:47
To: users@kannel.org
Subject: Re: HUAWEI E 1550 Modem getting disconnected

 

Does sim buffering cause messages to be stored on sim before being sent?
If this is the case, you should disable it, so messages are sent using
AT+CMGS straight, instead of using AT+CMGW and then send it.

Just using my logic, as I'm not an expert.
Someone else correct me if I'm wrong hehehe.

On 13/07/2011 08:37 a.m., Jalal Uddin wrote: 

Hello Thank you for reply.

I am trying lot of things to get out of this issue. interesting thing is i
don't see this issue reported that much, just feels like i am not only one. 

my current throughput is 5, and tomorrow i am going to set it even lower,
something like 0.1 to see if my USB stick modem is too weak for sending 1000
or not.

i am using memory storage =  SM i tried ME as well, but both causes the
issue. DLR is stored in MySql. i am not sure what you mean by using same
memorey for MT and MO, i found that in Kannel, only drl storage and
message-storage is the two options. is there any other storage choices?

Sim buffering is set to true, but i tried with false as well i think, but i
am not sure about this. What do you think is the right option for such USB
stick GSM modem?

Modem connectivity is OK, because we have passed that stage already, our SMS
sending, delivery report receving is working cool just when we try to send
above 500 SMS at a single shot then it fails. can you give me some idea how
can i avoid too many stored message problem. because i am not sure whether i
have any option to avoid such thing.

Thank you

On Wed, Jul 13, 2011 at 7:42 PM, Alvaro Cornejo 
wrote:

Hi hard to say what the problem is but

_) Verify that your modem is not storing messages in its internal buffer
_) Your modem migh freeze because of too many stored messages
_) If you decrease the throughput thoughput=10, still having the same
problem?
_) Check with minicom or other terminal sw of you can connect to the
modem and verify memory status.
_) Some modems use the same memory allocations for MT & MO... might
you have MO stored in your modem?
_) Set logs to debug to see if you get more info

Hope helps




|---
--|
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




On Wed, Jul 13, 2011 at 7:39 AM, Jalal Uddin  wrote:
> Hello everyone,
>
> I need some urgent help. I am using HUAWEI E 1550 Modem for SMS sending.
> When i am sending (200-250) SMS then it is working just fine, but when i
am
> sending over 500 SMS, an error comes in,
>
> CMS ERROR: Unknown error. -> maybe Sim storage is full? I'll have a look
at
> it. (500)
>
> after that kannel tries to again initialize the modem and fails to connect
> it.
>
> some more errors like - "Coundn't connect" or "Wrong or no answer to ATZ"
> comes in.
>
>
> from the actions it feels like kannel bearerbox tries to rebind the modem
> again, but it can't. Then i shutdown the
> bearerbox and try to restart it, still it can't open the the modem in the
> same USB port now. i disconnected the modem and unplugged
>
> it and plugged it in the same port, and still the bearerbox can't connect
to
> the device. I see that AT commands are not going through anymore, just
like
> when i try to bind the modem in wrong
> USB port.
>
> may be plugging the modem in another USB port works, but what i need to
know
> is what can be the possible reason for kannel lossing connection
>
> with the modems when more than 500 SMS is sent with throughput = 5 (in
case
> that is important)
>
> btw , i am using either Ubuntu server 10 or Ubuntu 10.10.
>
> Does anyone faced such problem, can anyone suggest me a solution to this
> problem? Please help me on this, because i am wasting lot of money trying
to
> test 1000 SMS deliver
>
> and i am suffering from this problem for more than 3 months now. Please
> help.
>
> Thank you
>
>
>
>

 

 



RE: Group 'sqlbox' is no valid group identifier.

2011-07-14 Thread Rene Kluwen
You're trying to start smsbox with an sqlbox config.

People told you this before.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amrit Pal Pathak
Sent: Thursday, 14 July, 2011 08:35
To: users@kannel.org
Subject: Group 'sqlbox' is no valid group identifier.

 

Hey

When i start the sqlbox using "sudo sqlbox -v 1
kannel/sqlbox.conf" it gives the  error message :

  

   2011-07-14 12:02:22 [7508] [0] INFO: Debug_lvl = 1, log_file = ,
log_lvl = 0

2011-07-14 12:02:22 [7508] [0] ERROR: Group 'sqlbox' is no valid group
identifier.

2011-07-14 12:02:22 [7508] [0] ERROR: Error found on line 17 of file
`kannel/sqlbox.conf'.

2011-07-14 12:02:22 [7508] [0] PANIC: Couldn't read configuration from
`kannel/sqlbox.conf'.

2011-07-14 12:02:22 [7508] [0] PANIC: smsbox(gw_panic+0xcd) [0x80895cd]

2011-07-14 12:02:22 [7508] [0] PANIC: smsbox(main+0x1338) [0x8054d38]

2011-07-14 12:02:22 [7508] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x379bd6]

2011-07-14 12:02:22 [7508] [0] PANIC: smsbox() [0x8053251]

 

 

Sqlbox.conf file looks: 

 

 group = sqlbox

id = sqlbox-db

smsbox-id = mysmsc

global-sender = "+919417212503"

bearerbox-host = localhost 

bearerbox-port = 13016

smsbox-port = 13017

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = "/var/log/kannel/kannel-sqlbox.log"

log-level = 0

#ssl-client-certkey-file = ""

#ssl-server-cert-file = ""

#ssl-server-key-file = ""

#ssl-trusted-ca-file = ""

 

# Database connection examples. Please uncomment as needed

 

# Example MYSQL Connection

group = mysql-connection

id = sqlbox-db

host = localhost

username = root

password = GndeC

database = kannel

 

 

 

Please somebody help.

I will be greatful to him/her.

 

Thanks in advance 

 

amritpalpathak.blogspot.com 



RE: push MO messages to smppbox

2011-07-14 Thread Rene Kluwen
You cannot send messages from an smsc to opensmppbox. Only esme's can
connect. And if they are not compatible, you have to patch the sources or
otherwise you are out of luck.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nick Timofeev
Sent: Thursday, 14 July, 2011 18:27
To: users@kannel.org
Subject: push MO messages to smppbox

 

Hi Guys,

 

I have SMS gateway connected to multiple SMSC and I am using kannel for SMPP
compatible SMSC but few of them aren't compatible 

so I am using the different "hand made" transports to send/receive message

 

now I have to attach SMPP client to my gateway 

I have googled open smppbox project but got a question:

 

How to push messages received from not SMPP compatible SMSC to open smppbox
?



RE: Regarding Opensmmpbox;

2011-07-14 Thread Rene Kluwen
The short answer: In the open source version of Kannel there's no such thing
as managing accounts and credits.
You are out of luck.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Thursday, 14 July, 2011 19:06
To: users@kannel.org
Subject: Regarding Opensmmpbox;

Hello to all,
I humbly thanks to all user's in mailing list for guidance and
help,fianlly I am are able to send the message from the smppclient.
but
now how to manage the account and credits of smppclient. so  please
guide me what to do next?


Thanks

-- 
Vijay Kr. Dadhich






RE: push MO messages to smppbox

2011-07-14 Thread Rene Kluwen
Yes, MO messages can be forwarded to an SMPP client. But that wouldn't be an
smsc, in that case.

 

 

 

From: Nick Timofeev [mailto:nick.timof...@gmail.com] 
Sent: Thursday, 14 July, 2011 21:04
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: push MO messages to smppbox

 

Hello,

 

so MO messages can't be forwarded to SMPP client which connected to smppbox 

am I right ?

sorry for the stupid questions

 

On Thu, Jul 14, 2011 at 9:46 PM, Rene Kluwen  wrote:

You cannot send messages from an smsc to opensmppbox. Only esme's can
connect. And if they are not compatible, you have to patch the sources or
otherwise you are out of luck.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nick Timofeev
Sent: Thursday, 14 July, 2011 18:27
To: users@kannel.org
Subject: push MO messages to smppbox

 

Hi Guys,

 

I have SMS gateway connected to multiple SMSC and I am using kannel for SMPP
compatible SMSC but few of them aren't compatible 

so I am using the different "hand made" transports to send/receive message

 

now I have to attach SMPP client to my gateway 

I have googled open smppbox project but got a question:

 

How to push messages received from not SMPP compatible SMSC to open smppbox
?

 



RE: push MO messages to smppbox

2011-07-14 Thread Rene Kluwen
Sure, look at group = smsbox-route in the documentation.

 

== Rene

 

From: Nick Timofeev [mailto:nick.timof...@gmail.com] 
Sent: Thursday, 14 July, 2011 21:41
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: push MO messages to smppbox

 

Hello Rene,

 

Thanks very much for your help

 

If I receive MO SMS from SMSC by some XML SOAP API

and should forward this SMS to the 3rd party SMPP client which connected to
smppbox on my server

is there any way to do it ?

 

 

On Thu, Jul 14, 2011 at 10:10 PM, Rene Kluwen  wrote:

Yes, MO messages can be forwarded to an SMPP client. But that wouldn't be an
smsc, in that case.

 

 

 

From: Nick Timofeev [mailto:nick.timof...@gmail.com] 
Sent: Thursday, 14 July, 2011 21:04
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: push MO messages to smppbox

 

Hello,

 

so MO messages can't be forwarded to SMPP client which connected to smppbox 

am I right ?

sorry for the stupid questions

 

On Thu, Jul 14, 2011 at 9:46 PM, Rene Kluwen  wrote:

You cannot send messages from an smsc to opensmppbox. Only esme's can
connect. And if they are not compatible, you have to patch the sources or
otherwise you are out of luck.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nick Timofeev
Sent: Thursday, 14 July, 2011 18:27
To: users@kannel.org
Subject: push MO messages to smppbox

 

Hi Guys,

 

I have SMS gateway connected to multiple SMSC and I am using kannel for SMPP
compatible SMSC but few of them aren't compatible 

so I am using the different "hand made" transports to send/receive message

 

now I have to attach SMPP client to my gateway 

I have googled open smppbox project but got a question:

 

How to push messages received from not SMPP compatible SMSC to open smppbox
?

 

 



RE: Regarding Opensmmpbox;

2011-07-15 Thread Rene Kluwen
Contact Stipe Tolj on s...@tolj.org.

== Rene

-Original Message-
From: Vijay kumar Dadhich [mailto:vk1dadh...@gmail.com] 
Sent: Friday, 15 July, 2011 06:19
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: Regarding Opensmmpbox;

Hello Sir,
Is there any licence version available for the same.

On Fri, Jul 15, 2011 at 12:17 AM, Rene Kluwen  wrote:
> The short answer: In the open source version of Kannel there's no such
thing
> as managing accounts and credits.
> You are out of luck.
>
> == Rene
>
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Vijay kumar Dadhich
> Sent: Thursday, 14 July, 2011 19:06
> To: users@kannel.org
> Subject: Regarding Opensmmpbox;
>
> Hello to all,
> I humbly thanks to all user's in mailing list for guidance and
> help,fianlly I am are able to send the message from the smppclient.
> but
> now how to manage the account and credits of smppclient. so  please
> guide me what to do next?
>
>
> Thanks
>
> --
> Vijay Kr. Dadhich
>
>
>
>



-- 
Vijay Kr. Dadhich






RE: Regarding sqlbox;

2011-07-31 Thread Rene Kluwen
The error is self-explanatory.

Try ./configure --with-kannel-dir=/path/to/your/installed/kannel

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Thursday, 28 July, 2011 18:53
To: users@kannel.org
Cc: K.V.Shiva Kumar
Subject: Regarding sqlbox;

Hello to all,
I am configure the kannel with mysql storage and able to send
messages, Now  i want to configure the sqlbox,but when i am configure
then facing this problem,

[root@static-182-18-145-29 trunk]#cd /usr/local/gateway/sqlbox/trunk
[root@static-182-18-145-29 trunk]# ./configure
.
.
.
Configuring Kannel and DB dependancies ...
checking for Ct-Lib support... no
checking for FreeTDS Ct-Lib support... no
checking for gw-config... /usr/local/sbin/gw-config
checking Kannel version... svn-r4913
checking Kannel libs... -L/usr/local/lib/kannel -lgw -lwap -lgwlib
-lssl -lrt -lresolv -lnsl -lm  -lpthread -L/usr/lib -lxml2 -lz -lm
-L/usr/lib -lcrypto -lssl
checking Kannel includes... -I/usr/local/include/kannel -Wall -g
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/openssl
checking for cfg_create in -lgwlib... no
configure: error: Kannel gwlib is required!
[root@static-182-18-145-29 trunk]#

and my svn form contain these things..
[root@static-182-18-145-29 trunk]# ll
total 960
-rw-r--r-- 1 root root   5601 Jul 29 06:05 acinclude.m4
-rw-r--r-- 1 root root 339673 Jul 29 06:05 aclocal.m4
-rw-r--r-- 1 root root203 Jul 29 06:05 AUTHORS
drwxr-xr-x 3 root root   4096 Jul 24 23:11 autotools
-rwxr-xr-x 1 root root   1853 Jul 29 06:05 bootstrap
-rw-r--r-- 1 root root   5183 Jul 29 06:05 ChangeLog
-rw-r--r-- 1 root root  32276 Jul 29 06:08 config.log
-rwxr-xr-x 1 root root 58 Jul 29 06:08 config.nice
-rwxr-xr-x 1 root root 464241 Jul 29 06:05 configure
-rw-r--r-- 1 root root  19376 Jul 29 06:05 configure.in
-rw-r--r-- 1 root root130 Jul 29 06:05 COPYING
drwxr-xr-x 3 root root   4096 Jul 24 23:11 doc
drwxr-xr-x 3 root root   4096 Jul 24 23:11 example
drwxr-xr-x 3 root root   4096 Jul 24 23:11 gw
-rw-r--r-- 1 root root   8033 Jul 29 06:05 INSTALL
-rw-r--r-- 1 root root   2699 Jul 29 06:05 KannelLICENSE
-rw-r--r-- 1 root root   2860 Jul 29 06:05 Makefile.am
-rw-r--r-- 1 root root  25917 Jul 29 06:05 Makefile.in
-rw-r--r-- 1 root root 85 Jul 29 06:05 NEWS
-rw-r--r-- 1 root root   1229 Jul 29 06:05 README
drwxr-xr-x 3 root root   4096 Jul 24 23:11 rpm
-rw-r--r-- 1 root root   3513 Jul 29 06:05 sb-config.h.in
-rw-r--r-- 1 root root570 Jul 29 06:05 UPGRADE
[root@static-182-18-145-29 trunk]#


so please help me,what i do?,,, i need the help..




-- 
Vijay Kr. Dadhich






RE: SIM Buffering

2011-07-31 Thread Rene Kluwen
You have 2 options:

 

1.   Set sim-buffering to false

2.   Change the AT+CNMI setting so messages don't come in directly.

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Shiv Narayan
Sent: Tuesday, 26 July, 2011 10:59
To: Willy Mularto
Cc: users@kannel.org
Subject: Re: SIM Buffering

 

Please see the following is my configuration file:

group = core
admin-port = 13000
smsbox-port = 13001
log-file = "/log/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
access-log = "/log/access.log"

group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB0
speed = 9600
pin = 2345
sim-buffering=true
include = "/gw/modems.conf"

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
log-file = "/log/smsbox.log"
log-level = 0
access-log = "/log/smsboxaccess.log"

Modems configuration:
group = modems
id = generic
name = "Generic Modem"

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"

Many thanks for your help.

Regards,
Shiv

 

  _  

From: Willy Mularto 
To: Shiv Narayan 
Cc: users@kannel.org
Sent: Tue, July 26, 2011 3:11:37 AM
Subject: Re: SIM Buffering

It will be helpful if you share us your configuration file.

 

 

 

On Jul 25, 2011, at 5:38 PM, Shiv Narayan wrote:





I am using a modem with Kannel for SMS services and have set SIM-buffering
to true.  However every time an SMS is received Kannel services it twice,
once when SMS received and a second time when reading it from the SIM
memory.

Has anyone experienced this problem and could advise?

Thanks in advance

Regards,
Shiv

 

 

 

Willy Mularto

F300HD+MR18DE (NLC1725)

 

 

 

 





 



RE: Script for getting Invalid Source address

2011-08-02 Thread Rene Kluwen
Like Alvaro said: Kannel can send you a notification of not being able to
send sms when you configure dlr’s.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of krnrd b
Sent: Monday, 25 July, 2011 21:53
To: Alvaro Cornejo
Cc: users
Subject: Re: Script for getting Invalid Source address

 

Dear Alvaro Cornejo,

Please note i am not using mysql store or any thing i just enabled
bearberbox logs.

I am able to see there is failed numbers @ kannel status page. Please let me
know is there is any way to find failed sender ID's and failed numbers by
group or by group of the day.

If not why this is not enabled when this is enabled @ kannel status pages
why not there is no alternatives ways is there is any alternatives.

Please take it as suggestion and help me out.

Regards,
KRNRDB

On Mon, Jul 25, 2011 at 7:06 PM, Alvaro Cornejo 
wrote:

You should validate that within your application.

Kannel can not do that. At most will send you back a failed dlr IF
your provider does that check AND send you that dlr.

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




On Mon, Jul 25, 2011 at 2:56 AM, krnrd b  wrote:
> Dear All,
>
> Please help me to get Invalid Source address from kannel logs using
> automated script or please suggest me to get failed numbers and failed
> sender id's from kannel logs.
>
> Regards,
> KRNRDB
>

 



RE: Group does not contain variable 'group'.

2011-08-02 Thread Rene Kluwen
Delete the empty line in your first group = smsc.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amrit Pal Pathak
Sent: Monday, 25 July, 2011 09:29
To: users@kannel.org
Subject: Group does not contain variable 'group'.

 

when i start bearerbox it gives the following error.

2011-07-25 12:56:05 [29476] [0] INFO: Debug_lvl = 1, log_file = ,
log_lvl = 0
2011-07-25 12:56:05 [29476] [0] ERROR: Group does not contain variable
'group'.
2011-07-25 12:56:05 [29476] [0] ERROR: Error found on line 43 of file
`kannel/kannel.conf'.
2011-07-25 12:56:05 [29476] [0] PANIC: Couldn't read configuration from
`kannel/kannel.conf'.
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d088d]
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox(main+0xdc8) [0x80543b8]
2011-07-25 12:56:05 [29476] [0] PANIC:
/lib/libc.so.6(__libc_start_main+0xe7) [0x9d7ce7]
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox() [0x80528b1]


kannel.conf file looks like:


#Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13015
admin-password = hard2guess
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
dlr-storage = internal
smsbox-port = 13016
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 0

#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc-id = Nokia 5800 XpressMusic
smsc = at
modemtype = auto
device= /dev/ttyUSB1

my-number = +919855225007
connect-allow-ip = 127.0.0.1
sim-buffering = true
log-level = 0
#log-file = "/var/log/kannel/smsc.log"
# DLR with MySQL support configuration
#group = mysql-connection
#id = mydlr
#host = localhost
#username = root
#password = GndeC
#database = adbook

#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

group = modems
id = auto
name = "Nokia"
detect-string = "Nokia"
init-string = "ATZ"
#init-string = "AT+CMEE=1"
#init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1"   
#message-storage = SM
message-start = 0
#speed = 460800
#message-start = 0

group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
#bearerbox-port = 13018
sendsms-port = 13018
global-sender = +919855225007
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
mo-recode = true

group = smsbox-route
smsbox-id = mysmsc
smsc-id = Nokia 5800 XpressMusic

group = sendsms-user
username = gndec
password = hard2guess
concatenation= true
max-messages = 1

group = sms-service
keyword-regex = .*
text = "Thanks for sending SMS"
catch-all = true
accepted-smsc = Nokia 5800 XpressMusic
max-messages = 3
#get-url = "http://202.164.53.116/~harbhag/test.php?phone=%p
 &text=%r"


Please somebody help 
Thank you

amritpalpathak.blogspot.comm



RE: MOs being dropped when they get to my application

2011-08-08 Thread Rene Kluwen
In principle the following setup is possible:

bb --- 1st_sqlbox --- 2nd_sqlbox --- smsbox --- application

I've seen a similar scenario where sms's were dropped. It had to do with too
many incoming messages (or in my case: dlrs). Smsbox couldn't establish that
many http connections at the same time (or: apache didn't accept them all).
The request in question isn't being retried, which results in loss of the
message.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of digiTonik
Sent: Monday, 08 August, 2011 11:04
To: users@kannel.org
Subject: MOs being dropped when they get to my application


I have the following set up
 bb --- sqlbox  smsbox  [my app (apache)]

There has been a huge discrepancy between the number of MOs in sqlbox and
the ones in my app. Sqlbox contains more MOs than my application. I read the
user's guide and i figured the cause was when the sms was forwarding the
message to my application. So I added file-store options to core group
configuration. I was hoping that would solve my problem but it has not.

If the issue can not be fixed by changing my configurations is it possible
to have a duplicate of sqlbox where i can use it as a queue and delete
messages as i process them? 

This is my setup
I am running svn repository version: svn-r4913

kannel.conf
=
#Core group
group = core
admin-allow-ip = 172.17.4.2
admin-port = 13000
admin-password = bar
smsbox-port = 13002
dlr-storage = mysql
log-file = "/usr/local/sbin/bb.log"
log-level = 1
store-type = file
store-location = "/usr/local/sbin/kannel.store"

#smsc connection
group = smsc
smsc-id = "SMSC"
log-file = "/usr/local/sbin/smsc.log"
log-level = 0
smsc = smpp
host = xxx.xxx.xx.xx
port = 
transceiver-mode = true
smsc-username = xxx
smsc-password = xx
system-type = "VMA"
msg-id-type = 0x01


#smsbox
group = smsbox 
bearerbox-host = 172.17.4.2
bearerbox-port = 13005
sendsms-port = 13013
log-file = "/usr/local/sbin/smsbox.log"
log-level = 0 


#sendsms
group = sendsms-user
username = 
password = 
dlr-url =
http%3A%2F%2Flocalhost%2Fdispatch%2Fdelivery_status%3Fbulkmt_id%3D3%26status
%3D%25d


group = sms-service
keyword = default
post-url =
"http://172.17.4.2:3010/parser/parse_request?query=%a&number=%p×tamp=%t
&shortcode=%P"
max-messages = 0
concatenation = true



#Delivery report
group = mysql-connection
id = delivery_report_table
host = 127.0.0.1
username = 
password = 
database = kanneldlr
max-connections = 1

group = dlr-db
id = delivery_report_table
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 = boxid

sqlbox.conf
===
group = mysql-connection
id = sqlbox-db
host = 127.0.0.1
port = 3306
username = 
password = 
database = ksqlbox
max-connections = 1

#sqlbox
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = 172.17.4.2
bearerbox-port = 13002
smsbox-port = 13005
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/usr/local/sbin/sqlbox.log"
log-level = 0


-- 
View this message in context:
http://old.nabble.com/MOs-being-dropped-when-they-get-to-my-application-tp32
216483p32216483.html
Sent from the Kannel - User mailing list archive at Nabble.com.







RE: MOs being dropped when they get to my application

2011-08-08 Thread Rene Kluwen
Spawning more smsboxes will probably make things worse, instead of better.
But there's alternatives that you have. Check the userguide for
http-request-retry and related configuration options.

Setting up a cascaded sqlbox requires no code changes.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of digiTonik
Sent: Monday, 08 August, 2011 15:43
To: users@kannel.org
Subject: RE: MOs being dropped when they get to my application


I will do more investigation on the apache side of the application.

Will spawning more smsboxes alleviate my problem? I am currently running one
smsbox.

The set up of two use two sql boxes require any source code changes? Ideally
I would like to avoid this.


Rene Kluwen wrote:
> 
> In principle the following setup is possible:
> 
> bb --- 1st_sqlbox --- 2nd_sqlbox --- smsbox --- application
> 
> I've seen a similar scenario where sms's were dropped. It had to do with
> too
> many incoming messages (or in my case: dlrs). Smsbox couldn't establish
> that
> many http connections at the same time (or: apache didn't accept them
> all).
> The request in question isn't being retried, which results in loss of the
> message.
> 
> == Rene
> 
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of digiTonik
> Sent: Monday, 08 August, 2011 11:04
> To: users@kannel.org
> Subject: MOs being dropped when they get to my application
> 
> 
> I have the following set up
>  bb --- sqlbox  smsbox  [my app (apache)]
> 
> There has been a huge discrepancy between the number of MOs in sqlbox and
> the ones in my app. Sqlbox contains more MOs than my application. I read
> the
> user's guide and i figured the cause was when the sms was forwarding the
> message to my application. So I added file-store options to core group
> configuration. I was hoping that would solve my problem but it has not.
> 
> If the issue can not be fixed by changing my configurations is it possible
> to have a duplicate of sqlbox where i can use it as a queue and delete
> messages as i process them? 
> 
> This is my setup
> I am running svn repository version: svn-r4913
> 
> kannel.conf
> =
> #Core group
> group = core
> admin-allow-ip = 172.17.4.2
> admin-port = 13000
> admin-password = bar
> smsbox-port = 13002
> dlr-storage = mysql
> log-file = "/usr/local/sbin/bb.log"
> log-level = 1
> store-type = file
> store-location = "/usr/local/sbin/kannel.store"
> 
> #smsc connection
> group = smsc
> smsc-id = "SMSC"
> log-file = "/usr/local/sbin/smsc.log"
> log-level = 0
> smsc = smpp
> host = xxx.xxx.xx.xx
> port = 
> transceiver-mode = true
> smsc-username = xxx
> smsc-password = xx
> system-type = "VMA"
> msg-id-type = 0x01
> 
> 
> #smsbox
> group = smsbox 
> bearerbox-host = 172.17.4.2
> bearerbox-port = 13005
> sendsms-port = 13013
> log-file = "/usr/local/sbin/smsbox.log"
> log-level = 0 
> 
> 
> #sendsms
> group = sendsms-user
> username = 
> password = 
> dlr-url =
>
http%3A%2F%2Flocalhost%2Fdispatch%2Fdelivery_status%3Fbulkmt_id%3D3%26status
> %3D%25d
> 
> 
> group = sms-service
> keyword = default
> post-url =
>
"http://172.17.4.2:3010/parser/parse_request?query=%a&number=%p×tamp=%t
> &shortcode=%P"
> max-messages = 0
> concatenation = true
> 
> 
> 
> #Delivery report
> group = mysql-connection
> id = delivery_report_table
> host = 127.0.0.1
> username = 
> password = 
> database = kanneldlr
> max-connections = 1
> 
> group = dlr-db
> id = delivery_report_table
> 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 = boxid
> 
> sqlbox.conf
> ===
> group = mysql-connection
> id = sqlbox-db
> host = 127.0.0.1
> port = 3306
> username = 
> password = 
> database = ksqlbox
> max-connections = 1
> 
> #sqlbox
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> bearerbox-host = 172.17.4.2
> bearerbox-port = 13002
> smsbox-port = 13005
> sql-log-table = sent_sms
> sql-insert-table = send_sms
> log-file = "/usr/local/sbin/sqlbox.log"
> log-level = 0
> 
> 
> -- 
> View this message in context:
>
http://old.nabble.com/MOs-being-dropped-when-they-get-to-my-application-tp32
> 216483p32216483.html
> Sent from the Kannel - User mailing list archive at Nabble.com.
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context:
http://old.nabble.com/MOs-being-dropped-when-they-get-to-my-application-tp32
216483p32218544.html
Sent from the Kannel - User mailing list archive at Nabble.com.







RE: how to work witn shortcode

2011-08-08 Thread Rene Kluwen
Try the option allowed-prefix in group = sms-service.
See the user manual.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vida Luz Arista
Sent: Monday, 08 August, 2011 18:38
To: users@kannel.org
Subject: Fwd: how to work witn shortcode

 

Hello everyone

Currently I have a SMS with Kannel gateway, is connected to a phone, I have
a short assigned two numbers, depending on the message that comes is
reallizara response, everything works fine, but the problem is that the next
mensae short number one and always responds short of the numbers and I guess
it's because global-sender is one of the numbers asginado short.

as I can make dynamic response and that sent in short number depdnidencia of
shipping, I send the configuration of Kannel.

Would appreciate your suggestions


## The core Group
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
log-file = "/var/log/kannel/bearerbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
#log-file = "/tmp/kannel.log"
log-level = 1
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

## Setting SMPP
group = smsc
smsc = smpp
host = x.x.x.x
port = 5022
smsc-id = "x"
#allowed-smsc-id = x"
##system-type = "transceiver"
system-type = ""
smsc-username = "x"
smsc-password = "y"
connect-allow-ip = 127.0.0.1
#transceiver-mode = true
interface-version = 34
source-addr-ton = 4
source-addr-npi = 9
dest-addr-ton = 1
dest-addr-npi = 1
bind-addr-ton = 1
bind-addr-npi = 1
address-range = ""
enquire-link-interval = 30
max-pending-submits = 5
reconnect-delay = 30

##The smsbox Group
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 1107
log-file = "/var/log/kannel/smsbox.log"
log-level = 1


##The Sendsms Group
group = sendsms-user
username = kanneluser
password = foo
concatenation= true
max-messages = 10
get-url = "http://10.0.0.17:8005/SMS/Receiver.aspx?username=movcreapp

&password=&origin=%p&sender=%P&message=%a"

 



RE: DLR and request a dlr_url

2011-08-09 Thread Rene Kluwen
It depens on how often your status report is called.
If your dlr request is called a lot of times, sometimes http request are 
denied. You should see errors in your smsbox logs.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Diverse
Sent: Tuesday, 09 August, 2011 16:06
To: users@kannel.org
Subject: DLR and request a dlr_url

Hello

I'm using kannel, smsbox, sqlbox and I have a problem with getting dlr on my 
dlr_url. When I send sms pass dlr_url 
(http://host/sms/smstransportstatus.php?sms_id=%d&time=%t&status=%d). 
When changing the status of sms, kannel sends status to my script specified in 
dlr_url, but somehow it does not always happen, although the base is sqlbox all 
statuses.

How can I get the guaranteed status on my dlr_url?
Or can I request a status on their own for the id given me.

The documentation is a description:

Note: If you put your own message ID in the dlr-url like in the example above, 
you can then use this ID to update your database with the message status.

But how to take advantage of?

Best regards

-- 





RE: DLR and request a dlr_url

2011-08-10 Thread Rene Kluwen
Maybe I understood your question wrong.

 

From: Nikos Balkanas [mailto:nbalka...@gmail.com] 
Sent: Wednesday, 10 August, 2011 00:43
To: ken.bell...@gmail.com
Cc: Rene Kluwen; users@kannel.org
Subject: Re: DLR and request a dlr_url

 

The web server might reply with anything but a 2xx response (40x, 50x) due
to heavy load or other causes. Or even not reply at all and timeout or
reject connectiona.

 

BR,

Nikos

 

On Wed, Aug 10, 2011 at 1:20 AM, Kenny  wrote:

Hi Rene,

How do you mean "sometimes http request are denied"? Is the denial from
Kannel or possibly the DLR page webserver ?

--
Regards
Kenny




On Tue, Aug 9, 2011 at 8:07 PM, Rene Kluwen  wrote:

It depens on how often your status report is called.
If your dlr request is called a lot of times, sometimes http request are
denied. You should see errors in your smsbox logs.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Diverse
Sent: Tuesday, 09 August, 2011 16:06
To: users@kannel.org
Subject: DLR and request a dlr_url

Hello

I'm using kannel, smsbox, sqlbox and I have a problem with getting dlr on my
dlr_url. When I send sms pass dlr_url
(http://host/sms/smstransportstatus.php?sms_id=%d
<http://host/sms/smstransportstatus.php?sms_id=%25d&time=%25t&status=%25d>
&time=%t&status=%d).
When changing the status of sms, kannel sends status to my script specified
in dlr_url, but somehow it does not always happen, although the base is
sqlbox all statuses.

How can I get the guaranteed status on my dlr_url?
Or can I request a status on their own for the id given me.

The documentation is a description:

Note: If you put your own message ID in the dlr-url like in the example
above, you can then use this ID to update your database with the message
status.

But how to take advantage of?

Best regards

--




 

 



RE: kannel-sqlbox

2011-08-15 Thread Rene Kluwen
It's in the addons folder. But same difference.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Alvaro Cornejo
Sent: Monday, 15 August, 2011 16:29
To: Rutendo Blessing Mariza
Cc: users@kannel.org
Subject: Re: kannel-sqlbox

It is included in latest svn trunk, I think it is in contrib folder


|---
--|
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



On Mon, Aug 15, 2011 at 7:58 AM, Rutendo Blessing Mariza
 wrote:
> how can l download kannel-sqlbox?
>






RE: DLR and sqlbox

2011-08-20 Thread Rene Kluwen
Just use the dlrurl field to get an id. You can set it to any value that you 
like.
Then, if you set dlrmask also, the "id" that is in the dlrurl field will be in 
the DLR record.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Diverse
Sent: Friday, 19 August, 2011 08:35
To: Willy Mularto
Cc: users@kannel.org
Subject: Re: DLR and sqlbox

Yes. I need to give your sms_id, which would then find it on DLR

can implement the meta-data? How to do this?


Willy Mularto пишет:
> There is no sms_id field name afaik, the one exist is smsc_id. Or do you mean 
> you want to add a custom field? If yes, there will be 2 approaches here. You 
> can modify the source code and it need programming skills or you can 
> implement the meta-data feature. 
>
>
>
> On Aug 18, 2011, at 8:38 PM, Diverse wrote:
>
>> This is an example, it would be convenient to give sms_id through a 
>> separate field.
>> Is it possible?
>>
>> Willy Mularto пишет:
>>> You missed dlr_mask field brother. Set it with Kannel's standard 
>>> value. Please check the user-guide. It is your best friend actually 
>>> :)
>>>
>>>
>>> On Aug 18, 2011, at 7:20 PM, Diverse wrote:
>>>
 I did this. Kannel 1.5 + sqlbox.

 MT

 INSERT INTO send_sms (
 momt, sender, receiver, msgdata, sms_type
 ) VALUES (
 ’MT’, ’1234’, ’1234567890’, ’Hello world’, 2 );

 In which field should I specify my sms_id, what I would then been 
 able to find it on the table DLR sent_sms.

 And how can I use sending messages through the base sqlbox, and 
 link data from tables send_sms, sent_sms? Tell me please, through 
 which field I can set my message number (sms_id), so after a write 
 to send_sms I could find for this sms_id status (dlr) in sent_sms?

 Wendy William пишет:
> You need Kannel 1.5 which supports sqlbox. Then setup the dlr in 
> kannel.conf, Kannel will automatically store to your created table.
>
>
>
>
>
> - Original Message 
>> From: Diverse 
>> To: users@kannel.org
>> Sent: Thu, August 18, 2011 5:39:29 PM
>> Subject: DLR and sqlbox
>>
>> And how can I use sending messages through the base sqlbox, and 
>> link data  from tables send_sms, sent_sms? Tell me please, 
>> through which field I can set  my message number (sms_id), so 
>> after a write to send_sms I could find for  this sms_id status (dlr) in 
>> sent_sms?
>>
>>
>> --
>>
>>
>>
>>


>>> Willy Mularto
>>> F300HD+MR18DE (NLC1725)
>>> http://www.binbit.co.id/
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> --
>>
>>
> Willy Mularto
> F300HD+MR18DE (NLC1725)
> http://www.binbit.co.id/
>
>
>
>
>
>
>
>


-- 







RE: DLR and request a dlr_url

2011-08-20 Thread Rene Kluwen
For example: If dlr-storage is set to internal, then it misses all dlr's it
got after a restart.

 

== Rene

 

From: Kenny [mailto:ken.bell...@gmail.com] 
Sent: Thursday, 18 August, 2011 23:39
To: Rene Kluwen
Cc: Nikos Balkanas; users@kannel.org
Subject: Re: DLR and request a dlr_url

 

Rene.. my own concern here is: 

Lets {assume} the receiving web-servers is 100% perfect, would Kannel ever
fail to call the DLR URL when it does have a DLR from the SMSC ?


--
Regards
Kenny




On Wed, Aug 10, 2011 at 12:11 PM, Rene Kluwen  wrote:

Maybe I understood your question wrong.

 

From: Nikos Balkanas [mailto:nbalka...@gmail.com] 

Sent: Wednesday, 10 August, 2011 00:43
To: ken.bell...@gmail.com
Cc: Rene Kluwen; users@kannel.org

Subject: Re: DLR and request a dlr_url

 

The web server might reply with anything but a 2xx response (40x, 50x) due
to heavy load or other causes. Or even not reply at all and timeout or
reject connectiona.

 

BR,

Nikos

 

On Wed, Aug 10, 2011 at 1:20 AM, Kenny  wrote:

Hi Rene,

How do you mean "sometimes http request are denied"? Is the denial from
Kannel or possibly the DLR page webserver ?

--
Regards
Kenny



On Tue, Aug 9, 2011 at 8:07 PM, Rene Kluwen  wrote:

It depens on how often your status report is called.
If your dlr request is called a lot of times, sometimes http request are
denied. You should see errors in your smsbox logs.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Diverse
Sent: Tuesday, 09 August, 2011 16:06
To: users@kannel.org
Subject: DLR and request a dlr_url

Hello

I'm using kannel, smsbox, sqlbox and I have a problem with getting dlr on my
dlr_url. When I send sms pass dlr_url
(http://host/sms/smstransportstatus.php?sms_id=%d
<http://host/sms/smstransportstatus.php?sms_id=%25d&time=%25t&status=%25d>
&time=%t&status=%d).
When changing the status of sms, kannel sends status to my script specified
in dlr_url, but somehow it does not always happen, although the base is
sqlbox all statuses.

How can I get the guaranteed status on my dlr_url?
Or can I request a status on their own for the id given me.

The documentation is a description:

Note: If you put your own message ID in the dlr-url like in the example
above, you can then use this ID to update your database with the message
status.

But how to take advantage of?

Best regards

--



 

 

 



RE: Using Huawei Ideos Android phone with Kannel

2011-08-20 Thread Rene Kluwen
Set minicom to use the serial device that your modem is on. For example
/dev/ttyUSB0.
You can do that when you start minicom -s. You get a screen with options
that apply.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Joseph Koech
Sent: Saturday, 20 August, 2011 21:59
To: Nikos Balkanas
Cc: users@kannel.org
Subject: Re: Using Huawei Ideos Android phone with Kannel

Thanks Alvaro and Nikos,
I have never used minicom before, but after I installed it, this is
what I saw after initializing it on the command line:

Welcome to minicom 2.5

OPTIONS: I18n
Compiled on Feb  5 2011, 06:31:35.
Port /dev/tty8

Press CTRL-A Z for help on special keys

I know it's lame to ask this, but how do I enter AT+CNMI? I've tried
but all I get is the same screen as above. Thank you.

KR,
Joseph.

On Sat, Aug 20, 2011 at 9:38 PM, Nikos Balkanas  wrote:
> For a how-to on using CNMI, read in UG about modem initialization. There
is
> a whole section about it. To see if your phone supports CNMI at all, using
> minicom or another serial communication program, issue at the prompt:
>
> AT+CNMI?
> BR,
> Nikos
> On Sat, Aug 20, 2011 at 6:55 PM, Joseph Koech 
> wrote:
>>
>> Greetings,
>> I have been using kannel with Huawei Modems, specifically E160. It's
>> working perfectly well in both sending and receiving messages. It
>> occured to me at some point that I needed to connect my kannel gateway
>> with an Adnroid Phone, Huawei Ideos to be specific. What i don't
>> understand are the required AT & CNMI commands to put on the conf
>> file. Any ideas on this?
>>
>> KR,
>> Joseph Kowech.
>>
>
>






RE: DLR and request a dlr_url

2011-08-22 Thread Rene Kluwen
If Kannel is never restarted, the dlr would be in the dlr table of the db
and would not be called.

An exception to this would be if the remote smsc is a kannel-http instance.
In that case, dlr's are called from the remote site.

 

== Rene

 

From: Kenny [mailto:ken.bell...@gmail.com] 
Sent: Sunday, 21 August, 2011 20:18
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: DLR and request a dlr_url

 

Rene... what if DLR-store is set to DB and Kannel was never restarted, would
Kannel ever fail to call the DLR URL when it does have a DLR from the SMSC ?

Essentially, am trying to see how reliable Kannel can be in managing DLR.

--
Regards
Kenny




On Sat, Aug 20, 2011 at 9:27 PM, Rene Kluwen  wrote:

For example: If dlr-storage is set to internal, then it misses all dlr's it
got after a restart.

 

== Rene

 

From: Kenny [mailto:ken.bell...@gmail.com] 

Sent: Thursday, 18 August, 2011 23:39
To: Rene Kluwen

Cc: Nikos Balkanas; users@kannel.org


Subject: Re: DLR and request a dlr_url

 

Rene.. my own concern here is: 

Lets {assume} the receiving web-servers is 100% perfect, would Kannel ever
fail to call the DLR URL when it does have a DLR from the SMSC ?


--
Regards
Kenny



On Wed, Aug 10, 2011 at 12:11 PM, Rene Kluwen  wrote:

Maybe I understood your question wrong.

 

From: Nikos Balkanas [mailto:nbalka...@gmail.com] 

Sent: Wednesday, 10 August, 2011 00:43
To: ken.bell...@gmail.com
Cc: Rene Kluwen; users@kannel.org

Subject: Re: DLR and request a dlr_url

 

The web server might reply with anything but a 2xx response (40x, 50x) due
to heavy load or other causes. Or even not reply at all and timeout or
reject connectiona.

 

BR,

Nikos

 

On Wed, Aug 10, 2011 at 1:20 AM, Kenny  wrote:

Hi Rene,

How do you mean "sometimes http request are denied"? Is the denial from
Kannel or possibly the DLR page webserver ?

--
Regards
Kenny

On Tue, Aug 9, 2011 at 8:07 PM, Rene Kluwen  wrote:

It depens on how often your status report is called.
If your dlr request is called a lot of times, sometimes http request are
denied. You should see errors in your smsbox logs.

== Rene


-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Diverse
Sent: Tuesday, 09 August, 2011 16:06
To: users@kannel.org
Subject: DLR and request a dlr_url

Hello

I'm using kannel, smsbox, sqlbox and I have a problem with getting dlr on my
dlr_url. When I send sms pass dlr_url
(http://host/sms/smstransportstatus.php?sms_id=%d
<http://host/sms/smstransportstatus.php?sms_id=%25d&time=%25t&status=%25d>
&time=%t&status=%d).
When changing the status of sms, kannel sends status to my script specified
in dlr_url, but somehow it does not always happen, although the base is
sqlbox all statuses.

How can I get the guaranteed status on my dlr_url?
Or can I request a status on their own for the id given me.

The documentation is a description:

Note: If you put your own message ID in the dlr-url like in the example
above, you can then use this ID to update your database with the message
status.

But how to take advantage of?

Best regards

--

 

 

 

 



RE: OpenSMPPBox - Installed on CentOS 5.2 with Kannel 1.5.0 not starting!

2011-08-22 Thread Rene Kluwen
See the example opensmppbox.conf in the example folder.

Maybe the only thing you need is extra white space after group = core.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Mpeirwe Benjamin
Sent: Monday, 22 August, 2011 12:40
To: users@kannel.org
Subject: Re: OpenSMPPBox - Installed on CentOS 5.2 with Kannel 1.5.0 not
starting!

 

 Hello,

 

Thanks Milan, but this does not solve the problem. My configuration file is
a follows:

 

group = core

 group = opensmppbox

bearerbox-host = 127.0.0.1

bearerbox-port = 13000

opensmppbox-id = smppbox1

pensmppbox-port = 9100

log-file = /var/log/kannel/opensmppbox.log

log-level = 0

our-system-id = jeejay

smpp-logins = /etc/opensmppbox/clients.txt

 

the same error is shown when I run:

 

#opensmppbox -v 0 /etc/kannel/opensmppbox.conf

 

Your help will be very much appreciated

On Mon, Aug 22, 2011 at 12:07 PM, Milan P. Stanic  wrote:

On Mon, 2011-08-22 at 11:54, Mpeirwe Benjamin wrote:
> Hi All,
>
> I have kannel 1.5.0 running perfectly on My CentOS 5.2 box, I installed
> openSMPPBox through SVN  as follows:
>
> 1. #svn co https://svn.kannel.org/smppbox/trunk
> 2. #cd /trunk/
>
> 3. #./configure
>
> 4. #make
>
> 5. #make install
>
> Up to this point everything has run fine. Then I create the opensmppbox
> configuration file as follows:
>
>
> group = opensmppbox
>
> bearerbox-host = 127.0.0.1
>
> bearerbox-port = 13000
>
> opensmppbox-id = smppbox1
>
> opensmppbox-port = 9100
>
> log-file = /var/log/kannel/opensmppbox.log
>
> log-level = 0
>
> our-system-id = jeejay
>
> smpp-logins = /etc/opensmppbox/clients.txt
>
> the configuration file is saved as: /etc/kannel/opensmppbox.conf
>
> I try to start opensmppbox (which is located in /usr/local/sbin/) as
> follows:
>
> #opensmppbox -v 0 /etc/kannel/opensmppbox.conf
>
> and the error I get is:
>
> [root@nat2 sbin]# opensmppbox -v 0 /etc/kannel/opensmppbox.conf
> 2011-08-22 11:49:43 [24602] [0] INFO: Debug_lvl = 0, log_file = ,
> log_lvl = 0
> 2011-08-22 11:49:43 [24602] [0] DEBUG: Kannel opensmppbox version svn-r62
> gwlib version `1.5.0'.
> Build `Aug 21 2011 19:19:36', compiler `4.1.2 20080704 (Red Hat
4.1.2-50)'.
> System Linux, release 2.6.18-92.el5, version #1 SMP Tue Jun 10 18:49:47
EDT
> 2008, machine i686.
> Hostname localhost.localdomain, IP 127.0.0.1.
> Libxml version 2.6.26.
> Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
> Compiled with MySQL 5.0.89, using MySQL 5.0.89.
> Using native malloc.
> 2011-08-22 11:49:43 [24602] [0] PANIC: DLR: can't find group core

Look here >   ^   ^

You should add
group = core
to top of your opensmppbox.conf file.


> 2011-08-22 11:49:43 [24602] [0] PANIC: opensmppbox(gw_panic+0xc2)
> [0x808d7a2]
> 2011-08-22 11:49:43 [24602] [0] PANIC: opensmppbox(dlr_init+0x1c8)
> [0x8055f28]
> 2011-08-22 11:49:43 [24602] [0] PANIC: opensmppbox(main+0x204) [0x8050654]
> 2011-08-22 11:49:43 [24602] [0] PANIC:
> /lib/libc.so.6(__libc_start_main+0xdc) [0xb6ce9c]
> 2011-08-22 11:49:43 [24602] [0] PANIC: opensmppbox [0x80502f1]
> [root@nat2 sbin]#
>
> Could the problem have to do with i386 (that is what my machine is) not
> i686?
>
>
>
> "The Scientist explores what is,
> the Engineer creates what has never been."
> Theodore von Karman

--
Kind regards,  Milan
--
Arvanta, IT Securityhttp://www.arvanta.net
Please do not send me e-mail containing HTML code.




-- 
"The Scientist explores what is,
the Engineer creates what has never been." 
Theodore von Karman





RE: Kannel and dlr-mask

2011-08-23 Thread Rene Kluwen
As per smpp specifications registered_delivery can only be 0 or 1.

Other values don't exist in smpp, but they are handled by Kannel.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Gabriel Augusto Diaz Zapata
Sent: Tuesday, 23 August, 2011 07:27
To: users@kannel.org
Subject: Kannel and dlr-mask

 

Hello.

Im using Kannel. Im sending some messages with DLR Flag, but the problem is
that always Kannel sent to SMPP the SAME dlr-mask
If we put 2 at dlr-mask, kannel sent 1.. If I put 1, kannel sent 1.

 

My Logs: 

 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: XML: 
&text=%a&receiver=%P&flag=%F&smsc_id=%i
>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value
2http://127.0.0.1/Aplicaciones/dlr
.asp?phone=%p

&text=%a&receiver=%P&flag=%F&smsc_id=%i>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value


2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value


2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value 

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value
<1>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <1>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value
<2http://127.0.0.1/Aplicaciones/dlr.asp?phone=%p
 &text=%a&receiver=%P&flag=%F&smsc_id=%i>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value <2>

2011-08-22 21:59:03 [26476] [3] DEBUG: XMLParsing: tag  value
http://127.0.0.1/Aplicaciones/dlr.asp?phone=%25p&text=%25a&receiver=%25P&fl
ag=%25F&smsc_id=%25i> &text=%a&receiver=%P&flag=%F&smsc_id=%i>

 

 

Please note that dlr_mask is 2

 

BUT, at SMPP PDU..

 

 

 

2011-08-22 21:59:03 [26439] [16] DEBUG: SMPP PDU 0x19275e0 dump:

2011-08-22 21:59:03 [26439] [16] DEBUG:   type_name: submit_sm

2011-08-22 21:59:03 [26439] [16] DEBUG:   command_id: 4 = 0x0004

2011-08-22 21:59:03 [26439] [16] DEBUG:   command_status: 0 = 0x

2011-08-22 21:59:03 [26439] [16] DEBUG:   sequence_number: 9 = 0x0009

2011-08-22 21:59:03 [26439] [16] DEBUG:   service_type: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr_ton: 2 = 0x0002

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr_npi: 1 = 0x0001

2011-08-22 21:59:03 [26439] [16] DEBUG:   source_addr: "90515"

2011-08-22 21:59:03 [26439] [16] DEBUG:   dest_addr_ton: 2 = 0x0002

2011-08-22 21:59:03 [26439] [16] DEBUG:   dest_addr_npi: 1 = 0x0001

2011-08-22 21:59:03 [26439] [16] DEBUG:   destination_addr: ""

2011-08-22 21:59:03 [26439] [16] DEBUG:   esm_class: 3 = 0x0003

2011-08-22 21:59:03 [26439] [16] DEBUG:   protocol_id: 0 = 0x

2011-08-22 21:59:03 [26439] [16] DEBUG:   priority_flag: 0 = 0x

2011-08-22 21:59:03 [26439] [16] DEBUG:   schedule_delivery_time: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   validity_period: NULL

2011-08-22 21:59:03 [26439] [16] DEBUG:   registered_delivery: 1 =
0x0001

2011-08-22 21:59:03 [26439] [16] DEBUG:   replace_if_present_flag: 0 =
0x

2011-08-22 21:59:03 [26439] [16] DEBUG:   data_coding: 241 = 0x00f1

2011-08-22 21:59:03 [26439] [16] DEBUG:   sm_default_msg_id: 0 = 0x

2011-08-22 21:59:03 [26439] [16] DEBUG:   sm_length: 31 = 0x001f

2011-08-22 21:59:03 [26439] [16] DEBUG:   short_message:

2011-08-22 21:59:03 [26439] [16] DEBUG:Octet string at 0x19207d0:

2011-08-22 21:59:03 [26439] [16] DEBUG:  len:  31

2011-08-22 21:59:03 [26439] [16] DEBUG:  size: 32

2011-08-22 21:59:03 [26439] [16] DEBUG:  immutable: 0

 

 

 

Can you help me, please? Are some parameter to change to avoid this error (I
think is a bug )

 

Let me know and thank you in advanced

 

Gabriel



RE: Auto Delivery Report for every sms

2011-08-23 Thread Rene Kluwen
See users guide about dlr-mask and dlr-url.

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Wendy William
Sent: Tuesday, 23 August, 2011 13:05
To: users@kannel.org
Subject: Auto Delivery Report for every sms

How to set Kannel to:
1. automatically request a delivery report when sendsms
2. save the delivered report to kannel log

Regards, Wendy







RE: Auto Delivery Report for every sms

2011-08-23 Thread Rene Kluwen
There's a dlr-url field in group = sendsms if that's what you mean.
Dlr-mask should be included with every http request.

Next time, always copy the users list.

== Rene

-Original Message-
From: Wendy William [mailto:kotakompu...@yahoo.com] 
Sent: Tuesday, 23 August, 2011 14:53
To: Rene Kluwen
Subject: Re: Auto Delivery Report for every sms

I think the user guide only tell about manual delivery report, which must 
including dlr-mask and dlr-url for every HTTP request.

Can you give me more detail how to make it automatically?





- Original Message ----
> From: Rene Kluwen 
> To: Wendy William ; users@kannel.org
> Sent: Tue, August 23, 2011 7:38:14 PM
> Subject: RE: Auto Delivery Report for every sms
> 
> See users guide about dlr-mask and dlr-url.
> 
> == Rene
> 
> -Original  Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On
Behalf
> Of Wendy William
> Sent: Tuesday, 23 August, 2011 13:05
> To: users@kannel.org
> Subject: Auto Delivery  Report for every sms
> 
> How to set Kannel to:
> 1. automatically request a  delivery report when sendsms
> 2. save the delivered report to kannel  log
> 
> Regards, Wendy
> 
> 
> 
> 
> 






RE: Regarding sms loss;

2011-08-24 Thread Rene Kluwen
Could you post some log file excerpts?

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Vijay kumar Dadhich
Sent: Wednesday, 24 August, 2011 13:12
To: users@kannel.org
Cc: RAJESH KUMAR
Subject: Regarding sms loss;

Hello to all of you,
I hope all of you are doing great,after a long time period i am
getting a different problem but it is very important so i need to your
help and suggestion,please help me it is really so urgent for me.
My problem is that we are not getting the complete sms, which is shoot
by our web interface(user interface,Pannel side) for example if the
panel is shoots the 50 thousand sms,then 42000 messages are reach at
kannel side, i see on kannel side,it is not showing complete messages
which are shoots from pannel, it is showing only sent sms and also
failed sms,so i want to discuss this thing that can you suggest me
what's and where is the problem? like it is problem  at kannel side or
pannel side (user interface) ?

-- 
Vijay Kr. Dadhich






RE: Kannel Services Configuration

2011-08-24 Thread Rene Kluwen
Kannel doesn't do such a thing. but. you can make one script that calls both
urls.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of mwamba chishimba
Sent: Wednesday, 24 August, 2011 09:44
To: users
Subject: Kannel Services Configuration

 

Hello Kannel list members!

 

Just a quick question, I have setup the following service in my kannel
configuration.

 

#nshima

group = sms-service

keyword = nshima

get-url = "http://www.goodmeals.zm/nshima/nshima.php?mobnum=%p
 &keyword=%k&keyword_2=%s&keyword_3=%r"

omit-empty = true

 

Is it possible to repeat the parameter "get-url" as illustrated below?

 

group = sms-service

keyword = nshima

get-url = "http://www.goodmeals.zm/nshima/order.php?mobnum=%p
 &keyword=%k&keyword_2=%s&keyword_3=%r"

get-url = "http://www.goodmeals.zm/nshima/nshima.php?mobnum=%p
 &keyword=%k&keyword_2=%s&keyword_3=%r"

omit-empty = true

 

My question in essence is how do I make kannel send a single received
message to two different processing scripts. Using the example above to both
the nshima.php and order.php.

 

Note: Am reluctant to combing the two scripts into one I prefer having them
separate.

 

Your usual assistance shall greatly be appreciated.

 

Kind Regards,

-- 
Mwamba Chishimba

"For I am persuaded, that neither death, nor life, nor angels, nor
principalities, nor powers, nor things present, nor things to come, nor
height, nor depth, nor any other creature, shall be able to separate us from
the love of God, which is in Christ Jesus our Lord"



RE: How to inject DLR in kannel ?

2011-08-25 Thread Rene Kluwen
In your group = smsc (being your http smsc) set:

 

port = 13015 (or any other port)

 

Then, this port will listen for dlr’s.

I am not an expert in this matter. But if you look in the sources, you should 
be able to figure it out.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Bertrand Dupont
Sent: Thursday, 25 August, 2011 14:40
To: users@kannel.org
Subject: How to inject DLR in kannel ?

 

Hi all,

 

As I need an smpp server to accept incomming connection I've recently compiled 
and installed the addons/opensmppbox with success, this kannel send the sms to 
a third party application that is performing control, billing and re route sms 
to the correct SMSC (throught another kannel) but I've the following problems :

- how my third party application can sendback DLR to the kannel with 
opensmppbox ?

 

My architecture is like this :

 

SMPP Client --> Kannel with Opensmppbox configured with an SMSC HTTP link on 
"myscript.php" --> my own application for billing, re route etc --> another 
kannel with smpp and at connection

 

Regards,

Bertrand.



RE: Auto Delivery Report for every sms

2011-08-28 Thread Rene Kluwen
Did you set dlr-url in group = sendsms-user?

-Original Message-
From: Wendy William [mailto:kotakompu...@yahoo.com] 
Sent: Sunday, 28 August, 2011 09:06
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: Auto Delivery Report for every sms

When I add dlr-mask without dlr-url then I got this error:

2011-08-28 14:00:48 [25887] [9] ERROR: URL <> doesn't start with `http://'
nor 
`https://'
2011-08-28 14:00:48 [25887] [9] ERROR: Couldn't send request to <>


Is it possible to avoid dlr-url? Because I can see the result in
bearerbox.log, 
so I think it doesn't need to trigger a URL.


Regards, Wendy




----- Original Message 
> From: Rene Kluwen 
> To: Wendy William 
> Cc: users@kannel.org
> Sent: Tue, August 23, 2011 7:55:36 PM
> Subject: RE: Auto Delivery Report for every sms
> 
> There's a dlr-url field in group = sendsms if that's what you mean.
> Dlr-mask  should be included with every http request.
> 
> Next time, always copy the  users list.
> 
> == Rene
> 
> -Original Message-
> From: Wendy  William [mailto:kotakompu...@yahoo.com] 
> Sent:  Tuesday, 23 August, 2011 14:53
> To: Rene Kluwen
> Subject: Re: Auto Delivery  Report for every sms
> 
> I think the user guide only tell about manual  delivery report, which must

> including dlr-mask and dlr-url for every HTTP  request.
> 
> Can you give me more detail how to make it  automatically?
> 
> 
> 
> 
> 
> - Original Message 
> > From:  Rene Kluwen 
> > To:  Wendy William ; users@kannel.org
> > Sent: Tue, August  23, 2011 7:38:14 PM
> > Subject: RE: Auto Delivery Report for every  sms
> > 
> > See users guide about dlr-mask and dlr-url.
> > 
> > == Rene
> > 
> > -Original  Message-
> > From: users-boun...@kannel.org [mailto:users-boun...@kannel.org]  On
> Behalf
> > Of Wendy William
> > Sent: Tuesday, 23 August, 2011  13:05
> > To: users@kannel.org
> > Subject: Auto  Delivery  Report for every sms
> > 
> > How to set Kannel  to:
> > 1. automatically request a  delivery report when  sendsms
> > 2. save the delivered report to kannel  log
> > 
> > Regards, Wendy
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> 






RE: Sqlbox query

2011-09-18 Thread Rene Kluwen
Please always copy the users list because other can benefit as well.

 

1)  I do remember fixing a memory leak some months ago.

2)  This is something I will need to look further. But maybe a newer 
version will help as well.

3)  Upgrading is always a good idea. Not sure what version 0.7.2 is, but I 
know we are further on the road already. If possible, use the sqlbox version 
that accompanies gateway-trunk nowadays. The CDMA patch should patch against 
that as well.

 

== Rene

 

 

From: sandyk...@rediffmail.com [mailto:sandyk...@rediffmail.com] 
Sent: Sunday, 18 September, 2011 18:13
To: rene.kluwen 
Subject: Sqlbox query

 

Hi Rene,

Hope you are doing well, i do follow kannel mailing lists and aware of your 
valuable contribution to the community and kannel. I did contact to test CDMA 
[data-sm] patch for kannel long time back. 

I have kannel setup in India and have using sqlbox from its standalone days. We 
have sqlbox and offlate facing issues:

1) Memory Leak causing system to hog memory and not free-it-up. 
2) Mysql backend in Sqlbox is not retried when mysql connections goes off or if 
it is not able to connect to mysql on 1st connect. 

Sqlbox Verson: 
*) sqlbox-standalone w/ multi-patch. 

We are planning to upgrade to 0.7.2 but it seems to have schema change & not 
sure if your memory leak patch is for this version of older one. Please advise 
on the issues.

TIA

Regards,
Sandesh K



RE: PANIC: Internal error: unknown message type: 538976288

2011-09-20 Thread Rene Kluwen
Suggestion: When you insert sms to the send_sms table, specify sms_type = 2.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Nikos Balkanas
Sent: Tuesday, 20 September, 2011 14:23
To: Sheeba Lal
Cc: users@kannel.org
Subject: Re: PANIC: Internal error: unknown message type: 538976288

 

Precisely. Each SMS must have its type declared. Could be mt_push, mt_reply,
etc. all values betwen 0 & 4 defined in gw/msg.h. Without it bearerbox
doesn't know what to do with the msg. You can try previewing your sms from
the web interface in store-status and identify the corrupt one. Alex G also
has developed a few store tools that may be useful. You can also grep from
the filesystem for that particular value, although it is going to be in
binary and you have to figure out what pattern to grep.

 

HTH,

Nikos

 

On Tue, Sep 20, 2011 at 1:35 PM, Sheeba Lal  wrote:

Hi,

I am using Kannel bearerbox and sql box for sending SMS using SMPP protocol.
I am using the 'store-dir' configuration to store the messages. In case the
system crashes, and when I try to restart the kannel s/w its not working. It
gives the error
PANIC: Internal error: unknown message type: 538976288

When I checked the store directory there are so many files accumulated
there. I had to remove all these files and restart kannel inorder to make it
running. I think we missed to send lot of messages as I removed them.

I guess one of the store files got corrupted and so getting the error.

Can some one help me in the following
1. Is the error because of corrupted stored file?
2. If so how to identify and correct the file so that kannel runs smoothly?

Thanks,
Sheeba.



 



RE: opensmppbox problem with SMPPv3.3 ESME

2011-10-06 Thread Rene Kluwen
Strange. When receiving an sms on a transmitter lag, opensmppbox should 
automatically relay that message to the receiver leg.

A workaround (if possible) is binding as transceiver. But like this, it should 
work as well.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
v_ge...@mail.bg
Sent: Thursday, 06 October, 2011 10:22
To: users@kannel.org
Subject: opensmppbox problem with SMPPv3.3 ESME

 

Hello kannel community. 

I have a configuration of kannel and opensmppbox which acts as SMPP adaptation 
layer between SMSC and client ESME. This is because ESME is quite old and there 
is SMPP version incompatibility between both sides. ESME is using SMPPv3.3 
communication scheme with two connections: one connection as receiver and one 
as transmitter. 

Scheme is as below 


| T |--->| 
| ESME | | openSMPPbox |<->| bearerbox |<->| SMSC | 
| R |--->| 


As general this is a working solution and messages pass both directions, the 
problem which I observed in a while was some messages received by bearerbox but 
not delivered to ESME. 

Each connection to opensmppbox is presented as separate instance to bearerbox 
and we have one receiver and one transmitter instance. 
Two openSMPPbox instances are represented as two smsboxes to bearerbox and 
kannel tries to load-balancing between these two instances (one receiver and 
one transmitter). Because transmitter instance could not deliver messages to 
ESME they stayed buffered in opensmppbox transmitter thread queue. 

I am using SVN snapshot version from 27 September. 

My first question is about configuration, do I miss something? I tested few 
days and could not find solution. 

If there is no problem with configuration is it possible this to be a bug, 
because there is no point to queue messages to a transmitter thread. 

Here is my configuration: 

kannel.conf 
= 
group = core 
admin-port = 13000 
admin-password = x 
log-file = "/var/log/kannel/bearerbox.log" 
log-level = 0 
access-log = "/var/log/kannel/bearerbox_access.log" 
# Smsbox related 
smsbox-port = 13001 
box-deny-ip = "*.*.*.*" 
box-allow-ip = "127.0.0.1" 
sms-resend-retry = 2 

# SMSC SMPP 
group = smsc 
smsc = smpp 
smsc-id = coms 
host = xx 
port =  
interface-version=34 
enquire-link-interval = 298 
connect-allow-ip = 127.0.0.1 
transceiver-mode = yes 
smsc-username = xx 
smsc-password = x 
system-type = xxx 
source-addr-ton = 2 
source-addr-npi = 1 
dest-addr-ton = 1 
dest-addr-npi = 1 

# SMSBOX SETUP 
group = smsbox 
smsbox-id = "fakesmsc" 
bearerbox-host = localhost 
log-file = "/var/log/kannel/smsbox.log" 
log-level = 1 
access-log = "/var/log/kannel/smsbox_access.log" 

# SMS routing setup 
group = smsbox-route 
smsbox-id = sms4chat 
smsc-id = "coms" 
== 

openSMPPbox.conf 
== 
group = core 
dlr-storage = internal 

# openSMPP box configuration 
group = opensmppbox 
bearerbox-host = 127.0.0.1 
bearerbox-port = 13001 
timeout = 86400 
our-system-id = VSMSC 
opensmppbox-id = smppbox1 
opensmppbox-port = 13003 
log-file = /var/log/kannel/opensmppbox.log 
log-level = 0 
route-to-smsc = coms 
smpp-logins = /etc/kannel/SMPPclients.conf 
== 

SMPPclients.conf 
== 
xx x sms4chat 127.0.0.1 
== 


Regards, 
Velin. 


-
Mail.bg: Безплатен e-mail адрес. Най-добрите характеристики на българския пазар 
- 10 GB пощенска кутия, 20 MB прикрепен файл, безплатен POP3, мобилна версия, 
SMS известяване и други.



Re: opensmppbox problem with SMPPv3.3 ESME

2011-10-06 Thread Rene Kluwen
Possibly, yes, this is a bug. Because I couldn’t find any mistakes in your 
config.

I will look into the matter.

Queue management and load sharing are completely in bearerbox. You are right 
about that.

To debug deeper, you will have to dive into the sources.

 

== Rene

 

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
v_ge...@mail.bg
Sent: Thursday, 06 October, 2011 13:44
To: users@kannel.org 
Subject: RE: opensmppbox problem with SMPPv3.3 ESME

 

Hello Rene, thanks for your answer.

I know it is strange, it took few days for me to find where these messages were 
"lost". I performed a test by reconnecting ESME and then all buffered messages 
are delivered trough receiver thread. Later the symptom comes again and 
messages are getting buffered. This I found on bearerbox web monitoring 
interface where could be seen every opensmppbox instance and buffered counter. 
In log files I can not find any useful information.

The workaround you propose is not possible because the communication layer is 
hardcoded in ESME and can not be changed.

Is it possible this to be a bug? And is there any way to debug more deeply. 
Queue management and load sharing mechanism should be in bearerbox. Am I right?

Regards,

Velin

 

 

- Цитат от Rene Kluwen (rene.klu...@chimit.nl), на 06.10.2011 в 13:54 -
Strange. When receiving an sms on a transmitter lag, opensmppbox should 
automatically relay that message to the receiver leg.

A workaround (if possible) is binding as transceiver. But like this, it should 
work as well.

 

== Rene


From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
v_ge...@mail.bg
Sent: Thursday, 06 October, 2011 10:22
To: users@kannel.org
Subject: opensmppbox problem with SMPPv3.3 ESME

Hello kannel community.

I have a configuration of kannel and opensmppbox which acts as SMPP adaptation 
layer between SMSC and client ESME. This is because ESME is quite old and there 
is SMPP version incompatibility between both sides. ESME is using SMPPv3.3 
communication scheme with two connections: one connection as receiver and one 
as transmitter.

Scheme is as below 

| T |--->| 
| ESME | | openSMPPbox || bearerbox || SMSC | 
| R |--->| 

As general this is a working solution and messages pass both directions, the 
problem which I observed in a while was some messages received by bearerbox but 
not delivered to ESME.

Each connection to opensmppbox is presented as separate instance to bearerbox 
and we have one receiver and one transmitter instance. 
Two openSMPPbox instances are represented as two smsboxes to bearerbox and 
kannel tries to load-balancing between these two instances (one receiver and 
one transmitter). Because transmitter instance could not deliver messages to 
ESME they stayed buffered in opensmppbox transmitter thread queue.

I am using SVN snapshot version from 27 September.

My first question is about configuration, do I miss something? I tested few 
days and could not find solution.

If there is no problem with configuration is it possible this to be a bug, 
because there is no point to queue messages to a transmitter thread.

Here is my configuration:

kannel.conf 
= 
group = core 
admin-port = 13000 
admin-password = x 
log-file = "/var/log/kannel/bearerbox.log" 
log-level = 0 
access-log = "/var/log/kannel/bearerbox_access.log" 
# Smsbox related 
smsbox-port = 13001 
box-deny-ip = "*.*.*.*" 
box-allow-ip = "127.0.0.1" 
sms-resend-retry = 2

# SMSC SMPP 
group = smsc 
smsc = smpp 
smsc-id = coms 
host = xx 
port =  
interface-version=34 
enquire-link-interval = 298 
connect-allow-ip = 127.0.0.1 
transceiver-mode = yes 
smsc-username = xx 
smsc-password = x 
system-type = xxx 
source-addr-ton = 2 
source-addr-npi = 1 
dest-addr-ton = 1 
dest-addr-npi = 1

# SMSBOX SETUP 
group = smsbox 
smsbox-id = "fakesmsc" 
bearerbox-host = localhost 
log-file = "/var/log/kannel/smsbox.log" 
log-level = 1 
access-log = "/var/log/kannel/smsbox_access.log"

# SMS routing setup 
group = smsbox-route 
smsbox-id = sms4chat 
smsc-id = "coms" 
==

openSMPPbox.conf 
== 
group = core 
dlr-storage = internal

# openSMPP box configuration 
group = opensmppbox 
bearerbox-host = 127.0.0.1 
bearerbox-port = 13001 
timeout = 86400 
our-system-id = VSMSC 
opensmppbox-id = smppbox1 
opensmppbox-port = 13003 
log-file = /var/log/kannel/opensmppbox.log 
log-level = 0 
route-to-smsc = coms 
smpp-logins = /etc/kannel/SMPPclients.conf 
==

SMPPclients.conf 
== 
xx x sms4chat 127.0.0.1 
=

RE: SMS Receive Queue

2011-10-21 Thread Rene Kluwen
Also you might want to look into the userguide, especially the section
smsbox-route:
http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html#AEN3
761

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Isaac Sanni-Thomas
Sent: Friday, 21 October, 2011 01:23
To: Ni Amon Dsane
Cc: users@kannel.org
Subject: Re: SMS Receive Queue

Nii,

Set your sms-service to

group = sms-service
keyword-regex = .*
catch-all = yes
get-url =
"http://localhost:8088/receivesms/%k/%s/%S/%r/%a/%b/%t/%T/%p/%P/%q/%Q/%i/%I/
%d/%R/%D/%A/%F/%n/%c/%m/%M/%C/%u/%B/%o/%O/%f"
accept-x-kannel-headers = true

Restart kannel and confirm if the queue gets flushed.
One other thing, have you confirmed if your application in the URL above
catches all parameters passed. A test post/get with sample data could
suffice.


BR

On 10/20/2011 07:56 PM, Ni Amon Dsane wrote:
> Hi,
>
> I have a Kannel setup which looks like the following:
>
> bearerbox -> sqlbox -> smsbox
>
> My configs are listed below:
>
> *Bearerbox:*
>
> group = core
> admin-port = 13000
> admin-password = bar
> log-file = "bearerbox.log"
> log-level = 0
> access-log = "bearerbox-access.log"
> smsbox-port = 13001
> box-allow-ip = "127.0.0.1"
> store-file = "kannel.store"
>
> *Sqlbox:*
>
> group = sqlbox
> id = sqlbox-db
> smsbox-id = "default-smsbox"
> bearerbox-host = localhost
> bearerbox-port = 13001
> smsbox-port = 13005
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
> log-file = "kannel-sqlbox.log"
> log-level = 0
>
> # Example MYSQL Connection
> group = mysql-connection
> id = sqlbox-db
> host = localhost
> username = user
> password = pass
> database = cannel
>
> *Smsbox:*
>
> group = smsbox
> smsbox-id = "default-smsbox"
> bearerbox-host = localhost
> bearerbox-port = 13005
> sendsms-port = 13013
> log-file = "smsbox.log"
> log-level = 0
> access-log = "smsbox-access.log"
> reply-couldnotfetch = "Could not fetch the response"
> reply-couldnotrepresent = "Could not represent the response"
> reply-requestfailed = "Could not make request"
> reply-emptymessage = "Response was an empty response"
>
> *sms-service:*
> *
> *
> group = sms-service
> keyword = default
> catch-all = true
> get-url =
>
"http://localhost:8088/receivesms/%k/%s/%S/%r/%a/%b/%t/%T/%p/%P/%q/%Q/%i/%I/
%d/%R/%D/%A/%F/%n/%c/%m/%M/%C/%u/%B/%o/%O/%f"
>
> Now I try to send some messages to my short code and although they get
> delivered to my Kannel from the telco, they all end up in the SMS
> Received Queue (my /status Kannel http interface reports: SMS:
> received 2 (13 queued), sent 0 (0 queued), store size 13)! I can't
> figure out the reason why Kannel would act such. Anyone got any ideas
> why it's not leaving Kannel to my defined service but is rather queued
> in the SMS received queue? 
>
> I presume it has something to do with routing through to the sms
> service but I cannot see why that would be a problem as my sms-service
> is defined to accept all messages that hit Kannel.
>
> many thanks
> nii amon







RE: DLR's not posting in mysql

2011-10-23 Thread Rene Kluwen
Remember, DLR's are deleted from the dlr table after they reach a final
state.

That might be your problem?

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of ZeeJee
Sent: Sunday, 23 October, 2011 19:12
To: users@kannel.org
Subject: DLR's not posting in mysql

 

Dear All,

i have kannel with opensmppbox installed. also have support for mysql
but my problem is that dlr's are not posting in mysql database.

following are the logs and confs.
from logs its confirmed that bearerbox and opensmppbox is connected to mysql
and using mysql database.

But still DLR's are not going into dlr table.

database and tables are as per configuration.

if i enable sqlbox then messages are recorded into sent_sms table.


please help me in this regard that what i m missing.

regards

Bearerbox log

[root@SIP temp]# bearerbox kannel.conf
2011-10-23 19:42:48 [19984] [0] INFO: Debug_lvl = -1, log_file = ,
log_lvl = 0
2011-10-23 19:42:48 [19984] [0] DEBUG: Loading include file `dlr-mysql.conf'
(on line 40 of file kannel.conf).
2011-10-23 19:42:48 [19984] [0] INFO: MYSQL: Connected to server at
localhost.
2011-10-23 19:42:48 [19984] [0] INFO: MYSQL: server version 5.0.77, client
version 5.0.77.
2011-10-23 19:42:48 [19984] [0] INFO: DLR using storage type: mysql
2011-10-23 19:42:48 [19984] [0] DEBUG: Kannel bearerbox version
`svn-r4936M'.
Build `Oct 17 2011 16:41:48', compiler `4.1.2 20080704 (Red Hat 4.1.2-50)'.
System Linux, release 2.6.18-238.12.1.el5, version #1 SMP Tue May 31
13:23:01 EDT 2011, machine i686.
Hostname SIP, IP 127.0.0.1.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.0.77, using MySQL 5.0.77.
Using native malloc.

2011-10-23 19:42:48 [19984] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2011-10-23 19:42:48 [19984] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2011-10-23 19:42:48 [19984] [0] INFO: HTTP: Opening server at port 13000.
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2011-10-23 19:42:48 [19984] [0] DEBUG: starting smsbox connection module
2011-10-23 19:42:48 [19984] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2011-10-23 19:42:48 [19984] [0] DEBUG: Adding smsbox routing to id 
for smsc id 
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)
2011-10-23 19:42:48 [19984] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 19984.
2011-10-23 19:42:48 [19984] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 19984.
2011-10-23 19:42:48 [19984] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 19984.
2011-10-23 19:42:48 [19984] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 19984.
2011-10-23 19:42:48 [19984] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 19984.
2011-10-23 19:42:48 [19984] [2] DEBUG: HTTP: Including port 13000, fd 11 for
polling in server thread
2011-10-23 19:42:48 [19984] [0] INFO: Set SMS resend frequency to 60
seconds.
2011-10-23 19:42:48 [19984] [0] INFO: SMS resend retry set to unlimited.
2011-10-23 19:42:48 [19984] [0] DEBUG: MO concatenated message handling
enabled
2011-10-23 19:42:48 [19984] [0] INFO: DLR rerouting for smsc id 
disabled.
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 6
(gw/smsc/smsc_smpp.c:io_thread)
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2011-10-23 19:42:48 [19984] [0] INFO:

2011-10-23 19:42:48 [19984] [0] INFO: Kannel bearerbox II version svn-r4936M
starting
2011-10-23 19:42:48 [19984] [0] INFO: Loading store file `/var/spool/kannel'
2011-10-23 19:42:48 [19984] [0] INFO: Store-file size 0, starting to unpack
2011-10-23 19:42:48 [19984] [0] INFO: Retrieved 0 messages, non-acknowledged
messages: 0
2011-10-23 19:42:48 [19984] [7] DEBUG: Thread 7
(gw/bb_smscconn.c:sms_router) maps to pid 19984.
2011-10-23 19:42:48 [19984] [0] DEBUG: Started thread 8
(gw/bb_store_file.c:store_dumper)
2011-10-23 19:42:48 [19984] [0] INFO: MAIN: Start-up done, entering mainloop
2011-10-23 19:42:48 [19984] [6] DEBUG: Thread 6
(gw/smsc/smsc_smpp.c:io_thread) maps to pid 19984.
2011-10-23 19:42:48 [19984] [6] DEBUG: Connecting to <1xx.2xx.2xx.1xx>
2011-10-23 19:42:48 [19984] [8] DEBUG: Thread 8
(gw/bb_store_file.c:store_dumper) maps to pid 19984.
2011-10-23 19:42:48 [19984] [8] DEBUG: Dumping 0 messages to store
2011-10-23 19:42:48 [19984] [6] DEBUG: SMPP[FakeSMSC-1]: Sending PDU:
2011-10-23 19:42:48 [19984] [6] DEBUG: SMPP PDU 0xa12d940 dump:
2011-10-23 19:42:48 [19984] [6] DEBUG:   type_name: bind_transceiver
2011-10-23 19:42:48 [19984] [6] DEBUG:   command_id: 9 = 0x0009
2011-10-23 19:42:48 [

RE: WARNING: SMPP: PDU NULL terminated string has no NULL

2011-10-24 Thread Rene Kluwen
The error message is self-explanatory. Note that smpp passwords cannot
exceed more than 8 characters.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Marc ANDREAS
Sent: Monday, 24 October, 2011 16:22
To: users@kannel.org users@kannel.org
Subject: WARNING: SMPP: PDU NULL terminated string has no NULL

 

I need your help to solve an issue I have with one operator. I'm not able to
connect to its SMSC. See below log.

How can I solve this problem ?

 

2011-10-24 10:20:07 [14001] [5] DEBUG: SMPP[telco]: Sending PDU:
2011-10-24 10:20:07 [14001] [5] DEBUG: SMPP PDU 0x81b8620 dump:
2011-10-24 10:20:07 [14001] [5] DEBUG:   type_name: bind_transmitter
2011-10-24 10:20:07 [14001] [5] DEBUG:   command_id: 2 = 0x0002
2011-10-24 10:20:07 [14001] [5] DEBUG:   command_status: 0 = 0x
2011-10-24 10:20:07 [14001] [5] DEBUG:   sequence_number: 1 = 0x0001
2011-10-24 10:20:07 [14001] [5] DEBUG:   system_id: "abc"
2011-10-24 10:20:07 [14001] [5] DEBUG:   password: "xxx"
2011-10-24 10:20:07 [14001] [5] DEBUG:   system_type: ""
2011-10-24 10:20:07 [14001] [5] DEBUG:   interface_version: 52 = 0x0034
2011-10-24 10:20:07 [14001] [5] DEBUG:   addr_ton: 0 = 0x
2011-10-24 10:20:07 [14001] [5] DEBUG:   addr_npi: 0 = 0x
2011-10-24 10:20:07 [14001] [5] DEBUG:   address_range: NULL
2011-10-24 10:20:07 [14001] [5] DEBUG: SMPP PDU dump ends.
2011-10-24 10:20:08 [14001] [5] WARNING: SMPP: PDU NULL terminated string
has no NULL.
2011-10-24 10:20:08 [14001] [5] DEBUG: SMPP[telco]: Got PDU:
2011-10-24 10:20:08 [14001] [5] DEBUG: SMPP PDU 0x81badc0 dump:
2011-10-24 10:20:08 [14001] [5] DEBUG:   type_name: bind_transmitter_resp
2011-10-24 10:20:08 [14001] [5] DEBUG:   command_id: 2147483650 = 0x8002
2011-10-24 10:20:08 [14001] [5] DEBUG:   command_status: 14 = 0x000e
2011-10-24 10:20:08 [14001] [5] DEBUG:   sequence_number: 1 = 0x0001
2011-10-24 10:20:08 [14001] [5] DEBUG:   system_id: NULL
2011-10-24 10:20:08 [14001] [5] DEBUG: SMPP PDU dump ends.
2011-10-24 10:20:08 [14001] [5] ERROR: SMPP[telco]: SMSC rejected login to
transmit, code 0x000e (Invalid Password).
2011-10-24 10:20:08 [14001] [5] ERROR: SMPP[telco]: I/O error or other
error. Re-connecting.
2011-10-24 10:20:08 [14001] [5] DEBUG: Thread 5
(gw/smsc/smsc_smpp.c:io_thread) terminates.

 

Here is my configuration:

 

group = smsc
smsc = smpp
smsc-id = telco
port = 8010
host = 192.168.198.27 
smsc-username = telco11
smsc-password = telco
interface-version = "34"
reconnect-delay = 2
receive-port = 0
log-file = "/var/log/kannel/smsctelco.log"
transceiver-mode = "true"
source-addr-ton = 2
source-addr-npi = 1
dest-addr-ton = 2
dest-addr-npi = 1
system-type = "NULL"
alt-charset = "ASCII"
alt-addr-charset = "GSM"

 

 



RE: Understand Kannel

2011-11-05 Thread Rene Kluwen
Kannel does load balancing, but not using a round robin schedule.

All messages go the the first available smsc, except when it has a load: then 
it goes to the second smsc, etc.

 

== Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Willy Mularto
Sent: Saturday, 05 November, 2011 03:09
To: Munir Ahmad
Cc: kannel users
Subject: Re: Understand Kannel

 

First of all please start a new thread.

Kannel has load balancing using round robin scenario AFAIK. You just need to 
name all smsc-id with same name. 

There are some brands and you can found recommendation in the archives.

 

 

 

 

On Nov 5, 2011, at 4:20 AM, Munir Ahmad wrote:





Can any one please confirm that does kannel have load balancing between GSM 
Modems?

 

i.e. I plug in 5 of em and I just call send and kannel manages which device is 
less loaded already and routes automatically sms to that device etc?

 

And also what kind of GSM Modem you have used perfectly with kannel? so far I 
have w200 it's good but it switches to file transfer mode automatically every 
2, 3 days.
ߣ∂ςқ  



On Fri, Nov 4, 2011 at 4:03 PM, Willy Mularto  wrote:

no problem

 

 

 

On Nov 4, 2011, at 5:50 PM, angel eyez wrote:





Thanks buddy u save me :)

  _  

Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 17:47:28 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

yes correct brother

 

 

 

On Nov 4, 2011, at 5:40 PM, angel eyez wrote:

 


this means cellular companies like telenor, ufone, etc.


  _  


Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 17:24:41 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

it is the wireless carrier a.k.a telco a.k.a operator

 

 

 

On Nov 4, 2011, at 5:20 PM, angel eyez wrote:

 

who provide the SMSC's implementation cellular companies or mobile phones like 
nokia, motorola etc ?


  _  


Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 17:15:35 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

Wireless carrier has its direct connection, but only available for commercial 
use.  

SMS can be sent or received between supported/compatible devices because it has 
standard/protocol which every device must follow/meet

 

 

 

On Nov 4, 2011, at 5:07 PM, angel eyez wrote:

 

Ok tell me one more thing Why we don't use direct connection to smsc of a 
wireless carrier? Why sms messages can be 

send and receive with mobile phone or GSM/GPRS modem?

 

And also who provide the SMSC's implementation either cellular companies or the 
mobile phone subscribers or the phone companies like nokia, motorola etc?

 


  _  


Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 17:01:43 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

Yes something like that. The flow usually like this:

GSM-Modem <-> Bearerbox <-> SMSBox

 

 

 

On Nov 4, 2011, at 4:37 PM, angel eyez wrote:

 

Ok that means if i send any msg through kannel it will process by the bearerbox 
and smsbox then reach its destination. Right..


  _  


Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 15:16:10 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

Web interface is only a frontend interface. While bearerbox and smsbox is the 
backend and core interface. It translates and process your requests.

 

 

 

On Nov 4, 2011, at 3:03 PM, angel eyez wrote:

 

2 real phones means i want to send a msg from one phone to another then why i 
need bearbox and smsbox started before sending a msg as i can send the msg from 
web interface throgh kannel.


  _  


From: sangpr...@gmail.com
Subject: Re: Understand Kannel
Date: Fri, 4 Nov 2011 14:53:22 +0700
To: angel.eyez...@live.com

All those others SMS Gateways doesn't support many protocol as Kannel does. And 
of course Kannel stands above of other SMS Gateway you mentioned, regarding its 
performance, speed, stability as per my experiences.

What do you mean with 2 real phones? 

 

 

 

 

On Nov 4, 2011, at 2:46 PM, angel eyez wrote:

 

Other sms gateways like  Microsoft SMS Sender 
 , Gnokii 
 , Gammu, gsmlib   and 
xgsmlib  ,OpenSMPP API 
 , GSMI/GSMD::Gnokii 
  etc how kannel is different from these 
gateways. 

 

The userguide said that bearerbox is the interface towards the phone it pass 
the messages between phones and other boxes and smsbox handles SMS 
functionality. 

But my question is that if i'm using 2 real phone then why i need besrerbox and 
smsbox?

 


  _  


Subject: Re: Understand Kannel
From: sangpr...@gmail.com
Date: Fri, 4 Nov 2011 13:40:14 +0700
CC: users@kannel.org
To: angel.eyez...@live.com

Which other sms 

RE: Is there a way for kannel to not forward to SMSC SMS whose destination numbers are less than a specified number of characters.

2011-11-08 Thread Rene Kluwen
Why don't you check for nr of characters before you send them to the
/cgi-bin/sendsms interface?

== Rene

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Engel L
Sent: Tuesday, 08 November, 2011 10:04
To: users@kannel.org
Subject: Is there a way for kannel to not forward to SMSC SMS whose
destination numbers are less than a specified number of characters.

Hi,

I am using Kannel 1.4.3 and am looking for a means for the gateway to
drop messages destined to numbers with missing characters. The reason
being sometimes clients send texts to numbers less than the in-my-case
acceptable 12 digits and the NOs charge me for them.

Regds,

Engel






RE: Is there a way for kannel to not forward to SMSC SMS whose destination numbers are less than a specified number of characters.

2011-11-08 Thread Rene Kluwen
Check the white-list-regex configuration entry of group = core.

== Rene

-Original Message-
From: Engel L [mailto:choch...@gmail.com] 
Sent: Tuesday, 08 November, 2011 19:47
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: Is there a way for kannel to not forward to SMSC SMS whose
destination numbers are less than a specified number of characters.

Hi Rene,

Thank you for the suggestion.

I was hoping I could achieve the same at the gateway level. This is
because we have multiple front-end applications calling the sendsms
interface.

Regds,

On Tue, Nov 8, 2011 at 9:42 PM, Rene Kluwen  wrote:
> Why don't you check for nr of characters before you send them to the
> /cgi-bin/sendsms interface?
>
> == Rene
>
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Engel L
> Sent: Tuesday, 08 November, 2011 10:04
> To: users@kannel.org
> Subject: Is there a way for kannel to not forward to SMSC SMS whose
> destination numbers are less than a specified number of characters.
>
> Hi,
>
> I am using Kannel 1.4.3 and am looking for a means for the gateway to
> drop messages destined to numbers with missing characters. The reason
> being sometimes clients send texts to numbers less than the in-my-case
> acceptable 12 digits and the NOs charge me for them.
>
> Regds,
>
> Engel
>
>
>
>






RE: Is there a way for kannel to not forward to SMSC SMS whose destination numbers are less than a specified number of characters.

2011-11-08 Thread Rene Kluwen
Ah... sorry... ignore my post. The white-list-regex is for sender id's.

-Original Message-
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Rene Kluwen
Sent: Tuesday, 08 November, 2011 22:53
To: 'Engel L'
Cc: users@kannel.org
Subject: RE: Is there a way for kannel to not forward to SMSC SMS whose
destination numbers are less than a specified number of characters.

Check the white-list-regex configuration entry of group = core.

== Rene

-Original Message-
From: Engel L [mailto:choch...@gmail.com] 
Sent: Tuesday, 08 November, 2011 19:47
To: Rene Kluwen
Cc: users@kannel.org
Subject: Re: Is there a way for kannel to not forward to SMSC SMS whose
destination numbers are less than a specified number of characters.

Hi Rene,

Thank you for the suggestion.

I was hoping I could achieve the same at the gateway level. This is
because we have multiple front-end applications calling the sendsms
interface.

Regds,

On Tue, Nov 8, 2011 at 9:42 PM, Rene Kluwen  wrote:
> Why don't you check for nr of characters before you send them to the
> /cgi-bin/sendsms interface?
>
> == Rene
>
> -Original Message-
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Engel L
> Sent: Tuesday, 08 November, 2011 10:04
> To: users@kannel.org
> Subject: Is there a way for kannel to not forward to SMSC SMS whose
> destination numbers are less than a specified number of characters.
>
> Hi,
>
> I am using Kannel 1.4.3 and am looking for a means for the gateway to
> drop messages destined to numbers with missing characters. The reason
> being sometimes clients send texts to numbers less than the in-my-case
> acceptable 12 digits and the NOs charge me for them.
>
> Regds,
>
> Engel
>
>
>
>









<    1   2   3   4   5   6   7   8   9   10   >