Re: SQLBox DLR Problem

2010-11-10 Thread Nikos Balkanas

Hi,

You need to include an smsbox-route group to route DLRs to your smsbox. Read 
UG about it.


BR,
Nikos
- Original Message - 
From: James E

To: Nikos Balkanas ; users@kannel.org
Sent: Thursday, November 11, 2010 8:57 AM
Subject: Re: SQLBox DLR Problem


Hi Nikos,

Sorry I misunderstood.

SMSBox is connected to Bearerbox
SQLBox is connected to Bearerbox

Here is the config (simplified)

# --
# BEARERBOX (Single Group)
# --
group = core
admin-port  = 10777
smsbox-port = 10778
#wapbox-port = 10779

#  SMSBOX --- (Single Group)
# ---
group = smsbox
bearerbox-host=127.0.0.1
sendsms-port=10780
sendsms-url = "/sendsms"

##--SQLBOX CONFIG--##
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = localhost
bearerbox-port = 10778
smsbox-port = 10781
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms


2010/11/11 Nikos Balkanas 

This doesn't answer my question. Is smsbox connected to sqlbox, or 
bearerbox? Yo also seem to mix up bearerbox logs with smsbox logs.



BR,
Nikos
- Original Message - From: James E

To: Nikos Balkanas ; users@kannel.org
Sent: Thursday, November 11, 2010 8:41 AM
Subject: Re: SQLBox DLR Problem



I have:

1 Bearer box with SQLBox, SMSBox connection and 2x SMSC Connections
Kannel 1.5.0 with latest SQLBox (including unicode bug patch from Stipe)

I hit the smsbox with this:

http://127.0.0.1:10780/sendsms?username=xxx&password=xxx&smsc=smsc_2_1&to=1234&text=test&dlr-mask=31&dlr-url=http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg

In the SMSBox table I insert:

momt: MT
sender: test
receiver: 1234
msgdata: test
smsc_id: smsc_2_1
sms_type: 2
dlr_mask: 31
dlr_url: 
http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg


--

In SQLBox try, everything works as per normal in send_sms and sent_sms 
tables, but the dlr-url is not hit/touched at all.


I looked in the bearer box log, here is one difference i can see

SQLBOX try
2010-11-11 16:29:53 [12571] [6] DEBUG: DLR[mysql]: created DLR message for 
URL 



SMSBox try (successful)
2010-11-11 15:49:35 [12571] [6] DEBUG: DLR[mysql]: created DLR message for 
URL 



Regards,
J


2010/11/11 Nikos Balkanas 

Hi,

Please describe your sqlbox and smsbox connections in your flow.

BR,
Nikos

- Original Message - From: James E
To: users@kannel.org
Sent: Thursday, November 11, 2010 7:56 AM
Subject: SQLBox DLR Problem



Hi,

I have tested for a few days now & read the manual.

Is anyone else having issues with DLRs when sending the sms through SQLBox?

I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But when 
I send it with SQLBox the dlr-url is never touched.


I am url encoding the dlr-url, and dlr-mask=31

Anyones help would be appreciated.

J 





Re: Issues with black-list in kannel 1.4.3

2010-11-10 Thread Nikos Balkanas

Hi,

1) Never truncate threads. Flow of answers and issues are lost.
2) You said that kannel won't start. I asked for detailed logs reolevant to 
the error. I see none.


Please don't waiste my time with irrelevant logs.

BR,
Nikos
- Original Message - 
From: "Te-Ch-Akira" 

To: 
Sent: Thursday, November 11, 2010 8:49 AM
Subject: Re: Issues with black-list in kannel 1.4.3




Hi,

I have included detailed logs relevant to the problem, Please find below.

Kannel Logs:
Bearerbox.log
2010-11-11 12:02:46 [9117] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2010-11-11 12:02:46 [9117] [0] INFO: HTTP: Opening server at port 13000.
2010-11-11 12:02:46 [9117] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2010-11-11 12:02:46 [9117] [0] INFO: Set SMS resend frequency to 60 
seconds.

2010-11-11 12:02:46 [9117] [0] INFO: SMS resend retry set to unlimited.
2010-11-11 12:02:46 [9117] [0] INFO: Set throughput to 200.000 for smsc id

2010-11-11 12:02:46 [9117] [0] INFO: DLR rerouting for smsc id 
disabled.
2010-11-11 12:02:46 [9117] [0] INFO: Added logfile
`/var/log/kannel/fake.log' with level `0'.
2010-11-11 12:02:46 [9117] [0] WARNING: Both 'allowed-smsc-id' and
'denied-smsc-id' set, deny-list automatically ignored
2010-11-11 12:02:46 [9117] [0] INFO: Adding interface *
2010-11-11 12:02:46 [9117] [0] ERROR: Missing wapbox-port variable, cannot
start WAP
2010-11-11 12:02:46 [9117] [0] INFO:

2010-11-11 12:02:46 [9117] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-11-11 12:02:46 [9117] [0] INFO: MAIN: Start-up done, entering 
mainloop

2010-11-11 12:02:46 [9117] [5] INFO: Client connected from <127.0.0.1>
2010-11-11 12:02:46 [9117] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/loopa.log' with level `0'.
2010-11-11 12:05:19 [9117] [13] INFO: Connection closed by the box
<127.0.0.1>
2010-11-11 12:05:19 [9117] [0] WARNING: Killing signal or HTTP admin 
command

received, shutting down...
2010-11-11 12:05:20 [9117] [0] INFO: All flow threads have died, killing
core
2010-11-11 12:05:20 [9117] [0] INFO: Total WDP messages: received 0, sent 
0
2010-11-11 12:05:20 [9117] [0] INFO: Total SMS messages: received 0, sent 
0


Smsc.log
2010-11-11 12:04:46 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:04:46 [9117] [6] DEBUG:   sequence_number: 5 = 0x0005
2010-11-11 12:04:46 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP[fake]: Sending enquire link:
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU 0x9d27568 dump:
2010-11-11 12:05:16 [9117] [6] DEBUG:   type_name: enquire_link
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_id: 21 = 0x0015
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:16 [9117] [6] DEBUG:   sequence_number: 6 = 0x0006
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP[fake]: Got PDU:
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU 0x9d27568 dump:
2010-11-11 12:05:16 [9117] [6] DEBUG:   type_name: enquire_link_resp
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_id: 2147483669 = 
0x8015

2010-11-11 12:05:16 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:16 [9117] [6] DEBUG:   sequence_number: 6 = 0x0006
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP[fake]: Sending unbind:
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU 0x9d2f4e0 dump:
2010-11-11 12:05:19 [9117] [6] DEBUG:   type_name: unbind
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_id: 6 = 0x0006
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:19 [9117] [6] DEBUG:   sequence_number: 7 = 0x0007
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP[fake]: Got PDU:
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU 0x9d2f4e0 dump:
2010-11-11 12:05:19 [9117] [6] DEBUG:   type_name: unbind_resp
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_id: 2147483654 = 
0x8006

2010-11-11 12:05:19 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:19 [9117] [6] DEBUG:   sequence_number: 7 = 0x0007
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:20 [9117] [6] DEBUG: SMPP[fake]: io_thread: break and
shutting down
2010-11-11 12:05:20 [9117] [6] DEBUG: Thread 6
(gw/smsc/smsc_smpp.c:io_thread) terminates.


Smsbox.log
2010-11-11 12:02:46 [9127] [0] INFO: Added logfile
`/var/log/kannel/smsbox.log' with level `0'.
2010-11-11 12:02:46 [9127] [0] INFO: Service global sender set as 'X'
2010-11-11 12:02:46 [9127] [0] INFO: Logging accesses to
'/var/log/kannel/access.log'.
2010-11-11 12:02:46 [9127] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2010-11-11 12:02:46 [9127] [0] INFO: HTTP: Opening server at port 13013.
2010-11-11 12:02:46 [9127] [0] DEBUG: Started thread 1
(gwlib/fdset.

Re: SQLBox DLR Problem

2010-11-10 Thread James E
Hi Nikos,

Sorry I misunderstood.

SMSBox is connected to Bearerbox
SQLBox is connected to Bearerbox

Here is the config (simplified)

# --
# BEARERBOX (Single Group)
# --
group = core
admin-port  = 10777
smsbox-port = 10778
#wapbox-port = 10779

#  SMSBOX --- (Single Group)
# ---
group = smsbox
bearerbox-host=127.0.0.1
sendsms-port=10780
sendsms-url = "/sendsms"

##--SQLBOX CONFIG--##
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
bearerbox-host = localhost
bearerbox-port = 10778
smsbox-port = 10781
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms

2010/11/11 Nikos Balkanas 

> This doesn't answer my question. Is smsbox connected to sqlbox, or
> bearerbox? Yo also seem to mix up bearerbox logs with smsbox logs.
>
>
> BR,
> Nikos
> - Original Message - From: James E
> To: Nikos Balkanas ; users@kannel.org
> Sent: Thursday, November 11, 2010 8:41 AM
> Subject: Re: SQLBox DLR Problem
>
>
>
> I have:
>
> 1 Bearer box with SQLBox, SMSBox connection and 2x SMSC Connections
> Kannel 1.5.0 with latest SQLBox (including unicode bug patch from Stipe)
>
> I hit the smsbox with this:
>
>
> http://127.0.0.1:10780/sendsms?username=xxx&password=xxx&smsc=smsc_2_1&to=1234&text=test&dlr-mask=31&dlr-url=http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg
>
> In the SMSBox table I insert:
>
> momt: MT
> sender: test
> receiver: 1234
> msgdata: test
> smsc_id: smsc_2_1
> sms_type: 2
> dlr_mask: 31
> dlr_url:
> http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg
>
> --
>
> In SQLBox try, everything works as per normal in send_sms and sent_sms
> tables, but the dlr-url is not hit/touched at all.
>
> I looked in the bearer box log, here is one difference i can see
>
> SQLBOX try
> 2010-11-11 16:29:53 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
> URL
> 
>
> SMSBox try (successful)
> 2010-11-11 15:49:35 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
> URL <
> http://127.0.0.1:81/smshdlr/test_dlr.php?state=state&statustext=ttt&msisdn=sss&operator=DEFAULT&hlr=ggg
> >
>
> Regards,
> J
>
>
> 2010/11/11 Nikos Balkanas 
>
> Hi,
>
> Please describe your sqlbox and smsbox connections in your flow.
>
> BR,
> Nikos
>
> - Original Message - From: James E
> To: users@kannel.org
> Sent: Thursday, November 11, 2010 7:56 AM
> Subject: SQLBox DLR Problem
>
>
>
> Hi,
>
> I have tested for a few days now & read the manual.
>
> Is anyone else having issues with DLRs when sending the sms through SQLBox?
>
> I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But
> when I send it with SQLBox the dlr-url is never touched.
>
> I am url encoding the dlr-url, and dlr-mask=31
>
> Anyones help would be appreciated.
>
> J
>


Re: Issues with black-list in kannel 1.4.3

2010-11-10 Thread Te-Ch-Akira

Hi,

I have included detailed logs relevant to the problem, Please find below.

Kannel Logs:
Bearerbox.log
2010-11-11 12:02:46 [9117] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2010-11-11 12:02:46 [9117] [0] INFO: HTTP: Opening server at port 13000.
2010-11-11 12:02:46 [9117] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2010-11-11 12:02:46 [9117] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-11-11 12:02:46 [9117] [0] INFO: SMS resend retry set to unlimited.
2010-11-11 12:02:46 [9117] [0] INFO: Set throughput to 200.000 for smsc id

2010-11-11 12:02:46 [9117] [0] INFO: DLR rerouting for smsc id 
disabled.
2010-11-11 12:02:46 [9117] [0] INFO: Added logfile
`/var/log/kannel/fake.log' with level `0'.
2010-11-11 12:02:46 [9117] [0] WARNING: Both 'allowed-smsc-id' and
'denied-smsc-id' set, deny-list automatically ignored
2010-11-11 12:02:46 [9117] [0] INFO: Adding interface *
2010-11-11 12:02:46 [9117] [0] ERROR: Missing wapbox-port variable, cannot
start WAP
2010-11-11 12:02:46 [9117] [0] INFO:

2010-11-11 12:02:46 [9117] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-11-11 12:02:46 [9117] [0] INFO: MAIN: Start-up done, entering mainloop
2010-11-11 12:02:46 [9117] [5] INFO: Client connected from <127.0.0.1>
2010-11-11 12:02:46 [9117] [6] INFO: Logging thread `6' to logfile
`/var/log/kannel/loopa.log' with level `0'.
2010-11-11 12:05:19 [9117] [13] INFO: Connection closed by the box
<127.0.0.1>
2010-11-11 12:05:19 [9117] [0] WARNING: Killing signal or HTTP admin command
received, shutting down...
2010-11-11 12:05:20 [9117] [0] INFO: All flow threads have died, killing
core
2010-11-11 12:05:20 [9117] [0] INFO: Total WDP messages: received 0, sent 0
2010-11-11 12:05:20 [9117] [0] INFO: Total SMS messages: received 0, sent 0

Smsc.log
2010-11-11 12:04:46 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:04:46 [9117] [6] DEBUG:   sequence_number: 5 = 0x0005
2010-11-11 12:04:46 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP[fake]: Sending enquire link:
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU 0x9d27568 dump:
2010-11-11 12:05:16 [9117] [6] DEBUG:   type_name: enquire_link
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_id: 21 = 0x0015
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:16 [9117] [6] DEBUG:   sequence_number: 6 = 0x0006
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP[fake]: Got PDU:
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU 0x9d27568 dump:
2010-11-11 12:05:16 [9117] [6] DEBUG:   type_name: enquire_link_resp
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_id: 2147483669 = 0x8015
2010-11-11 12:05:16 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:16 [9117] [6] DEBUG:   sequence_number: 6 = 0x0006
2010-11-11 12:05:16 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP[fake]: Sending unbind:
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU 0x9d2f4e0 dump:
2010-11-11 12:05:19 [9117] [6] DEBUG:   type_name: unbind
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_id: 6 = 0x0006
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:19 [9117] [6] DEBUG:   sequence_number: 7 = 0x0007
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP[fake]: Got PDU:
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU 0x9d2f4e0 dump:
2010-11-11 12:05:19 [9117] [6] DEBUG:   type_name: unbind_resp
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_id: 2147483654 = 0x8006
2010-11-11 12:05:19 [9117] [6] DEBUG:   command_status: 0 = 0x
2010-11-11 12:05:19 [9117] [6] DEBUG:   sequence_number: 7 = 0x0007
2010-11-11 12:05:19 [9117] [6] DEBUG: SMPP PDU dump ends.
2010-11-11 12:05:20 [9117] [6] DEBUG: SMPP[fake]: io_thread: break and
shutting down
2010-11-11 12:05:20 [9117] [6] DEBUG: Thread 6
(gw/smsc/smsc_smpp.c:io_thread) terminates.


Smsbox.log
2010-11-11 12:02:46 [9127] [0] INFO: Added logfile
`/var/log/kannel/smsbox.log' with level `0'.
2010-11-11 12:02:46 [9127] [0] INFO: Service global sender set as 'X'
2010-11-11 12:02:46 [9127] [0] INFO: Logging accesses to
'/var/log/kannel/access.log'.
2010-11-11 12:02:46 [9127] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2010-11-11 12:02:46 [9127] [0] INFO: HTTP: Opening server at port 13013.
2010-11-11 12:02:46 [9127] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2010-11-11 12:02:46 [9127] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2010-11-11 12:02:46 [9127] [0] INFO: Set up send sms service at port 13013
2010-11-11 12:02:46 [9127] [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
2010-11-11 12:02:46 [9127] [0] INFO: Using HTTP request queueing with 10
retries, 10s delay.
2010-11-11 12:02:46 [9127] [0] DEBUG:

Re: SQLBox DLR Problem

2010-11-10 Thread Nikos Balkanas
This doesn't answer my question. Is smsbox connected to sqlbox, or 
bearerbox? Yo also seem to mix up bearerbox logs with smsbox logs.


BR,
Nikos
- Original Message - 
From: James E

To: Nikos Balkanas ; users@kannel.org
Sent: Thursday, November 11, 2010 8:41 AM
Subject: Re: SQLBox DLR Problem


I have:

1 Bearer box with SQLBox, SMSBox connection and 2x SMSC Connections
Kannel 1.5.0 with latest SQLBox (including unicode bug patch from Stipe)

I hit the smsbox with this:

http://127.0.0.1:10780/sendsms?username=xxx&password=xxx&smsc=smsc_2_1&to=1234&text=test&dlr-mask=31&dlr-url=http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg

In the SMSBox table I insert:

momt: MT
sender: test
receiver: 1234
msgdata: test
smsc_id: smsc_2_1
sms_type: 2
dlr_mask: 31
dlr_url: 
http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg


--

In SQLBox try, everything works as per normal in send_sms and sent_sms 
tables, but the dlr-url is not hit/touched at all.


I looked in the bearer box log, here is one difference i can see

SQLBOX try
2010-11-11 16:29:53 [12571] [6] DEBUG: DLR[mysql]: created DLR message for 
URL 



SMSBox try (successful)
2010-11-11 15:49:35 [12571] [6] DEBUG: DLR[mysql]: created DLR message for 
URL 



Regards,
J


2010/11/11 Nikos Balkanas 

Hi,

Please describe your sqlbox and smsbox connections in your flow.

BR,
Nikos

- Original Message - From: James E
To: users@kannel.org
Sent: Thursday, November 11, 2010 7:56 AM
Subject: SQLBox DLR Problem



Hi,

I have tested for a few days now & read the manual.

Is anyone else having issues with DLRs when sending the sms through SQLBox?

I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But when 
I send it with SQLBox the dlr-url is never touched.


I am url encoding the dlr-url, and dlr-mask=31

Anyones help would be appreciated.

J 





Re: SQLBox DLR Problem

2010-11-10 Thread James E
I have:

   - 1 Bearer box with SQLBox, SMSBox connection and 2x SMSC Connections
   - Kannel 1.5.0 with latest SQLBox (including unicode bug patch from
   Stipe)

I hit the smsbox with this:

http://127.0.0.1:10780/sendsms?username=xxx&password=xxx&smsc=smsc_2_1&to=1234&text=test&dlr-mask=31&dlr-url=http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg

In the SMSBox table I insert:

momt: MT
sender: test
receiver: 1234
msgdata: test
smsc_id: smsc_2_1
sms_type: 2
dlr_mask: 31
dlr_url:
http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg

--

In SQLBox try, everything works as per normal in send_sms and sent_sms
tables, but the dlr-url is not hit/touched at all.

I looked in the bearer box log, here is one difference i can see

SQLBOX try
2010-11-11 16:29:53 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
URL


SMSBox try (successful)
2010-11-11 15:49:35 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
URL <
http://127.0.0.1:81/smshdlr/test_dlr.php?state=state&statustext=ttt&msisdn=sss&operator=DEFAULT&hlr=ggg
>

Regards,
J

2010/11/11 Nikos Balkanas 

> Hi,
>
> Please describe your sqlbox and smsbox connections in your flow.
>
> BR,
> Nikos
>
> - Original Message - From: James E
> To: users@kannel.org
> Sent: Thursday, November 11, 2010 7:56 AM
> Subject: SQLBox DLR Problem
>
>
>
> Hi,
>
> I have tested for a few days now & read the manual.
>
> Is anyone else having issues with DLRs when sending the sms through SQLBox?
>
> I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But
> when I send it with SQLBox the dlr-url is never touched.
>
> I am url encoding the dlr-url, and dlr-mask=31
>
> Anyones help would be appreciated.
>
> J
>


Re: Issues with black-list in kannel 1.4.3

2010-11-10 Thread Nikos Balkanas

Hi,

Please include detailed smsbox logs relevant to the problem (not starting 
up). Which kannel version are you using?


BR,
Nikos
- Original Message - 
From: "Te-Ch-Akira" 

To: 
Sent: Thursday, November 11, 2010 8:16 AM
Subject: Re: Issues with black-list in kannel 1.4.3



Hi,
Thanks for your immediate reply,
I’m trying to reject the numbers in MT(Push) Messages ,
I Have tried with including black-list in smsbox.
When I included balck-list in smsbox group kannel is not starting.
Please check my configuration and let me know if any changes that I have to
do.

Kannel.conf
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = bar
status-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1,192.168.1.*"
smsbox-port = 13001
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
#store-location = "/var/spool/kannel/kannel.new"
log-file = "/var/log/kannel/bearerbox.log"
#dlr-storage = internal
log-level = 1


#-

#-
# SMSBOX SETUP

group = smsbox
#smsbox-id = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
mo-recode = true
http-request-retry = 10
http-queue-delay = 10

#group = smsbox-route
#smsbox-id = smsbox
#smsc-id = "TATA"


#===


include = "/etc/kannel/conf/smsc.conf"



smsc.conf
#-SMSC-

group = smsc
smsc = smpp
smsc-id = fake
host = XX.XX.XX.XX
port = 
smsc-username = "foo"
smsc-password = bar
system-type = "fake"
address-range = "X"
source-addr-ton = 5
source-addr-npi = 9
dest-addr-ton = 1
dest-addr-npi = 1
allowed-smsc-id = "fake"
#denied-smsc-id =  ""
transceiver-mode = 1
throughput = 200
enquire-link-interval = 30
max-pending-submits = 10
reconnect-delay = 60
log-file = "/var/log/kannel/fake.log"
log-level = 0
alt-dcs= 0
alt-charset = "ASCII"
alt-addr-charset = "GSM"
msg-id-type = 0x00
#receive-port = 0
wait-ack = 1
wait-ack-expire = 0x02

#=
#SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
##global-sender = 13013
black-list=http://localhost/blacklist
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/sms-access.log"
mo-recode = true
global-sender = ""
http-request-retry = 10
http-queue-delay = 10

#black-list = http://localhost:8080/blacklist.txt

#
#
#SEND-SMS USERS

group = sendsms-user
username = foo
password = bar
concatenation = 1
max-messages = 3
forced-smsc = "fake"
omit-empty = true

Thanks


Te-Ch-Akira wrote:



Hi,

I'm trying to deny some numbers to be sent SMS which are already declared
in the black-list.
but still the sms is going to deliver.
i have found an issue in issue tracker
(http://redmine.kannel.org/projects/kannel/issues) bug no: Bug #523 status
is new
the black listing is very urgently required, if any body provide some
solution or patch for this a bug tht would be helpfull,

here i have menctioned my config below.

group = core
admin-port = 13000
admin-password = foo
status-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1,192.168.1.*"
smsbox-port = 13001
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
store-location = "/var/spool/kannel/kannel.new"
log-file = "/var/log/kannel/bearerbox.log"
#dlr-storage = internal
log-level = 1

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#global-sender = 13013
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/access.log"
mo-recode = true
global-sender = "56322"
http-request-retry = 10
http-queue-delay = 10
black-list = "http://localhost/blacklist.txt";

group = sendsms-user
username = bar
password = foo
concatenation = 1
max-messages = 3
forced-smsc = "fake"
omit-empty = true
black-list = "http://localhost/blacklist.txt";


Thanks in advance.



--
View this message in context: 
http://old.nabble.com/Issues-with-black-list-in-kannel-1.4.3-tp30168270p30187437.html

Sent from the Kannel - User mailing list archive at Nabble.com.





Re: SQLBox DLR Problem

2010-11-10 Thread Nikos Balkanas

Hi,

Please describe your sqlbox and smsbox connections in your flow.

BR,
Nikos

- Original Message - 
From: James E

To: users@kannel.org
Sent: Thursday, November 11, 2010 7:56 AM
Subject: SQLBox DLR Problem


Hi,

I have tested for a few days now & read the manual.

Is anyone else having issues with DLRs when sending the sms through SQLBox?

I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But when 
I send it with SQLBox the dlr-url is never touched.


I am url encoding the dlr-url, and dlr-mask=31

Anyones help would be appreciated.

J 





Re: Issues with black-list in kannel 1.4.3

2010-11-10 Thread Te-Ch-Akira

Hi,
Thanks for your immediate reply, 
I’m trying to reject the numbers in MT(Push) Messages ,
 I Have tried with including black-list in smsbox. 
When I included balck-list in smsbox group kannel is not starting.
Please check my configuration and let me know if any changes that I have to
do.

Kannel.conf
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = bar
status-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1,192.168.1.*"
smsbox-port = 13001
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
#store-location = "/var/spool/kannel/kannel.new"
log-file = "/var/log/kannel/bearerbox.log"
#dlr-storage = internal
log-level = 1


#-

#-
# SMSBOX SETUP

group = smsbox
#smsbox-id = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsbox-access.log"
mo-recode = true
http-request-retry = 10
http-queue-delay = 10

#group = smsbox-route
#smsbox-id = smsbox
#smsc-id = "TATA"


#===


include = "/etc/kannel/conf/smsc.conf"



smsc.conf
#-SMSC-

group = smsc
smsc = smpp
smsc-id = fake
host = XX.XX.XX.XX
port = 
smsc-username = "foo"
smsc-password = bar
system-type = "fake"
address-range = "X"
source-addr-ton = 5
source-addr-npi = 9
dest-addr-ton = 1
dest-addr-npi = 1
allowed-smsc-id = "fake"
#denied-smsc-id =  ""
transceiver-mode = 1
throughput = 200
enquire-link-interval = 30
max-pending-submits = 10
reconnect-delay = 60
log-file = "/var/log/kannel/fake.log"
log-level = 0
alt-dcs= 0
alt-charset = "ASCII"
alt-addr-charset = "GSM"
msg-id-type = 0x00
#receive-port = 0
wait-ack = 1
wait-ack-expire = 0x02

#=
#SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
##global-sender = 13013
black-list=http://localhost/blacklist
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/sms-access.log"
mo-recode = true
global-sender = ""
http-request-retry = 10
http-queue-delay = 10

#black-list = http://localhost:8080/blacklist.txt

#
#
#SEND-SMS USERS

group = sendsms-user
username = foo
password = bar
concatenation = 1
max-messages = 3
forced-smsc = "fake"
omit-empty = true

Thanks


Te-Ch-Akira wrote:
> 
> 
> Hi,
> 
> I'm trying to deny some numbers to be sent SMS which are already declared
> in the black-list.
> but still the sms is going to deliver. 
> i have found an issue in issue tracker
> (http://redmine.kannel.org/projects/kannel/issues) bug no: Bug #523 status
> is new
> the black listing is very urgently required, if any body provide some
> solution or patch for this a bug tht would be helpfull,
>  
> here i have menctioned my config below.
>  
> group = core
> admin-port = 13000
> admin-password = foo
> status-password = bar
> #admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1,192.168.1.*"
> smsbox-port = 13001
> #wapbox-port = 13002
> #box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> wdp-interface-name = "*"
> store-location = "/var/spool/kannel/kannel.new"
> log-file = "/var/log/kannel/bearerbox.log"
> #dlr-storage = internal
> log-level = 1
>  
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> #global-sender = 13013
> log-file = "/var/log/kannel/smsbox.log"
> access-log = "/var/log/kannel/access.log"
> mo-recode = true
> global-sender = "56322"
> http-request-retry = 10
> http-queue-delay = 10
> black-list = "http://localhost/blacklist.txt";
> 
> group = sendsms-user
> username = bar
> password = foo
> concatenation = 1
> max-messages = 3
> forced-smsc = "fake"
> omit-empty = true
> black-list = "http://localhost/blacklist.txt";
> 
> 
> Thanks in advance.
> 

-- 
View this message in context: 
http://old.nabble.com/Issues-with-black-list-in-kannel-1.4.3-tp30168270p30187437.html
Sent from the Kannel - User mailing list archive at Nabble.com.




SQLBox DLR Problem

2010-11-10 Thread James E
Hi,

I have tested for a few days now & read the manual.

Is anyone else having issues with DLRs when sending the sms through SQLBox?

I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But when
I send it with SQLBox the dlr-url is never touched.

I am url encoding the dlr-url, and dlr-mask=31

Anyones help would be appreciated.

J


Re: Issues with black-list in kannel 1.4.3

2010-11-10 Thread Nikos Balkanas

Hi,

The issue in that bug report is wrong. Putting a black-list in group core 
will just reject MOs (incoming SMS). To reject MT's (pushes) you need to 
include a black-list in group smsbox.


Have you tried it? I remember using it without problems.

BR,
Nikos

- Original Message - 
From: "Arkit Raj" 

To: 
Sent: Wednesday, November 10, 2010 8:23 AM
Subject: Issues with black-list in kannel 1.4.3





Hi,

I'm trying to deny some numbers to be sent SMS which are already declared 
in

the black-list.
but still the sms is going to deliver.
i have found an issue in issue tracker
(http://redmine.kannel.org/projects/kannel/issues) bug no: Bug #523 status
is new
the black listing is very urgently required, if any body provide some
solution or patch for this a bug tht would be helpfull,

here i have menctioned my config below.

group = core
admin-port = 13000
admin-password = foo
status-password = bar
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1,192.168.1.*"
smsbox-port = 13001
#wapbox-port = 13002
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
store-location = "/var/spool/kannel/kannel.new"
log-file = "/var/log/kannel/bearerbox.log"
#dlr-storage = internal
log-level = 1

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#global-sender = 13013
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/access.log"
mo-recode = true
global-sender = "56322"
http-request-retry = 10
http-queue-delay = 10
black-list = "http://localhost/blacklist.txt";

group = sendsms-user
username = bar
password = foo
concatenation = 1
max-messages = 3
forced-smsc = "fake"
omit-empty = true
black-list = "http://localhost/blacklist.txt";


Thanks in advance.
--
View this message in context: 
http://old.nabble.com/Issues-with-black-list-in-kannel-1.4.3-tp30168270p30168270.html

Sent from the Kannel - User mailing list archive at Nabble.com.







Re: throughput

2010-11-10 Thread Matt Wiseman
I ran into similar situations myself, as when I hit the url to send a
msg, I'd get "accepted for delivery" with no notification that there's
eleventy million msg's already in queue waiting to go out..  

What I ended up doing is writing a world accessible page, that turned
around and hit the internal admin interface and get a status report and
relay that back to my system that hits kannel.. so that way the system
who's sending the msg's can get some visibility into kannel's queue's
and can stop sending if the queue gets to high.   

If you want, i can post the php script I used to facilitate this.  Bear
in mind, I am no kannel expert, as my ribbings on this list will
illustrate, so there may be a much better way to talk to kannel, but
that quick and easy hack worked for me.

The kannel interface url to get the status is:
$]curl "http://localhost:13000/status?password=yourpass";

assuming your admin password is "yourpass"

** sample response is:
Kannel bearerbox version `1.4.3'.
Build `Nov  5 2010 20:36:45', compiler `4.4.5'.
System Linux, release 2.6.35-22-generic-pae, version #35-Ubuntu SMP Sat
Oct 16 22:16:51 UTC 2010, machine i686.
Hostname smsserver1, IP 192.168.1.110.
Libxml version 2.7.7.
Using native malloc.

Status: running, uptime 0d 9h 48m 50s

WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 2 (0 queued), sent 5 (0 queued), store size -1
SMS: inbound (0.03,0.01,0.00) msg/sec, outbound (0.02,0.01,0.00) msg/sec

DLR: 0 queued, using internal storage

Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 9h 48m 40s)  

SMSC connections:
gsm_modemAT2[gsm_modem] (re-connecting, rcvd 2, sent 5, failed
0, queued 0 msgs)




Hope all this helps!!

Matt "Trollboy" Wiseman


On Wed, 2010-11-10 at 17:50 +0100, Marcin wrote:
> Hi,
> 
> throughput option is used for limiting number of messages per second.
> What happens when protocol e.g. cimd2 do not support throttling? Kannel 
> makes its own queue and sleep between sending request, or simply ignore 
> this option?
> 
> I can't understand this clearly from UG.
> 
> Thanks
> MK
> 





Re: How to link Kannel with Mbuni (3)

2010-11-10 Thread Nikos Balkanas

Hi,

This question should be addressed to the mbuni users list, not kannel. Mbuni 
is using kannel, not the other way around.


I did play some time ago with mbuni, and i know that the only thing needed 
is to specify in mbuni.conf smsbox's sendsms url. You do that, and it will 
send notification to mobile, which can then fetch content.


For more details ask the mbuni group.

BR,
Nikos
- Original Message - 
From: Druss Drenai

To: users@kannel.org
Sent: Wednesday, November 10, 2010 5:41 PM
Subject: How to link Kannel with Mbuni (3)


This is the last part;sorry if it was so long =)

(1)(smsbox)

2010-11-10 11:54:54 [3529] [0] INFO: Debug_lvl = 0, log_file = , 
log_lvl = 0
2010-11-10 11:54:54 [3529] [0] DEBUG: Loading include file 
`/etc/kannel/core.conf' (on line 1 of file /etc/kannel/kannel.conf).
2010-11-10 11:54:54 [3529] [0] DEBUG: Loading include file 
`/etc/kannel/modems.conf' (on line 3 of file /etc/kannel/core.conf).

2010-11-10 11:54:54 [3529] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Nov  2 2010 15:25:35', compiler `4.3.2'.
System Linux, release 2.6.26-2-686, version #1 SMP Thu Sep 16 19:35:51 UTC 
2010, machine i686.

Hostname debian.kalilab.it, IP 127.0.0.1.
Libxml version 2.6.32.
Using native malloc.

2010-11-10 11:54:54 [3529] [0] INFO: Starting to log to file 
/etc/kannel/log/smsbox.log level 0
2010-11-10 11:54:54 [3529] [0] INFO: Added logfile 
`/etc/kannel/log/smsbox.log' with level `0'.

2010-11-10 11:54:54 [3529] [0] INFO: HTTP: Opening server at port 13013.
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 1 
(gwlib/fdset.c:poller)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)

2010-11-10 11:54:54 [3529] [0] INFO: Set up send sms service at port 13013
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2010-11-10 11:54:54 [3529] [0] 
DEBUG: --

2010-11-10 11:54:54 [3529] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2010-11-10 11:54:54 [3529] [0] DEBUG:   dumping group (sendsms-user):
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2010-11-10 11:54:54 [3529] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 3529.
2010-11-10 11:54:54 [3529] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps 
to pid 3529.
2010-11-10 11:54:54 [3529] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) maps to pid 3529.
2010-11-10 11:54:54 [3529] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 3529.
2010-11-10 11:54:54 [3529] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) maps to pid 3529.
2010-11-10 11:54:54 [3529] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 3529.
2010-11-10 11:54:54 [3529] [0] INFO: Connected to bearerbox at 127.0.0.1 
port 13001.
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2010-11-10 11:54:54 [3529] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 3529.

2010-11-10 11:55:27 [3529] [4] DEBUG: match found: ^[ ]*()[ ]*
2010-11-10 11:55:27 [3529] [4] INFO: Starting to service 
<"application/vnd.wap.mms-message> from <+503> to <1234>
2010-11-10 11:55:27 [3529] [4] DEBUG: Started thread 8 
(gwlib/fdset.c:poller)
2010-11-10 11:55:27 [3529] [4] DEBUG: Started thread 9 
(gwlib/http.c:write_request_thread)
2010-11-10 11:55:27 [3529] [9] DEBUG: Thread 9 
(gwlib/http.c:write_request_thread) maps to pid 3529.

2010-11-10 11:55:27 [3529] [9] DEBUG: Queue contains 0 pending requests.
2010-11-10 11:55:27 [3529] [9] DEBUG: Parsing URL 
`http://localhost/smsd.php?to=%2B503&text=%01%06%22application%2Fvnd.wap.mms-message%00%AF%84%8C%82%98NOK5DDnraTMYSIIJjYQAAsHsv8-MH%00%8D%90%89%1F%1F%80mmsviaweb%40mms.net.vodafone.it%00%96Da%3A+kalilab+-+mmsprova%00%8A%80%8E%025Z%88%05%81%03+%3A%80%83http%3A%2F%2Fpromms%2Fservlets%2FNOK5DDnraTMYSIIJjYQAAsHsv8-MH%00&from=1234&sent=2010-11-10+10:55:10&smsc=3453361361':

2010-11-10 11:55:27 [3529] [9] DEBUG:   Scheme: http://
2010-11-10 11:55:27 [3529] [9] DEBUG:   Host: localhost
2010-11-10 11:55:27 [3529] [9] DEBUG:   Port: 80
2010-11-10 11:55:27 [3529] [9] DEBUG:   Username: (null)
2010-11-10 11:55:27 [3529] [9] DEBUG:   Password: (null)
2010-11-10 11:55:27 [3529] [9] DEBUG:   Path: /smsd.php
2010-11-10 11:55:27 [3529] [9] DEBUG:   Query: 
to=%2B503&text=%01%06%22application%2Fvnd.wap.mms-message%00%AF%84%8C%82%98NOK5DDnraTMYSIIJjYQAAsHsv8-MH%00%8D%90%89%1F%1F%80mmsviaweb%40mms.net.vodafone.it%00%96Da%3A+kalilab+-+mmsprova%00%8A%80%8E%025Z%88%05%81%03+%3A%80%83http%3A%2F%2Fpromms%2Fservlets%2FNOK5DDnraTMYSIIJjYQAAsHsv8-MH%00&from=1234&sent=20

throughput

2010-11-10 Thread Marcin

Hi,

throughput option is used for limiting number of messages per second.
What happens when protocol e.g. cimd2 do not support throttling? Kannel 
makes its own queue and sleep between sending request, or simply ignore 
this option?


I can't understand this clearly from UG.

Thanks
MK



How to link Kannel with Mbuni (3)

2010-11-10 Thread Druss Drenai
This is the last part;sorry if it was so long =)

(1)(smsbox)

2010-11-10 11:54:54 [3529] [0] INFO: Debug_lvl = 0, log_file = , log_lvl 
= 
0
2010-11-10 11:54:54 [3529] [0] DEBUG: Loading include file 
`/etc/kannel/core.conf' (on line 1 of file /etc/kannel/kannel.conf).
2010-11-10 11:54:54 [3529] [0] DEBUG: Loading include file 
`/etc/kannel/modems.conf' (on line 3 of file /etc/kannel/core.conf).
2010-11-10 11:54:54 [3529] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Nov  2 2010 15:25:35', compiler `4.3.2'.
System Linux, release 2.6.26-2-686, version #1 SMP Thu Sep 16 19:35:51 UTC 
2010, 
machine i686.
Hostname debian.kalilab.it, IP 127.0.0.1.
Libxml version 2.6.32.
Using native malloc.

2010-11-10 11:54:54 [3529] [0] INFO: Starting to log to file 
/etc/kannel/log/smsbox.log level 0
2010-11-10 11:54:54 [3529] [0] INFO: Added logfile `/etc/kannel/log/smsbox.log' 
with level `0'.
2010-11-10 11:54:54 [3529] [0] INFO: HTTP: Opening server at port 13013.
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
2010-11-10 11:54:54 [3529] [0] INFO: Set up send sms service at port 13013
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
2010-11-10 11:54:54 [3529] [0] DEBUG: 
--
2010-11-10 11:54:54 [3529] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2010-11-10 11:54:54 [3529] [0] DEBUG:   dumping group (sendsms-user):
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG:  = 
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
2010-11-10 11:54:54 [3529] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) 
maps to pid 3529.
2010-11-10 11:54:54 [3529] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to 
pid 3529.
2010-11-10 11:54:54 [3529] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) 
maps to pid 3529.
2010-11-10 11:54:54 [3529] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps 
to pid 3529.
2010-11-10 11:54:54 [3529] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) 
maps to pid 3529.
2010-11-10 11:54:54 [3529] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps 
to pid 3529.
2010-11-10 11:54:54 [3529] [0] INFO: Connected to bearerbox at 127.0.0.1 port 
13001.
2010-11-10 11:54:54 [3529] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
2010-11-10 11:54:54 [3529] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) 
maps to pid 3529.
2010-11-10 11:55:27 [3529] [4] DEBUG: match found: ^[ ]*()[ ]*
2010-11-10 11:55:27 [3529] [4] INFO: Starting to service 
<"application/vnd.wap.mms-message> from <+503> to <1234>
2010-11-10 11:55:27 [3529] [4] DEBUG: Started thread 8 (gwlib/fdset.c:poller)
2010-11-10 11:55:27 [3529] [4] DEBUG: Started thread 9 
(gwlib/http.c:write_request_thread)
2010-11-10 11:55:27 [3529] [9] DEBUG: Thread 9 
(gwlib/http.c:write_request_thread) maps to pid 3529.
2010-11-10 11:55:27 [3529] [9] DEBUG: Queue contains 0 pending requests.
2010-11-10 11:55:27 [3529] [9] DEBUG: Parsing URL 
`http://localhost/smsd.php?to=%2B503&text=%01%06%22application%2Fvnd.wap.mms-message%00%AF%84%8C%82%98NOK5DDnraTMYSIIJjYQAAsHsv8-MH%00%8D%90%89%1F%1F%80mmsviaweb%40mms.net.vodafone.it%00%96Da%3A+kalilab+-+mmsprova%00%8A%80%8E%025Z%88%05%81%03+%3A%80%83http%3A%2F%2Fpromms%2Fservlets%2FNOK5DDnraTMYSIIJjYQAAsHsv8-MH%00&from=1234&sent=2010-11-10+10:55:10&smsc=3453361361':

2010-11-10 11:55:27 [3529] [9] DEBUG:   Scheme: http://
2010-11-10 11:55:27 [3529] [9] DEBUG:   Host: localhost
2010-11-10 11:55:27 [3529] [9] DEBUG:   Port: 80
2010-11-10 11:55:27 [3529] [9] DEBUG:   Username: (null)
2010-11-10 11:55:27 [3529] [9] DEBUG:   Password: (null)
2010-11-10 11:55:27 [3529] [9] DEBUG:   Path: /smsd.php
2010-11-10 11:55:27 [3529] [9] DEBUG:   Query: 
to=%2B503&text=%01%06%22application%2Fvnd.wap.mms-message%00%AF%84%8C%82%98NOK5DDnraTMYSIIJjYQAAsHsv8-MH%00%8D%90%89%1F%1F%80mmsviaweb%40mms.net.vodafone.it%00%96Da%3A+kalilab+-+mmsprova%00%8A%80%8E%025Z%88%05%81%03+%3A%80%83http%3A%2F%2Fpromms%2Fservlets%2FNOK5DDnraTMYSIIJjYQAAsHsv8-MH%00&from=1234&sent=2010-11-10+10:55:10&smsc=3453361361

2010-11-10 11:55:27 [3529] [9] DEBUG:   Fragment: (null)
2010-11-10 11:55:27 [3529] [9] DEBUG: HTTP: Opening connection to 
`localhost:80' 
(fd=27).
2010-11-10 11:55:27 [3529] [9] DEBUG: Socket connecting
2010-11-10 11:55:27 [3529] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller) maps to 
pid 3529.
2010-11-10 11:55:27 [3529] [8] DEBUG: Get info about connecting socket
2010-11-10 11:55:27 [3529] [8] DEBUG: HTTP: Sending request:
2010-11-10 11:55:27 [3529] [8] DEBUG: Octet string at 0x82c0788:
2010-11-10 11:55:27 [3529] 

How to link Kannel with Mbuni (2)

2010-11-10 Thread Druss Drenai
Second part of my request;this time i'll post the first part of my logs.

(1)(bearerbox)

2010-11-10 11:53:47 [3469] [0] INFO: Debug_lvl = 1, log_file = , log_lvl 
= 
0
2010-11-10 11:53:47 [3469] [0] WARNING: DLR: using default 'internal' for 
storage type.
2010-11-10 11:53:47 [3469] [0] INFO: DLR using storage type: internal
2010-11-10 11:53:47 [3469] [0] INFO: Added logfile `/etc/kannel/log/kannel.log' 
with level `0'.
2010-11-10 11:53:47 [3469] [0] INFO: SSL not supported, no SSL initialization 
done.
2010-11-10 11:53:47 [3469] [0] INFO: HTTP: Opening server at port 13000.
2010-11-10 11:53:47 [3469] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
default (100).
2010-11-10 11:53:47 [3469] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-11-10 11:53:47 [3469] [0] INFO: SMS resend retry set to unlimited.
2010-11-10 11:53:47 [3469] [0] INFO: DLR rerouting for smsc id <3453361361> 
disabled.
2010-11-10 11:53:47 [3469] [0] INFO: AT2[3453361361]: configuration doesn't 
show 
modemtype. will autodetect
2010-11-10 11:53:47 [3469] [6] INFO: AT2[3453361361]: opening device
2010-11-10 11:53:47 [3469] [0] INFO: Adding interface *
2010-11-10 11:53:47 [3469] [0] INFO: 
2010-11-10 11:53:47 [3469] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2010-11-10 11:53:47 [3469] [0] INFO: MAIN: Start-up done, entering mainloop
2010-11-10 11:53:48 [3469] [6] INFO: AT2[3453361361]: speed set to 9600
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: Phase 2+ is supported
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: Closing device
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: opening device
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: Logging in
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: init device
2010-11-10 11:53:50 [3469] [6] INFO: AT2[3453361361]: speed set to 9600
2010-11-10 11:53:52 [3469] [6] INFO: AT2[3453361361]: Phase 2+ is supported
2010-11-10 11:53:52 [3469] [6] INFO: AT2[3453361361]: AT SMSC successfully 
opened.
2010-11-10 11:54:05 [3469] [13] INFO: Client connected from <127.0.0.1> 
2010-11-10 11:54:54 [3469] [5] INFO: Client connected from <127.0.0.1> 

(2)(mmsbox)

2010-11-10 11:54:18 [3495] [0] INFO: Debug_lvl = 1, log_file = , log_lvl 
= 
0
2010-11-10 11:54:18 [3495] [0] INFO: 
2010-11-10 11:54:18 [3495] [0] INFO:  Mbuni MMSBox  version 1.4.0 starting
2010-11-10 11:54:18 [3495] [0] INFO: Added logfile `/var/log/mmsbox.log' with 
level `0'.
2010-11-10 11:54:18 [3495] [0] INFO: Started access logfile 
`/var/log/mmsbox-access.log'.
2010-11-10 11:54:18 [3495] [0] INFO: HTTP: Opening server at port 10001.
2010-11-10 11:54:18 [3495] [0] INFO: MMSC[local], allow=[(null)], deny=[(null)] 
group_id=[local]
2010-11-10 11:54:18 [3495] [0] INFO: HTTP: Opening server at port 12345.

(3)(mmsc->mmsproxy)

2010-11-10 11:54:30 [3525] [0] INFO: Debug_lvl = 1, log_file = , log_lvl 
= 
0
2010-11-10 11:54:30 [3525] [0] INFO: 
2010-11-10 11:54:30 [3525] [0] INFO:  Mbuni MMSC Proxy version 1.4.0 starting
2010-11-10 11:54:30 [3525] [0] INFO: Added logfile `/var/log/mbuni-mmsc.log' 
with level `0'.
2010-11-10 11:54:30 [3525] [0] INFO: Started access logfile 
`/var/log/mmsc-access.log'.
2010-11-10 11:54:30 [3525] [0] INFO: HTTP: Opening server at port 1981.
2010-11-10 11:54:30 [3525] [0] INFO: HTTP: Opening server at port 1982.

(4)(mmsc->mmsrelay)

2010-11-10 11:54:25 [3511] [0] INFO: Debug_lvl = 1, log_file = , log_lvl 
= 
0
2010-11-10 11:54:25 [3511] [0] INFO: 
2010-11-10 11:54:25 [3511] [0] INFO:  Mbuni MMSC Relay  version 1.4.0 starting
2010-11-10 11:54:25 [3511] [0] INFO: Added logfile `/var/log/mbuni-mmsc.log' 
with level `0'.
2010-11-10 11:54:25 [3511] [0] INFO: Started access logfile 
`/var/log/mmsc-access.log'.
2010-11-10 11:54:25 [3511] [0] INFO: Starting Global Queue Runner...
2010-11-10 11:54:25 [3511] [0] INFO: Starting Local Queue Runner...


  

How to link Kannel with Mbuni (1)

2010-11-10 Thread Druss Drenai
Hi,i succeeded in using Kannel in order to send a sms from a mobile phone to 
Kannel and store it inside a database.

Now i wanted to send a mms to Mbuni and then store it inside a database,so i 
tried to use Mbuni combining it with Kannel (following the provided 
documentation and related mailing list of course)
but i can't link Kannel with Mbuni (i mean these 2 can't communicate).

I'll paste there (1) my Kannel and Mbuni configuration files (2) Log files in 
order to help you.
[Because it may be a little long,i'm gonna create 2 posts].

Thank you in advance for your help =)
-
 KANNEL

---
(A)(core.conf)

#include = /etc/kannel/dlr-mysql.conf
include = /etc/kannel/modems.conf

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
log-file = "/etc/kannel/log/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#dlr-storage = mysql
wapbox-port = 13002
wdp-interface-name = "*"


#-
# WAPBOX GROUP

# La sua presenza è necessaria per via della variabile wapbox-port presente nel 
gruppo core

group = wapbox  
bearerbox-host = localhost
#syslog = none
log-file = "/var/tmp/wapbox.log"
syslog-level = none
access-log = "/var/tmp/wapaccess.log"
timer-freq = 10
map-url = "http://mmsc/* http://localhost:1982/*";




#-
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs
#
#
# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!
#
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 1
#connect-allow-ip = 127.0.0.1
#
#-
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
#global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/log/smsbox.log"
log-level = 0
#access-log = "/tmp/access.log"

#-
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...
# 
http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=3921776176&text=ciccio


group = sendsms-user
username = diego
password = diego
#user-deny-ip = "*.*.*.*"
#user-allow-ip = "192.168.*.*"
#concatenation = true
#max-messages = 3


#-
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

group = sms-service
keyword =
catch-all = true
max-messages=0
#omit-empty = true
concatenation = true
get-url = "http://localhost/smsd.php?to=%p&text=%a&from=%P&sent=%t&smsc=%i";

(B)(kannel.conf)

include = /etc/kannel/core.conf

#Modem erco&gener
group = smsc
smsc=at
smsc-id = 3453361361
#smsc-id = 3454900989
modemtype = auto
speed = 9600
device=/dev/ttyS0
#my-number=347335914291
#log-level=0
#log-file = "/etc/kannel/log/modemerco.log" 
sim-buffering = true
-
MBUNI
-
(A)(mmsbox conf)

group = core
log-file = /var/log/mmsbox.log
access-log = /var/log/mmsbox-access.log
log-level = 0

group = mbuni
storage-directory = /var/spool/mbuni
max-send-threads = 5
maximum-send-attempts = 50
default-message-expiry = 36
queue-run-interval = 5
send-attempt-back-off = 300
sendmms-port = 10001

group = mmsc
id = local
mmsc-url = http://mbuni:t...@localhost:1982/soap
incoming-username = user
incoming-password = pass
incoming-port = 12345
type = soap

group = mms-service
name = me
post-url = http://localhost/test-mbuni.php
catch-all = true
http-post-parameters = fx=true&images[]=%i&text[]=%t&skip=1
accept-x-mbuni-headers = true
pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
keyword = test
omit-empty = no
suppress-reply = true
service-code = regular

group = mms-service
name = fullmessage
get-url = http://localhost/images/apache_pb.gif
# http-post-parameters = fx=true&image=%i&text=%t
accept-x-mbuni-headers = true
keyword = thixs

group = send-mms-user
username = tester
password = foobar
faked-sender = 100

(B)(mmsc conf)

group = core
log-file = /var/log/mbuni

port wise messages

2010-11-10 Thread Ravindra Gupta // Viva
 I am using kannel 1.4.3 version.now we will send the message
on particular mobile port 5000 .Give me any parameters or any hints where we
are send the OTA message on particular 5000 mobile port.