Question about opensmppbox box id

2011-09-30 Thread Aarno Syvänen
Hi,

Opensmppbox has a box id in its configuratiion file. this not, however, sent to 
bearerbox, but is overwritten
by bind data from the bearerbox. Or do I miss something here ?

Aarno



Re: WAP 1.2 compatibility

2009-01-07 Thread Aarno Syvänen

Hi,

actually, it does, meaning it does support wap push needed for mms.  
You need mmsc to

generate pushes, of course.

Aarno

On 06 Jan 2009, at 20:09, Nikos Balkanas wrote:


Hi,

I wanted to ask, if anyone knows, how compiant to the WAP 1.2 spec  
is kannel? I know for example that it doesn't support MMS.


Thanks,
Nikos




Re: WAP 1.2 compatibility

2009-01-07 Thread Aarno Syvänen

Yes, of course is it, a totally new thing, build on the wap push though.

Aarno

On 07 Jan 2009, at 14:35, Nikos Balkanas wrote:

I imagine that this is a different kind of animal than smsc. What  
was the deal with mbunny a month ago then?


So can we say that kannel is fully WAP 1.2 complient? (Cookies,  
concatenation, etc.)


BR,
Nikos
- Original Message -
From: Aarno Syvänen
To: Nikos Balkanas
Cc: users@kannel.org lst
Sent: Wednesday, January 07, 2009 10:26 AM
Subject: Re: WAP 1.2 compatibility

Hi,

actually, it does, meaning it does support wap push needed for mms.  
You need mmsc to

generate pushes, of course.

Aarno

On 06 Jan 2009, at 20:09, Nikos Balkanas wrote:


Hi,

I wanted to ask, if anyone knows, how compiant to the WAP 1.2 spec  
is kannel? I know for example that it doesn't support MMS.


Thanks,
Nikos







Re: CVS linux 5

2008-12-15 Thread Aarno Syvänen

Run the shell in debug mode (-x)

Aarno

On 12 Dec 2008, at 20:12, Surya wrote:


I applied the message ID -%F patch..

[r...@localhost gateway]# make check
utils/run-checks checks/check_counter checks/check_date checks/ 
check_ipcheck che cks/ 
check_list checks/check_octstr checks/check_compiler.sh checks/ 
check_fakesms c.sh  
checks/check_fakewap.sh checks/check_headers.sh checks/check_http.sh  
checks / 
check_httpsmsc_kannel.sh checks/check_ppg.sh checks/check_sendsms.sh  
checks/che ck_smpp.sh

Check: checks/check_counter... OK.
Check: checks/check_date... OK.
Check: checks/check_ipcheck... OK.
Check: checks/check_list... OK.
Check: checks/check_octstr... OK.
Check: checks/check_compiler.sh... OK.
Check: checks/check_fakesmsc.sh... OK.
Check: checks/check_fakewap.sh... OK.
Check: checks/check_headers.sh... FAILURE!
Check: checks/check_http.sh... checking SSL connections, too... OK.
Check: checks/check_httpsmsc_kannel.sh... OK.
Check: checks/check_ppg.sh... OK.
Check: checks/check_sendsms.sh... FAILURE!
Check: checks/check_smpp.sh...

It stuck there…
Any ideas ?

Thanks in advance,
Surya




Re: wap push received as garbage

2008-09-26 Thread Aarno Syvänen

Hi,

yes but it if PPG binary coding is working you would not need a  
separate script for
for every strange phone. So it is better to try to use PPG and fix it  
if it is not working.


Aarno

On 25 Sep 2008, at 19:33, Alejandro Guerrieri wrote:


Alex,

Wap push is a binary-coded message. What PPG does is to transform  
your request into a binary message, so there's nothing unusual about  
it.


Some carriers does not support sending binary messages on their  
networks, so maybe the problem is not with your request but with the  
network. I don't know if that's the case, but if you can test the  
same message over a different link maybe you can discard this.


I've made a small php function that encodes the binary message  
without using the PPG at all. You can try it if you want, if this  
also renders garbled text you can be almost certain that there's a  
problem with the network.


Check here:

http://www.mail-archive.com/users@kannel.org/msg03255.html

Hope it helps,

Alejandro Guerrieri

On Thu, Sep 25, 2008 at 1:40 PM, Alex Arias [EMAIL PROTECTED]  
wrote:

Hi Aarno,

Thank you very much for your reply. I tried to send a wap push  
(binary). The process is as follows:


Wap push sent to Kannel PPG using PAP format
Kannel encode the PAP request and send it to the operator via SMPP
Operator acknowledges the mesage and deliver it to the phone
The phone get weird characters instead of the functional wap push
I took the resultant binary message from the smsbox log and posted  
here


Any idea? I believe the problem is in the parameters sent in the  
SMPP protocol. For example I had to patch Kannel and change the  
value of esm_class to 0 as the operator rejected the sms. This might  
be something similar. How do I tell the operator, in the SMPP  
protocol, that the message is a wap push? What parameters are  
involved and what should be the right value?


Thank you
Alex






From: Aarno Syvänen
Sent: Thursday, September 25, 2008 10:16 AM
To: Alex Arias
Cc: users@kannel.org
Subject: Re: wap push received as garbage


Hi,

did you try to send a binary message, or text ?

Aarno

On 24 Sep 2008, at 17:53, Alex Arias wrote:


Hi everybody,

I'm trying to send a wap push to an operator via PAP-PPG-SMPP and  
they get garbage instead of a functional wap push. I'm using Kannel  
as PPG. The message is accepted OK by Kannel and delivered OK to  
operator, but they don't get the right message.


Thank you so much for your help! Below are the details


PAP MESSAGE

--multipart-boundary
Content-Type: application/xml

?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN
http://www.wapforum.org/DTD/pap_1.0.dtd; 
pap
push-message push-id=[EMAIL PROTECTED] deliver-before- 
timestamp=2009-11-01T06:45:00Z deliver-after- 
timestamp=2007-02-27T06:45:00Z progress-notes-requested=false
address address-value=WAPPUSH=[protected]/[EMAIL PROTECTED] 
/

/push-message
/pap

--multipart-boundary
Content-Type: text/vnd.wap.si

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication action=signal-high created=1999-06-25T15:23:15Z si- 
expires=2009-06-25T15:23:15Z si-id=[EMAIL PROTECTED] href=http://www.google.com 
Test/indication

/si
--multipart-boundary--

BINARY MESSAGE
binary 
message:010605AE8DBDC39302056A0045C6080AC3071999062515231510C30720090625152315110335406463682E636F6D000D03676F6F676C652E636F6D00010354657374000101
UDH:0605040B8423F0

CORE LOG (debug)
2008-09-24 08:27:47 [2802] [17] DEBUG: boxc_receiver: got sms from  
wapbox


2008-09-24 08:27:47 [2802] [17] DEBUG: send_msg: sending msg to  
box: 127.0.0.1


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Sending  
PDU:


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x1b117f50 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: command_status: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: sequence_number: 546 =  
0x0222


2008-09-24 08:27:47 [2802] [6] DEBUG: service_type: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: destination_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: esm_class: 64 = 0x0040

2008-09-24 08:27:47 [2802] [6] DEBUG: protocol_id: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: priority_flag: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: schedule_delivery_time: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: validity_period:  
080925152747000+


2008-09-24 08:27:47 [2802] [6] DEBUG

Re: wap push received as garbage

2008-09-26 Thread Aarno Syvänen

Hi,

If you want to know did the operator deliver the the push to the  
phone, you can ask for

delivery reports (see user guide).

Aarno

On 26 Sep 2008, at 09:28, Aarno Syvänen wrote:


Hi,

yes but it if PPG binary coding is working you would not need a  
separate script for
for every strange phone. So it is better to try to use PPG and fix  
it if it is not working.


Aarno

On 25 Sep 2008, at 19:33, Alejandro Guerrieri wrote:


Alex,

Wap push is a binary-coded message. What PPG does is to transform  
your request into a binary message, so there's nothing unusual  
about it.


Some carriers does not support sending binary messages on their  
networks, so maybe the problem is not with your request but with  
the network. I don't know if that's the case, but if you can test  
the same message over a different link maybe you can discard this.


I've made a small php function that encodes the binary message  
without using the PPG at all. You can try it if you want, if this  
also renders garbled text you can be almost certain that there's a  
problem with the network.


Check here:

http://www.mail-archive.com/users@kannel.org/msg03255.html

Hope it helps,

Alejandro Guerrieri

On Thu, Sep 25, 2008 at 1:40 PM, Alex Arias [EMAIL PROTECTED]  
wrote:

Hi Aarno,

Thank you very much for your reply. I tried to send a wap push  
(binary). The process is as follows:


Wap push sent to Kannel PPG using PAP format
Kannel encode the PAP request and send it to the operator via SMPP
Operator acknowledges the mesage and deliver it to the phone
The phone get weird characters instead of the functional wap push
I took the resultant binary message from the smsbox log and posted  
here


Any idea? I believe the problem is in the parameters sent in the  
SMPP protocol. For example I had to patch Kannel and change the  
value of esm_class to 0 as the operator rejected the sms. This  
might be something similar. How do I tell the operator, in the SMPP  
protocol, that the message is a wap push? What parameters are  
involved and what should be the right value?


Thank you
Alex






From: Aarno Syvänen
Sent: Thursday, September 25, 2008 10:16 AM
To: Alex Arias
Cc: users@kannel.org
Subject: Re: wap push received as garbage


Hi,

did you try to send a binary message, or text ?

Aarno

On 24 Sep 2008, at 17:53, Alex Arias wrote:


Hi everybody,

I'm trying to send a wap push to an operator via PAP-PPG-SMPP  
and they get garbage instead of a functional wap push. I'm using  
Kannel as PPG. The message is accepted OK by Kannel and delivered  
OK to operator, but they don't get the right message.


Thank you so much for your help! Below are the details


PAP MESSAGE

--multipart-boundary
Content-Type: application/xml

?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN
http://www.wapforum.org/DTD/pap_1.0.dtd; 
pap
push-message push-id=[EMAIL PROTECTED] deliver-before- 
timestamp=2009-11-01T06:45:00Z deliver-after- 
timestamp=2007-02-27T06:45:00Z progress-notes-requested=false
address address-value=WAPPUSH=[protected]/[EMAIL PROTECTED] 
/

/push-message
/pap

--multipart-boundary
Content-Type: text/vnd.wap.si

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication action=signal-high created=1999-06-25T15:23:15Z si- 
expires=2009-06-25T15:23:15Z si-id=[EMAIL PROTECTED] href=http://www.google.com 
Test/indication

/si
--multipart-boundary--

BINARY MESSAGE
binary 
message:010605AE8DBDC39302056A0045C6080AC3071999062515231510C30720090625152315110335406463682E636F6D000D03676F6F676C652E636F6D00010354657374000101
UDH:0605040B8423F0

CORE LOG (debug)
2008-09-24 08:27:47 [2802] [17] DEBUG: boxc_receiver: got sms from  
wapbox


2008-09-24 08:27:47 [2802] [17] DEBUG: send_msg: sending msg to  
box: 127.0.0.1


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Sending  
PDU:


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x1b117f50 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: command_status: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: sequence_number: 546 =  
0x0222


2008-09-24 08:27:47 [2802] [6] DEBUG: service_type: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_ton: 2 =  
0x0002


2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_npi: 1 =  
0x0001


2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: destination_addr:  
[protected]


2008-09-24 08:27:47 [2802] [6] DEBUG: esm_class: 64 = 0x0040

2008-09-24 08:27:47 [2802] [6] DEBUG: protocol_id: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: priority_flag: 0

Re: wap push received as garbage

2008-09-26 Thread Aarno Syvänen

Hi,

did you set binary data when you sent the message ?

Aarno

PS. No, I live in Basel.

On 25 Sep 2008, at 18:43, Alex Arias wrote:


Hey Aarno,
BTW do you live in Helsinki? Because if you do, I live here too so  
I'll be really happy is you may have 10 min to analyze this problem  
with me.

Let me know
Thank you!
Alex

From: Aarno Syvänen
Sent: Thursday, September 25, 2008 10:16 AM
To: Alex Arias
Cc: users@kannel.org
Subject: Re: wap push received as garbage


Hi,

did you try to send a binary message, or text ?

Aarno

On 24 Sep 2008, at 17:53, Alex Arias wrote:


Hi everybody,

I'm trying to send a wap push to an operator via PAP-PPG-SMPP and  
they get garbage instead of a functional wap push. I'm using Kannel  
as PPG. The message is accepted OK by Kannel and delivered OK to  
operator, but they don't get the right message.


Thank you so much for your help! Below are the details


PAP MESSAGE

--multipart-boundary
Content-Type: application/xml

?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN
http://www.wapforum.org/DTD/pap_1.0.dtd; 
pap
push-message push-id=[EMAIL PROTECTED] deliver-before- 
timestamp=2009-11-01T06:45:00Z deliver-after- 
timestamp=2007-02-27T06:45:00Z progress-notes-requested=false
address address-value=WAPPUSH=[protected]/[EMAIL PROTECTED] 
/

/push-message
/pap

--multipart-boundary
Content-Type: text/vnd.wap.si

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication action=signal-high created=1999-06-25T15:23:15Z si- 
expires=2009-06-25T15:23:15Z si-id=[EMAIL PROTECTED] href=http://www.google.com 
Test/indication

/si
--multipart-boundary--

BINARY MESSAGE
binary 
message:010605AE8DBDC39302056A0045C6080AC3071999062515231510C30720090625152315110335406463682E636F6D000D03676F6F676C652E636F6D00010354657374000101
UDH:0605040B8423F0

CORE LOG (debug)
2008-09-24 08:27:47 [2802] [17] DEBUG: boxc_receiver: got sms from  
wapbox


2008-09-24 08:27:47 [2802] [17] DEBUG: send_msg: sending msg to  
box: 127.0.0.1


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Sending  
PDU:


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x1b117f50 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: command_status: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: sequence_number: 546 =  
0x0222


2008-09-24 08:27:47 [2802] [6] DEBUG: service_type: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: destination_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: esm_class: 64 = 0x0040

2008-09-24 08:27:47 [2802] [6] DEBUG: protocol_id: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: priority_flag: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: schedule_delivery_time: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: validity_period:  
080925152747000+


2008-09-24 08:27:47 [2802] [6] DEBUG: registered_delivery: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: replace_if_present_flag: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: data_coding: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: sm_default_msg_id: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: sm_length: 76 = 0x004c

2008-09-24 08:27:47 [2802] [6] DEBUG: short_message:

2008-09-24 08:27:47 [2802] [6] DEBUG: Octet string at 0x2c000dc0:

2008-09-24 08:27:47 [2802] [6] DEBUG: len: 76

2008-09-24 08:27:47 [2802] [6] DEBUG: size: 1024

2008-09-24 08:27:47 [2802] [6] DEBUG: immutable: 0

2008-09-24 08:27:47 [2802] [6] DEBUG: data: 06 05 04 0b 84 23 f0 01  
06 05 ae 8d bd c3 93 02 .#..


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 05 6a 00 45 c6 08 0a c3  
07 19 99 06 25 15 23 15 .j.E%.#.


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 10 c3 07 20 09 06 25 15  
23 15 11 03 35 40 64 63 ... [EMAIL PROTECTED]


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 68 2e 63 6f 6d 00 0d 03  
67 6f 6f 67 6c 65 2e 63 h.com...google.c


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 6f 6d 00 01 03 54 65 73  
74 00 01 01 om...Test...


2008-09-24 08:27:47 [2802] [6] DEBUG: Octet string dump ends.

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU dump ends.

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Got PDU:

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x2c000d40 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm_resp

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 2147483652 =  
0x8004


2008-09-24 08:27:47 [2802

Re: wap push received as garbage

2008-09-25 Thread Aarno Syvänen


Hi,

did you try to send a binary message, or text ?

Aarno

On 24 Sep 2008, at 17:53, Alex Arias wrote:


Hi everybody,

I'm trying to send a wap push to an operator via PAP-PPG-SMPP and  
they get garbage instead of a functional wap push. I'm using Kannel  
as PPG. The message is accepted OK by Kannel and delivered OK to  
operator, but they don't get the right message.


Thank you so much for your help! Below are the details


PAP MESSAGE

--multipart-boundary
Content-Type: application/xml

?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP 1.0//EN
http://www.wapforum.org/DTD/pap_1.0.dtd; 
pap
push-message push-id=[EMAIL PROTECTED] deliver-before- 
timestamp=2009-11-01T06:45:00Z deliver-after- 
timestamp=2007-02-27T06:45:00Z progress-notes-requested=false
address address-value=WAPPUSH=[protected]/ 
[EMAIL PROTECTED]/

/push-message
/pap

--multipart-boundary
Content-Type: text/vnd.wap.si

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication action=signal-high created=1999-06-25T15:23:15Z si- 
expires=2009-06-25T15:23:15Z si-id=[EMAIL PROTECTED] href=http://www.google.com 
Test/indication

/si
--multipart-boundary--

BINARY MESSAGE
binary 
message:010605AE8DBDC39302056A0045C6080AC3071999062515231510C30720090625152315110335406463682E636F6D000D03676F6F676C652E636F6D00010354657374000101
UDH:0605040B8423F0

CORE LOG (debug)
2008-09-24 08:27:47 [2802] [17] DEBUG: boxc_receiver: got sms from  
wapbox


2008-09-24 08:27:47 [2802] [17] DEBUG: send_msg: sending msg to box:  
127.0.0.1


2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Sending PDU:

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x1b117f50 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: command_status: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: sequence_number: 546 =  
0x0222


2008-09-24 08:27:47 [2802] [6] DEBUG: service_type: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: source_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_ton: 2 = 0x0002

2008-09-24 08:27:47 [2802] [6] DEBUG: dest_addr_npi: 1 = 0x0001

2008-09-24 08:27:47 [2802] [6] DEBUG: destination_addr: [protected]

2008-09-24 08:27:47 [2802] [6] DEBUG: esm_class: 64 = 0x0040

2008-09-24 08:27:47 [2802] [6] DEBUG: protocol_id: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: priority_flag: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: schedule_delivery_time: NULL

2008-09-24 08:27:47 [2802] [6] DEBUG: validity_period:  
080925152747000+


2008-09-24 08:27:47 [2802] [6] DEBUG: registered_delivery: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: replace_if_present_flag: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: data_coding: 4 = 0x0004

2008-09-24 08:27:47 [2802] [6] DEBUG: sm_default_msg_id: 0 =  
0x


2008-09-24 08:27:47 [2802] [6] DEBUG: sm_length: 76 = 0x004c

2008-09-24 08:27:47 [2802] [6] DEBUG: short_message:

2008-09-24 08:27:47 [2802] [6] DEBUG: Octet string at 0x2c000dc0:

2008-09-24 08:27:47 [2802] [6] DEBUG: len: 76

2008-09-24 08:27:47 [2802] [6] DEBUG: size: 1024

2008-09-24 08:27:47 [2802] [6] DEBUG: immutable: 0

2008-09-24 08:27:47 [2802] [6] DEBUG: data: 06 05 04 0b 84 23 f0 01  
06 05 ae 8d bd c3 93 02 .#..


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 05 6a 00 45 c6 08 0a c3  
07 19 99 06 25 15 23 15 .j.E%.#.


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 10 c3 07 20 09 06 25 15  
23 15 11 03 35 40 64 63 ... [EMAIL PROTECTED]


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 68 2e 63 6f 6d 00 0d 03  
67 6f 6f 67 6c 65 2e 63 h.com...google.c


2008-09-24 08:27:47 [2802] [6] DEBUG: data: 6f 6d 00 01 03 54 65 73  
74 00 01 01 om...Test...


2008-09-24 08:27:47 [2802] [6] DEBUG: Octet string dump ends.

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU dump ends.

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP[movistar_arg]: Got PDU:

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU 0x2c000d40 dump:

2008-09-24 08:27:47 [2802] [6] DEBUG: type_name: submit_sm_resp

2008-09-24 08:27:47 [2802] [6] DEBUG: command_id: 2147483652 =  
0x8004


2008-09-24 08:27:47 [2802] [6] DEBUG: command_status: 0 = 0x

2008-09-24 08:27:47 [2802] [6] DEBUG: sequence_number: 546 =  
0x0222


2008-09-24 08:27:47 [2802] [6] DEBUG: message_id: 6fa7a87a

2008-09-24 08:27:47 [2802] [6] DEBUG: SMPP PDU dump ends.







Re: wappush with ppg

2008-04-30 Thread Aarno Syvänen

hi,

how are using test_ppg, it you are using it ?

Aarno

On 29 Apr 2008, at 16:54, mohmmad jarwan wrote:


hi list
i used kannel and make config file correctly and its work but in  
wap push when  i used a ppg
it show me thing and i don't understand it : (thats it) i but it in  
read what's that mean : pleaz any one help me


sh: 1: not found
2008-04-29 17:35:06 [6574] [0] INFO: an input without a  
configuration file assumed

2008-04-29 17:35:06 [6574] [0] DEBUG: using si.xml as a content file
2008-04-29 17:35:06 [6574] [0] DEBUG: using pap.xml as a control file
2008-04-29 17:35:06 [6574] [0] DEBUG: Started thread 1 (test/ 
test_ppg.c:push_thread)
2008-04-29 17:35:06 [6574] [1] DEBUG: Thread 1 (test/ 
test_ppg.c:push_thread) maps to pid 6574.

2008-04-29 17:35:06 [6574] [1] DEBUG: we have push content
2008-04-29 17:35:06 [6574] [1] DEBUG: Octet string at 0x8133c28:
2008-04-29 17:35:06 [6574] [1] DEBUG:   len:  1021
2008-04-29 17:35:06 [6574] [1] DEBUG:   size: 1024
2008-04-29 17:35:06 [6574] [1] DEBUG:   immutable: 0
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 0d 0a 2d 2d 61 73 64  
6c 66 6b 6a 69 75 72 77 67   ..--asdlfkjiurwg
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 68 61 73 66 0d 0a 43  
6f 6e 74 65 6e 74 2d 54 79   hasf..Content-Ty
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 70 65 3a 20 61 70 70  
6c 69 63 61 74 69 6f 6e 2f   pe: application/
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 78 6d 6c 0d 0a 0d 0a  
3c 3f 78 6d 6c 20 76 65 72   xml?xml ver
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 73 69 6f 6e 3d 22 31  
2e 30 22 3f 3e 3c 21 44 4f   sion=1.0?!DO
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 43 54 59 50 45 20 70  
61 70 20 50 55 42 4c 49 43   CTYPE pap PUBLIC
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 20 22 2d 2f 2f 57 41  
50 46 4f 52 55 4d 2f 2f 44-//WAPFORUM//D
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 54 44 20 50 41 50 2f  
2f 45 4e 22 0a 22 68 74 74   TD PAP//EN.htt
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 70 3a 2f 2f 77 77 77  
2e 77 61 70 66 6f 72 75 6d   p://www.wapforum
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 2e 6f 72 67 2f 44 54  
44 2f 70 61 70 5f 31 2e 30   .org/DTD/pap_1.0
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 2e 64 74 64 22 3e 3c  
70 61 70 3e 0a 3c 70 75 73   .dtdpap.pus
2008-04-29 17:35:06 [6574] [1] DEBUG:   data: 68 2d 6d 65 73 73 61  
67 65 20 70 75 73 68 2d 69   h-message push-i







and that my config for wap and ppg :

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



group = ppg
ppg-url = /wappush
ppg-port = 8081
concurrent-pushes = 100
users = 1024
ppg-deny-ip =
ppg-allow-ip = 192.168.1.35;127.0.0.1
trusted-pi = true
service-name= ppg1


group = wap-push-user
wap-push-user = wappush
ppg-username = hotdog
ppg-password = bobcat
allow-ip = 127.0.0.1


Sent from Yahoo! Mail.
A Smarter Email.




Fwd: Kannel SMS carrier support?

2008-04-21 Thread Aarno Syvänen



Begin forwarded message:


From: Mike Vesey [EMAIL PROTECTED]
Date: Sat 19 Apr 2008 00:06:02 GMT+02:00
To: [EMAIL PROTECTED]
Subject: Kannel SMS carrier support?

If I want to setup and configure Kannel to send SMS messages to  
phones on a particular carrier network, what is required to  
interface with the carrier.
For example, here in the states I have a phone on Verizon Wireless  
network.  For Kannel to send a SMS message to my phone I assume it  
has to have an interface with Verizon at some point.  It will need  
to know that my number is served by Verizon wireless.

Is there a doc that explains how all this works?

Thanks
Mike




Re: ppg WARNING

2008-04-21 Thread Aarno Syvänen

Hi,

try mor ecomplete address: like, +358408676001/[EMAIL PROTECTED]
It is, phone number, type and host.

Aarno


On 21 Apr 2008, at 08:52, mohmmad jarwan wrote:


hi list
i tested ppg put it give me an WARNING in wapbox

2008-04-21 09:46:40 [6798] [14] INFO: PPG: Accept request / 
wappush from 127.0.0.1
2008-04-21 09:46:40 [6798] [14] DEBUG: PPG: http_read_thread: pap  
multipart accepted
2008-04-21 09:46:40 [6798] [14] INFO: client address was  
+966500121989, accepted
2008-04-21 09:46:40 [6798] [14] DEBUG: PAP COMPILER: doing semantic  
analysis for address type a phone number
2008-04-21 09:46:40 [6798] [14] DEBUG: PAP COMPILER: bearer does  
not accept PLMN address
2008-04-21 09:46:40 [6798] [14] WARNING: wrong type of address for  
requested bearer
2008-04-21 09:46:40 [6798] [14] DEBUG: PPG:  
send_bad_message_response: telling pi
2008-04-21 09:46:40 [6798] [14] DEBUG: HTTP: Resetting HTTPClient  
for `127.0.0.1'.
2008-04-21 09:46:40 [6798] [14] WARNING: PPG: pap control entity  
erroneous, the request unacceptable
2008-04-21 09:46:40 [6798] [10] DEBUG: HTTP: Destroying HTTPClient  
area 0x819ef30.
2008-04-21 09:46:40 [6798] [10] DEBUG: HTTP: Destroying HTTPClient  
for `127.0.0.1'.


here the url i test the ppg :

$url=./test_ppg -b http://localhost:8080/wappush? 
username=''password= si.xml pap.xml;



whats that mean and how i correct it .
thanx.


Sent from Yahoo! Mail.
A Smarter Email.




Fwd: can't connect to smpp server with kannel

2008-04-14 Thread Aarno Syvänen



Begin forwarded message:


From: vitus [EMAIL PROTECTED]
Date: Fri 11 Apr 2008 19:51:13 GMT+02:00
To: [EMAIL PROTECTED]
Subject: can't connect to smpp server with kannel

Hello,
 I got the following infrmation from an SMSC operator,


 From operator.

 Enclosed are your bind credentials to our SMPP server.
 See credentials:

 username = 


 password = 



 IP= 74.205.84.249

 Port   =  2305


Please bind and revert.

This is how i went about it.
group=smsc
smsc=smpp
smsc-id = recard
host=74.205.84.249
port=2305
receive-port=2305
smsc-username=***
smsc-password=***
system-type=smpp
my-number = 4411
address-range=

How ever i get the following error when i try to connect to it.
2008-04-11 17:29:10 [3885] [8] ERROR: connect failed
2008-04-11 17:29:10 [3885] [8] ERROR: System error 110: Connection  
timed out

2008-04-11 17:29:10 [3885] [8] ERROR: error connecting to server
`74.205.84.249' at port `2305'
2008-04-11 17:29:10 [3885] [8] ERROR: SMPP[recard]: Couldn't  
connect to

server.
2008-04-11 17:29:10 [3885] [8] ERROR: SMPP[recard]: Couldn't  
connect to

SMS center (retrying in 10 seconds).
2008-04-11 17:32:29 [3885] [7] ERROR: connect failed

Please help me.

Line 1 of sample disclaimer.txt
Line 2 of sample disclaimer.txt
Line 3 of sample disclaimer.txt
Line 4 of sample disclaimer.txt





Re: Locating the bottleneck

2008-03-17 Thread Aarno Syvänen

It goes without saying that you did not configure for debug ?

Aarno

On 15 Mar 2008, at 01:56, Dave Clarke wrote:


Thanks for this Alejandro

I'll look at trying the fake smsc.  The carrier has given me a  
throughput of 50, and advised that I split this across 2 binds,  
which I have done, setting the throughput figures at 25 and 25. I  
never see any throttling erors.


The reason I set the max-pending-submits to 100 was that, with log  
level 0, and max-pending-submits set to 10,  I was able to see that  
I was only able to send 10 submit_sm, and would then have to wait  
for a submit_sm_resp before I could submit another message. I  
thought that increasing to 100 would give me a better window, as  
sometimes my submit_sm_resp seem to take forever. Maybe I need to  
talk to the carrier about the length of time it takes to get the  
submit_sm_resp back from them.


Thank for your input. I think I'll open a ticket with the carrier  
in case it's simply a misconfig on their side.


Dave

On 3/15/08, Alejandro Guerrieri [EMAIL PROTECTED] wrote:
Dave,

I can't make a 100% accurate diagnostic without further tests, but  
looks like the bottleneck is on the links with the carrier.


You can try using the fake smsc module instead of your links, and  
queue a fair amount of traffic. If the bottleneck is on those  
links, you'll get much better performance when using the fake smsc.


Probably, what it's happening is that the smsc is only accepting a  
small amount of traffic, and maybe you should lower the throughput  
values to avoid retries and throttling on the other side.


What I'd try:

* Try reducing max-pending-submits to 10. Experiment with other  
values also. 100 looks rather high imho.

* Check on your logfiles if there's any throttling errors.
* Also ask your smsc what's the maximum accepted rate and set the  
thorughput value to that value.


Hope it helps,

Alejandro


On Fri, Mar 14, 2008 at 9:14 PM, Dave Clarke [EMAIL PROTECTED]  
wrote:

Hi,

Having used kannel for a couple of years, I am now at a point where  
I need to start ramping up my throughput, but I am finding that I  
can't sustain any more than 2-3 messages a second through my 2x25  
SMPP binds.


If I walk through my application:

- PHP/Apache/Postgresql application presents messages to smsbox.   
On this occasion I try to send 2200 messages through. They are  
delivered to smsbox in blocks of 25 numbers.  If I study  
smsbox.log, I see the entire process of passing the messages to  
smsbox takes 26 seconds.


- smsbox then chops these up into individual messages and queues  
them. If I study smsbox-access.log, again I see all 2200 send-SMS  
requests added in about 26 seconds. So far so good.


- If I now go to access.log, I see that I'm taking 22 MINUTES to do  
the 2200 transmits.


Because this is so long, more customers come along with big sends,  
and soon I have 10,000 messages queued and waiting.  Result is a  
system churning through 2-3 messages per second.


I'm guessing this is a simple matter of my not understanding the  
correct settings for my max-pendings etc.


What I'm hoping is to kick off a slightly high-level discussion on  
the factors I need to look at to achieve X messages per second, and  
sustain this level of trafic before I get a snowball effect with  
queued messages and a flood of DLRs.  My thinking, which seems to  
have been wrong, was that if I have a through put to SMSC of 50msgs  
per second, and an ACK takes say 3 seconds to come back, then I  
should handle 3x50=150 pending messages, so I set max-pending- 
submits = 100 on both binds. Doesn't seem to have done the trick.


I'd appreciate any views or suggestions on how I scale this thing.  
Let me know if you need more info.


Thanks,
Dave

Points to note:
- This is CVS today (20080314)
- using file as store
- All messages have DLR mask 31, so lots of DLRs coming in.
- using mysql for dlrs
- everything currently on a single Dual P4 IBM Netfinity, 4GB RAM.  
Not cutting edge, but a good solid system, RAID array etc.


Config:

# CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
status-password = foo
log-file = /logs/kannel1/kannel.log
access-log = /logs/kannel1/access.log
dlr-storage = mysql
store-type = file
store-location = /logs/kannel1.store
log-level = 1

group = mysql-connection
id = mydlr
host = localhost
username = xx
password = xx
database = kannel_dlr
max-connections = 1

# SMSC SMPP A 1
group = smsc
smsc = smpp
smsc-id = smpp_A
host = xxx
port = 6700
receive-port = 6700
system-type = 
service-type = CMT
dest-addr-ton = 1
dest-addr-npi = 1
enquire-link-interval = 60
address-range = 
throughput = 25
log-file = /logs/kannel1/smppA1.log
log-level = 1
max-pending-submits = 100

# SMSC SMPP A 2
group = smsc
smsc = smpp
smsc-id = smpp_A
host = xxx
port = 6700
receive-port = 6700
system-type = 
service-type = CMT
dest-addr-ton = 1
dest-addr-npi = 1
enquire-link-interval = 60
address-range = 
throughput = 25

Re: How to use test_ota in kannel?

2007-11-19 Thread Aarno Syvänen

Hi,

just type test_ota or test_ota -h and you get instrctions. This is a  
very simple test program.


Aarno

On 17 Nov 2007, at 12:56, Samir Ghodasara wrote:


Hi,

I am able to use test_ppg according to help provideed in kannel  
user guide.
But i didn't find any help regarding how to use test_ota to send  
APN settings.


Please help

Thanks  Regards,
Samir.






Re: WAP Push format

2007-11-08 Thread Aarno Syvänen

Hi,

Try using only Content-Length header

Aarno

On 08 Nov 2007, at 09:17, ashwani wrote:


Hi Aarno,



Thanks for the information, but if you can explain this little  
more, it will be very helpful






Regards

Ashwani



From: Aarno Syvänen [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 08, 2007 1:44 PM
To: ashwani
Cc: users@kannel.org lst
Subject: Re: WAP Push format



Hi,



the problem is that all handsets do not conform with standard  
formats. One thing to do is to send minimal


amount of headers.



Aarno



On 08 Nov 2007, at 07:46, ashwani wrote:




Hi,

I am using kannel 1.4.1, I need to know wap push format which I can  
use to send WAP Push to the end user using kannel.


The format which I am using is not working on some handsets, the  
message gets delivered on the handset (I can get the delivery  
notification) but there is nothing on the handsets.


Any Help would be appreciated

Regards

Ashwani Kumar











Re: WAP Push format

2007-11-08 Thread Aarno Syvänen

Hi,

the problem is that all handsets do not conform with standard  
formats. One thing to do is to send minimal

amount of headers.

Aarno

On 08 Nov 2007, at 07:46, ashwani wrote:


Hi,



I am using kannel 1.4.1, I need to know wap push format which I can  
use to send WAP Push to the end user using kannel.


The format which I am using is not working on some handsets, the  
message gets delivered on the handset (I can get the delivery  
notification) but there is nothing on the handsets.




Any Help would be appreciated



Regards

Ashwani Kumar












Re: Unacceptable push headers

2006-09-21 Thread Aarno Syvänen
Hi,can you send the post content you are sending to the list ?AarnoOn 21 Sep 2006, at 09:05, foong yam chong wrote:Hi ,     I got this error when i try to send a wap push message to PPG by using java code.     WARNING : PPG: headers_acceptable : got unacceptable push headers  WARNING : PPG: Unparsable push headers, the request unacceptable.     WAPPushBadMessageException: bad message received code="2000", desc="Not understood due to malformed syntax", fragment="multipart/related; boundary="com.firsthop.wap/1158821264794/1280219968017648412"     Any one there can help ? Can guide me where to set the Content_type header ?           		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail.

Re: Push messages using java

2006-08-30 Thread Aarno Syvänen
Hi Kavuri, that is good. You really need only Contatet-Type headers .AarnoOn 30 Aug 2006, at 10:22, Kavuri Prasad wrote:Hi Aarno, I have solved my problem with some other (Kannel user) code. The problem is in sending the Headers. I can post the java code, if any one needs it.thanks,Prasad On 8/28/06, Aarno Syvänen [EMAIL PROTECTED] wrote: Hi Kavuri,indeed, if you send exactly same headers as test_ppg, and PPG does not accept them, your script language (?) does strange things with headers. Try tcpdump to see exactly what you are sending to PPG.AarnoOn 28 Aug 2006, at 10:39, Kavuri Prasad wrote: Dear Aarno,    My only problem with Headers. I am trying to add headers in the same format as test_ppg do. But I am not sure whether my Java application processing it properly or not.    I am getting    WARNING : PPG: headers_acceptable : got unacceptable push headers   WARNING : PPG: Unparsable push headers, the request unacceptable.    I strongly beleive that it is some thing to work on sending headers properly.    thanks, Prasad  

Re: Push messages using java

2006-08-24 Thread Aarno Syvänen

Well, PPG is part of Kannel. This is WAP Push. And to Kavuri:
If PPG does not return a document containing bad-message-fragment,
then something is seriously wrong. It definitely should.

Aarno

On 24 Aug 2006, at 06:18, Mi Reflejo wrote:


Sorry but i think that these mails are hence off-topic for the list.

Martin Conte.

On 8/23/06, Aarno Syvänen [EMAIL PROTECTED] wrote:


Hi Kavuri,

If you listen ppg connection, you would get bad message fragment,
You must do this any case, i think: otherwise you would not did you
success delivering the push.

Aarno


On 23 Aug 2006, at 08:26, Kavuri Prasad wrote:

Hi Aarno,

I don't have any bad message fragment. I am using log-level=0 in  
both sms

and wap configuration.
This problem stopped my work :( . Any alternatives..?

Thanks,
Prasad


On 8/22/06, Aarno Syvänen [EMAIL PROTECTED] wrote:



 Hi Kavuri,


 PPG should return an error message containing 'bad message  
fragment'.

 This would tell wher ePPG believes the error is.



 On 22 Aug 2006, at 09:53, Kavuri Prasad wrote:


 Hi Aarno,

 sorry for posting again (previouse mail bounced from kannel)
 Here is my code :

 buffer.append(--asdlfkjiurwgasf\r\n)
  .append(Content-Type: application/xml\r\n\r\n)

 .append(?xml version=\1.0\?\r\n)

 .append(!DOCTYPE pap PUBLIC \-//WAPFORUM//DTD PAP//EN 
\\r\n)


 .append(\
http://www.wapforum.org/DTD/pap_1.0.dtd\ \r\n)
 .append(pap\r\n)
 .append(push-message push-id=\)

 .append(vMessageID.trim())
 .append(\\r\n
deliver-before-timestamp=\2007-09-28T06:45:00Z\ \r\n)

.append(deliver-after-timestamp=\2006-07-28T06:45:00Z\
)
 .append(progress-notes-requested=\true\\r\n)

 .append(address address-value=\WAPPUSH=)
 .append(target)

 .append(/TYPE=PLMN\/\r\n)
 .append(quality-of-service
delivery-method=\unconfirmed\\r\nnetwork-required=\true\\r\n
network=\GSM\\r\nbearer-required=\true\\r\nbearer=\SMS\/)

 .append(/push-message\r\n)
 .append(/pap\r\n\r\n)

 .append(--asdlfkjiurwgasf\r\n)
 .append(Content-Type: text/vnd.wap.si\r\n\r\n)

 .append(?xml version=\1.0\?\r\n)
 .append(!DOCTYPE si PUBLIC \-//WAPFORUM//DTD SI 1.0// 
EN\\r\n)

 .append(\
http://www.wapforum.org/DTD/si.dtd\;\r\n)
 .append(si\r\n)
 .append(indication action=\signal-high\ si-id=\)
 .append(vMessageID)
 .append(\ href=\)

 .append(http://wap.yahoo.com )

 .append(\)
 .append(Download the Foodreg Application)
 .append(/indication\r\n)
 .append(/si\r\n)

 .append( --asdlfkjiurwgasf--\r\n\r\n);

 Sending http request using postmethod :


 Part[] parts = { new
StringPart(Content-Type,multipart/related;
boundary=asdlfkjiurwgasf; type=\application/xml\)};
 post.setRequestEntity(new MultipartRequestEntity(parts,
post.getParams()));


//post.setRequestHeader(Content-Type,\multipart/related; 
\boundary=asdlfkjiurwgasf;type=\application/xml\);


//post.setParameter(\Content-Type\,\multipart/related;\
boundary=asdlfkjiurwgasf; type=\application/xml\);
 //post.setParameter(Accept, application/xml);
 //post.setParameter(Content-Length,);
 post.setQueryString(new NameValuePair[] {
 new NameValuePair(username, y),
 new NameValuePair(password, xxx),

 new NameValuePair(to, target),
 new NameValuePair(text, message)
 });
 int status = client.executeMethod(post);

 Any suggestions ??

 Thanks for your kind support.












Re: Wap push sanity check

2006-08-24 Thread Aarno Syvänen

if you use PPG instead, it would do all this work for you

Aarno

On 24 Aug 2006, at 06:48, Mi Reflejo wrote:


I post wappushes constructing the pdu by hand too.

With some phones i has problems putting the http://;
Please try $submittedwappushurl = urlencode(www.google.com); // 
without http://


PD: If it don't work. Take a look to this working pdu, may help you:

0B05040B8423F0 (udh)
0003 (wappush)
95 (serialID)
0101 ( one message of one )
DC0601AE02056A0045C60C03
7761702E676F6F676C652E636F6D (url)
00010344657363617267612079612022476F6F676C6522 (Message)
000101

Martin.

On 8/22/06, Alex Kinch [EMAIL PROTECTED] wrote:

Hi Aarno

Must admit I haven't tried it yet, I've just been using PHP to
construct and send a wap push via the normal sendsms http interface.
Also tried it via sqlbox and no luck.

Will have a go with PPG and let you know how it goes..

Alex

On 8/21/06, Aarno Syvänen [EMAIL PROTECTED] wrote:
 Hello,

 does PPG work ?

 Aarno

 On 18 Aug 2006, at 23:12, Alex Kinch wrote:

  Hello,
 
  Seem to be having some problems with WAP push. The code to  
construct

  the UDH and message is below. It used to work, but then somewhere
  along the line it stopped.
 
  Tried to both Nokia and SonyEricsson handsets, and both are  
ignoring

  the message.
 
  If someone could take a look and make sure my construction  
techniques

  are right I would appreciate it.
 
  Thanks,
  Alex
 
  $from = Sender;
  $to = 44xxx;
 
  function hex_encode( $text, $joiner='' ) {
 for ($l=0; $lstrlen($text); $l++) {
   $letter = substr($text, $l, 1);
   $ret .= sprintf(%s%02X, $joiner, ord 
($letter));

 }
   return $ret;
 }
 
  $submittedwappushurl = urlencode(http://www.google.com;);
  $submittedwappushtext = test;
 
 // override messagebody with wappush and set udh
 $messageudh = %06%05%04%0B%84%23%F0;
 $messagebody =
  %1B%06%01%AE%02%05%6A%00%45%C6%0C%03.hex_encode
  ($submittedwappushurl,'%').%00%01%03.hex_encode
  ($submittedwappushtext,'%').%00%01%01;












Re: Push messages using java

2006-08-22 Thread Aarno Syvänen
Hi,what you are using as a line break. It must be \r\n.(as MIMW spec would tell you)AarnoOn 22 Aug 2006, at 03:22, Kavuri Prasad wrote:Dear Arno,Thanks for your reply. I tried with post also. With post I got different message in PPG log:WARNING: PPG: headers_acceptable: got unacceptable push headers  WARNING: PPG: Unparsable push headers, the request unacceptable DEBUG: PPG: send_bad_message_response: telling pi I tried to set the headers in 2 ways 1)   Part[] parts = { new StringPart("Content-Type","multipart/related; boundary=asdlfkjiurwgasf; type=\"application/xml\"")};  post.setRequestEntity(new MultipartRequestEntity(parts, post.getParams())); 2) post.setParameter("Content-Type","multipart/related; boundary=asdlfkjiurwgasf; type=\"application/xml\"");             Please alert me If I am wrong or suggest me any other solution . Thanks a lot for your time.Thanks,Prasad On 8/21/06, Aarno Syvänen [EMAIL PROTECTED] wrote:Hi Kavuri,   to send message to ppg, you must do http post, not get.    Aarno   On 18 Aug 2006, at 07:47, Kavuri Prasad wrote:  Hi Deon, Thanks for your reply. I followed exactly as you said. But I am getting an error at Kannel side : Can you please guide me about setting the content type as header. I am always getting following error : "No MIME content received, the request unacceptable".   -PROBLEM Description ---PPG: ip_allowed_by_ppg: ip found from allowed list 2006-08-15 16:02:16 [15608] [14] INFO: PPG: Accept request /cgi-bin/wappush.cgi from  192.168.0.1022006-08-15 16:02:16 [15608] [14] WARNING: PPG: No MIME content received, the request unacceptable 2006-08-15 16:02:16 [15608] [14] DEBUG: PPG: send_bad_message_response: telling pi-In my Java application Iam using pache commons HttpClient to process the USL. I am using Post Method !!! my code: - Java Code private void process(HttpServletRequest request, HttpServletResponse response) {        String target = null;        target = "0060133186859";         StringBuffer buffer = new StringBuffer();        String vMessageID="[EMAIL PROTECTED]";         // appending message        buffer.append("--multipart-boundary\r\n")      .append("Content-type: application/xml\r\n\r\n")    .append("?xml version=\"1.0\"?\r\n")    .append("!DOCTYPE pap PUBLIC \"-//WAPFORUM//DTD PAP 1.0//EN\"\r\n")    .append("\"http://www.wapforum.org/DTD/pap_1.0.dtd\ " \r\n")    .append("pap\r\n")     .append("push-message push-id=\"")    .append(vMessageID)    .append("\"\r\n")     .append("address address-value=\"WAPPUSH=")     .append(target)     .append("/TYPE=[EMAIL PROTECTED]\"/\r\n")    .append("quality-of-service delivery-method=\"unconfirmed\" network=\"GSM\" bearer=\"SMS\"/")     .append("/push-message\r\n")    .append("/pap\r\n\r\n")    .append("--multipart-boundary\r\n")    .append("Content-type: text/vnd.wap.si\r\n\r\n")     .append("?xml version=\"1.0\"?\r\n")    .append("!DOCTYPE si PUBLIC \"-//WAPFORUM//DTD SI 1.0//EN\"\r\n")    .append("\"  http://www.wapforum.org/DTD/si.dtd\"\r\n")    .append("si\r\n")    .append("indication action="" si-id=\"")    .append(vMessageID)     .append("\" href="">     .append("http://foodreg.dnsalias.net")    .append("\"")     .append("Download the Foodreg Application")      .append("/indication\r\n")    .append("/si\r\n")    .append("--multipart-boundary--\r\n");         //Process the received xml file and prepare sms         sendMessage(target, buffer.toString());            }    private void sendMessage(String target, String message) {        if (null == target) {             System.out.println("KannelSenderServlet.sendMessage () : Unable to send message! target number is null!");            return;        }        Header header = new Header();                HttpClient client = RequestUtil.getClient();//        GetMethod get = new GetMethod( RequestUtil.PUSHSMS_URL);        PostMethod post = new PostMethod(RequestUtil.PUSHSMS_URL);        // prepare param         try {//            get.setQueryString(new NameValuePair[] {//                    new NameValuePair("username", "foo"), //                    new NameValuePair("password", "bar"), //                    new NameValuePair("to", target),//                    

Re: Kannel is sometime freezing and wont let MTs messages go

2006-08-21 Thread Aarno Syvänen
Hello,Another possiblity is that your kannel is confifured for debugging, then it will be slowIf this is the case, configure for speed (--with-defaults option)AarnoOn 11 Aug 2006, at 17:34, Fourat Zouari wrote:Hello,Thanks for your helpSMSC is limiting the traffic to 2sms/s, i dont have a big trafic, doing some 1000 to 3000 per day.But if so, should i apply a throttling on my smpp connectors ? On 8/10/06, Aarno Syvänen [EMAIL PROTECTED] wrote: Hi,The queue is simply too long. You must try to find the bottleneck of your system .(SMSC just not accept too many messages, i would quess. If it is so, you should throttle the traffic)AarnoOn 26 Jul 2006, at 15:05, Fourat Zouari wrote: heello ;)On 7/24/06, Fourat Zouari  [EMAIL PROTECTED] wrote: Am unable to reproduce this phenomen, but it happens sometimes and i just need to reboot kannel service to get the queued MTs go out and sent properly. here's the kannel status when it's blocking/queuing MTs :  BEGIN    Kannel bearerbox version `cvs-20060301'. Build `May 26 2006 03:43:23', compiler `3.3.5 (Debian 1: 3.3.5-13)'. System Linux, release 2.4.27-2-686,   version #1 Wed Aug 17 10:34:09 UTC 2005, machine i686. Hostname  tux1.trit.com, IP  172.17.35.130. Libxml version 2.6.16. Using OpenSSL 0.9.7e   25 Oct 2004. Using native malloc.    Status: running, uptime 12d 16h 53m 25s    WDP: received 0 (0 queued), sent 0 (0 queued)   SMS: received 657 (0 queued), sent 161 (566 queued), store size 566   SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec   DLR: 18502 queued, using pgsql storage    Box connections:   smsbox:(none), IP  127.0.0.1 (0 queued), (on-line 12d 16h 52m 25s)    SMSC connections:   SMPP-01-TX    SMPP: 172.128.30.18:4000/4000:smpp1:VMA (online 44793s, rcvd 257, sent 55, failed 0, queued 0 msgs)   SMPP-01-TY    SMPP: 172.128.30.23:4000/4000:smpp2:VMA (online 138661s, rcvd 87, sent 37, failed 0, queued 0 msgs)    SMPP-02-TZ    SMPP: 172.128.30.20:4000/4000:smpp3:VMA  (online 138644s, rcvd 313, sent 69, failed 0, queued 0 msgs) END And here's the status just after the kannel's reboot, you can see how much MTs were sent   BEGIN    Kannel bearerbox version `cvs-20060301'. Build `May 26 2006 03:43:23', compiler `3.3.5 (Debian 1:3.3.5-13 )'. System Linux, release 2.4.27-2-686,   version #1 Wed Aug 17 10:34:09 UTC 2005, machine i686. Hostname  tux1.trit.com, IP 172.17.35.130. Libxml version 2.6.16. Using OpenSSL 0.9.7e   25 Oct 2004. Using native malloc.    Status: running, uptime 0d 0h 0m 41s   WDP: received 0 (0 queued), sent 0 (0 queued)    SMS: received 567 (0 queued), sent 567 (0 queued), store size 0   SMS: inbound 13.83 msg/sec, outbound 13.83 msg/sec   DLR: 19071 queued, using pgsql storage   Box connections:   smsbox:(none), IP  127.0.0.1 (0 queued), (on-line 0d 0h 0m 40s)   SMSC connections:   SMPP-01-TX    SMPP:  172.128.30.18:4000/4000:smpp1:VMA (online 41s, rcvd 0, sent 0, failed 0, queued 0 msgs)   SMPP-01-TY    SMPP: 172.128.30.23:4000/4000:smpp2:VMA (online 41s, rcvd 3, sent 3, failed 0, queued 0 msgs)    SMPP-02-TZ    SMPP: 172.128.30.20:4000/4000:smpp3:VMA  (online 41s, rcvd 564, sent 564, failed 0, queued 0 msgs) END Anyone can help please ?   

Re: Push messages using java

2006-08-21 Thread Aarno Syvänen
Hi Kavuri,to send message to ppg, you must do http post, not get.AarnoOn 18 Aug 2006, at 07:47, Kavuri Prasad wrote:Hi Deon, Thanks for your reply. I followed exactly as you said. But I am getting an error at Kannel side : Can you please guide me about setting the content type as header. I am always getting following error : "No MIME content received, the request unacceptable".   -PROBLEM Description ---PPG: ip_allowed_by_ppg: ip found from allowed list 2006-08-15 16:02:16 [15608] [14] INFO: PPG: Accept request /cgi-bin/wappush.cgi from  192.168.0.1022006-08-15 16:02:16 [15608] [14] WARNING: PPG: No MIME content received, the request unacceptable 2006-08-15 16:02:16 [15608] [14] DEBUG: PPG: send_bad_message_response: telling pi-In my Java application Iam using pache commons HttpClient to process the USL. I am using Post Method !!! my code: - Java Code private void process(HttpServletRequest request, HttpServletResponse response) {        String target = null;        target = "0060133186859";         StringBuffer buffer = new StringBuffer();        String vMessageID="[EMAIL PROTECTED]";         // appending message        buffer.append("--multipart-boundary\r\n")      .append("Content-type: application/xml\r\n\r\n")    .append("?xml version=\"1.0\"?\r\n")    .append("!DOCTYPE pap PUBLIC \"-//WAPFORUM//DTD PAP 1.0//EN\"\r\n")    .append("\"http://www.wapforum.org/DTD/pap_1.0.dtd\ " \r\n")    .append("pap\r\n")     .append("push-message push-id=\"")    .append(vMessageID)    .append("\"\r\n")     .append("address address-value=\"WAPPUSH=")     .append(target)     .append("/TYPE=[EMAIL PROTECTED]\"/\r\n")    .append("quality-of-service delivery-method=\"unconfirmed\" network=\"GSM\" bearer=\"SMS\"/")     .append("/push-message\r\n")    .append("/pap\r\n\r\n")    .append("--multipart-boundary\r\n")    .append("Content-type: text/vnd.wap.si\r\n\r\n")     .append("?xml version=\"1.0\"?\r\n")    .append("!DOCTYPE si PUBLIC \"-//WAPFORUM//DTD SI 1.0//EN\"\r\n")    .append("\" http://www.wapforum.org/DTD/si.dtd\"\r\n")    .append("si\r\n")    .append("indication action="" si-id=\"")    .append(vMessageID)     .append("\" href="">     .append("http://foodreg.dnsalias.net")    .append("\"")     .append("Download the Foodreg Application")      .append("/indication\r\n")    .append("/si\r\n")    .append("--multipart-boundary--\r\n");         //Process the received xml file and prepare sms         sendMessage(target, buffer.toString());            }    private void sendMessage(String target, String message) {        if (null == target) {             System.out.println("KannelSenderServlet.sendMessage () : Unable to send message! target number is null!");            return;        }        Header header = new Header();                HttpClient client = RequestUtil.getClient();//        GetMethod get = new GetMethod( RequestUtil.PUSHSMS_URL);        PostMethod post = new PostMethod(RequestUtil.PUSHSMS_URL);        // prepare param         try {//            get.setQueryString(new NameValuePair[] {//                    new NameValuePair("username", "foo"), //                    new NameValuePair("password", "bar"), //                    new NameValuePair("to", target),//                    new NameValuePair("text", message) //            });            post.setQueryString(new NameValuePair[] {                     new NameValuePair("username", "foo"),                    new NameValuePair("password", "bar"),                     new NameValuePair("to", target),                     new NameValuePair("text", message)            });            int status = client.executeMethod(post);            System.out.println("KannelSenderServlet.sendMessage() : executing for " + RequestUtil.SENDSMS_URL + ", status = " + status);            if (HttpStatus.SC_OK == status) {                // request is successful                 System.out.println("KannelSenderServlet.sendMessage () : Sending SMS to target recipient successful...");            }        } catch (Exception e) {            System.out.println(" KannelSenderServlet.sendMessage() : Unable to execute request: " + e.getMessage());        } finally {            post.releaseConnection();        }                    }}-END  Thanks alot for your time    On 8/15/06, Deon van der Merwe [EMAIL PROTECTED] wrote: Hi Kavuri,On 8/15/06, Kavuri Prasad [EMAIL PROTECTED]  wrote: I have to push an URL to the mobile. For this I planned to use PUSH Proxy Gateway. I have configured PPG under kannel. (Kannel's SMSC and WAP services are working fine). But I do not know how to initiate this Kannel's PPG service from my Java  coding. Can some one help me?Here is more or less how we use it:- I build the 

Re: Wap push sanity check

2006-08-21 Thread Aarno Syvänen

Hello,

does PPG work ?

Aarno

On 18 Aug 2006, at 23:12, Alex Kinch wrote:


Hello,

Seem to be having some problems with WAP push. The code to construct
the UDH and message is below. It used to work, but then somewhere
along the line it stopped.

Tried to both Nokia and SonyEricsson handsets, and both are ignoring
the message.

If someone could take a look and make sure my construction techniques
are right I would appreciate it.

Thanks,
Alex

$from = Sender;
$to = 44xxx;

function hex_encode( $text, $joiner='' ) {
   for ($l=0; $lstrlen($text); $l++) {
 $letter = substr($text, $l, 1);
 $ret .= sprintf(%s%02X, $joiner, ord($letter));
   }
 return $ret;
   }

$submittedwappushurl = urlencode(http://www.google.com;);
$submittedwappushtext = test;

   // override messagebody with wappush and set udh
   $messageudh = %06%05%04%0B%84%23%F0;
   $messagebody =
%1B%06%01%AE%02%05%6A%00%45%C6%0C%03.hex_encode 
($submittedwappushurl,'%').%00%01%03.hex_encode 
($submittedwappushtext,'%').%00%01%01;





Re: Kannel is sometime freezing and wont let MTs messages go

2006-08-10 Thread Aarno Syvänen
Hi,The queue is simply too long. You must try to find the bottleneck of your system .(SMSC just not accept too many messages, i would quess. If it is so, you shouldthrottle the traffic)AarnoOn 26 Jul 2006, at 15:05, Fourat Zouari wrote:heello ;)On 7/24/06, Fourat Zouari [EMAIL PROTECTED] wrote: Am unable to reproduce this phenomen, but it happens sometimes and i just need to reboot kannel service to get the queued MTs go out and sent properly.here's the kannel status when it's blocking/queuing MTs :  BEGIN    Kannel bearerbox version `cvs-20060301'. Build `May 26 2006 03:43:23', compiler `3.3.5 (Debian 1:3.3.5-13)'. System Linux, release 2.4.27-2-686,   version #1 Wed Aug 17 10:34:09 UTC 2005, machine i686. Hostname tux1.trit.com, IP  172.17.35.130. Libxml version 2.6.16. Using OpenSSL 0.9.7e   25 Oct 2004. Using native malloc.   Status: running, uptime 12d 16h 53m 25s    WDP: received 0 (0 queued), sent 0 (0 queued)   SMS: received 657 (0 queued), sent 161 (566 queued), store size 566   SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec   DLR: 18502 queued, using pgsql storage    Box connections:   smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 12d 16h 52m 25s)    SMSC connections:   SMPP-01-TX    SMPP: 172.128.30.18:4000/4000:smpp1:VMA (online 44793s, rcvd 257, sent 55, failed 0, queued 0 msgs)   SMPP-01-TY    SMPP: 172.128.30.23:4000/4000:smpp2:VMA (online 138661s, rcvd 87, sent 37, failed 0, queued 0 msgs)    SMPP-02-TZ    SMPP:172.128.30.20:4000/4000:smpp3:VMA  (online 138644s, rcvd 313, sent 69, failed 0, queued 0 msgs) END And here's the status just after the kannel's reboot, you can see how much MTs were sent  BEGIN    Kannel bearerbox version `cvs-20060301'. Build `May 26 2006 03:43:23', compiler `3.3.5 (Debian 1:3.3.5-13)'. System Linux, release 2.4.27-2-686,   version #1 Wed Aug 17 10:34:09 UTC 2005, machine i686. Hostname  tux1.trit.com, IP 172.17.35.130. Libxml version 2.6.16. Using OpenSSL 0.9.7e   25 Oct 2004. Using native malloc.    Status: running, uptime 0d 0h 0m 41s   WDP: received 0 (0 queued), sent 0 (0 queued)    SMS: received 567 (0 queued), sent 567 (0 queued), store size 0   SMS: inbound 13.83 msg/sec, outbound 13.83 msg/sec   DLR: 19071 queued, using pgsql storage   Box connections:   smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 0m 40s)   SMSC connections:   SMPP-01-TX    SMPP: 172.128.30.18:4000/4000:smpp1:VMA (online 41s, rcvd 0, sent 0, failed 0, queued 0 msgs)   SMPP-01-TY    SMPP: 172.128.30.23:4000/4000:smpp2:VMA (online 41s, rcvd 3, sent 3, failed 0, queued 0 msgs)    SMPP-02-TZ    SMPP:172.128.30.20:4000/4000:smpp3:VMA  (online 41s, rcvd 564, sent 564, failed 0, queued 0 msgs) END Anyone can help please ? 

Re: RE : Fwd: Memory re-allocation failed

2006-08-10 Thread Aarno Syvänen

Hi,

did you compile Kannel with debug option ?

Aarno

On 02 Aug 2006, at 13:01, P. Gerard MBOUYAP wrote:


Hi

I always had the same problem as you.
I use kannel as WAP Gateway. After 6 days, my
remaining RAM is 20MO. The Panic moment occurs.

Can somebody help me with a patch?

Regards



pu(s):  0.0% us,  0.3% sy,  0.0% ni, 99.7% id,  0.0%
wa,  0.0% hi,  0.0% si
Mem:507580k total,   268772k used,   238808k free,
   40872k buffers
Swap:  1020116k total,0k used,  1020116k free,
  126800k cached

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEM
TIME+  COMMAND
1 root  16   0  1744  568  492 S  0.0  0.1
0:00.84 init
2 root  34  19 000 S  0.0  0.0
0:00.00 ksoftirqd/0




--- Allison Almeida [EMAIL PROTECTED] a
écrit :


In the PANIC moment, kannel is whith approximately
5.000.000 msgs sent, 2000
DLRs queued, and no more than 2000 messages failed
in 1 day and 22 hours.

[]s
Allison Almeida

-- Forwarded message --
From: Allison Almeida [EMAIL PROTECTED]
Date: 26/07/2006 18:55
Subject: Memory re-allocation failed
To: users@kannel.org

Stipe.


Opened the bug track, under #361, but i collect more
data that can be useful
for the diagnostic. I'll put on bugtracker too.

Obs.: Is correct to post in users list, or would to
post in devel list?

I noticed that VSZ is on RAM limit and the swap is
not used yet, just a few
minutes before kannel PANIC on every time from
bearerbox's down.

I know that swap use is transparent for
applications, but it seems like in
the moment that bearerbox try to realloc a portion
of memory that exceed the
physical memory, occurs the panic(realloc return
NULL). Could be a bug in
realloc function?(version glibc-2.3.2)


[]s
Allison Almeida



TOP
Mem:  3615152k av, 3594160k used,   20992k free,
  0k shrd,   94632k
buff
   2744592k actv,  523336k in_d,
68652k in_c
Swap: 2096472k av,   31976k used, 2064496k free
   1393848k
cached

PS
USER   PID %CPU %MEM   VSZ  RSS TTY  STAT
START   TIME COMMAND
root 23469  1.3 53.0 3114184 1917912 ?   S
12:09   7:12 bearerbox -v
4 -- /kannel/conf/kannel.conf
root 23470  8.1  0.0 100064 3396 ?   S
12:09  43:06 smsbox -v 4
-- /kannel/conf/kannel.conf

TOP
Mem:  3615152k av, 3593504k used,   21648k free,
  0k shrd,  176068k
buff
   2731916k actv,  525332k in_d,
68128k in_c
Swap: 2096472k av,   32624k used, 2063848k free
   1287316k
cached

PS
USER   PID %CPU %MEM   VSZ  RSS TTY  STAT
START   TIME COMMAND
root 21759  0.0 53.4 3129068 1934080 ?   S
Jul21   0:05 bearerbox -v
4 -- /kannel/conf/kannel.conf
root 21760  2.7  0.0 100180 2980 ?   S
Jul21  84:46 smsbox -v 4
-- /kannel/conf/kannel.conf


-- Forwarded message --
From: Allison Almeida [EMAIL PROTECTED]
Date: 06/07/2006 20:36
Subject: Re: Fwd: Memory re-allocation failed
To: Stipe Tolj [EMAIL PROTECTED]
Cc: users@kannel.org

Ok. I will.

Thanks.
Allison Almeida.

2006/7/6, Stipe Tolj [EMAIL PROTECTED]:


Allison Almeida wrote:


Stipe.


Here is the result refer to errors that i send:

2006-06-25 09:02:42 [6378] [3] PANIC: Memory

re-allocation failed

2006-06-25 09:02:42 [6378] [3] PANIC: System

error 12: Cannot allocate

memory
2006-06-25 09:02:42 [6378] [3] PANIC:

bearerbox(gw_panic+0x175)

[0x80caf0e]

2006-06-25 09:02:42 [6378] [3] PANIC:

bearerbox(gw_native_realloc+0x63)

[0x80bf57f]
2006-06-25 09:02:42 [6378] [3] PANIC: bearerbox

[0x80cbe47] -

octstr_grow

2006-06-25 09:02:42 [6378] [3] PANIC:

bearerbox(octstr_insert+0xcb)

[0x80ce52b]
2006-06-25 09:02:42 [6378] [3] PANIC:

bearerbox(octstr_append+0x46)

[0x80ceed1]
2006-06-25 09:02:42 [6378] [3] PANIC:

bearerbox(bb_print_status+0x3a1)

[0x80522de]
2006-06-25 09:02:42 [6378] [3] PANIC: bearerbox

[0x8056589] -

httpd_status

2006-06-25 09:02:42 [6378] [3] PANIC: bearerbox

[0x8056f35] -

httpd_serve

2006-06-25 09:02:42 [6378] [3] PANIC: bearerbox

[0x805721c] -

httpadmin_run

2006-06-25 09:02:42 [6378] [3] PANIC: bearerbox

[0x80c06dc] - new_thread

2006-06-25 09:02:42 [6378] [3] PANIC:

/lib/tls/libpthread.so.0

[0xb2cdec]

2006-06-25 09:02:42 [6378] [3] PANIC:

/lib/tls/libc.so.6(__clone+0x5a)

[0x9faa2a]



2006-06-28 13:37:34 [24970] [91] PANIC: Memory

re-allocation failed

2006-06-28 13:37:34 [24970] [91] PANIC: System

error 12: Cannot allocate

memory
2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox(gw_panic+0x175)

[0x80caf0e]
2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox(gw_native_realloc+0x63)

[0x80bf57f]
2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox [0x80cbe47] -

octstr_grow

2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox(octstr_insert_char+0x99)

[0x80cedb7]
2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox [0x80816c8] -

convert_addr_from_pdu
2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox [0x80817e0] -

pdu_to_msg

2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox [0x8084049] -

handle_pdu

2006-06-28 13:37:34 [24970] [91] PANIC:

bearerbox 

Re: PPG mini HOWTO!!! :)

2006-01-24 Thread Aarno Syvänen
Great ! can I add it tp userguide ? People seems have similar  
problems ...


Aarno

On 21 Jan 2006, at 00:20, Juan Nin wrote:


if anyone finds something wrong on what I'm doing for PPG,
or wants to contribute on anything, feel free to post about it  ;)

Regards,

Juan






Re: could you please help me guys ............!!!!! ( PPG - Kannel )

2006-01-17 Thread Aarno Syvänen
Mini HOTO is definitely a good idea :) Would like to add it to the  
documentation, too


Aarno

On 16 Jan 2006, at 19:06, Juan Nin wrote:


Well I could make it work now!!!  :)

Actually I knew about the PAP, SI, etc, since I already worked some  
time ago with it. I used the PPG server of a carrier and I had to  
POST all that


But I was having problem on sending it to Kannel...

Seems I rested this weekend, and today I found that I had a ppg- 
deny-ip that was causing me all my troubles  :P


I have just been able to send wap push via PPG!!!  =D

I'm going to make some more tests, and when finished I'll send a  
mini HOWTO to the list.


Now that I got what my error was, I guess the docs are not that  
bad... Anyway maybe the part about posting the XML could be  
clarified a bit more


As soon as I can I'll post to the list what I did, plus some PHP  
code for the WAP Push sending


As a note, until now I'm using the method of sending Wap Push via  
send-sms, using the code posted by Alejandro Guerrieri some time  
ago on the list (there was also a similar Java version posted).


But with that method I'm having problems with some Motorola's, for  
example V3 and V300 which don't receive the Wap Push. I've just  
done tests via PPG to V3 and with it, it works fine!  :)


regards,

Juan


Aarno Syvänen wrote:
You got me ;) Yes, but tell what is unclear in the documentation,   
this will help.
I think real problem her is test_ppg documentation. Even though  
this  is actually
just a test program, people will use is at least as a skeleton for  
a  push initiator (PI).

Am I right here ?
To start with, PI speaks to PPG using a separate protocol, called   
PAP. So you must
create PAP document (MIME multipart) and send it to PPG. However,   
Kannel sources
contain an example PI, at yes/test_ppg.c. A the name implies, it  
is  originally a test

program, but it is a working  PI, as it must be for testing Kannel
Test_ppg will combine to xml documents, push control document and   
push content
document into a proper multipart PAP. Kannel sources contains   
examples of both.
There is control document for sending over GSM network, test/  
smstestppg.txt:

?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP//EN
  http://www.wapforum.org/DTD/pap_1.0.dtd;
pap
  push-message push-id=[EMAIL PROTECTED]
  deliver-before-timestamp=2005-11-15T06:45:00Z
  deliver-after-timestamp=2001-02-28T06:45:00Z
  progress-notes-requested=false
address address-value=WAPPUSH=+41796512294/ 
[EMAIL PROTECTED]

/address
quality-of-service
priority=low
delivery-method=unconfirmed
network-required=true
network=gsm
bearer-required=true
bearer=sms
/quality-of-service
  /push-message
/pap
As you see, xml document is quite readable. Most important field  
here  the address, which is a
hone number of international format. Note that / 
[EMAIL PROTECTED]  is a part of
address meaning type is plmn, as defined by ppg.gni.ch. Latter is   
used for user defined

types.
There another example push control file, iptestppg.txt. This can  
be  used with simulators,

it uses ip as an address.
Content can be SI, SL, or MMS. Recommended plain wap push content  
is  SI, because all
phones to not accept SL. Kannel sources again contain example SI   
document,  tst/si,txt:

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication href=http://www.gni.ch;
si-id=[EMAIL PROTECTED]
action=signal-high
created=1999-06-25T15:23:15Z
si-expires=2006-06-30T00:00:00Z
You have 4 new emails
/indication
/si
The most important thing here is href field, which tells to the
phone what url it should load. Notice that with si there are
follwing known issues:
a) obviously, your phone must accept pushes. This is not a  
default,  in many cases,

you must configure the phone.
b) si-id must be diffrent for different pushes
c) action signal-high quarantess that every phone will notify the   
push immediately.

d) and remember to set expiry filed properly ;)
After test_ppg has created the PAP document, it POSTs it to PPG   
(notice: PI really
does POST, not GET. Lack of body generates an error message). Pi   
would add
mandatory multipart headers, and some optional ones (more about  
these  later).
Basic way to start test_ppg is following (using exmaple files   
mentioned earlier):

test_ppg [options] push_url si.txt smstestppg.txt
(You can get this information by typing .just test_ppg)
With options you can add various headers:
-c: The content type, if not si
-a: This is push client application in the phone that handles the   
content. You do

not need to set it, if you are doing plain push.
-b  set username pass word headers
-e Transfer encoding (base64 is currently supported)
-m value: set header X-Kannel-DLR-Mask
-u value: set header X-Kannel-DLR-Url
with option -S, you can add any header you want
Aarno
On 12

Re: could you please help me guys ............!!!!! ( PPG - Kannel )

2006-01-16 Thread Aarno Syvänen
You got me ;) Yes, but tell what is unclear in the documentation,  
this will help.
I think real problem her is test_ppg documentation. Even though this  
is actually
just a test program, people will use is at least as a skeleton for a  
push initiator (PI).


Am I right here ?

To start with, PI speaks to PPG using a separate protocol, called  
PAP. So you must
create PAP document (MIME multipart) and send it to PPG. However,  
Kannel sources
contain an example PI, at yes/test_ppg.c. A the name implies, it is  
originally a test

program, but it is a working  PI, as it must be for testing Kannel

Test_ppg will combine to xml documents, push control document and  
push content
document into a proper multipart PAP. Kannel sources contains  
examples of both.


There is control document for sending over GSM network, test/ 
smstestppg.txt:


?xml version=1.0?
!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP//EN
  http://www.wapforum.org/DTD/pap_1.0.dtd;
pap
  push-message push-id=[EMAIL PROTECTED]
  deliver-before-timestamp=2005-11-15T06:45:00Z
  deliver-after-timestamp=2001-02-28T06:45:00Z
  progress-notes-requested=false
address address-value=WAPPUSH=+41796512294/[EMAIL PROTECTED]
/address
quality-of-service
priority=low
delivery-method=unconfirmed
network-required=true
network=gsm
bearer-required=true
bearer=sms
/quality-of-service
  /push-message
/pap

As you see, xml document is quite readable. Most important field here  
the address, which is a
hone number of international format. Note that /[EMAIL PROTECTED]  
is a part of
address meaning type is plmn, as defined by ppg.gni.ch. Latter is  
used for user defined

types.

There another example push control file, iptestppg.txt. This can be  
used with simulators,

it uses ip as an address.

Content can be SI, SL, or MMS. Recommended plain wap push content is  
SI, because all
phones to not accept SL. Kannel sources again contain example SI  
document,  tst/si,txt:


?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication href=http://www.gni.ch;
si-id=[EMAIL PROTECTED]
action=signal-high
created=1999-06-25T15:23:15Z
si-expires=2006-06-30T00:00:00Z
You have 4 new emails
/indication
/si

The most important thing here is href field, which tells to the
phone what url it should load. Notice that with si there are
follwing known issues:

a) obviously, your phone must accept pushes. This is not a default,  
in many cases,

you must configure the phone.
b) si-id must be diffrent for different pushes
c) action signal-high quarantess that every phone will notify the  
push immediately.

d) and remember to set expiry filed properly ;)

After test_ppg has created the PAP document, it POSTs it to PPG  
(notice: PI really
does POST, not GET. Lack of body generates an error message). Pi  
would add
mandatory multipart headers, and some optional ones (more about these  
later).


Basic way to start test_ppg is following (using exmaple files  
mentioned earlier):


test_ppg [options] push_url si.txt smstestppg.txt
(You can get this information by typing .just test_ppg)

With options you can add various headers:

-c: The content type, if not si
-a: This is push client application in the phone that handles the  
content. You do

not need to set it, if you are doing plain push.
-b  set username pass word headers
-e Transfer encoding (base64 is currently supported)
-m value: set header X-Kannel-DLR-Mask
-u value: set header X-Kannel-DLR-Url

with option -S, you can add any header you want

Aarno

On 12 Jan 2006, at 17:59, Juan Nin wrote:


Actually there's no doubt there's a problem with PPG...

PPG is a topic that comes to the list very often, and documentation  
about it is not clear enough...


I don't see also much difference between that tutorial from the IBM  
site and the Kannel docs... they both explain more or less the same  
things, and both explain a bit of the use of the test_ppg program...


But I don't want to use the test_ppg program, and I don't think  
most of us want to use it either on their systems...


I just want to know which is the way to invoke the PPG server to  
send the control and SI, and that seems to not be documented at all...


Some time ago I used the PPG server of a carrier, and I sended a  
POST request with the control part and the SI, I suppose with this  
it must be similar, but there's no place where this is described...


And the configuration of PPG is also not very clear, and the huge  
quantity of mails about this topic makes it clear it's not well  
domcumented...


There's good info on how to use sendsms, the variables you can use  
with it, some examples, and many examples also on the mailing-list,  
but almost nothing on PPG...


I haven't seen any mail on the mailing-list in the more or less 2  
years that I'm subscribed to the list that clarifies this mistery...


Shouldn't 

Re: Kannel 1.4.0 and MySQL 5.0.18

2006-01-12 Thread Aarno Syvänen

You should try CVS, which is now about to be released as 1.4.1.

Aarno

On 05 Jan 2006, at 22:49, Roberto Saavedra N. wrote:



Hello list users,

I´ve just upgraded MySQL to version 5.0.18 in a testing linux box.   
Kannel
1.4.0 was running ok with the previous version of MySQL (3.23.54),  
but it

does not seem to connect to the new database manager.

The configuration file is the same, and the DLR table in the new  
MySQL has

all correct fields.

Have any of you had the same problem ?

Thx,

Rob.

--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.14.7/214 - Release Date:  
23/12/2005










Re: multiple recipients for PPG.

2006-01-12 Thread Aarno Syvänen
What the logs show ?AarnoOn 03 Jan 2006, at 18:55, Jeff Sharrow wrote:I tried to use the multiple addresses by separating with commas but it failed using the test_ppg command. The program ran fine but I never received any message on the two phones I was testing with. I can remove one of the numbers and then I can receive the message, but with both numbers in PAP file I cannot get anything on either phone. Here is my PAP document I was using for testing. ?xml version="1.0"?!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"  "http://www.wapforum.org/DTD/pap_1.0.dtd"pap  push-message push-id="[EMAIL PROTECTED]"  deliver-before-timestamp="2006-01-15T06:45:00Z"  deliver-after-timestamp="2001-02-28T06:45:00Z"  progress-notes-requested="false"    address address-value="WAPPUSH=+1217774,+12177405204/TYPE=[EMAIL PROTECTED]"    /address    quality-of-service    priority="low"    delivery-method="unconfirmed"    network-required="true"    network="gsm"    bearer-required="true"    bearer="sms"    /quality-of-service  /push-message/pap Jeffery SharrowTMP Corp. dba Simmetry Communications 

Fwd: [Kannel 0000285]: HTTP Status 202 for not sended sms

2006-01-02 Thread Aarno Syvänen
10.2.3 202 AcceptedThe request has been accepted for processing, but the processing has not been completed. The request might or might not eventually be acted upon, as it might be disallowed when processing actually takes place. There is no facility for re-sending a status code from an asynchronous operation such as this.The 202 response is intentionally non-committal. Its purpose is to allow a server to accept a request for some other process (perhaps a batch-oriented process that is only run once per day) without requiring that the user agent's connection to the server persist until the process is completed. The entity returned with this response SHOULD include an indication of the request's current status and either a pointer to a status monitor or some estimate of when the user can expect the request to be fulfilledIf you want to know *anything* about SMS delivery status, ask delivery reports. 202 means only 'HTTP part worked'. So this is not a bug.AarnoBegin forwarded message:From: [EMAIL PROTECTED]Date: Thu 29 Dec 2005 12:17:27 GMT+01:00Subject: [Kannel 285]: HTTP Status 202 for not sended sms The following NEW bug has been ADDED.===http://bugs.kannel.org/view_bug_page.php?f_id=285===Reporter:                   OzzmanHandler:                    ===Project:                    KannelBug ID:                     285Category:                   General HTTPReproducibility:            alwaysSeverity:                   featurePriority:                   normalStatus:                     new===Date Submitted:             12-29-05 11:17 GMTLast Modified:              12-29-05 11:17 GMT===Summary:                    HTTP Status 202 for not sended smsDescription: I have one SMSC - MTS_RF.When i try to send sms message through kannel with smsc=MobikomK, thenkannel try to send it to MTS_RF SMSC and say: Status: 202 Answer Sent.in smsbox.logand FAILED Send SMS [SMSC:MTS_RF]... in access.log=== 

Re: Where to find better Wap push documetation?

2006-01-02 Thread Aarno Syvänen
Can you be more specific ? It could be useful to add some FAQs to the  
documentation.


Aarno

On 23 Dec 2005, at 13:02, bo jiang wrote:


Hello there,
   I have setup kannel on Linux and SMSbox and bear runs pretty  
well, I also setup wapbox, but there are not enough documentation  
in the user guide on kannel site.
what are the cgi parameters and how they should be used?   I tried  
the example, got MIME information not found error or something like  
that.








Re: multiple recipients for PPG.

2006-01-02 Thread Aarno Syvänen
Use comma separated list as an address.AarnoOn 22 Dec 2005, at 16:54, Jeff Sharrow wrote:  Does anyone know the answer to this question? I have not received a response from when I sent it in the first time _ From: Jeff Sharrow Sent: Friday, December 16, 2005 8:55 AM To: users@kannel.org Subject: multiple recipients for PPG.Is either the Kannel PPG or the test_ppg capable handling of multiple recipients? If so what is the format of the PAP control document to include multiple recipients?Thanks,Jeffery SharrowTMP Corp. dba Simmetry Communications  

Re: Do i need to use PPG to set ESM?

2006-01-02 Thread Aarno Syvänen

Perhaps you should try PPG ? It creates required binary content for you.

Aarno

On 16 Dec 2005, at 23:17, David wrote:


Hey all,
I was wondering if somebody out there might be able to help me.
I use m-Qube...and i'm trying to do a wap pushthe guys at m- 
Qube are WORTHLESS at helping me do this.  I have been successful  
in sending regular messages, but not WAP pushes.


I was using the PHP code posted to this list and the smsbox to do  
it... i wasn't using the PPG or wapbox or anything.


M-qube says in order to make the wap push work, i need the ESM  
class needs Data.SM_UDH_GSM set, which they say is 0x40.


Is there a way to do this within kannel?  Do i need to use the  
PPG?  Or do i need to install a patch to set the ESM?


thanks for your help!


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com





Re: Kannel 1.4: DLR-NACK/MALFORMED

2006-01-02 Thread Aarno Syvänen
Delivery report: Negative Acknowledgement, Malformed messageOn 13 Dec 2005, at 10:34, Huber Gottfried wrote:  hello    i have upgraded to kannel 1.4   on Solaris 8 :     Kannel bearerbox   version `1.4.0'.Build `Nov 29 2005 12:03:43', compiler `2.95.2 19991024   (release)'.System SunOS, release 5.8, version Generic_117350-27, machine   sun4u.Hostname command4, IP 158.226.238.162.Libxml version   2.5.5.Using native malloc.SMSC: Siemens MC35      AT2[MC35]      Sometimes i get   FAILED - messages in the access.log:      2005-12-13 09:05:56 FAILED Send SMS [SMSC:MC35] [SVC:CommandPost] [ACT:] [BINF:] [from:0043xxx] [to:xxx] [flags:-1:0:-1:-1:3] [msg:11:xx] [udh:0:] 2005-12-13 09:05:56 DLR SMS [SMSC:MC35] [SVC:CommandPost] [ACT:] [BINF:] [from:0043] [to:xxx] [flags:-1:-1:-1:-1:16] [msg:14:NACK/MALFORMED] [udh:0:]  What does the DLR - NACK/MALFORMED    meen        thank you for help !!   Gottfried Huber

Re: what kind of Push Initiator

2005-12-13 Thread Aarno Syvänen
What was the error ? One thing that coms into mind is the separators. Kannel requires /r/n, as specified by MIME.(You would have an error complaining about preamble, because this is the first part of a message.)AarnoOn 12 Dec 2005, at 17:16, Jeff Sharrow wrote:I understand that whatever connects to the PPG for push is a PI. I was hoping for a cross section of what others are using as a PI mechanism. I saw someone else was trying what I have been attempting which is use the Openwave perl module as the PI to the PPG, but have not been able to get it to work. I hoped I could get a different feel for what most are using as a PI and possible get some information on how their setup works. Jeffery SharrowTMP Corp. dba Simmetry Communications  

Re: erroneous preamble / unable to parse mime content, the request unacceptable

2005-12-13 Thread Aarno Syvänen
Hi,it seems that the separator (between  MIME parts) is worng. It should be /r/n.Aarno On 12 Dec 2005, at 07:48, cool planet wrote:Hi ,      Just for testing i used to send push messages via openwave perl module.  http://developer.openwave.com/dvl/support/documentation/jacks_hacks/archive/02mar.htm     kannel wapbox gives following error , why is that ? what is wrong ? i wont receive any push messages to my mobile ?         INFO: PPG: Accept request /cgi-bin/wap-push.cgi from localhost WARNING: erroneous preamble WARNING: PPG: unable to parse mime content, the request unacceptable     Thank you ,   Kane. 	 		Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping

Re: send sms via the kannel - ppg

2005-12-13 Thread Aarno Syvänen
No, you would need wapbox, and its ppg to send wap push and smsbox to recive delivery reports.AarnoOn 11 Dec 2005, at 06:58, cool planet wrote:so , that's meant do i have to have separate smsbox configured in my pc, or else two different sms'c has to be configred in my pc ?? one for puch finctionality and the otherone for sending sms.     Thank you,  Kane.  Aarno Syvänen [EMAIL PROTECTED] wrote:Smsbox is not used for pushes proper. It is used for sms level delivery reports.  (Handling dlrs properly).PPG would indeed make binary sms, but is more like a application level protocol  using sms bearer (excluding, of course, the protocol PI speaks with PPG)AarnoAarnoOn 08 Dec 2005, at 08:42, cool planet wrote: hello ,Can you kindly tell me , does kannel ppg supports to send sms's via the smsbox ?since there is smsbox , smsc group, send-sms user do we have to define sendsms-url in smsbox or do we have to define any services in different way ?because , after access the push content (url) , i wanted to send sms / reply ,  to the wap push sender as a sms .Thanx in advance, Kane.  Yahoo! ShoppingFind Great Deals on Holiday Gifts at Yahoo! Shopping   	 		Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping

Re: what kind of Push Initiator

2005-12-09 Thread Aarno Syvänen
Every program that speaks with PPG is push initiator. One example MMSC. You must justimplement the interface, est of the program is unspecified.AarnoOn 08 Dec 2005, at 20:22, Jeff Sharrow wrote:  I have a question for the general user who has implemented PPG in their system. What kind / type of push initiator are you using for PPG? I have used the test_ppg successfully, but I am having issues with implementing anything else as the Push Initiator. I would appreciate any feedback on your PI. Thanks,Jeffery SharrowTMP Corp. dba Simmetry Communications  

Re: send sms via the kannel - ppg

2005-12-09 Thread Aarno Syvänen
Smsbox is not used for pushes proper. It is used for sms level delivery reports.(Handling dlrs properly).PPG would indeed make binary sms, but is more like a application level protocolusing sms bearer (excluding, of course, the protocol PI speaks with PPG)AarnoAarnoOn 08 Dec 2005, at 08:42, cool planet wrote: hello ,Can you kindly tell me , does kannel ppg supports to send sms's via the smsbox ?  since there is smsbox , smsc group, send-sms user do we have to define sendsms-url in smsbox or do we have to define any services in different way ?because , after access the push content (url) , i wanted to send sms / reply ,  to the wap push sender as a sms .Thanx in advance,   Kane.   	 		Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping

Re: could you please help me guys ............!!!!! ( PPG - Kannel )

2005-12-06 Thread Aarno Syvänen
So ask the question.AarnoOn 05 Dec 2005, at 15:08, cool planet wrote: Dear friends ,  I'm a kannel user . Two years back i have successfully used kannel smsgateway for our sms projects. Actually it was success.  So that,  i  wanted to thaking you all for  that great works done via the kannel  but today , i have a nother requrement to have a push proxy gateway . bfore i started that , i have read the faqs and kannel user's guide. after that i started to configure .  But it wasnt success , i thought that user guide isn't enough to fiish the ppg easily.   then after i decided to  ask help from mailing list. so have posted more and more questions / requestions / ..actually i asked helps.  some are reply me with very very short answers , extremely got confused.   so , please tell me to implement kannel as a push proxy gateway what shall i do ? how can i get a help ? who / which blogs might be answer my questions ?  doesnt kannel answer for simple questions which are not listed in the  kannel  mailing list  ?  but , i can remember in early days , kannel users / experts are really help full . they were helped from the begining to end.    please , very urgently i wanted to implement kannel ppg  , ? can i have any body's yahoo chat id ? then i can get help on line .  Thanx in advance, Kane. 		 Yahoo! Personals Let fate take it's course directly to your email. See who's waiting for you Yahoo! Personals

Re: Compiling error on Mac OS X 10.4

2005-12-02 Thread Aarno Syvänen
This is certainly true when we speak about modules in test directory.  
Tehse are used for testing, and are

actually not part of kannel proper.

Aarno

On 01 Dec 2005, at 22:45, Dan Phiffer wrote:

I figured it out. My advice to people searching for a solution to  
this  would be: don't be afraid of modifying the source code,  
specifically in changing what things are named.


I just search and replaced the word wait with gw_wait and then  
ran into a similar compile error when I tried compiling in MySQL  
support. Then I did the same thing, replacing list_delete with  
gw_list_delete


-Dan


On Dec 1, 2005, at 11:49 AM, Dan Phiffer wrote:


Hello list,

I just subscribed and am pretty new to Kannel (and telephony in  
general). I can't seem to compile and I'm wondering if this is a  
common problem somebody might be able to help with. Here is the  
error I'm getting:


$ ./configure
...
$ make
...
gcc -D_REENTRANT=1 -I. -Igw  -DDARWIN=1 -I/usr/local/php5/include/ 
libxml2 -o test/test_ppg.o -c test/test_ppg.c
test/test_ppg.c:84: error: 'wait' redeclared as different kind of  
symbol
/usr/include/sys/wait.h:241: error: previous declaration of 'wait'  
was here

make: *** [test/test_ppg.o] Error 1

I tried with both GCC 3.3 and GCC 4.0, but the same error comes up  
in both cases. Any ideas?


Thanks much!
-Dan









Re: ppg-url

2005-12-02 Thread Aarno Syvänen
a ) There are scripts. ppg-url is just a string. You can deifne ppg-url = "" if you want-b)  Kannel output is at DEBUG level. Kannel would issue at least WARNING, if therewere problems. (The message means that your push control document uses value"any", and so Kannel uses its internal defaults.)AarnoOn 02 Dec 2005, at 06:23, Chandana Bandara wrote:Hi List , Can somebody help me for this matter ? Chandana. - Original Message -From: Chandana BandaraTo: Aarno SyvänenCc: KannelSent: Wednesday, November 30, 2005 7:23 PMSubject: Re: ppg-urlhi Aarno, good to see ur reply , but could you please explain bit about ppg-url with an example ? bcause i tested with./test_ppg -q http://localhost:30080/cgi-bin/wap-push.cgi?username=user""password=pass content.txt control.txt result was , 2005-11-30 18:31:00 [5275] [1] DEBUG: TEST_PPG: push 0 done: reply from,  http://localhost:30080/cgi-bin/wap-push.cgi?username=userpassword=pass2005-11-30 18:31:00 [5275] [1] DEBUG: PAP COMPILER: doing semantic analysis for address type unknown address2005-11-30 18:31:00 [5275] [1] DEBUG: using defaults instead of anys can i know why i'm getting such strange out put ? where is wap-push.cgi located ? Thank you,Chandana.- Original Message -From: Aarno SyvänenTo: Chandana BandaraCc: KannelSent: Wednesday, November 30, 2005 6:30 PMSubject: Re: ppg-urlPppg-url is a simple identification string. It tells PPG that the request belongs to it. AarnoOn 30 Nov 2005, at 07:30, Chandana Bandara wrote:hi , I would like to know what would be the ppg-url and what kind of functions has to be satisfied with the ppg-url ? can someone explin with the example ? Thanx in advance,chandana

Re: ppg-url

2005-11-30 Thread Aarno Syvänen
Pppg-url is a simple identification string. It tells PPG that the request belongs to it. AarnoOn 30 Nov 2005, at 07:30, Chandana Bandara wrote:hi , I would like to know what would be the ppg-url and what kind of functions has to be satisfied with the ppg-url ? can someone explin with the example ? Thanx in advance,chandana

Re: please help ...........ppg

2005-11-30 Thread Aarno Syvänen
set ppg-url in the push configuration file. AarnoOn 28 Nov 2005, at 09:16, cool planet wrote: hi List,  when i trying to test my ppg with following command , it gives and error saying  2005-11-28 13:55:12 [3974] [14] ERROR: Request /cgi-bin/Push.cgi from 172.22.6.56: service not found ./test_ppg -q http://ip address:30080/cgi-bin/Push.cgi content.txt control.txtwhay is that ? how could i define ppg-url ? i think something wrong with ppg-url .pysically i have placed the Push.cgi in http://172.22.6.56/cgi-bin/Push.cgican somebody help me ...please ?Thank you,Kane.  		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free. 		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: Concatenating received message segments?

2005-11-30 Thread Aarno Syvänen
Why do you not let the phone to do reassembling ? If it cannot do it, it cannot understand longmessages either.AarnoOn 25 Nov 2005, at 03:18, Geoffrey Roberts wrote:Hi,You'll have to forgive me for sounding a mite clueless, but I'm new to using kannel.  I'm attempting to find out if it's possible to use kannel (specifically, version 1.4.0 running on Linux 2.6.8-1.521) to concatenate multiple received message segments, or at least to pass the relevant UDH parameters for each segment to the application which processes received messages.  We're trying to deal with messages longer than 160 ASCII characters — problem is that kannel interprets these segments as separate messages, and not only doesn't attempt to combine them, but also sends back two message receipts to the sender.  I've noticed significant segment parameters being set in the PDU dump, namely sar_total_segments and sar_segment_seqnum, but I've no idea how to pass them on to the python script that parses the messages.I've checked through the mailing list archives, the kannel user guide and FAQ, and haven't managed to find any conclusive answers to either problem, or even an indication that what I'm attempting clearly isn't possible.  Is there anything I'm missing?  Sorry in advance if this question's already been answered without my noticing.  If you need more information to help solve this problem, I'll see what I can provide.Regards,Geoffrey Robertskannel.conf

Re: Howto access the mobile phone net.

2005-11-30 Thread Aarno Syvänen
If you have more traffic, you can connect to smsc of an aggregator or  
phone company.


Aarno

On 29 Nov 2005, at 15:03, [EMAIL PROTECTED] wrote:


Hi,

Yeah i thought so, but then i have to pay like 20-25 euro cent pr.
message, and thats no fun.

Do all of you guys pay pr. message! That sounds expencive! :-(


- Ebbe


Hello,

  It's very simple your GSM modem is like mobile phone, u need to  
insert a

sim card and connect it with serial/usb to system running
unix/linux/solaris etc. where kannel (SMS gateway) must be  
runnning and

then u can send recv sms using the number u inserted in GSM modem.

  We have alreay setup and if u need more info pls take a look..

  www.TecExperts.com

  or mail me at [EMAIL PROTECTED]


TecExperts

  Bangalore, India

[EMAIL PROTECTED] wrote:
  Hi,

I have been on the list for a while, and heard about mobile  
phones, and
gsm modems - I can see how it works with the mobile phone, but how  
does it
work with the gsm modem? Is that like a mobile phone, or do you  
pay the

mobile phone operators to get access to the mobile phone net!?


Regards Ebbe






TecExperts


We make you compatible!
Nothing is impossible!!
Mob: +91-9886191636
Web: www.tecexperts.com
MSN: [EMAIL PROTECTED]

-
 Enjoy this Diwali with Y! India Click here








Re: kannel as mmsc or mmc gateway

2005-11-30 Thread Aarno Syvänen

No, but it can be used as PPG and and WAP GW needed by one.

Aarno

On 15 Nov 2005, at 01:15, Cidar Ramirez wrote:


Hi you guys know if kannel can work as mmsc or mmsgateway ?

Thanks,

Cidar








Re: Very Low Throughput

2005-11-10 Thread Aarno Syvänen

Configure with option with-defaults=speed.

Aarno

On 08 Nov 2005, at 17:20, Halwidi Munyati wrote:


Hello

I am a newbie to Kannel.

I am running 1.4.0 on FC3 configured with siemens MC35
modem. I am having problems with throughput. Kannel is
only able to send about 8 messages per minute.

Please help. My log and conf files are below.


Muc


2005-11-08 18:04:05 [3783] [7] DEBUG: AT2[xxx]:
send command status: 1
2005-11-08 18:04:05 [3783] [7] DEBUG: AT2[xx]: --
0011000B816290860672F6A7974F78D90D0A83723010399C0799D3F83219442EC3 
DFF3341D141E8FDF75371D744FD3D1A0293DEC16A7C72071D9FC969741CEB71D3483B1 
CA61B91B14A6D3E5E1313D6D2F83E4617A790E0ABBC9A0FCBB0E1ABFEB6C3228CC9EBF 
41F7B41BB4ACC1DAA0B41B1406B1EBE3751E449687EF2ED0F0EDA687C774D0941E768B 
D3639030EC5EBB00

2005-11-08 18:04:06 [3783] [7] DEBUG: AT2[xx]: --
^Z
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --



2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --
+CMGS: 233
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --
OK
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]:
send command status: 0
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]:
TP-Validity-Period: 24.0 hours
2005-11-08 18:04:12 [3783] [1] DEBUG: Dumping 302
messages and 0 acks to store
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --
AT+CMGS=147^M
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --



2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]:
send command status: 1
2005-11-08 18:04:12 [3783] [7] DEBUG: AT2[xx]: --
0011000B816290860631F6A7974F78D90D0A83723010399C0799D3F83219442EC3 
DFF3341D141E8FDF75371D744FD3D1A0293DEC16A7C72071D9FC969741CEB71D3483B1 
CA61B91B14A6D3E5E1313D6D2F83E4617A790E0ABBC9A0FCBB0E1ABFEB6C3228CC9EBF 
41F7B41BB4ACC1DAA0B41B1406B1EBE3751E449687EF2ED0F0EDA687C774D0941E768B 
D3639030EC5EBB00

2005-11-08 18:04:13 [3783] [7] DEBUG: AT2[xx]: --
^Z



# CORE
group = core
admin-port = 13000
admin-password = 
status-password = 
log-file = /var/log/kannel/kannel.log
log-level = 0
access-log = /var/log/kannel/access.log
smsbox-port = 13001
store-file = /var/log/kannel/kannel.store


#GSM Modem Virtual SMSC xx
group = smsc
smsc = at
smsc-id = xx
modemtype = auto
device = /dev/ttyS0
speed = 9600
sms-center = +26996060015
#preferred-prefix-regex = 26996
#validityperiod = 169
keepalive = 6
#sim-buffering = true


# SIEMENS MODEM SETUP
group = modems
id = SIEMENS MC35
name = siemens_ mc35
detect-string = SIEMENS
detect-string2 = MC35
init-string = AT+CNMI=1,2,0,1,1
speed = 9600
enable-hwhs = AT\\Q3
need-sleep = true


# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13131
global-sender = 13131
sendsms-chars = 0123456789+
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log = /var/log/kannel/access.log


# SEND-SMS USERS
group = sendsms-user
username = x
password = x


# SMS SERVICE 'Default'
# there should be default always
group = sms-service
keyword = default
#exec = /usr/local/bin/kannel_incoming %t %q %a
get-url = http://localhost/plugin/gateway/kannel/geturl.php?t=%tq= 
%qa=%a




___
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com






Re: service not found message

2005-09-19 Thread Aarno Syvänen

HTTP returned Not Found.

Aarno

On 13 Sep 2005, at 04:50, John M L wrote:

Can anyone tell me why the test_ppg app produces an error “push  
failed, service not found”?


I must be missing something in both the wap and ppg conf in kannel.

Here's the test_ppg output:


[EMAIL PROTECTED] test]# ./test_ppg tppg
2005-09-12 22:36:02 [11628] [0] INFO: a configuration file input  
assumed

2005-09-12 22:36:02 [11628] [0] DEBUG: Dumping Cfg 0x9362198
2005-09-12 22:36:02 [11628] [0] DEBUG:   filename = tppg
2005-09-12 22:36:02 [11628] [0] DEBUG:   dumping group (test-ppg):
2005-09-12 22:36:02 [11628] [0] DEBUG: group = test-ppg
2005-09-12 22:36:02 [11628] [0] DEBUG:   dumping group  
(configuration):
2005-09-12 22:36:02 [11628] [0] DEBUG: pap-file = /etc/ 
kannel/test/pappush.txt

2005-09-12 22:36:02 [11628] [0] DEBUG: group = configuration
2005-09-12 22:36:02 [11628] [0] DEBUG: push-url = http:// 
localhost:8080/wappush
2005-09-12 22:36:02 [11628] [0] DEBUG: content-file = /etc/ 
kannel/test/si.txt

2005-09-12 22:36:02 [11628] [0] DEBUG: username = wap_pusher
2005-09-12 22:36:02 [11628] [0] DEBUG: password = xa
2005-09-12 22:36:02 [11628] [0] DEBUG: Dump ends.
2005-09-12 22:36:02 [11628] [0] DEBUG: Started thread 1 (test/ 
test_ppg.c:push_thread)
2005-09-12 22:36:02 [11628] [1] DEBUG: Thread 1 (test/ 
test_ppg.c:push_thread) maps to pid 11628.

2005-09-12 22:36:02 [11628] [1] DEBUG: we have push content
2005-09-12 22:36:02 [11628] [1] DEBUG: Octet string at 0x935df70:
2005-09-12 22:36:02 [11628] [1] DEBUG:   len:  949
2005-09-12 22:36:02 [11628] [1] DEBUG:   size: 1024
2005-09-12 22:36:02 [11628] [1] DEBUG:   immutable: 0
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 0d 0a 2d 2d 61 73 64  
6c 66 6b 6a 69 75 72 77 67   ..--asdlfkjiurwg
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 68 61 73 66 0d 0a 43  
6f 6e 74 65 6e 74 2d 54 79   hasf..Content-Ty
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 70 65 3a 20 61 70 70  
6c 69 63 61 74 69 6f 6e 2f   pe: application/
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 78 6d 6c 0d 0a 0d 0a  
3c 3f 78 6d 6c 20 76 65 72   xml?xml ver
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 73 69 6f 6e 3d 22 31  
2e 30 22 3f 3e 20 0a 3c 21   sion=1.0? .!
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 44 4f 43 54 59 50 45  
20 70 61 70 20 50 55 42 4c   DOCTYPE pap PUBL
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 49 43 20 22 2d 2f 2f  
57 41 50 46 4f 52 55 4d 2f   IC -//WAPFORUM/
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 2f 44 54 44 20 50 41  
50 2f 2f 45 4e 22 20 0a 22   /DTD PAP//EN .
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 68 74 74 70 3a 2f 2f  
77 77 77 2e 77 61 70 66 6f   http://www.wapfo
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 72 75 6d 2e 6f 72 67  
2f 44 54 44 2f 70 61 70 5f   rum.org/DTD/pap_
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 31 2e 30 2e 64 74 64  
22 3e 20 0a 3c 70 61 70 3e   1.0.dtd .pap
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 20 0a 3c 70 75 73 68  
2d 6d 65 73 73 61 67 65 20.push-message
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 70 75 73 68 2d 69 64  
3d 22 39 66 6a 65 6f 33 39   push-id=9fjeo39
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 6a 66 30 38 34 40 70  
69 2e 63 6f 6d 22 20 0a 64   [EMAIL PROTECTED] .d
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 65 6c 69 76 65 72 2d  
62 65 66 6f 72 65 2d 74 69   eliver-before-ti
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 6d 65 73 74 61 6d 70  
3d 22 32 30 30 31 2d 30 39   mestamp=2001-09
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 2d 32 38 54 30 36 3a  
34 35 3a 30 30 5a 22 20 0a   -28T06:45:00Z .
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 64 65 6c 69 76 65 72  
2d 61 66 74 65 72 2d 74 69   deliver-after-ti
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 6d 65 73 74 61 6d 70  
3d 22 32 30 30 31 2d 30 32   mestamp=2001-02
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 2d 32 38 54 30 36 3a  
34 35 3a 30 30 5a 22 20 0a   -28T06:45:00Z .
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 70 72 6f 67 72 65 73  
73 2d 6e 6f 74 65 73 2d 72   progress-notes-r
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 65 71 75 65 73 74 65  
64 3d 22 66 61 6c 73 65 22   equested=false
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 3e 20 0a 3c 61 64 64  
72 65 73 73 20 61 64 64 72.address addr
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 65 73 73 2d 76 61 6c  
75 65 3d 22 57 41 50 50 55   ess-value=WAPPU
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 53 48 3d 31 39 32 2e  
31 36 38 2e 32 31 34 2e 31   SH=192.168.214.1
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 2f 54 59 50 45 3d 49  
50 56 34 40 7a 65 62 72 61   /[EMAIL PROTECTED]
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 6d 6d 2e 64 79 6e 64  
6e 73 2e 6f 72 67 22 2f 3e   mm.dyndns.org/
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 20 0a 3c 71 75 61 6c  
69 74 79 2d 6f 66 2d 73 65.quality-of-se
2005-09-12 22:36:02 [11628] [1] DEBUG:   data: 72 76 69 63 65 20 70  
72 69 6f 72 69 74 79 3d 

Re: kannel sms and wap push

2005-09-19 Thread Aarno Syvänen
This is the question. It would be better that PPG would handle this  
matter.


Aarno

PS. Yes, it should work, because this is the binary code PPG would  
generate for you.


On 13 Sep 2005, at 04:49, John M L wrote:


Thanks, willy.

Do all phones support this method?

-
John

[EMAIL PROTECTED] wrote:


Hi,
For me it's easier to send WAP PUSH using this method:
 $title = title;
 $url = the_url;
 $text  = %01; // transid
 $text .= %06; // PDU Type (push)
 //$text .= %04%03; // length of content-type
 $text .= %01;
 $text .= %AE%81%EA; // content-type: application/vnd.wap.sic
 $text .= %02; // wbxml_version
 $text .= %05; // si_public_id
 $text .= %6A; // charset= (sibxml-charset)
 $text .= %00; // string table length
 $text .= %45; // si
 $text .= %C6; // indication..
 $text .= %0C%03.rawurlencode($url).%00; // href=url
 $text .= %01; // end indication
 $text .= %03.rawurlencode(trim($title)).%00;
 $text .= %01; // /indication
 $text .= %01; // /si
And push it with
http://url/cgi-bin/sendsms?...udh=%06%05%04%0B%84%23%F0text=$text;
FYI I use PHP. Hope it can help you :)
Regards
Willy
- Original Message - From: John M L  
[EMAIL PROTECTED]

To: users@kannel.org
Sent: Tuesday, September 13, 2005 3:11 AM
Subject: kannel sms and wap push


I'm trying to impelment a mobile content distribution server using
Kannel.  The developers prior to me got smsbox working and now I'm
trying to setup wapbox and ppg.

Are wapbox and ppg both necessary for mobile content (i.e.  
ringtones,

wallpapers and other binary file) distribution?

Also, when I try to use a web query (through smsc = http) I get the
following error in the smsbox.log

2005-09-12 15:56:55 [10020] [4] INFO: Starting to service test  
from 

0018081234567 to  0018081234567
2005-09-12 15:56:55 [10020] [5] INFO: No reply sent, denied.

If anyone could shed some light on this I'd be very  
appreciative.  I was
thrown into this and haven't had (and don't have) much time to  
tinker

with kannel as we are on a big time crunch.


Here's my kannel.conf

group = core
admin-port = 13000
admin-password = password
status-password = password
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
smsbox-port = 13001
wapbox-port = 13002
#box-deny-ip = *.*.*.*
box-allow-ip = *.*.*.*
udp-allow-ip = *.*.*.*
wdp-interface-name=*
log-file = /tmp/kannel.log
log-level = 1
access-log = /tmp/kannel.access
unified-prefix = +358,00358,0;+,00
white-list = sms_send

group = smsc
smsc = at
smsc-id = wave293
#keepalive=5
#sim-buffering=true
max-error-count=2
modemtype = wavecom
device = /dev/ttyS0

group = smsc
smsc = at
smsc-id = sierra
#allowed-smsc-id = 
modemtype = sierra_750
device = /dev/modem
#speed = 9600
#keepalive = 60
sim-buffering = true
#max-error-count = 5

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = /tmp/smsbox.log
log-level = 1
access-log = /tmp/smsaccess.log


# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
get-url = http://mydomain.org/z_send/sms.php?from=%pbody=%a;
max-messages=0
#text = No service specified
assume-plain-text = true

group = sendsms-user
username = sms_send
password = password
max-messages = 5

include = /etc/kannel/modems.conf


# WAPBOX SETUP

group = wapbox
bearerbox-host = localhost
log-file = /tmp/wapbox.log
log-level = 1
syslog-level = none
access-log = /tmp/wapaccess.log

# PPG SETUP

group = ppg
ppg-url = /wapppush
ppg-port = 8080
concurrent-pushes = 50
users = 52
ppg-allow-ip = *.*.*.*
trusted-pi = false

group = wap-push-user
wap-push-user = pi_user
ppg-username = wap_pusher
ppg-password = password

group = smsc
smsc = http
smsc-id = HTTP
port = 1
system-type = kannel
smsc-username = sms_send
smsc-password = password
no-sender = true
no-coding = true
send-url = http://mydomain.org/wapstuff



Thanks,

John












Re: kannel sms and wap push

2005-09-19 Thread Aarno Syvänen
WAP Push is used to send something to the phone. Normally, the phone  
will fethc the url.
And yes, with for instane ringtone service, wap push is useful: you  
push the url of the content

to the phone, the user need not to type it.

Aarno

On 12 Sep 2005, at 22:11, John M L wrote:

I'm trying to impelment a mobile content distribution server using  
Kannel.  The developers prior to me got smsbox working and now I'm  
trying to setup wapbox and ppg.


Are wapbox and ppg both necessary for mobile content (i.e.  
ringtones, wallpapers and other binary file) distribution?


Also, when I try to use a web query (through smsc = http) I get the  
following error in the smsbox.log


2005-09-12 15:56:55 [10020] [4] INFO: Starting to service  
test from  0018081234567 to  0018081234567

2005-09-12 15:56:55 [10020] [5] INFO: No reply sent, denied.

If anyone could shed some light on this I'd be very appreciative.   
I was thrown into this and haven't had (and don't have) much time  
to tinker with kannel as we are on a big time crunch.



Here's my kannel.conf

group = core
admin-port = 13000
admin-password = password
status-password = password
admin-deny-ip = *.*.*.*
admin-allow-ip = 127.0.0.1
smsbox-port = 13001
wapbox-port = 13002
#box-deny-ip = *.*.*.*
box-allow-ip = *.*.*.*
udp-allow-ip = *.*.*.*
wdp-interface-name=*
log-file = /tmp/kannel.log
log-level = 1
access-log = /tmp/kannel.access
unified-prefix = +358,00358,0;+,00
white-list = sms_send

group = smsc
smsc = at
smsc-id = wave293
#keepalive=5
#sim-buffering=true
max-error-count=2
modemtype = wavecom
device = /dev/ttyS0

group = smsc
smsc = at
smsc-id = sierra
#allowed-smsc-id = 
modemtype = sierra_750
device = /dev/modem
#speed = 9600
#keepalive = 60
sim-buffering = true
#max-error-count = 5

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = /tmp/smsbox.log
log-level = 1
access-log = /tmp/smsaccess.log


# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
get-url = http://mydomain.org/z_send/sms.php?from=%pbody=%a;
max-messages=0
#text = No service specified
assume-plain-text = true

group = sendsms-user
username = sms_send
password = password
max-messages = 5

include = /etc/kannel/modems.conf


# WAPBOX SETUP

group = wapbox
bearerbox-host = localhost
log-file = /tmp/wapbox.log
log-level = 1
syslog-level = none
access-log = /tmp/wapaccess.log

# PPG SETUP

group = ppg
ppg-url = /wapppush
ppg-port = 8080
concurrent-pushes = 50
users = 52
ppg-allow-ip = *.*.*.*
trusted-pi = false

group = wap-push-user
wap-push-user = pi_user
ppg-username = wap_pusher
ppg-password = password

group = smsc
smsc = http
smsc-id = HTTP
port = 1
system-type = kannel
smsc-username = sms_send
smsc-password = password
no-sender = true
no-coding = true
send-url = http://mydomain.org/wapstuff



Thanks,

John








Re: {Spam?} Re: [REPOST] DLR on wappushes ?

2005-09-15 Thread Aarno Syvänen
Can you brief me about issue. I have been out of Kannel listsome time, but can perhaps now help you.AarnoOn 14 Sep 2005, at 19:43, Linkas wrote:  Ok guys, the problem in NOT in the url syntax   Julien  Mike Nwaogu wrote:   hello,
I'm not sure how you'll impliment it, but you need to
be sure that the URL has no spaces inbetween the
values for the parameters. when there's a break the
URL may not be properly represented.

EG: BAD
username=ppgusername=ppgpassword=31="" class="moz-txt-link-freetext" href="http://192.168.0.1/my">http://192.168.0.1/my
midi file.mid

EG: GOOD
username=ppgusername=ppgpassword=31="" class="moz-txt-link-freetext" href="http://192.168.0.1/my%20midi%20file.mid">http://192.168.0.1/my%20midi%20file.mid



--- Julien Buratto [EMAIL PROTECTED] wrote:

Mike Nwaogu wrote:
  Hello Julien,
The position on your dlr-mask in the post command
  is
  what I think the issue is.
  Maybe you are true, but if I do

POST /wappush HTTP/1.1
Host: 10.100.10.5:8080
Connection: close
Content-Type: multipart/related; boundary=123321;
type="application/xml"
Content-Length: 1174


username=ppgusername=ppgpassword=31=""
url]



then the ppg says:

HTTP/1.1 401 Unauthorized
Server: Kannel/1.4.0
Content-Length: 32
Connection: close
WWW-Authenticate: Basic realm=berlinzoo"wappush"

You must show your credentials.

if I do:

POST
/wappush?username=ppgusername=ppgpassword
HTTP/1.1
Host: 10.100.10.5:8080
Connection: close
Content-Type: multipart/related; boundary=123321;
type="application/xml"
Content-Length: 1174


username=ppgusername=ppgpassword=31=""
url]

(same as before but with user/pass in the POST url)
the I get:

HTTP/1.1 202 Accepted

  Perhaps you should URL ENCODE the content or
  relocate
  the dlr-mask parameter before the actual message.
  I
  could be wrong though but I think that's what it
  is.

It is encoded,the protocol implementation seems ok
to me, I think is 
something different related to the box receiving and
decoding the 
paramenters.

Cheers
Julien

  --- Julien Buratto [EMAIL PROTECTED] wrote:


Hello

I'm reposting this question because I have still
  no
  clue.

1) In the past I used binary SMS messages to send
WAP-PUSHES
in that way I was able to set dlr-mask=31 and a
dlr-url and I have been 
receiving DLRs easily when the phone received the
SMS.

Sometimes the phone did not understand the
  wap-push
  message as a 
binary-message but the DLR arrived in any case.

The 'call' was something like GET /sendsms? and I
was using the 
bearerbox and the smsbox to send those binary sms.

2) Now I use the bearerbox, smsbox and wapbox and
  I
  send XML files to 
the wapbox using a POST but when I set the dlr-url
and dlr-mark 
variables in the POST, I receive no DLRs at all.

Does anyone know if the transcodification from XML
to BINARY made by the 
wapbox do include dlr ?

Thanks

PS: I'm not interested to be notified if the
  wappush
  is understood or 
not, I just want to know if the wappush sms is got
by the phone.



Mike Nwaogu
Metro Technologies & Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


  
Mike Nwaogu
Metro Technologies & Resources Ltd.
48 Tunde Idiagbon Road, Tanke, Ilorin.



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


 

Re: Push-To-Talk (PTT) / PTT-over-Cellular (PoC)

2005-08-31 Thread Aarno Syvänen

Hi,

to put it other way: are some phone manufacturers doing something for  
it ?


Aarno

On Aug 28, 2005, at 3:49 AM, Jan Kratochvil wrote:


Hi,

anyone aware of any FOSS solution for:
Push-To-Talk (PTT) / PTT-over-Cellular (PoC)
? According to:
http://www.openmobilealliance.org/release_program/poc-v1_0.html

Thanks,
Lace







Re: USSD

2005-08-22 Thread Aarno Syvänen

Or you can simply implement for instance CIMD's USSD part. You would
probably want to consider this option before paying anything.

Aarno

On 19.8.2005, at 0.06, Bernd Mielke wrote:


Hi,

a Google search for USSD gateway shows you plenty of vendors. I  
would
take a lot of research to say which one can be recommended. YOU  
have to

define the requirements you're looking for...

But you probably do not want to set up your own USSD gateway, do  
you? Or
are you working for a mobile operator? I'd rather think that you  
want to
use existing gateways of the operators in your country (France?).  
If you

do not plan a free service - already thought on billing?

The text on the page http://www.dafu.de/rechts/ussd.html is some years
old, but not outdated. Scroll down a bit and you find an English
interview on USSD opportunities.

Best regards, Bernd..

--
It´s Radio-Time!
wireless data in the web: http://www.dafu.de
(German language only)

Report on Premium SMS (175 pages) by Bernd Mielke
http://www.dafu.de/rechts/psms-en.html



[EMAIL PROTECTED] wrote:



Hello,

I'm looking for a USSD gateway in order to provide service on this  
bearer.

Does someone have some idea or some links to explore ?

Regards











Re: Out Of Memory for BearerBox

2005-08-12 Thread Aarno Syvänen

Did you use checking malloc or configure flag with-defaults=debug

Aarno

On 12.8.2005, at 10.48, Mario Pandolfi wrote:







Hi,

as i've already seen for people in other posts, i get out of  
memory for bearerbox.

My version is 1.4.0.
I've 7 SMSc (emi) connections and 3 modems ( siemens tc35i ).
We usually send and receive many thousands of messages per day and,  
beside a little memory leak, everything goes fine.
But at a certain hour of the day, the bearerbox takes all of 2Gb of  
swap memory in few minutes and the machine freezes.
Normally we send two message types , binary or textual, with a  
maximum length of 160 characters and always with DLR.
But at that hour of the day  we send a report to few persons. The  
report length is more than 160 characters and has to be splitted in  
two or more messages with DLR.


I've made some testing and i can reproduce the situation simply  
sending 20 'long' message in few seconds, here is the message:


http://127.0.0.1:13131/cgi-bin/sendsms? 
username=testpassword=testtext=1234567890123456789012345678901234567 
8901234567890123456789012345678901234567890123456789012345678901234567 
8901234567890123456789012345678901234567890123456789012345678901234567 
80to=% 
2B393479857204from=4320100validity=1440dlrmask=7dlrurl=http%3A% 
2F%2Fwww1%2Fprivate%2Fsms.jsp%3Fsmsc-id%3D%25i%26status%3D%25d% 
26answer%3D%25A%26to%3D%25P%26from%3D%25p%26ts%3D%25t%26idprog%3D1


It has the same syntax of the thousands that we send every day  
except the length.


I think that bearebox has a bug that involves the message split and  
the delivery report.


With older version whe haven't this problem.

Mario

















Re: PPG DLR

2005-07-29 Thread Aarno Syvänen

PPG SMS level delivery report are used for following purposes:
a) testing (did the phone get the push at all, or did it just ignore it)
b) for fallback services: if the phone did get the sms, but did not
understand it, the server can send some fallback sms (like your
content is available in the certain website).

As wap specs go, you should use confirmed push here. Problem
is that only a few phones support it.

I am not entirely against adding ppg sms dlrs to the db, but then
everyone should understand what ppg sms dlr means.

Aarno

On 28.7.2005, at 14.39, Julien Buratto wrote:


Aarno Syvänen wrote:

Yes, you are right. PPG does not support storing dlr, for reason  
I  mentioned.

Aarno
On 27.7.2005, at 14.13, Julien Buratto wrote:


Aarno Syvänen wrote:


Proper way to get confirmation is to use confirmed push, *if*  
the   phone supports them.
Or, you can use ppg dlrs as a basis of a backup service. Then  
you  can  trust them.

Aarno



Aarno,
I used to prepare myself wappushes using binary messages and UDH  
field with a classic smsbox, sending the wappushes as if they were  
just binary sms.
In that case I used to set dlr-url and dlr-mask and when the SMS  
arrived to the phone (even if the push wasn't understood) I got the  
DLRs so I knew the SMS arrived at the phone.


Then I read that using the PPG was more compatible with many phones  
- infact my hand-made wappushes where not working on sony-ericsson  
phones, so I started to change the way I used to work and started  
to send wappushes using XML, POST method and the PPG, just to have  
better pushes.


Now the problem is that when I was formatting hand-made wappushes  
sms, I was able to tell kannel to fetch/store DLRs as if they were  
normal SMS.
With PPG I have the the dlr-url and dlr-mask, I've told ppg core to  
use the smsbox-id for the DLRs but... nothing happens.


So, what does ppg-smsbox-id, default-dlr are documented for if  
there is no way to have dlr on ppg ?


Thanks
J







Re: PPG DLR

2005-07-29 Thread Aarno Syvänen

So SMS DLR are not working at all ? I am confused ?
And yes, you actually *do* need confirmed push. It
tells that the user has seen the push.

Aarno

On 29.7.2005, at 11.10, Julien Buratto wrote:


Aarno Syvänen wrote:


PPG SMS level delivery report are used for following purposes:
a) testing (did the phone get the push at all, or did it just  
ignore it)

b) for fallback services: if the phone did get the sms, but did not
understand it, the server can send some fallback sms (like your
content is available in the certain website).



That's what I want to achieve, but I can't have it work.
I don't even receive DLR status 8 on the sms.



As wap specs go, you should use confirmed push here. Problem
is that only a few phones support it.



I don't need confirmed push.



I am not entirely against adding ppg sms dlrs to the db, but then
everyone should understand what ppg sms dlr means.
Aarno










Re: PPG DLR

2005-07-28 Thread Aarno Syvänen
Yes, you are right. PPG does not support storing dlr, for reason I  
mentioned.


Aarno

On 27.7.2005, at 14.13, Julien Buratto wrote:


Aarno Syvänen wrote:

Proper way to get confirmation is to use confirmed push, *if* the   
phone supports them.
Or, you can use ppg dlrs as a basis of a backup service. Then you  
can  trust them.

Aarno



There is a big big misunderstanding on this topic:
Forget about understanding the wappush, I don't need it.

my problem is very very much more simple than this.

I have:

group = ppg
ppg-url = /wappush
CUT
ppg-smsbox-id = boxinterna

and I have

group = smsbox
smsbox-id = boxinterna
sendsms-url = /cgi-bin/invia
CUT

group = core
dlr-storage = mysql
CUT

I don't care if the phone understands or not the push - I just need  
to have the ppg-dlr working.


Thanks
Julien









Re: wap push through Kannel

2005-07-28 Thread Aarno Syvänen
Hello,Essentially, you must write pi (a push initiator). If C ok, test_ppg would be your initiator and use need onlyto design the the interface. If you want Java, you must rewrite test_ppg in Java.AarnoPS. Using Java for protocols, is, IMHO, not a good idea. Protocols are all about memory usage planning.On 28.7.2005, at 15.54, Kaushik Lala wrote:  Hello   Can anybody assist.  I am trying to send a wap push sms through kannel, I have successfully managed to do this using the test_ppg utility.  Now I would like to have this as part of my java application.   Can kannel do the WBXML encoding or must I do so myself and set the UDH and send this as a text message. If kannel does this could you explain to me how this is done and what do I need to configure in Kannel to do this. If kannel does not encode WBXML, what apis are there that I could use, links, examples, documentation etc.   Thanks in advance. Kaushik

Re: PPG DLR

2005-07-27 Thread Aarno Syvänen
Yep, this is layering. SMS level ack mean that SMS level transport  
worked,
nothing more or less. For PAP, you need PAP level ack, it is,  
confirmed push.


Aarno

On 26.7.2005, at 15.34, Jonathan Houser wrote:



  Linkas,



PPG SMS level DLRs are not meant to be used this. They told only that
the phone had received the
message *not* that it had understood it.



 Yeah, unfortunately the phones will happily accept SMS that they
don't understand.  They even tell the SMSC that they were accepted
properly.  It doesn't really help much for debugging, but that's just
the way it is.  We have our own home built SMSC (TDMA/CDMA/GSM), so  
I've

seen this first hand many a time with WAP pushes, unfortunately.  :(

Jon







Re: Kannel Message Boards?

2005-07-26 Thread Aarno Syvänen
I think we should consider people who actually read their list email,  
too
(myself being one of them, as it happens). With email, you get  
notification

automatically, one could say.

IMHO, authentication of email is so good, either. Original beauty of  
email

was that everyone could write to you. If you want authentication, go for
IM.

Aarno

On 18.7.2005, at 18.21, Stephane Rosa wrote:

Well, I think that forums can easily (and should) replace mailing  
lists. I

see several reasons for this :

1) Search. Searching mailing lists archives is painful, and I'm  
sure most

people will just post the same question again without trying to search
first. Forums are much more efficient in searching by subject, body,
poster, date, etc.

2) Organisation. Beside major groups like bugs, devel, user, most  
forums
provide sub-groups allowing to segregate a group in several major  
areas

(e.g. Development-Web Interface, Development-Core, etc)

3) Traffic. I'm an Internet Ecologist(tm) and I strongly see the  
mailing
list traffic as a totally useless bandwidth nuisance, mostly  
because when
someone subscribes to a mailing list he reads everything the first  
week,
the second week he deletes without reading, the third week he  
creates an

automatic folder rule and never reads most of the content ever again.

Spam moderation is not so much of an issue, as long as you have to be
authenticated to post, and being part of  several dozens of forums  
I never

seen any spam in them.

That's my 0.02$ advocacy, hope it helps :-D

Cheers
Clipper



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
Sent: Monday, July 18, 2005 16:03
To: users@kannel.org
Subject: RE: Kannel Message Boards?

IMO It would be great if you consult the Kannel project
maintainers and have their views about it, so that you can
have official forums just like the mailing list

yes, I agree that the they should be on the kannel site
hosted on a subdomain or something like kannel.org/forums

The only problem with forums is that they also need to
closely moderated because of spam and other useless messages
that people often post

Regards
Yasser

--
Talk about Love  Friendship at Latestngreatest Forums
http://www.latestngreatest.net/cgi-bin/Blah/Blah.pl




From: Anand Gupta [EMAIL PROTECTED]
Reply-To: Anand Gupta [EMAIL PROTECTED]
To: Bill Brigden [EMAIL PROTECTED]
CC: users@kannel.org
Subject: RE: Kannel Message Boards?
Date: Mon, 18 Jul 2005 18:51:40 +0530



Would people see the mailing lists as redundant if there were web
based


forums?

well both can serve the purpose, at times mailing lists are


better and


sometimes forums.

--
regards,

Anand Gupta


 Original message 
Subject:RE: Kannel Message Boards?
Author:Bill Brigden [EMAIL PROTECTED]
Date:18th July 2005 1:32:16

What do other people think about the possibility of having a


web forum?


Would people see the mailing lists as redundant if there


were web based


forums?

As far as the name / location - could it be put under kannel.org,
either as being hosted there, or using a sub domain
(forums.kannel.org?) pointing elsewhere?

Regards,
Bill.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
Sent: 18 July 2005 12:58
To: Gareth Reakes
Cc: Bill Brigden; users@kannel.org
Subject: Re: Kannel Message Boards?

I am ready to register and host the forums if members here can
recommend a domain for the same. I posted earlier also however no
commented till now.


--
regards,

Anand Gupta


 Original message 
Subject:Re: Kannel Message Boards?
Author:Gareth Reakes [EMAIL PROTECTED]
Date:18th July 2005 10:34:28

Hey,

I think it would be a good idea. Who is going to take


the lead on


this?

Gareth

Bill Brigden wrote:


Just a short note to say I would be willing to help in any


ways (within


reason!) necessary..

Bill.




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
Sent: 15 July 2005 17:28
To: [EMAIL PROTECTED]
Cc: users@kannel.org
Subject: Re: Kannel Message Boards?

I don't think that they will be too resource intensive form
hosting point of view, so It should not be a problem


for anyone to


set them up.
Yeah I will be willing to help :)

-Cheers

Yasser




From: Gareth Reakes [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED]
Subject: Re: Kannel Message Boards?
Date: Fri, 15 Jul 2005 17:15:54 +0100

Hey Yasser,


Yasser Sultan wrote:



Why doesn't kannel has its forums or online discussion boards?

Don't you think that with them it will be easier to keep



track of the



things
and help can be provided in a better way, considering the



features and



options present in the modern bulletin board systems


Thank You




Probably because no one has set one up yet :)


You offering?




Gareth


--
Gareth Reakes, 

Re: POST syntax help

2005-07-26 Thread Aarno Syvänen

Can you resend, with content and explicit line breaks.

aarno

On 24.7.2005, at 3.31, Linkas wrote:


Hello,
I'm trying to POST two files (PAP and SI) to the wapbox.

I send:

POST /wappush?username=ppgusernamepassword=ppgpassword HTTP/1.1
Host: 10.100.20.10:8080
User-Agent: PEAR HTTP_Request class ( http://pear.php.net/ )
Connection: close
Accept-Encoding: gzip
Content-Type: multipart/form-data;  
boundary=HTTP_Request_18fad3f770099328fe008948b6c4f889

Content-Length: 1225
CONTENT FOLLOW

and as an error, I get:

?xml version=1.0?!DOCTYPE pap PUBLIC -//WAPFORUM//DTD PAP  
1.0//EN http://www.wapforum.org/DTD/pap_1.0.dtd;papbadmessage- 
response code=2000 desc=Not understood due to malformed syntax  
bad-message-fragment==/badmessage-response/pap


I'm using a pear.php.net HTTP_Request class.
Any suggestion ?

Thanks
J







Re: Wappush on P900i doesn't display

2005-07-26 Thread Aarno Syvänen
Actual binary content would be more useful, expansion of variables is  
a separate problem.

Can you send push to p900i using services of some telecom operator ?

Aarno

On 24.7.2005, at 15.56, Linkas wrote:

I'm finally able to send wappushes with service indication to my  
Nokia6600


I've sent it to a p900i but the phone remains quite and does not  
display the wappush service indication.


This is the SI

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN http:// 
www.wapforum.org/DTD/si.dtd

si
indication href='.$URL.' si-id='.$id.' action=signal-high  
created=2002-01-13T01:33:09Z si-expires=2020-07-31T00:00:00Z'. 
$description_text.'/indication

/si'

Can anyone help ?
Thanks

PS:
This is the PAP:
pap
push-message push-id='.$id.' deliver-before- 
timestamp=2020-09-28T06:45:00Z deliver-after- 
timestamp=2005-02-28T06:45:00Z progress-notes-requested=false 
address address-value=WAPPUSH='.$dest.'/ 
[EMAIL PROTECTED] /
quality-of-service priority=low delivery-method=unconfirmed  
network-required=true network=GSM bearer-required=true  
bearer=SMS /

/push-message
/pap







Re: PPG DLR

2005-07-26 Thread Aarno Syvänen
PPG SMS level DLRs are not meant to be used this. They told only that  
the phone had received the

message *not* that it had understood it.

Asrno

On 25.7.2005, at 11.57, Linkas wrote:


I've set the
ppg-smsbox-id in the ppg core group and also set the smsbox-id in  
the smsbox group.


When I call the /wappush url to send wappushes I do set the dlr- 
url=CUT and dlr-mask=31 like:


POST /wappush?username=ppgusernamepassword=ppgpassworddlr- 
mask=31dlr-url='.urlencode($my_dlr_url).' HTTP/1.1'


but the DLRs are not saved in the DB and no DLR are getting in from  
the SMSC.


Can anyone help?

--
my Config

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 50
users = 52
trusted-pi = false
ppg-smsbox-id = boxinterna

group = smsbox
smsbox-id = boxinterna
bearerbox-host = 10.100.10.5
sendsms-port = 13013
sendsms-url = /cgi-bin/invia
log-file = /var/log/kannel/smsbox.log
access-log = /var/log/kannel/access.log
log-level = 0







Re: Re[3]:

2005-07-21 Thread Aarno Syvänen

No, you need not. Configure --with-defaults=speed.

Aarno

On 20.7.2005, at 14.08, julyanto wrote:


This is mean that we don't have to restart kannel apps after a certain
amount of time?

how long is the longest time running kannel apps without crash/down?

Regards,
Jul

Tuesday, July 19, 2005, 3:19:46 PM, you wrote:



If you run Kannel with debug mode, if will report leaks.
Btw, Kannel immutable octet strings are not destroyed until the
program shuts down,
and this may look like a memory leak. But memory used by immutables
should
stabilize after certain amont of time.





Aarno




--
Best regards,
 julyantomailto:[EMAIL PROTECTED]








Re: Re: RE:

2005-07-21 Thread Aarno Syvänen

No. Wapbox data structures use memory, too, of course. Immutables
show themselves as a monotonous raising of memory usage.

Signal SIGQUIT should cause reporting of the memory usage, including,
of course, all current usage by Kannel data structures.

Here you can have a vicious cycle: if queues grow long, handling of
messages will take longer time, causing ever longer queues. See
documentation about handling of the queues.

Aarno

On 20.7.2005, at 16.38, Alex Antropoff wrote:


On Tue, Jul 19, 2005 at 10:19:46AM +0200, Aarno Syv?nen wrote:
ASn If you run Kannel with debug mode, if will report leaks.
ASn Btw, Kannel immutable octet strings are not destroyed until the
ASn program shuts down,
ASn and this may look like a memory leak. But memory used by  
immutables

ASn should
ASn stabilize after certain amont of time.
Kannel 1.4.0, after running 2-3 days, wapbox takes 160-180Mb. Is it  
immutables ?


--
Regards,
Alex Antropoff







Re: Sending Wap push with Kannel and Openwave wap push library

2005-07-21 Thread Aarno Syvänen
What you mean with receiving ? You send the push to the phone, and  
the phone pulls the content.


Aarno

On 21.7.2005, at 9.18, Simon wrote:


Dear all,

I use kannel as my ppg and I use Openwave wap push library to  
submit message from my java application.
I can send wap push by kannel to my mobile. But with same message,  
sometimes I can receive it, sometimes I can't.
And both of my mobile sending and receiving wap push are using same  
operator.


Am I missing something ?

Thank you!

Regards
Simon









Re: wrong identification phone number with kannel 1.4.0

2005-07-21 Thread Aarno Syvänen
Kannel is changing the prefix 0 - 358. You can define prefix  
handling in your configuration file, perhaps your

are using the example one (358 is for Finland).

Aarno

On 21.7.2005, at 13.15, Willy Mularto wrote:


Hi list,
I connect to my operator using SMPP 3.4 with transceiver mode. I  
test to send sms, let say the phone number is 08881160xxx when it  
arrives in kannel it can identify the phone number correctly but  
when it received by get-url script it becomes 351160xxx, I  
think this is about URLEncode issue but it is not. because when I  
try to do lynx -dump http://../cgi-bin/sendsms? 
username=userpassword=pwdfrom=1234to=08881160xxxtext=hey  
kannel read it as 351160xxx. Any idea what's wrong here?  
Thankyou for any reply.



Regards

Willy








Re: WAP Push for transaction approval

2005-07-19 Thread Aarno Syvänen
Essentially, Kannel will send an url to the phone, and the phone will fetch it.aarnoOn 15.7.2005, at 14.44, [EMAIL PROTECTED] wrote:Good day,  I have used Kannel in the past as a pure SMS gateway. For the last couple of days, I've been looking for a partial replacement for a SIM Toolkit application when I saw that one of Kannel's features is a WAP Push. Does anyone know what the effect is of receiving a WAP push on the mobile side? Can it only put a message in the mobile's inbox, or am I able to bring up a screen to allow a user to accept or decline a transaction. This is for a banking application, so any advice on security will aslo be of interest.  Thanks a stack, Jack  ***  DISCLAIMER  The contents of this e-mail and any attachments thereto, are strictly confidential, and are intended solely for the use of the named recipient(s). If you have received this e-mail in error, you may not disclose, distribute or preserve it, but must delete it.  Please notify the sender immediately by return e-mail.                                 The sentiments and opinions contained in this email and any attachments thereto, are those of the writer personally and, unless expressly and unequivocally stated otherwise, are not the sentiments or opinions of Fundamo (Pty) Ltd.  Fundamo (Pty) Ltd shall not be liable for any damage, harm or loss of any nature sustained by a recipient, whether named or not, as a direct or indirect result of any action or inaction taken by the recipient in response to the information contained herein.                                 Fundamo (Proprietary) Limited - Registration Number 2000/004901/07 Email: [EMAIL PROTECTED] Tel: +27 21 943 2200 Fax: +27 21 914 3408  

Re: installation failure

2005-07-19 Thread Aarno Syvänen
You can try make depend separatelyAarnoOn 18.7.2005, at 11.21, Teddy Tsongo wrote:Hello, I am trying to install Kannel version 1.4.0 (under FreeBSD 3.8) but unfortunatelly, i launched the configure "command successfuly but even if i launched the command "make" a error mistake : "error line 314 can not find .depend, make can not continue" appears and the installation stoppedis there someone which may able to help to solve this probleme and continue the installation Thank you in advance for your time and assistance   Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger Téléchargez le ici ! 

Re: low throughput

2005-07-15 Thread Aarno Syvänen
No tweaking, just configure with --with-defaults=speed. If default is  
debug,

Kannel will fill newly allocated and freed memory with debug content
(0xcafebabe, for instance).

Aarno

On 15.7.2005, at 4.59, Willy Mularto wrote:


Hi Aarno,
Any tips to tweeking the kannel configuration? Thankyou.
Regards


Willy Mularto
Y!: sangprabv
http://www.transmedia.co.id
http://www.duniamobile.com
- Original Message - From: Aarno Syvänen [EMAIL PROTECTED]
To: Willy Mularto [EMAIL PROTECTED]
Cc: 'Kannel' users@kannel.org
Sent: Thursday, July 14, 2005 10:36 PM
Subject: Re: low throughput




You, of course, configured your Kannel for speed ?

Aarno

On 12.7.2005, at 6.20, Willy Mularto wrote:



Guys,
I have a very low throughput. Only 20 messages/minutes via SMPP  
connection. Any tips on how to speed up my kannel 1.4.0? Any  
reply  is appreciated, thank you.

Regards


Willy Mularto
Y!: sangprabv
http://www.transmedia.co.id
http://www.duniamobile.com











Re: low throughput

2005-07-14 Thread Aarno Syvänen

You, of course, configured your Kannel for speed ?

Aarno

On 12.7.2005, at 6.20, Willy Mularto wrote:


Guys,
I have a very low throughput. Only 20 messages/minutes via SMPP  
connection. Any tips on how to speed up my kannel 1.4.0? Any reply  
is appreciated, thank you.

Regards


Willy Mularto
Y!: sangprabv
http://www.transmedia.co.id
http://www.duniamobile.com







Re: How to send WAP Push message ?

2005-07-14 Thread Aarno Syvänen
Pi (push initiator) generates the push. Kannel has a model pi,  
test_ppg.c

in directory test.

Aarno

On 14.7.2005, at 9.40, Simon wrote:


Dear All,

I have set up wapbox and ppg and I have tested on test_ppg_server  
and test_ppg. But I can't understand how to send it to smsc. Can I  
use the http interface like sending normal sms message?

Thank you very much.

Regards,
Simon








Re: Panic!

2005-07-12 Thread Aarno Syvänen
Did you configure with debug ? This would result an error message like that, because memeryfor debugging allocation is very small.AarnoOn 5.7.2005, at 10.47, Saad Al-Khalfan wrote:Hi, Has anyone seen something like this: 2005-07-02 12:00:44 [10] DEBUG: boxc_receiver: sms received2005-07-02 12:00:44 [10] PANIC: Too many concurrent allocations.2005-07-02 12:00:44 [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.200.3'.2005-07-02 12:00:44 [1] DEBUG: HTTP: Destroying HTTPClient area 0x81aec58.2005-07-02 12:00:44 [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.200.3'.2005-07-02 12:00:44 [0] INFO: Connection closed by the bearerbox2005-07-02 12:00:44 [0] INFO: Received (and handled?) 148 requests in 349287 seconds (0.00 per second)2005-07-02 12:00:44 [0] INFO: Kannel smsbox terminating.2005-07-02 12:00:44 [6] DEBUG: Thread 6 (gw/heartbeat.c:heartbeat_thread) terminates.2005-07-02 12:00:44 [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate2005-07-02 12:00:44 [3] DEBUG: HTTP: No clients with requests, quitting.2005-07-02 12:00:44 [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates.2005-07-02 12:00:45 [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates.2005-07-02 12:00:45 [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates.2005-07-02 12:00:45 [0] DEBUG: Waiting for 4 (gw/smsbox.c:obey_request_thread) to terminate2005-07-02 12:00:45 [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates.2005-07-02 12:00:45 [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate2005-07-02 12:00:45 [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates.2005-07-02 12:00:45 [0] DEBUG: Waiting for 8 (gwlib/http.c:write_request_thread) to terminate2005-07-02 12:00:45 [8] DEBUG: Thread 8 (gwlib/http.c:write_request_thread) terminates.2005-07-02 12:00:45 [7] DEBUG: Thread 7 (gwlib/fdset.c:poller) terminates.2005-07-02 12:00:45 [0] DEBUG: Immutable octet strings: 158.2005-07-02 12:00:45 [0] DEBUG: Current allocations: 151 areas, 2416 bytes2005-07-02 12:00:45 [0] DEBUG: Highest number of allocations: 1687 areas2005-07-02 12:00:45 [0] DEBUG: Highest memory usage: 74517 bytes2005-07-02 12:00:45 [0] DEBUG: Area 0x43c0a338, size 16, max_size 162005-07-02 12:00:45 [0] DEBUG: Allocated by octstr_create_from_data_real at gwlib/octstr.c:1702005-07-02 12:00:45 [0] DEBUG: Claimed by smsbox_req_handle at gw/smsbox.c:9922005-07-02 12:00:45 [0] DEBUG: Contents of area (first 16 bytes):2005-07-02 12:00:45 [0] DEBUG:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 002005-07-02 12:00:45 [0] DEBUG: Area 0x43c07f58, size 16, max_size 162005-07-02 12:00:45 [0] DEBUG: Allocated by octstr_create_from_data_real at gwlib/octstr.c:1702005-07-02 12:00:45 [0] DEBUG: Claimed by smsbox_req_handle at gw/smsbox.c:9922005-07-02 12:00:45 [0] DEBUG: Contents of area (first 16 bytes):2005-07-02 12:00:45 [0] DEBUG:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 002005-07-02 12:00:45 [0] DEBUG: Area 0x43c04d60, size 16, max_size 162005-07-02 12:00:45 [0] DEBUG: Allocated by octstr_create_from_data_real at gwlib/octstr.c:1702005-07-02 12:00:45 [0] DEBUG: Claimed by smsbox_req_handle at gw/smsbox.c:9922005-07-02 12:00:45 [0] DEBUG: Contents of area (first 16 bytes):2005-07-02 12:00:45 [0] DEBUG:   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   Everything was working fine til I got this in the log and then nothing could be send through the kannel. Regards,Saad--Disclaimer--This communication is intended for the above named person and is confidential and / or legally privileged. Any opinion(s) expressed in this communication are not necessarily those of the MTC. If it has come to you in error you must take no action based upon it, nor must you print it, copy it, forward it, or show it to anyone. Please delete and destroy the e-mail and any attachments and inform the sender immediately.Thank you.MTC is not responsible for the political, religious, racial or partisan opinion in any correspondence conducted by its domain users. Therefore, any such opinion expressed, whether explicitly or implicitly, in any said correspondence is not to be interpreted as that of MTC.MTC may monitor all incoming and outgoing e-mails in line with MTC business practice. Although MTC has taken steps to ensure that e-mails and attachments are free from any virus, we advise that, in keeping with best business practice, the recipient must ensure they are actually virus free.--

Re: push proxy gateway

2005-06-15 Thread Aarno Syvänen

Hi,

PPG is part of Kannel code (you will see wap_push* modules in the gw  
directory).
Push url is used for routing, it is a stamp telling that message  
belongs to ppg.


Aarno

On 14.6.2005, at 22.59, Pascal Carrié wrote:


Hi!
I 'm new in the stuff.  And i have to put a push proxy gateway.
I want send a XML to kannel and that it send to the user a push sms  
with a url that the user can retrieve with wap (in my side i have  
no wap stuff to do!)

I have read the doc (the doc is good but hard for newbie...)
i have this conf file:
group = core
admin-port = 13000
admin-password = password
admin-allow-ip = 192.168.1.*
admin-allow-ip = 127.0.0.1
smsbox-port = 13001
log-level = 4
log-file = /var/log/kannel/bearerbox.log
box-allow-ip = 192.168.1.*

group = smsc
#podemos probar 'sms = at2' si algo falla
smsc = at
modemtype = wavecom
device = /dev/ttyS0
speed = 9600
pin = 3888

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = 0123456789 
global-sender = 626000470

group = sendsms-user
username = sendsmsuser
password = sendsmspw

group = sms-service
keyword = default
url=https://172.15.60.100/stackStar/Servlet?from=%pto=%Ptext=%a;

group = sms-service
keyword = Datos
exec = /tmp/script.sh

group = ppg
ppg-url = /wappush
ppg-port = 8080
concurrent-pushes = 50
users = 52
ppg-allow-ip = 192.168.1.*;127.0.0.1
trusted-pi = false

but i do not know even how to have this wappush (is it a cgi?)
is anybody willing to help me?
i wanted to know - what to put in the wappush (and where)?
- if the apache have to lisen to the 8080?
thanks in advance
pascal

--
Pascal Carrié
Genasys II Spain, S.A.U.

Ventura de la Vega, 5
28014 - Madrid, SPAIN
Phone   + 34 91 364 91 00
Fax + 34 91 364 91 19
Email   [EMAIL PROTECTED]
www.genasys.com

-- Este mensaje se  
dirige exclusivamente a su destinatario y puede contener  
información privilegiada o confidencial. Si no es Vd. el  
destinatario indicado, queda notificado de que la utilización,  
divulgación y/o copia sin autorización está prohibida en virtud de  
la legislación vigente. Si ha recibido este mensaje por error, le  
rogamos nos lo comunique inmediatamente por esta misma vía y  
proceda a su destrucción. This message is intended exclusively for  
its addressee and may contain information that is confidential and  
protected by professional privilege. If you are not the intended  
recipient you are hereby notified that any dissemination, copy or  
disclosure of this communication is strictly prohibited by law. If  
this message has been received in error, please inmediately notify  
us via e-mail and delete it.

--








Re: test_SI

2005-06-14 Thread Aarno Syvänen

Yes, of course. And another thing: if someone would implement
PPG over CDMA, can he send definitions to the list *before*
starting. This one requires some planning ;)

Aarno

On 9.6.2005, at 17.28, Jonathan Houser wrote:


But if you *do* use ppg, you do not need to do all bit stuff.
In addition, ppg is tested with quite many phone types ;
using it with all kind of phones will result with an universal si
tokenisation.



 Universal as long as you're not CDMA.  If you're CDMA, the source
and destination ports (if present) are in the bearer data (which isn't
generally allowed) and in the wrong order.  Also, if the message takes
more than one SMS in size, then a UDH will be added, which also has
nothing to do with -- and will break -- CDMA.  Finally the  
esm_class in

the SAR case will be set using GSM-specific flags and may be rejected
accordingly.  I had to hack Kannel a LOT to get CDMA pushes to work
natively through the PPG.  This doesn't necessarily apply to you,
Christian, but I want to keep someone searching the archives in the
future from thinking the PPG works with CDMA.

Jon







Re: Authorization failed for sendsms

2005-06-14 Thread Aarno Syvänen

Do not use +, escape it (%2b). + means space.

Aarno

On 11.6.2005, at 19.30, Allan hank wrote:


Hi,

I've beeb using kannel for about 3 months but i wanted to add mysql
dlr-db and all became a mess instead.

1) I can longer send sms, the error Authorization failed for sendsms
when  i issue the command below
/usr/local/bin/lynx -dump
http://localhost:13013/cgi-bin/sendsms? 
user=testerpassword=foobarto=+17758980618text=testmclass=1


2) How can i add mysql logging?

Below is the currect kannel.conf without the mysql stuff.

I'll be very grateful for all the  help provided.


#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to users@kannel.org
#

group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
#status-password = foo
#admin-deny-ip = 
#admin-allow-ip = 
log-file = /tmp/kannel.log
log-level = 5
access-log = /tmp/access.log
#http-proxy-host = 127.0.0.1
#http-proxy-port = 8080
#http-proxy-exceptions = 127.0.0.1
#http-proxy-username = user
#http-proxy-password = password
#ssl-certkey-file = mycertandprivkeyfile.pem
# Smsbox related
#box-deny-ip = *.*.*.*
#box-allow-ip = 127.0.0.1
#unified-prefix = 00358,0
#white-list = http://127.0.0.1/white-list.txt;
#black-list = http://127.0.0.1/black-list.txt;
store-file = /tmp/kannel.store
# Wapbox related
#wapbox-port = 13002
#udp-deny-ip = *.*.*.*
#udp-allow-ip = 127.0.0.1
#wdp-interface-name = *


# SMSC CONNECTIONS - GLOBAL FIELDS
#group = smsc
#smsc =
#smsc-id = ID
#denied-smsc-id = X;Y
#allowed-smsc-id = Z
#preferred-smsc-id = W
#allowed-prefix = 040;050
#denied-prefix = 060;070
#alt-charset =


# SMSC Nokia CIMD2
#group = smsc
#smsc = cimd2
#host =
#port =
#smsc-username =
#smsc-password =
#keepalive =
#sender-prefix =


# SMSC EMI
#group = smsc
#smsc = emi2
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone =
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive =
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =


# SMSC SEMA
#group = smsc
#smsc = sema
#device = /dev/tty0
#smsc_nua = (X121 smsc address)
#home_nua = (x121 radio pad address)
#wait_report = 0/1 (0 means false, 1 means true)


# SMSC OIS
#group = smsc
#smsc = ois
#host = 103.102.101.100
#port = 1
#receive-port = 1
#ois-debug-level = 0


# SMSC GSM
group = smsc
smsc = at
#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson
modemtype = premicell
device = /dev/cuaa0
sms-center = +25675010004
speed = 9600
#pin = 2345
#validityperiod = 167


# SMSC Fake
#group = smsc
#smsc = fake
#host =
#port =
#connect-allow-ip =


# SMSC HTTP
#group = smsc
#smsc = http
#system-type = kannel
#send-url =
#port =
#connect-allow-ip =
#username =
#password =


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#sendsms-chars = 0123456789 +-
#global-sender = 12345
log-file = /tmp/smsbox.log
log-level = 5
access-log = /tmp/smsboxaccess.log
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =


# SEND-SMS USERS

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

group = sendsms-user
username = simple
password = elpmis
user-allow-ip = *.*.*.*

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = kannel
password = rL4y
user-deny-ip = *.*.*.*
user-allow-ip = 127.0.0.1
#name = service_kannel
#forced-smsc = ID
#default-smsc = ID
#faked-sended =
#max-messages = 1
#concatenation = 1
#split-chars =
#split-suffix =
#omit-empty =
#header =
#footer =
#allowed-prefix =
#denied-prefix =
#white-list =
#black-list =



# SMS SERVICES

#group = sms-service
#name = nothing
#keyword = nop
#aliases = noppy;niente
#text = You asked nothing and I did it!
#get-url = http://;
#post-url = http://;
#file = /tmp/
#accepted-smsc = ID
#allowed-prefix =
#denied-prefix =
#catch-all = false
#send-sender = false
#strip-keyword = false
#faked-sender =
#max-messages = 1
#accept-x-kannel-headers = false
#assume-plain-text = false
#concatenation = false
#split-chars =
#split-suffix = +
#omit-empty = true
#header =
#footer =
#prefix =
#suffix =
#white-list =
#black-list =

group = sms-service
keyword = default
url = http://ip.cfi.co.ug/~wilson/kannel/sms-service.php?from=% 
qtext=%atime=%t

max-messages = 0
omit-empty = 1


# SMS SERVICE GET-URL EXAMPLE
#group = sms-service
#keyword = relay
#get-url = http://localhost/service?phone=%ptext=%rbinary=% 
bsmsc=$itime=%t



# SMS SERVICE black-list
#group = sms-service
#keyword = black-list
#text = You are not alowed to use this service, Go away!


# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = No 

Re: Abnormal termination every 5 minutes

2005-06-14 Thread Aarno Syvänen

Have you set keep alive variable ?

Aarno

On 13.6.2005, at 13.07, David Ritchie wrote:


Hello all -- I have inherited a peculiar situation where Kannel has
suddenly decided to terminate every 300 seconds (occasionally  
making it
to 600, but usually 300). Everything goes along well until it stops  
and
needs to be restarted. No changes to configuration files have been  
made,

but we have been experiencing a considerable increase in traffic
recently (which makes the downtime even more concerning).

The fact that it terminates on either 300 or 600 seconds is a little
eyebrow-raising. Typically the process terminates with the following
information in the smsbox.log:

2005-06-13 22:04:24 [0] INFO: Connection closed by the bearerbox
2005-06-13 22:04:24 [0] INFO: Received (and handled?) 64 requests  
in 300

seconds (0.21 per second)
2005-06-13 22:04:24 [0] INFO: Kannel smsbox terminating.
2005-06-13 22:04:24 [1] WARNING: Destroying fdset with 1 active  
entries.
2005-06-13 22:04:24 [8] WARNING: Destroying fdset with 3 active  
entries.


Some other pertinent information:

Kannel version 1.2.1, running on SunOS 5.8, with libxml version 20604

I have attached our kannel.conf file (apologies for the messiness). If
anybody has any light to shine on the situation I'd like to hear it!

Many thanks

David Ritchie
Run The Red

nopassword-kannel.conf






Re: Sending OTA Setting using Kannel PPG

2005-06-14 Thread Aarno Syvänen

You can send OTA settings using Kannel smsbox. PPG does not
currently compile these.

Aarno

On 14.6.2005, at 13.47, Giri Krishnan wrote:


Hi All,

I am trying to send the GPRS/MMS Settings to the Mobile using  
Kannel PPG.


Is any body knows the Kannel PPG supports sending the OTA messages to
Kannel PPG using HTTP.

Another questions regarding this is about the DTD.
Can I use like this file://192.158.050.111/gw/settings.dtd. so that I
can refer a DTD stored in another machine in the network.

!DOCTYPE CHARACTERISTIC_LIST SYSTEM file://192.158.050.111/gw/ 
settings.dtd


Thanks in advance,

Regards,
Giri








Re: test_SI

2005-06-14 Thread Aarno Syvänen

Then we must live with it perhaps. Lots of chages are not
bad as such, if they are put in a separate module. Did you
use network feature of SI documents ?

Aarno

On 14.6.2005, at 14.12, Jonathan Houser wrote:



  Aarno,



Yes, of course. And another thing: if someone would implement
PPG over CDMA, can he send definitions to the list *before*
starting. This one requires some planning ;)



 I've got it implemented already.  It supports two different  
styles

of how the SMSC needs to get it -- the two I've seen with major SMSC
vendors.  It required a LOT of changes, though.  That includes the
data_sm thing I did a long time ago, which I've still yet to find a
clean way to implement it around the 'C' union that is an SMPP PDU.  I
can tell you all of the changes I had to make if you'd like to look at
implementing it for real.  Like I said above though, it's a lot.

Jon







Re: test_SI

2005-06-14 Thread Aarno Syvänen

Perhaps you can send the patch to the list ?
In addition to cdma support, your code could
perhaps form a framework for supporting other
(possible) networks.

Aarno

On 14.6.2005, at 14.35, Jonathan Houser wrote:



  Aarno,



Then we must live with it perhaps. Lots of chages are not
bad as such, if they are put in a separate module. Did you
use network feature of SI documents ?



 A number of the changes had to be made to core things (like
smscconn.c and smsbox.c and wapbox.c).  This was needed to support
proper concatenation techniques (ie. a data_sm can be 65536 bytes in
size, or it can be 100 bytes in size, all dependent on the SMSC) as  
well

as other things.  I did indeed use the 'network' feature of the SI
documents, though.  If set to 'IS-95 CDMA' it does CDMA WAP Push,
otherwise it defaults to the GSM one.  Of course that meant making  
sure

it was passed down through the stack to where the network type is
actually used.  It was just always assuming GSM in wap_push_compiler.c
or wherever it was.

Jon







Re: test_SI

2005-06-09 Thread Aarno Syvänen
But if you *do* use ppg, you do not need to do all bit stuff.In addition, ppg is tested with quite many phone types ;using it with all kind of phones will result with an universal sitokenisation.AarnoOn 7.6.2005, at 15.23, Christian Vandrei wrote:Hi Alejandro,in fact you don't really need to use a PPG. Looking through some of the examples that came with Kannel it's also possible to send Push-SI directly through the sendsms-Interface.The text value can be filled with the following Java-Code:// wbxml contains the wap push service indication String wbxml = "%01"; //Transaction ID wbxml += "%06"; // PDU Type (push) wbxml += "%04"; // Headers Length (content-type + headers) wbxml += "%03"; // Length of content type wbxml += "%AE"; // Content-Type: application/vnd.wap.sic wbxml += "%81"; // Charset wbxml += "%EA"; // UTF-8 // End Headers // see si_binary_output   wbxml += "%02"; // Version number (wbxml_version)   wbxml += "%05"; // Unknown Public Identifier (si_public_id)  wbxml += "%6A"; // charset= (sibxml-charset) wbxml += "%00"; // String table length wbxml += "%45"; // si wbxml += "%C6"; // indication... wbxml += "%0b" + "%03" + serviceURL + "%00"; // href=""> wbxml += "%11" + "%03" + Integer.toString((int) (Math.random()* 10)) + "@foo" + "%00"; // si-id= wbxml += "%08"; // action="" //wbxml += "%0A" . "%C3%07%20%01%10%21%20%02%23"; // created= //wbxml += "%10" . "%C3%04%20%02%06%30"; // valid= wbxml += "%01"; // end indication params wbxml += "%03"; // begin URL try { wbxml += URLEncoder.encode(infoPush, "UTF-8"); // URL SI points to } catch (Exception e) { System.err.print("Error occured!!!"); } wbxml += "%00"; // end URL wbxml += "%01"; // /indication wbxml += "%01"; // /siOf course you'd have to set the UDH manually. The value herfore is (also in Java)String udh = "%06%05%04%0B%84%23%F0"All the upper code is a simple translation from PHP to Java. The source is the example script that with Kannel. Further that script contains more encoding-types like logos, vcards and so on. You really should take a look at it.By the way, here's the good stuff about the above encoding. In most cases you might be able to send a single Push-SI with only one SMS (that's because the creation date is not set and caused no problems for me yet).Ciao,Christian.Alejandro J. Ramrez wrote:Hello All!! Ive been trying lately to use the PPG, Ive had luck with ./test_ppg and using the xmls. Now.. how can I use the binary from the result of ./test_si with the test_ppg url??I use the 8080:/cgi-bin/wap-push.cgi scriptCan someone give me an example please?Thank you!Alejandro Ramrez-- 
Christian Vandrei
Mobi-tech GmbH
Glogauer Str. 6
10999 Berlin Kreuzberg
Germany

phone +49 (0)030 616 757 30
fax   +49 (0)030 616 757 34

[EMAIL PROTECTED]
www.mobi-tech.com

Hol dir Dein Stadtmagazin aufs Handy!
Schicke Tip, Meier, Lift oder Kreuzer als SMS an die 81819.
Dann erhltst Du den Startlink auf Dein Handy geschickt!
Geht auch direkt im Portal
bei Vodafone unter Fun/Freizeit
bei I-Mode unter Stadtmagazine
bei O unter Citymagazines
und demnchst bei T-Mobile unter Unterwegs.


Re: MMS indication only

2005-06-01 Thread Aarno Syvänen

You get of the url, too. but you must change it to make it refer url of
your mms.

Aarno

On 27.5.2005, at 10.23, Julien Buratto wrote:


On 24.5.2005, at 15.22, Julien Buratto wrote:


Aarno Syvänen wrote:



And you can get full notification starting Kannel as smsc and
sending mms to that sim.
Aarno




I don't understand... Do you mean I should send an MMS, watch at   
kannel logs, and then reproduce exacly the same message ?


Julien



 Aarno Syvänen wrote:
 Yep, expect the url.

 Aarno


Well, infact I need the full header in a binary format with all the  
things.


J







Re: MMS indication only

2005-05-26 Thread Aarno Syvänen

Yep, expect the url.

Aarno

On 24.5.2005, at 15.22, Julien Buratto wrote:


Aarno Syvänen wrote:


And you can get full notification starting Kannel as smsc and
sending mms to that sim.
Aarno



I don't understand... Do you mean I should send an MMS, watch at  
kannel logs, and then reproduce exacly the same message ?


Julien







Re: MMS indication only

2005-05-24 Thread Aarno Syvänen

And you can get full notification starting Kannel at smsc and
sending mms to that sim.

Aarno

On 22.5.2005, at 22.50, Alejandro Guerrieri wrote:


Linkas,

I've been investigating the issue some time ago, and after googleing a
little I've came up with a bunch of lines borrowed from many places.
I've been able to send the SMS indication, but I've neved been able to
download the content. I don't know if it's a problem on the message
I've constructed or if (most probably) my operator is filtering MMS
download outside of their MMSC infrastructure.

Anyway, here is the PHP code I'm using. $address should contain the
URL containing the MMS encoded message ( hex encoded and with %'s)
and there are a couple of constants you must define regarding your
particular Kannel setup (KANNEL_SERVER, USERNAME, PASSWORD and
GLOBAL_SENDER)

?
$message = %01; //Transaction ID
$message .= %06; //PDU Type (push)
$message .= %04; //Headers Length (content-type + headers)
$message .= %03; //Length of content type
$message .= %BE; //Content-Type: application/vnd.wap.mms-message
$message .= %81%83; //Charset is US-ASCII
$message .= %8C%82; //X-Mms-Message-Type: m-notification- 
indicator
$message .= %98 . rand(1,9) . @pl . %00; // X-Mms- 
Transaction-Id

$message .= %8D%90; // X-Mms-Version: 1.0
$message .= %8A%80; // X-Mms-Message-Class: Personal
$message .= %8E%01%64; // X-MMS-Size: 100
$expiry = time() + 31104000; // 1 year expiry
$expiry = dechex($expiry);
$expiry = chunk_split($expiry, 2, '%');
$expiry = substr($expiry, 0, 12);
$message .= %88%06%80%04 . $expiry; // X-MMS-Expiry: one year  
from now

$message .= %83 . $address . %00; // X-MMS-Content-Location
echo $message;
$URL = KANNEL_SERVER.
/cgi-bin/sendsms.
?username=.USERNAME.
password=.PASSWORD.
from=.GLOBAL_SENDER.
to=.$to.
udh=%06%05%04%0B%84%23%F0.
text=.$message;
$result = file_get_contents( $URL );
?

Please let me know if you suceed.

Hope it helps,

On 5/22/05, Linkas [EMAIL PROTECTED] wrote:


Hello,

I would like to send the SMS indication about a MMS direcly with  
kannel.


I don't want to send an MMS with kannel - I just want to send the SMS
that tells the phone about the MMS.

Can anyone help me composing the headers and contents ?

Thanks
J





--
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/








Re: Send/Receive sms

2005-05-20 Thread Aarno Syvänen
I am afraid that you are misunderstanding. Fakesmsc is just a test tool, forreal usage you must have a real smsc.AarnoOn 18.5.2005, at 9.02, Gulshan Babajee wrote:  Hi, am actually using the fakesmsc provided by Kannel as an sms center. What should I do so that Kannel can retrieve sms from this fakesmsc and pass it to my postgresql db.   please help -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.12 - Release Date: 17-05-2005  

Re: get-url WAP

2005-05-12 Thread Aarno Syvänen
Yep. But remember that it sends only the url, the phone will fetch
the content over wap.
Aarno
On 9.5.2005, at 18.31, Nicolas de Bari Embriz G. R. wrote:
Does PPG does all the xml stuff ?
regards

Better to use Kannel PPG for sending WAP pushes, it does all this for
you.
Aarno
On 5.5.2005, at 4.25, Juan Nin wrote:
Nicolas de Bari Embriz G. R. wrote:
[...]

I can send wap messages using the contrilb/web php aplication but
how can i send the wap using the get-url method, I can send binary
data like logos or tones just by puting something like this on the
script.php
?php
echo //SCKL1581
024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C210 
2D
020C21023020C00;
 ?
but how can I send WAP messages?

what do you mean by WAP messages??
an SMS??




Re: real time testing

2005-05-12 Thread Aarno Syvänen
There are test scripts in the test directory. These should begood enough for stress testing.AarnoOn 10.5.2005, at 2.58, AKSHAY wrote:    hi  friends  is there any way i can do a real time  testing of kannel , other than usning nokia  simulators(tool kits)    REGARDS        AKSHAY   

Re: connecting to SMSC

2005-05-12 Thread Aarno Syvänen
Take a look at *.conf files in the gw dir.
Aarno
On 10.5.2005, at 12.22, Ravi Shankar wrote:
Hi,
sorry for my incomplete post earlier.
My aim was to connect to an SMSC and send sms (using smpp protocol).
I need the following .
 A sample configuration file that can be used with bearerbox and  
smsbox.
(I have SMSC host ip, port, user id and password.)

thank u
ravi




Re: get-url WAP

2005-05-09 Thread Aarno Syvänen
Better to use Kannel PPG for sending WAP pushes, it does all this for  
you.

Aarno
On 5.5.2005, at 4.25, Juan Nin wrote:
Nicolas de Bari Embriz G. R. wrote:
[...]
I can send wap messages using the contrilb/web php aplication but  
how can i send the wap using the get-url method, I can send binary  
data like logos or tones just by puting something like this on the  
script.php
?php
echo //SCKL1581  
024A3A5DD195C5D5A5B1840400272292312142D020C2D021029021030C29020C2102D 
020C21023020C00;
 ?
but how can I send WAP messages?


what do you mean by WAP messages??
an SMS??




Re: DLR success issue

2005-05-04 Thread Aarno Syvänen
Unallocated number is a number not used by any of customers
An operator usually get a block of numbers fro regulators,
and gives them one by one to its customers.
Try a test with numbers you know to belong to someone.
Aarno
On 2.5.2005, at 10.24, info.ubichip wrote:
What do you mean by allocated numbers?
Numbers are MSISDN in France, and so are dialing ones.
Could be other issue like sms class, or sim full?
Thanks for your heelp
- Message d'origine -
De: Aarno Syvänen[EMAIL PROTECTED]
Env: 02/05/05 09:51:28
À: info.ubichip IMAP[EMAIL PROTECTED]
Cc: users@kannel.orgusers@kannel.org
Objet: Re: DLR success issue
  Are numbers you are using allocated ? Non-allocated numbers  
would
explain your failure ratio.

Aarno
On 29.4.2005, at 14:47, info.ubichip IMAP wrote:

Hello,
I'm running Kannel 1.4.2 (and mySQL) with a pool of Nokia 12 modems.
I'm
using this gateway for sending sms.
I got some troubles when I have some mass sending, the success (SMS
that
arrive successful on the handset) ratio is not constant and some time
is
under 30% (usually it come to 75/85%).
example :
Total MT = 1297
Total MO = 1990
Dont
_
Total MO NACK = 58
Total MO Non Delivered = 27
Total MO ACK = 1240
Total MO Buffered = 146
Total MO Success = 519
I make a correction in the kannel code in order to remove the bug  
with
multiple senders and the limitation of 255 ts : the DLR are updated
based on
ts AND destination AND smsc. I could provide this code for people who
want
it.

My concern is the actual ratio is not so good and I don't know why.
here is my modem.cong and the extract of the setup of kannel.conf for
the
smsc AT.
Does someone have idea about the keepalive paramaters (I setup it  
to 6
sec)?
What about sim buffering ?

Thanks for your help.
group = smsc
smsc = at
smsc-id = Titi2
allowed-smsc-id = toto;titi2
#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson
modemtype = nokia12
device = /dev/ttyS7
pin = 
# validity period is 167 (24 hours+ x jours)
validityperiod = 169
# ping du modem toutes les 60s
keepalive = 6
# numero de tel de ce GSM
my-number = 00336
#throughput = 2
sim-buffering = true
# pour ISO 8859-1
#alt-charset = ASCII

# Modems configuration
#
# Example and default values
#
# group = modems
# id = my-id
# name = my-name
# detect-string = MODEM
# detect-string2 =  [Default]
# init-string = AT+CNMI=1,2,0,0,0 [Default]
# speed = 9600 [Default]
# enable-hwhs = AT+IFC=2,2 [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = AT [Default]
# broken = false [Default]
# message-storage = SM
# enable-mms = false [Default]
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = Generic Modem
group = modems
id = wavecom
name = Wavecom
detect-string = WAVECOM
group = modems
id = premicell
name = Premicell
detect-string = PREMICEL
no-pin = true
no-smsc = true
group = modems
id = siemens_tc35
name = Siemens TC35
detect-string = SIEMENS
detect-string2 = TC35
init-string = AT+CNMI=1,2,0,1,1
speed = 19200
enable-hwhs = AT\\Q3
need-sleep = true
group = modems
id = siemens_m20
name = Siemens M20
detect-string = SIEMENS
detect-string2 = M20
speed = 19200
enable-hwhs = AT\\Q3
keepalive-cmd = AT+CBC;+CSQ
need-sleep = true
group = modems
id = siemens_sl45
name = Siemens SL45
detect-string = SIEMENS
#detect-string2 = SL45
#init-string = AT+CNMI=1,2,2,2,1;+CMGF=0
init-string = AT+CNMI=1,2,2,2,1;+CMGF=0
keepalive-cmd = AT+CBC;+CSQ
speed = 19200
enable-hwhs = AT\\Q3
need-sleep = true
#message-storage = ME
message-storage = SM
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true
group = modems
id = nokia12
name = Nokia 12
detect-string = Nokia
need-sleep = true
#keepalive-cmd = AT+CBC;+CSQ
keepalive-cmd = AT+CSQ
enable-mms = true
# init-string = AT+CNMI=2,2,0,1,1
init-string = ATE0+CNMI=2,0,0,1,0
message-storage = SM
no-pin =true
group = modems
id = sagem
name = Sagem
detect-string = Sagem
need-sleep = true
#keepalive-cmd = AT+CBC;+CSQ
#enable-mms = true
init-string = AT+CNMI=2,0,0,1,0
enable-hwhs = ATk3
speed = 9600
message-storage = SM
group = modems
id = wave2
name = wave2
detect-string = WAVECOM
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
#enable-hwhs = AT+IFC=2,2
#enable-mms = true
init-string = ATE0+CNMI=2,1,0,1,1
speed = 9600
message-storage = SM

group = modems
id = falcom
name = Falcom
detect-string = Falcom
no-smsc = true
group = modems
id = ericsson_r520m
name = Ericsson R520m
detect-string = R520m
init-string = AT+CNMI=3,2,0,0
group = modems
id = ericsson_t68
name = Ericsson T68
detect-string = T68
init-string = AT+CNMI=3,3
keepalive-cmd = AT+CBC;+CSQ
broken = true
group = modems
id = alcatel
name = Alcatel
detect-string = Alcatel
init-string = AT+CNMI=3,2,0,0



[Message

Re: error bind failed

2005-05-04 Thread Aarno Syvänen
Some other program is already listening at port 13000.
Terminate it first.
Aarno
On 2.5.2005, at 18.27, Yasser Sultan wrote:
hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I  
am using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port  
13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 (gw/ 
bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection  
module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not  
set, using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 (gw/ 
bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 (gw/ 
bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id  
(null) disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]:  
configuration shows mode
mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading  
modem definitio   ns from  
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run)  
mapsto pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with  
requests, quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run)  
term   inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 (gw/ 
bb_boxc.c:sms_to_smsboxes)  
ma   ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/ 
bb_boxc.c:smsboxc_run) maps  
t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175)  
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0  
[0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone 
+0x5a) [0x70916

//config file/
group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = 
#admin-allow-ip = 
#log-file = /tmp/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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today it's  
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





Re: external dlr-storage to Mysql couldn't be set

2005-05-04 Thread Aarno Syvänen
Try newer version. There is a name conflict with mysql
in older ones.
Aarno
On 2.5.2005, at 18.56, chouaieb ben Smail wrote:
hi again,
First of all, i'd like to thank you for your
explanation and support, Mr Sadok, but the external
dlr-storage (Mysql) isn't yet set when compiling since
an other error is generated (as you could see below)
even after changing the occurence of list_delete to
gw_list_delete in the specified *.c,*.h from
directories (/gwlib, /gw):
libwap.a(wsp_push_client.o): In function
`push_client_machine_destroy':
wsp_push_client.o(.text+0xa62): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`machine_destroy':
wsp_session.o(.text+0x348a): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_method_event':
wsp_session.o(.text+0x45e5): undefined reference to
`list_delete_equal'
libwap.a(wsp_session.o): In function
`handle_push_event':
wsp_session.o(.text+0x4aac): undefined reference to
`list_delete_equal'
libwap.a(wtp_init.o): In function
`init_machine_destroy':
wtp_init.o(.text+0x358): undefined reference to
`list_delete_equal'
libwap.a(wtp_resp.o)(.text+0x2032): more undefined
references to `list_delete_equal' follow
collect2: ld a retourné 1 code d'état d'exécution
make: *** [gw/wapbox] Erreur 1
 So, i ask you kindly if you could propose me a
solution for that,
All the best,
chouaieb ben smail



__
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour  
vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/





Re: error bind failed

2005-05-04 Thread Aarno Syvänen
Try netstat -a | grep 13000 or lsof -i
Aarno
On 2.5.2005, at 21.02, Yasser Sultan wrote:
hi
Thanks for the reply
I did a fresh install of kannel on another system running Fedora  
core 2 but I am still getting this error ?

and there isn't any orther box ruuning
I googled a bit and may be someome can help by reading these messages
http://forums.fedoraforum.org/archive/index.php/t-26887.html
Regards
Yasser


From: Rodrigo Cremaschi [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED], users@kannel.org
Subject: Re: error bind failed
Date: Mon, 2 May 2005 14:37:45 -0300
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox)  
already running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - From: Yasser Sultan  
[EMAIL PROTECTED]
To: users@kannel.org
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following  
errors

I have connected a nokia 6630 as a gsm modem through usb port and  
I am using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port  
13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 (gw/ 
bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection  
module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending'  
not set, using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 (gw/ 
bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 (gw/ 
bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id  
(null) disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]:  
configuration shows  
mode   mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading  
modem definitio   ns from  
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run) maps to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with  
requests, quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run) term inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 (gw/ 
bb_boxc.c:sms_to_smsboxes) ma ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/ 
bb_boxc.c:smsboxc_run) maps  
t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port  
13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175)  
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0  
[0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone 
+0x5a) [0x70916

//config  
file/

group = core
admin-port = 13000
smsbox-port = 13002
admin-password = bar
#status-password = foo
#admin-deny-ip = 
#admin-allow-ip = 
#log-file = /tmp/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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today  
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
direct/01/



_
Express yourself instantly with MSN Messenger! Download today it's  
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





Re: ringtones, images... all that stuff.

2005-05-02 Thread Aarno Syvänen
I agree, if the file is small, only one or two sms. But if it is
greater, cost of these sms will be quite high. SI induces a
wap fetch, a quite different thing.

Aarno

On 29.4.2005, at 00:47, Linkas wrote:

But hey... you don't need a PPG to send a SI :-D
I mean, I do send SI without PPG :-D
Most of the phone do not accept SL (such as nokia) so I think it's not useful.

So, the SI is a Service Indication that means it sends just the URL to fetch the ringtone/logo from.

J

Alejandro J. Ramrez wrote: 
x-tad-bigger/x-tad-bigger
x-tad-bigger/x-tad-bigger
x-tad-biggerHello All!/x-tad-bigger
x-tad-bigger/x-tad-bigger
x-tad-bigger Ive been reading a LOT of the mails of this mailing list and thanks to that Ive been able to set up the PPG, and send a simple wap push. Now the one million dollar question. How can I send a ringtone? I mean SEND the ringtone not just be able to send the URL for the mobile to fetch (im talking Midi now..i imagine simple SKC ringtones can be sent as VCARDs). I have read about MBUNI which seems really really nice. But before I get into that I wished to ask you guys can I send a midi ringtone using simple SI, or SLs with the PPG? If so please post a sample XML that does that./x-tad-bigger
x-tad-bigger/x-tad-bigger
x-tad-biggerThank you Kannel boys  girls./x-tad-bigger
x-tad-bigger/x-tad-bigger
x-tad-bigger/x-tad-bigger
x-tad-biggerAlejandro Ramrez/x-tad-bigger


Re: DLR success issue

2005-05-02 Thread Aarno Syvänen
Are numbers you are using allocated ? Non-allocated numbers would
explain your failure ratio.
Aarno
On 29.4.2005, at 14:47, info.ubichip IMAP wrote:
Hello,
I'm running Kannel 1.4.2 (and mySQL) with a pool of Nokia 12 modems. 
I'm
using this gateway for sending sms.
I got some troubles when I have some mass sending, the success (SMS 
that
arrive successful on the handset) ratio is not constant and some time 
is
under 30% (usually it come to 75/85%).

example :
Total MT = 1297
Total MO = 1990
Dont
_
Total MO NACK = 58
Total MO Non Delivered = 27
Total MO ACK = 1240
Total MO Buffered = 146
Total MO Success = 519
I make a correction in the kannel code in order to remove the bug with
multiple senders and the limitation of 255 ts : the DLR are updated 
based on
ts AND destination AND smsc. I could provide this code for people who 
want
it.

My concern is the actual ratio is not so good and I don't know why.
here is my modem.cong and the extract of the setup of kannel.conf for 
the
smsc AT.

Does someone have idea about the keepalive paramaters (I setup it to 6 
sec)?
What about sim buffering ?

Thanks for your help.
group = smsc
smsc = at
smsc-id = Titi2
allowed-smsc-id = toto;titi2
#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson
modemtype = nokia12
device = /dev/ttyS7
pin = 
# validity period is 167 (24 hours+ x jours)
validityperiod = 169
# ping du modem toutes les 60s
keepalive = 6
# numero de tel de ce GSM
my-number = 00336
#throughput = 2
sim-buffering = true
# pour ISO 8859-1
#alt-charset = ASCII

# Modems configuration
#
# Example and default values
#
# group = modems
# id = my-id
# name = my-name
# detect-string = MODEM
# detect-string2 =  [Default]
# init-string = AT+CNMI=1,2,0,0,0 [Default]
# speed = 9600 [Default]
# enable-hwhs = AT+IFC=2,2 [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = AT [Default]
# broken = false [Default]
# message-storage = SM
# enable-mms = false [Default]
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = Generic Modem
group = modems
id = wavecom
name = Wavecom
detect-string = WAVECOM
group = modems
id = premicell
name = Premicell
detect-string = PREMICEL
no-pin = true
no-smsc = true
group = modems
id = siemens_tc35
name = Siemens TC35
detect-string = SIEMENS
detect-string2 = TC35
init-string = AT+CNMI=1,2,0,1,1
speed = 19200
enable-hwhs = AT\\Q3
need-sleep = true
group = modems
id = siemens_m20
name = Siemens M20
detect-string = SIEMENS
detect-string2 = M20
speed = 19200
enable-hwhs = AT\\Q3
keepalive-cmd = AT+CBC;+CSQ
need-sleep = true
group = modems
id = siemens_sl45
name = Siemens SL45
detect-string = SIEMENS
#detect-string2 = SL45
#init-string = AT+CNMI=1,2,2,2,1;+CMGF=0
init-string = AT+CNMI=1,2,2,2,1;+CMGF=0
keepalive-cmd = AT+CBC;+CSQ
speed = 19200
enable-hwhs = AT\\Q3
need-sleep = true
#message-storage = ME
message-storage = SM
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true
group = modems
id = nokia12
name = Nokia 12
detect-string = Nokia
need-sleep = true
#keepalive-cmd = AT+CBC;+CSQ
keepalive-cmd = AT+CSQ
enable-mms = true
# init-string = AT+CNMI=2,2,0,1,1
init-string = ATE0+CNMI=2,0,0,1,0
message-storage = SM
no-pin =true
group = modems
id = sagem
name = Sagem
detect-string = Sagem
need-sleep = true
#keepalive-cmd = AT+CBC;+CSQ
#enable-mms = true
init-string = AT+CNMI=2,0,0,1,0
enable-hwhs = ATk3
speed = 9600
message-storage = SM
group = modems
id = wave2
name = wave2
detect-string = WAVECOM
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
#enable-hwhs = AT+IFC=2,2
#enable-mms = true
init-string = ATE0+CNMI=2,1,0,1,1
speed = 9600
message-storage = SM

group = modems
id = falcom
name = Falcom
detect-string = Falcom
no-smsc = true
group = modems
id = ericsson_r520m
name = Ericsson R520m
detect-string = R520m
init-string = AT+CNMI=3,2,0,0
group = modems
id = ericsson_t68
name = Ericsson T68
detect-string = T68
init-string = AT+CNMI=3,3
keepalive-cmd = AT+CBC;+CSQ
broken = true
group = modems
id = alcatel
name = Alcatel
detect-string = Alcatel
init-string = AT+CNMI=3,2,0,0




Re: Simulate WAP Gateway [again]

2005-04-26 Thread Aarno Syvänen
Yep, you can configure it, but it does not necessarily work. Of course, 
you can try.
Your operator may be an expection.

Aarno
On 26.4.2005, at 07:14, Yasser Sultan wrote:
Sorry I didn't quite get you , can you explain it a bit ?
Do you mean that a wap gw is  a fixed part of GGSN node in GPRS 
infastucture so we are bound to use the gw present in GGSN and we 
can't use any other gateway ?

I thought that a GPRS APN has open internet access so we can configure 
the IP address of any gateway(in our mobile) ?

Thanks
Yasser
Talk about Love/Friendship and get Relationship Advice at 
Latestngreatest Forums
http://www.latestngreatest.net/cgi-bin/Blah/Blah.pl/Blah.pl



From: Aarno Syvänen [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED]
CC: users@kannel.org
Subject: Re: Simulate WAP Gateway [again]
Date: Mon, 25 Apr 2005 16:57:40 +0200
That is more like a problem of GPRS, because wap gw is a part of GGSN.
CSD would usually work, and is not much slower either (strange but  
true).

Aarno
On 25.4.2005, at 15:00, Yasser Sultan wrote:
Yes , you are right it won't be a simulation than ..
I have a GPRS enabled phone in which for WAP I use the WAP gateway   
address  provided by my cellular provider, so if I change this 
address  to the address of my gateway than I suppose I will be able 
to showing  the working of kannel on a mobile phone ? (Please 
correct me If I am  wrong)

But do mobile operators allow connections to gateways others than  
theirs ?

Thanks
Yasser


From: Aarno Syvänen [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED]
CC: users@kannel.org
Subject: Re: Simulate WAP Gateway [again]
Date: Mon, 25 Apr 2005 13:34:34 +0200
This would not be a simulation, but a real thing, would it ?
Aarno
On 25.4.2005, at 07:14, Yasser Sultan wrote:
Hi,
I want to simulate the working of Kannel WAP gateway ?
I have found one method here
http://www-106.ibm.com/developerworks/linux/library/wi- 
kannelwap.html? ca=dgr-lnxw09WAPLinux

Which says that
Testing with a WAP-enabled mobile phone simulator
You need two machines, one running a Windows® operating
system, and the other the Linux gateway, preferably connected  
through a
LAN. The Linux machine must be connected to the Internet, either
directly or indirectly.
You can use the Nokia 7210 Content Authoring SDK which is 
available   for a Windows system.
Install it in a Windows system.
Do a little configuring and set the gateway address to the IP  
address  of
the Linux machine running the gateway.
Now type any Web site address serving WML pages from the simulator 
 and
you are done!

Is there a way by which I can show the working of kannel wap 
gateway   on a MOBILE phone ?

Thanks
_
Express yourself instantly with MSN Messenger! Download today it's 
  FREE!  
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



_
Don't just search. Find. Check out the new MSN Search!  
http://search.msn.com/


_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/




Re: Simulate WAP Gateway [again]

2005-04-25 Thread Aarno Syvänen
This would not be a simulation, but a real thing, would it ?
Aarno
On 25.4.2005, at 07:14, Yasser Sultan wrote:
Hi,
I want to simulate the working of Kannel WAP gateway ?
I have found one method here
http://www-106.ibm.com/developerworks/linux/library/wi-kannelwap.html? 
ca=dgr-lnxw09WAPLinux

Which says that
Testing with a WAP-enabled mobile phone simulator
You need two machines, one running a Windows® operating
system, and the other the Linux gateway, preferably connected through a
LAN. The Linux machine must be connected to the Internet, either
directly or indirectly.
You can use the Nokia 7210 Content Authoring SDK which is available  
for a Windows system.
Install it in a Windows system.
Do a little configuring and set the gateway address to the IP address  
of
the Linux machine running the gateway.
Now type any Web site address serving WML pages from the simulator and
you are done!

Is there a way by which I can show the working of kannel wap gateway  
on a MOBILE phone ?

Thanks
_
Express yourself instantly with MSN Messenger! Download today it's  
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





  1   2   3   >