1.4.1 and at 4 driver

2006-12-27 Thread Gareth Reakes

Hey all,

	I am about to upgrade to 1.4.1 but before I was using Wilfrieds driver 
in order to get my MC35 to act properly with the different memory 
locations it uses for SMS. I note in the release notes that it says:


  * AT driver fixes and improvements.


Does this include fixes to the problem above?

Thanks for any help.

Gareth


--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Re: WAP PUSH not received in some mobile phones

2006-09-05 Thread Gareth Reakes

Hey,

	On the blackberry there is a security setting. The user can turn  
them on and off. Its the same on quite a few phones (I saw a motorola  
on the weekend and I have seen nokias like it). The standard security  
setting on windows mobile does now allow WAP push either and you  
can't even configure this. A lot of new phones highlight links in SMS  
the same way as you mail client do. We use that a lot now as well.  
All in all its a complete mine field.



Gareth


On 5 Sep 2006, at 16:37, Christian Vandrei wrote:


Hi,

I made the same experience with Wap-Push messages on Blackberry. As  
far as I found it can only be solved by using some kind of  
Blackberry-Gateway. In case I might at least partially right, I'll  
be delighted receiving further enlightment=).



Ciao,
Chris.

[EMAIL PROTECTED] wrote:

I have been sending/receiving SMS with kannel for
years without a problem, and now I am investigating
wap push.

I have configured the following groups: wapbox, ppg
and wap-push-user. After that I have created a test
si.xml and pap.xml files, and tried them with
test_ppg.

The problem I am experiencing is that the SMS is not
delivered to certain mobile phones, at least
Blackberry 7100, Blackberry 7730 and Movistar TSM7
(all are modern mobiles, and recieve wap push from
other sources) don't receive the SMS. Sending the
binary code directly to the HTTP interface produces
the same bad result.

Is wap push mobile-dependent? How can I send a
device-independent wap-push?

Regards,
J.L.





__ LLama Gratis a  
cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo  
por minuto. http://es.voice.yahoo.com







--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com







Re: Regex issue resolved but not taken care off

2006-03-07 Thread Gareth Reakes

Hi,

Eduardo Anuel wrote:

Hello, my name is Eduardo and I had a hard time triying to make kannel
catch a regular expression with spaces in it. Fortunatelly I found
somebody in this list that had that problem and he solved it[1], his
name is Gareth Reakes, he submitted a patch for the 1.4.0 version and
to the then CVS version. I am using the CVS version, but it wasn't
patched.

I truly don't understand why there was no interest in fixing this
particular bug that I believe will help a lot. Does anybody knows why?



I thought the code was very useful - especially considering how 
widespread shared short codes are these days. Allowing a space means you 
can route of the second word if you are using a shared short code. The 
code itself could have implemented a bit better - I did offer to do this 
at the time if the patch was going to be committed. Kannel guys, is this 
something that you would accept if it was tidied up a bit?


Gareth


--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Re: intermittent problem retrieving sms

2005-10-31 Thread Gareth Reakes

Hi Wilfried,

	 http://tar.gzipped.org/gateway.tar.bz2 does not seem to work for me. 
Has it moved?


	Do you have a set of diffs against 1.4? If not, when I have found out 
what they are I could post them back.



Cheers,

Gareth

--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Re: intermittent problem retrieving sms

2005-10-14 Thread Gareth Reakes

Hi Wilfried,

Wilfried Goesgens wrote:

On Thu, Oct 13, 2005 at 06:15:29PM +0100, Gareth Reakes wrote:


Hi all,

I have an Seimens MC35 hooked up to a 1.4 kannel installation on  redhat. About 1 in 10 times an sms is received it 
does not come  through. The following error in the logs occurs:


your mc35 is a verry modern piece of tec. it offers you
not just the sim-memory, but allso its own.
(SM, ME) so if a message is received, the first available slot 
is used. if you use the ME memory, your sim-memory doesn't get polled.
i've added the functionality to block messages in thte new at driver, 
called hogs.


you can find my version at http://tar.gzipped.org/gateway.tar.bz2



Thanks for that. What files have changed? I have some custom changes 
myself and so cant use your gateway as is.


Cheers,

Gareth


--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



intermittent problem retrieving sms

2005-10-13 Thread Gareth Reakes

Hi all,

I have an Seimens MC35 hooked up to a 1.4 kannel installation on  
redhat. About 1 in 10 times an sms is received it does not come  
through. The following error in the logs occurs:



2005-10-13 13:17:03 [29359] [29] DEBUG: Octet string dump ends.
2005-10-13 13:17:24 [29359] [25] DEBUG: boxc_receiver: heartbeat with  
load value 0 received

2005-10-13 13:17:29 [29359] [6] DEBUG: AT2[orange]: -- +CMTI: MT,15
2005-10-13 13:17:29 [29359] [6] DEBUG: AT2[orange]: +CMTI incoming  
SMS indication: +CMTI: MT,15

2005-10-13 13:17:31 [29359] [6] DEBUG: AT2[orange]: -- AT+CPMS=MT^M
2005-10-13 13:17:33 [29359] [6] DEBUG: AT2[orange]: -- +CPMS:  
16,40,16,40,16,40

2005-10-13 13:17:33 [29359] [6] DEBUG: AT2[orange]: -- OK
2005-10-13 13:17:33 [29359] [6] DEBUG: AT2[orange]: -- AT+CMGR=15^M
2005-10-13 13:17:33 [29359] [6] DEBUG: AT2[orange]: -- +CMGR: 0,,20
2005-10-13 13:17:35 [29359] [6] ERROR: AT2[orange]: got +CMT but  
waiting for next line timed out
2005-10-13 13:17:37 [29359] [6] DEBUG: AT2[orange]: failed to get  
message 15.
2005-10-13 13:17:37 [29359] [6] ERROR: AT2[orange]: CMTI notification  
received, but no message found in memory!
2005-10-13 13:17:37 [29359] [6] ERROR: System error 1: Operation not  
permitted

2005-10-13 13:17:37 [29359] [6] DEBUG: AT2[orange]: -- AT+CPMS=SM^M
2005-10-13 13:17:53 [29359] [6] DEBUG: AT2[orange]: --  
0791449785788987040C91449726240030500131312175000141

2005-10-13 13:17:53 [29359] [6] DEBUG: AT2[orange]: -- ERROR
2005-10-13 13:17:53 [29359] [6] ERROR: AT2[orange]: Error occurs:  
ERROR (error number not known to us. ask google and add it.)


Can someone explain to me what is going on? Would trying out the new  
AT driver sort me out?


Cheers all,

Gareth

--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com





Re: Dual ISDN Gateway with two Siemens TC-35 modules

2005-09-07 Thread Gareth Reakes

Hi,

On 7 Sep 2005, at 18:08, George C wrote:


Hello list,

Any tips how I can get kannel.conf setup to use this gateway which  
has two

Siemens TC-35 modules inbuilt?

How do I initialize it? (till now no luck)  and is it possible to  
control each gsm module seperately?


Any hints to get this unit going - will greatly be appreciated.



Whats you conf file look like at the moment?

Gareth


--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com





Re: keyword-regex

2005-09-07 Thread Gareth Reakes

Hi,

On 7 Sep 2005, at 20:55, Poul Møller Hansen wrote:


Hello.
I think that to match TC1234 YES you would need to write something  
like:

^TC[:digit:]+ [:alpha:]+$.
With the regex ^TC you will only be matching incoming messages  
with TC in its text.
Be sure to check out any regex reference, such as http:// 
bama.ua.edu/cgi-bin/man-cgi?regex+5.




Thanks, but unfortunately it still falls into the default service.
Your suggestion is a better pattern match, but ^TC should match
anything begging with TC, at least I think so.

I'm using this sms-service:
group = sms-service
keyword = web_service
keyword-regex = [§]
get-url = http://localhost/get.php?keyword=%ksender=%preason=3;

It works matching §POS§12345678



If you remove the space (eg do something like TCsasdfassad) does it  
work then?



Gareth




--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com





Re: OOT: Reply-To header

2005-08-18 Thread Gareth Reakes



+1


Gareth

On 18 Aug 2005, at 8:47, Ady Wicaksono wrote:


Dear All,

I suggest that this mailing list added Reply-To header
it will help us to simply reply every message

Thx

--

Regards,
Ady Wicaksono
HP: +628562208680






--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com





Re: Send file over SMS

2005-08-02 Thread Gareth Reakes

Hey Mike,

	We are doing stuff with EMS and have been having problems as well. We 
have not established exactly what is happening in all cases, but does 
depend on you smsc as well. One of our suppliers (over http) had to 
change their end to make it work properly. We have still not got it to 
work with clickatell. You need to check the format they expect very 
carefully. If you make any progress I would appreciate if you would 
share your knowledge!


Cheers,

Gareth


Mike Nwaogu wrote:

Sorry Guys I have a question along this line too, I'm
want to send an IMY [Imelody] text via SMS do I have
to convert it to hex? is there something I have to do
to make the recieving phone understand that I'm
sending a ringing tone?

I've tried sending it as is, but the phones don't
recognize it. Yet not all the phones that claim EMS
support actually support it. I hope I'm doing
something wrong.

Regards,
Mike

--- Ricky Wibowo [EMAIL PROTECTED] wrote:



OK...
If just only an URL that refer to a file, how
about i'm using apache 
running wap protocol?

it's same if we run wapbox?


Ady Wicaksono wrote:



No,

WAP Push simply send a SMS contain an URL of your


file (could be jar 


file, midi file, ... others) to fetch by phone


over WAP


please open www.openmobilealliance.org

Thx

Ricky Wibowo wrote:



how??
is the file need to be converted into another


file type??


Ady Wicaksono wrote:



You should send it using WAP Push
Ricky Wibowo wrote:



Dear all,
I wonder to know how to send a file (.jar ,


.mid, etc) into 


handphone using SMS?
Any one know??

thanx
















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

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





--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Re: SMS Service questions

2005-07-29 Thread Gareth Reakes

Hey all,


Stephane Rosa wrote:

Hola Alejandro,

Welcome to regex irregular world :-))

I suggest using this instead :
keyword-regex=^(BS|bs) [0-9]{4}


This still won't work as you can't have a space. I fixed this and 
submitted a patch. I don't know if its made it in to CVS yet. If you 
want a patch to 1.4 then search the user archive, if you want it against 
CVS then search the devel archive.



Cheers,

Gareth

--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Sending EMS user data

2005-07-28 Thread Gareth Reakes

Hi,
   I'm currently trying to send a picture via EMS to a Sony Ericsson 
K500i, which claims to have full EMS support. To do this I'm converting 
the picture to the binary format specified in the EMS spec and putting 
the required data in the UDH, which I believe should be 851283000420 for 
a 32x32 variable picture at character offset 0. I'm then putting the 
pixel data in the UDH. When I send this to my handset it receives a 
message but looking at the message results in the handset displaying 
Data Message with no further information.
I've tried varying the placement of data and the data header from the 
UDH to the UD and I've experimented with other EMS types, such as 
pre-defined animations or text formatting. However with all of these I 
end up with the handset displaying the message Data message instead of 
the content I'm giving it.

Can anyone tell me what it is that I'm doing stupidly?

Thanks,

Gareth Reakes

--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com



Re: problems configuring a Sony Ericsson T637 + Kannel 1.4.0 + OSX 10.4.1

2005-07-18 Thread Gareth Reakes

Hey Henry,

Henry Junior wrote:


group = modems
id = T630-T628
name = T630-T628
detect-string = T630-T628
init-string = AT+CNMI=3,3
keepalive-cmd = AT+CBC;+CSQ
broken = true

[ Feedback from the bearerbox ]:



2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- SerialPort1-1]: 
-- AT+CNMI=3,3^M
2005-07-17 09:41:41 [2349] [6] DEBUG: AT2[/dev/tty.T637- SerialPort1-1]: 
-- +CMS ERROR: 303
2005-07-17 09:41:41 [2349] [6] ERROR: AT2[/dev/tty.T637- SerialPort1-1]: 
CMS ERROR: +CMS ERROR: 303 (Operation not supported)




This is saying that your modem does not support AT+CNMI=3,3 which you 
have specified as your init-string. That command seems to switch the 
modem into a state that will give you a string with every incoming message.


http://www.gsm-modem.de/gsm-faq.html


Are you sure you want to do that?

Cheers,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Kannel Message Boards?

2005-07-18 Thread Gareth Reakes

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, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com












--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



[Fwd: Re: kannel installation]

2005-07-15 Thread Gareth Reakes


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
---BeginMessage---

Hey,

[EMAIL PROTECTED] wrote:

hi everyone
sorry if am asking a question that has already been addresses.
If i am hosted by another webhosting company, can i install kannel on my
host space and have it running there?


I run my kannel as a standard user so I don't see why not.


Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com

---End Message---


Re: Physical Setup of a Kannel Gateway

2005-07-13 Thread Gareth Reakes

Hey Ben,

Ben Minton wrote:
 Gareth Reakes wrote:


Hi,

Ben Minton wrote:


Hi All,

I am new to Kannel and actually trying to understand the physical layout
of the setup.

Can someone please explain in non-technical terms, the physical setup of
a Kannel Gateway  service? Do I need to connect to a service provider?


For SMS you need to have way of sending them. You could get a GSM
modem or connect to a provider.



Can I provide content for friends and family to their WAP-enabled
devices?


Yes you can, although you don't need kannel for this. You can put wml
pages on your web server (as long as its configured properly, which it
probably will be by default) and let your friends go to that page just
like a html page.


Cheers,

Gareth


Hi Gareth,

Thanks for the info ... just to clarify, I can obtain a GSM modem,
connect it to my gnu/linux box, insert a valid Australian mini-SIM card
and use that system as a 'mobile phone' for send/receive SMS and as a
Kannel Server?


Yes you can. You might well find it cheaper to use a provider to do this 
for you.




BTW, it is really cool to see that you are so heavily involved with the
Apache Project ... excellent piece of FOSS.


Thanks. Anyone who wants to come and contribute to the xerces project 
please do :) I think its about time apache had some mobile based 
projects, so anyone with any ideas please give me a shout.


Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: supported devices enquiry

2005-07-01 Thread Gareth Reakes

Hey,

I have an Seimens MC35I and that works fine.

Gareth

Kyriacos Sakkas wrote:

Hi all,
After some (admittedly brief) searches I failed to come up with a
specific list of supported GSM modem devices.

We have kannel 1.4 running on Debian testing, and were wondering if
anybody has any specific knowledge of which modems work and which don't.
We are likely to get a NOKIA 30 or 31, or if they are not supported
maybe something from Falcom.

Thanks in advance and apologies if this is covered in the doc's, but I
would rather have some personal commends from people that have already
used such a module with kannel.

Kyriacos Sakkas



--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: WTLS certificate

2005-07-01 Thread Gareth Reakes

Hey,

Mait Mandel wrote:

hey,

does anyone know how to generate a WTLS certificate on you own?
without paying $1M to Verisign ...


If thats like standard certificates then

openssl genrsa -out private.pem
openssl req -new -x509 -key private.pem -out public.pem -days 365


You can get them much much cheaper than verisign. I think we paid 55 UK 
pounds. Be aware that if you use a self signed one other providers etc 
may well not accept that.



Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Configuring a PPG

2005-06-30 Thread Gareth Reakes

Hi,

Diego Belotti wrote:

I'm trying to configure the ppg but I have some question:

What type of group smsc I need for the ppg, I could have a smsc=smpp or I
need a smsc=http? 



The type of the smsc describes how kannel communicates with the provider 
that delivers sms. As such it does not matter which.



Cheers,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: FW: Submit to PPG without using test_ppg

2005-06-29 Thread Gareth Reakes

Hi,

	Did the example I gave not work? Can you mail the entire message you 
are posting (including the content-type of the whole message)?


Gareth

Jeff Sharrow wrote:

What I am getting in my wapbox log is the following:

2005-06-27 15:50:57 [19346] [14] INFO: PPG: Accept request
/cgi-bin/wap-push.cgi from 192.168.1.114
2005-06-27 15:50:57 [19346] [14] WARNING: erroneous preamble
2005-06-27 15:50:57 [19346] [14] DEBUG: PPG: send_bad_message_response:
telling pi
2005-06-27 15:50:57 [19346] [14] DEBUG: HTTP: Destroying HTTPClient area
0x9952cf8.
2005-06-27 15:50:57 [19346] [14] DEBUG: HTTP: Destroying HTTPClient for
`192.168.1.114'.
2005-06-27 15:50:57 [19346] [14] WARNING: PPG: unable to parse mime
content, the request unacceptable

Could this be something that I am missing in sending the information to
the PPG because I am not sending a header or something in perl? For some
reason the perl script sends the post in more than one packet and the
test_ppg command sends it all in one. Could that have anything to do
with my problem?



Jeffery Sharrow
TMP Corp. dba Simmetry Communications






--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Anyone used a Siemens TC35i ?

2005-06-28 Thread Gareth Reakes

Hey,

	My MC35i seems to do this. Does not really seem to effect anything 
though. Does it stop you sms being sent?


Gareth

Jim Hatfield wrote:
I see that the modem list includes a TC35, but mine is a 
TC35i. It initialises OK but any attempt to use sendsms

results in an error:



2005-06-28 15:58:01 [23536] [14] DEBUG: boxc_receiver: sms received
2005-06-28 15:58:01 [23536] [14] DEBUG: send_msg: sending msg to box: 
127.0.0.1
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: TP-Validity-Period: 24.0 
hours
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: -- AT+CMGS=19^M
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: -- 
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: send command status: 1
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: -- 
0011000C81449790995002A70541E1905804
2005-06-28 15:58:03 [23509] [6] DEBUG: AT2[TC35i]: -- ^Z
2005-06-28 15:58:05 [23509] [6] DEBUG: AT2[TC35i]: -- 
2005-06-28 15:58:05 [23509] [6] DEBUG: AT2[TC35i]: -- ERROR
2005-06-28 15:58:05 [23509] [6] ERROR: AT2[TC35i]: Error occurs: ERROR (error 
number not known to us. ask google and add it.)



Jim




--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Submit to PPG without using test_ppg

2005-06-27 Thread Gareth Reakes

Hey

Jeff Sharrow wrote:

Hello,

I am running kannel 1.4 on a test server. I have been able to 
submit a message to the PPG portion of kannel using test_ppg and have it 
delivered to phone through my SMSC. What I am having a problem with is 
that I want to send a service indicator message with using the test_ppg. 
I found a perl script that does most of what I want, but kannel replies 
with bad formatting. I have done captures at the packet level of both 
the test_PPG from another machine to my test server and from my perl 
script. The only things that I cannot get to match up are the 
X-wap-Application-Id and the following which I will pull from the packet 
capture:



MIME Multipart Media Encapsulation, Type: multipart/related, Boundary: 
asdlfkjiurwghasf


Type: multipart/related



You don't have to match up any headers. This is a basic example (taken 
from elsewhere in the archives:


Content-Type: multipart/related; type=application/xml; 
boundary=WPL38woVbhESdfalYevGqpdzLCs


--WPL38woVbhESdfalYevGqpdzLCs
Content-Type: application/xml; charset=UTF-8

?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=64062/198/Openwave Push
address address-value=WAPPUSH=+571585/[EMAIL PROTECTED]/
quality-of-service delivery-method=unconfirmed network=GSM 
network-required=true bearer=SMS bearer-required=true/

/push-message
/pap
--WPL38woVbhESdfalYevGqpdzLCs
Content-Type: text/vnd.wap.si; charset=UTF-8

?xml version=1.0?
!DOCTYPE si PUBLIC -//WAPFORUM//DTD SI 1.0//EN
http://www.wapforum.org/DTD/si.dtd;
si
indication 
href=http://192.168.*.*/wapi/index.php;http://192.168.*.*/wapi/index.php; 
action=

Alerta Kannel
/indication
/si
--WPL38woVbhESdfalYevGqpdzLCs--


The content type is just set to what the Content-Type says above and the 
rest is just the content of the post. No magic. The only thing that got 
me when I started with this was that you have to have \r\n as the line 
ending.



Cheers,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Configuring Kannel as an SMS Gateway

2005-06-22 Thread Gareth Reakes

Hi,

Pablo Salinas wrote:

Hi there,
I want Kannel to work as an SMS Gateway between different SMSCs. But I 
don't know how to set on the config file so that messages from SMSC A are 
routed to SMSC B and viceversa. Could you send me a sample configuration file?


It depends what protocols each are speaking. For example, if it was HTTP 
create a new http type in smsc_http and then either match all incoming 
messages from that smsc and send to another smsc in the geturl 
parameter. This is all explained in the docs (although it is hard to 
understand sometimes). What particular part of the docs are you having 
problems with?


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Configuring Kannel as an SMS Gateway

2005-06-22 Thread Gareth Reakes

Hey,

	Take a look at reroute properties for SMS centers. I have not used them 
but they look like they should do what you want.



http://www.kannel.org/download/1.4.0/userguide-1.4.0/userguide.html#AEN1085

Cheers,

Gareth

Ricky Wibowo wrote:



Gareth Reakes wrote:


Hi,

Pablo Salinas wrote:


Hi there,
I want Kannel to work as an SMS Gateway between different SMSCs. 
But I don't know how to set on the config file so that messages from 
SMSC A are routed to SMSC B and viceversa. Could you send me a sample 
configuration file?




It depends what protocols each are speaking. For example, if it was 
HTTP create a new http type in smsc_http and then either match all 
incoming messages from that smsc and send to another smsc in the 
geturl parameter. This is all explained in the docs (although it is 
hard to understand sometimes). What particular part of the docs are 
you having problems with?


How about SMPP Prtotocol that used?? If we want to fetch all incoming 
messages from smsc, get-url paramater needed??

Or it's only for smsc_http type? I'm still confuse about this...

thanx



--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Configuring Kannel as an SMS Gateway

2005-06-22 Thread Gareth Reakes

Hi Ricky,

Ricky Wibowo wrote:

By the way,
sorry if i'm wrong, your configuration seems that if any incoming 
messages, it will be send again to the sender (MO)...





group   = smsc
smsc   = smpp
smsc-id   = SMSC-1

group  = smsc
smsc  = smpp
smsc-id= SMSC-2


Above you set up 2 smsc that talk smpp.



group   = sms-service
keyword  = default
get-url  =
http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-2?username=test2password=test2sender=%ptext=%arecipient=%P; 


accepted-smsc   = SMSC-1

group   = sms-service
keyword   = default
get-url   =
http://localhost:8080/cgi-bin/sendsms?smsc=SMSC-1username=test2password=test2sender=%ptext=%arecipient=%P; 


accepted-smsc   = SMSC-2


Here you set up 2 services with the magic keyword default that only 
accept messages (all messages though) from 1 of the smsc. So incoming 
messages from each of the smsc will go to a particular sms-service. From 
there they call a sendsms - but notice the smsc=SMSC-x in the parameter 
list. This routes the message back to the other smsc to be sent out over 
smpp.



Is that clear? :)


Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: regex issue

2005-06-21 Thread Gareth Reakes

Hi,

Jan van der Vyver wrote:

Will this also make it possible to use , to split the keywords in a sms?


Not at present, but this would be easy to change. Would a space do 
rather than a ,?


Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: regex issue

2005-06-21 Thread Gareth Reakes

Hi,

Jan van der Vyver wrote:

Hi

At this stage your keywords kan only be the first word and in must be split
with a space

So you can only have:

Help www.google.com

Not

Help,www.google.com

I have a situation where i want stuff lik

help,level2,www.google.com


Sorry, I misunderstood you. You will certainly be able to use standard 
features of regex like or. I thought that would be 
[help|level2|www\.google\.com] but I could be wrong. Is it or that you want?


Cheers,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: WTLS and Kannel 1.4 - Query - Does it Work?

2005-06-21 Thread Gareth Reakes

Hi,

Nazir Faisal-NZRF001 wrote:


*FYI both the key and cert file are in the same directory as the conf file.*


Its relative to the directory the kannel is started in, not the conf file.


*Can anyone help? Has anyone got the WTLS stuff to work?*


Yep.

*Has anyone instructions on how to generate appropiate private/public 
keys and certificates (self-signed)?*



#create keys with
#openssl genrsa -out private.pem
#openssl req -new -x509 -key private.pem -out public.pem -days 365


Change the parameters if you need different behavior. Be warned though, 
if you use self signed then lots of things won't talk to you!



Cheers,

Gareth



--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



regex patch

2005-06-21 Thread Gareth Reakes

Hey,

	Here is the patch for 1.4. If you want CVS I posted it to the devel 
list to be put into the code base. For the archives the patch:


i) fixes the bug where keyword gets matched even when keyword-regex is 
specified


ii) allows multiple words to be specified in keyword-regex.

Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
--- gateway-1.4.0/gw/urltrans.c 2004-09-28 15:47:01.0 +0100
+++ /home/gareth/mbuni/kannel/gateway-1.4.0/gw/urltrans.c   2005-06-21 
11:59:59.537574964 +0100
@@ -158,7 +158,7 @@
 static URLTranslation *create_onetrans(CfgGroup *grp);
 static void destroy_onetrans(void *ot);
 static URLTranslation *find_translation(URLTranslationList *trans, 
-   List *words, Octstr *smsc,
+   Octstr *text, Octstr *smsc,
Octstr *sender, Octstr *receiver, int 
*reject);
 static URLTranslation *find_default_translation(URLTranslationList *trans,
Octstr *smsc, Octstr *sender, 
Octstr *receiver,
@@ -280,10 +280,8 @@
 int reject = 0;
 
 /* do not panic if text == NULL */
-if (text != NULL) {
-words = octstr_split_words(text);
-t = find_translation(trans, words, smsc, sender, receiver, reject);
-list_destroy(words, octstr_destroy_item);
+if (text != NULL){
+t = find_translation(trans, text, smsc, sender, receiver, reject);
 }
 
 if (reject)
@@ -965,6 +963,7 @@
 tolower);
 
 keyword_regex = cfg_get(grp, octstr_imm(keyword-regex));
+
 if (keyword_regex != NULL) {
 if ((ot-keyword_regex = gw_regex_comp(keyword_regex, 
REG_EXTENDED)) == NULL)
   panic(0, Could not compile pattern '%s', 
octstr_get_cstr(keyword_regex));
@@ -1321,7 +1320,7 @@
  * are returned in a list
  * 
  */
-static List* get_matching_translations(URLTranslationList *trans, Octstr 
*word) 
+static List* get_matching_translations(URLTranslationList *trans, List *words, 
Octstr *text) 
 {
 List *list;
 /*char *tmp_word;*/
@@ -1329,23 +1328,37 @@
 size_t n_match = 1;
 regmatch_t p_match[10];
 URLTranslation *t;
+Octstr *word, *allwords;
+
+
+word = list_get(words, 0);
+word = octstr_duplicate(word);
+octstr_convert_range(word, 0, octstr_len(word), tolower);
+
+allwords = octstr_duplicate(text);
+octstr_convert_range(allwords, 0, octstr_len(allwords), tolower);
 
-gw_assert(trans != NULL  word != NULL);
+gw_assert(trans != NULL  word != NULL  allwords != NULL);
 
 list = list_create();
 for (i = 0; i  list_len(trans-list); ++i) {
 t = list_get(trans-list, i);
 if (t-keyword == NULL) 
continue;
-
-/* if regex feature is used try to match */
-if ((t-keyword_regex != NULL)  (gw_regex_exec(t-keyword_regex, 
word, n_match, p_match, 0) == 0))
+   /* if regex feature is used try to match */
+   if(t-keyword_regex != NULL) {
+   if (gw_regex_exec(t-keyword_regex, 
allwords, n_match, p_match, 0) == 0) {
 list_append(list, t);
-
+   }
+   }
 /* otherwise look for exact match */
-if (octstr_compare(t-keyword, word) == 0) 
-list_append(list, t);
-   }
+else if (octstr_compare(t-keyword, word) == 0) {
+   list_append(list, t);
+   }
+   }
+
+octstr_destroy(word);
+octstr_destroy(allwords);
 return list;
 }
 
@@ -1353,23 +1366,20 @@
  * Find the appropriate translation 
  */
 static URLTranslation *find_translation(URLTranslationList *trans, 
-List *words, Octstr *smsc, Octstr *sender, Octstr 
*receiver, int *reject)
+Octstr *text, Octstr *smsc, Octstr *sender, Octstr 
*receiver, int *reject)
 {
-Octstr *keyword;
 int i, n;
 URLTranslation *t;
 List *list;
 
+   List *words = octstr_split_words(text);
+
 n = list_len(words);
 if (n == 0)
 return NULL;
 n = 1;
 
-keyword = list_get(words, 0);
-keyword = octstr_duplicate(keyword);
-octstr_convert_range(keyword, 0, octstr_len(keyword), tolower);
-
-list = get_matching_translations(trans, keyword);
+list = get_matching_translations(trans, words, text);
 /*
   list now contains all translations where the keyword of the sms matches 
the
   pattern defined by the tranlsation's keyword
@@ -1389,8 +1399,9 @@
 if(t != NULL)
*reject = 0;
 
-octstr_destroy(keyword);
 list_destroy(list, NULL);
+
+   list_destroy(words, octstr_destroy_item);
 return t;
 }
 


Re: FW: WTLS and Kannel 1.4 - Query - Does it Work?

2005-06-21 Thread Gareth Reakes
:06:26 [248] [9] DEBUG: in CREATED - just added pdu...
2005-06-21 12:06:26 [248] [9] DEBUG: Setting msg size to : 0
2005-06-21 12:06:26 [248] [9] DEBUG: Packed PDU Length: 3
2005-06-21 12:06:26 [248] [9] DEBUG: adding address
2005-06-21 12:06:26 [248] [9] DEBUG: WTLS 0: New state EXCHANGE
2005-06-21 12:06:26 [248] [0] DEBUG: Msg object at 0x10128248:
2005-06-21 12:06:26 [248] [0] DEBUG:  type: wdp_datagram
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.source_address:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10128680:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  9
2005-06-21 12:06:26 [248] [0] DEBUG:size: 10
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: 31 32 37 2e 30 2e 30 2e 31
127.
0.0.1
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.source_port: 1938
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.destination_address:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10129218:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  7
2005-06-21 12:06:26 [248] [0] DEBUG:size: 8
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: 30 2e 30 2e 30 2e 30  
0.0.
0.0
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.destination_port: 9203
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.user_data:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10129200:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  11
2005-06-21 12:06:26 [248] [0] DEBUG:size: 12
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: c2 00 01 00 06 02 32 49 d9 ab cc  

..2I...
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:26 [248] [0] DEBUG: Msg object ends.
2005-06-21 12:06:26 [248] [0] INFO: Event created
2005-06-21 12:06:26 [248] [0] INFO: Set address and stuff
2005-06-21 12:06:26 [248] [0] DEBUG: Offset is now : 0
2005-06-21 12:06:26 [248] [0] DEBUG: Finished, found 1 PDUs
2005-06-21 12:06:26 [248] [0] INFO: Datagram unpacked!
2005-06-21 12:06:26 [248] [9] DEBUG: event-type = 0
2005-06-21 12:06:26 [248] [9] DEBUG: WTLS: wtls_machine 0, state EXCHANGE, 
event T-Unitdata.ind.2005
-06-21 12:06:26 [248] [0] DEBUG: Msg object at 0x10128248:

2005-06-21 12:06:26 [248] [0] DEBUG:  type: wdp_datagram
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.source_address:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10129218:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  9
2005-06-21 12:06:26 [248] [0] DEBUG:size: 10
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: 31 32 37 2e 30 2e 30 2e 31
127.
0.0.1
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.source_port: 1938
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.destination_address:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10128680:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  7
2005-06-21 12:06:26 [248] [0] DEBUG:size: 8
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: 30 2e 30 2e 30 2e 30  
0.0.
0.0
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.destination_port: 9203
2005-06-21 12:06:26 [248] [0] DEBUG:  wdp_datagram.user_data:
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string at 0x10128470:
2005-06-21 12:06:26 [248] [0] DEBUG:len:  11
2005-06-21 12:06:26 [248] [0] DEBUG:size: 12
2005-06-21 12:06:26 [248] [0] DEBUG:immutable: 0
2005-06-21 12:06:26 [248] [0] DEBUG:data: c2 00 02 00 06 02 32 49 d9 ab cc  

..2I...
2005-06-21 12:06:26 [248] [0] DEBUG:  Octet string dump ends.
2005-06-21 12:06:27 [248] [0] DEBUG: Msg object ends.
2005-06-21 12:06:27 [248] [0] INFO: Event created
2005-06-21 12:06:27 [248] [0] INFO: Set address and stuff
2005-06-21 12:06:27 [248] [0] DEBUG: Offset is now : 0
2005-06-21 12:06:27 [248] [0] DEBUG: Finished, found 1 PDUs
2005-06-21 12:06:27 [248] [0] INFO: Datagram unpacked!
Segmentation fault (core dumped)


-Original Message-
From: Gareth Reakes [mailto:[EMAIL PROTECTED] 
Sent: 21 June 2005 11:26

To: Nazir Faisal-NZRF001
Cc: users@kannel.org
Subject: Re: WTLS and Kannel 1.4 - Query - Does it Work?

Hi,

Nazir Faisal-NZRF001 wrote:



*FYI both the key and cert file are in the same directory as the conf file.*



Its relative to the directory the kannel is started in, not the conf file.



*Can anyone help? Has anyone got the WTLS stuff to work?*



Yep.


*Has anyone instructions on how to generate appropiate private/public 
keys and certificates (self-signed)?*




#create keys with
#openssl genrsa -out

regex issue

2005-06-20 Thread Gareth Reakes

Hi all,

	A week or 2 ago I asked about matching more than 1 word for the 
keyword-regex. Kannel as is did not seem support this. I have looked 
into it and indeed it does not. There are in fact 2 issues


i) We only match against the first word
ii) We match against the the keyword even when the keyword-regex is 
specified (the docs say this is wrong).


I have a patch that fixes these issues and wanted to solicit feedback 
before I submitted it. I have a couple of questions:


i) Do people want this in the code base? It seems a good few people have 
tried and failed to do this, given the discussions in the archives.
ii) If you do want it, should we preserve previous behavior as well as 
new (a speed hit would be associated with this as we would have to try 2 
regular expressions). I can imagine that people may have written 
expressions that won't match if the whole string is passed in.
iii) With regards to the keyword match, should the docs be changes or 
the code?



Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Silent Service Messages

2005-06-19 Thread Gareth Reakes

Hey,

On 18 Jun 2005, at 20:30, David Blackburn wrote:


Hi

I know this isn't the appropriate list, but I don't know what is and
Im sure you guys will know where to point me.  I am looking for info
on tracking cell phones via their cell site.



Look for location based services - there is a huge amount of stuff  
out there. In general, you cannot find out where someone is with any  
reliability unless they are on a call / have just sent an SMS and  
even then its only the cell they are in (which can be big). Also you  
cannot unless the user has agreed. Other problems include the fact  
the each operator does it differently. There are services out there  
that aggregate all the UK suppliers.


Regards,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com




Re: Kannel Capabilities

2005-06-16 Thread Gareth Reakes

Hi,

Ale Feltes Quenhan wrote:
Hello, I need to have a proxy/gateway that translates estndar HTML 
forms into WML forms. Can Kannel help me in this task?
The other approach is to make it through SMS, but it will take (IMHO) 
too much time for the user to send, and I will need an application on 
the other side, that process the SMS (i.e. a CSV format).

Thanks in advance



Kannel will not convert HTML to WML for you. If it is just the form part 
it should be easy enough to do in XSLT. How are you going to communicate 
with the user? Are they going to surf to your page or are you going to 
send a wap push?


Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com




Re: sms-service regex problem

2005-06-14 Thread Gareth Reakes

Hi all,

	Thanks all for your tips. It seems Mihai is correct since [:space:] 
does not work either. Could a kannel developer comment on this? Is this 
be design or a bug? It seems a touch strange to me as I can see many 
situations in which you would want to distinguish the second url.


Cheers,

Gareth

Mihai Zsigmond wrote:

Sorry guys,
But to my experience it won't work in any way.
Kannel is separating the keyword from the rest of the message with SPACE 
so, the regex is applied to whatever is from the beginning of the 
message to the first space.
Maybe a future version will apply regex to the whole message, or will 
have an option to change the separator.

Till then, you have to parse the message yourself into your application.
BG
Mihai Zsigmond

- Original Message - From: Alejandro Guerrieri 
[EMAIL PROTECTED]

To: users@kannel.org
Sent: Tuesday, June 14, 2005 3:32 AM
Subject: Re: sms-service regex problem


Have you tried using character classes?

^date[:space:]info[:space:]stop$

Or even:

^date[:space:]+info[:space:]+stop$

To match to one or more spaces...

Hope it helps,

On 6/13/05, Gareth Reakes [EMAIL PROTECTED] wrote:


Hi Rodrigo,

Thanks for the reply.


On 13 Jun 2005, at 19:49, Rodrigo Cremaschi wrote:

 Did you try...

 keyword-regex = ^date info stop$


Yes. Any other suggestions? Anyone seen this problem?

Gareth










--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: Windows/Cygwin vs Linux

2005-06-14 Thread Gareth Reakes

Hi Brent,

	I have not heard of anyone making kannel work under cygwin (that they 
admitted last time I asked), but Brian seems to be nearly there now. 
Hopefully he will post a howto :) If he does get it working I don't see 
why there would be a problem with using cygwin. I would guess that it 
will be slower with all that windows stuff going on as well but if its 
no problem for your throughput then its no problem.



Gareth

Brent Goldspring wrote:

Hello,

We're thinking of trying out Kannel at work and I'm wondering if I 
should throw Cygwin on an existing Windows box and run Kannel off that 
or should I zap a spare box, throw Linux on it and run Kannel from there?


I'm asking from a purely performance and ease-of-use perspective: which 
platform does Kannel run best on? If the trial goes according to plan 
then we will invest into dedicated resources for Kannel.


If it matters: initially we will be using a GSM modem but we're looking 
to move to using an SMSC instead.


thanks,
Brent





--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: where the message gone?

2005-06-14 Thread Gareth Reakes

Hi Ricky,

Ricky Wibowo wrote:


sir..
if the operator give me a number for my box is 3345, where i put this 
number into the kannel.conf ??

which part??


I don't know what you are referring to. Is this the telephone number 
that people will use to SMS to you? How are you connecting to your operator?


First things first, have you set up kannel with the fakesmsc and made 
sure everything works?


Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: where the message gone?

2005-06-14 Thread Gareth Reakes

Hi Ricky,

Ricky Wibowo wrote:



Sorry if i make you confuse with my question,
I meant, the number which people use to SMS to me and i'm conneceted to 
the operator via SMPP


Ricky



You don't have to put it anywhere. If you are sending out on it you may 
want to put it as a sender (for example global-sender).



Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: where the message gone?

2005-06-13 Thread Gareth Reakes

Hi,

On 13 Jun 2005, at 9:09, Ricky Wibowo wrote:




You will have to create another smsc. You could use a phone or  
GSM  modem or connect to a service such as clickatell or intellisoft.





But I want the message goes to my local computer, how about that??




Maybe you should explain a little bit more about your requirements.  
Normally you would use fakesmsc to test this stuff out. You could  
create another http sender/receiver in smsc_http and get that to send  
where you want (ie a cgi scrript or something). Is that more like  
what you were thinking?


Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com






Re: http SMSC

2005-06-13 Thread Gareth Reakes

Hi Chris,

On 13 Jun 2005, at 9:31, Chris Dobbs wrote:


numum usage charge on SMPP links which makes it too expensive for me!

I can see how kannel will allow an SMSC group to be setup of type  
http , but how do I tell kannel how the argument list is organised  
for the send URL?




The order of arguments is unimportant. Are you just sending SMS? If  
so the kannel setting may well work (as long as clicktell ignore  
excess parameters passed to it). Have you tried it to see if it  
works? If it does not, then you will have to create a new connection  
type in smsc_http. This is a very easy process so don't worry about  
it. I did it last week so give us a shout if you have problems.



Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com







Re: where the message gone?

2005-06-13 Thread Gareth Reakes

Hi,


The SMSC log :
2005-06-13 15:40:56 [3283] [5] WARNING: smsbox_list empty!

what's that mean??



Kannel cannot find an smsc to send through. Have you set one up (like  
the fakesmsc)?


Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com





Re: http SMSC

2005-06-13 Thread Gareth Reakes

Hey,

On 13 Jun 2005, at 10:16, Chris Dobbs wrote:


Thanks for your reply Gareth,

The send URL looks like this:

http://api.clickatell.com/http/sendmsg? 
api_id=user=password=t

o=text=

I was going to just create a new smsc group and just try it as u  
sugested
but couldn't see how kannel could work out what the argument list  
f.ex know
that the to field contains the target mobile number. So I guess I  
just have

to modify http_smsc to understand these arguments?



Yes.


Been looking for an excuse to hack the kannel source as I never get  
to use
'C' much these days...the world has been taken over by script  
kiddies these

days!

Thanks again for your help




No problem.


Cheers,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: where the message gone?

2005-06-13 Thread Gareth Reakes

Hi Ricky,


On 13 Jun 2005, at 10:29, Ricky Wibowo wrote:


Take a look at the user documentation and check your config file  
to  see what smsc you have set up and whether it is reasonable. If  
it  looks good to you then paste the config file to the list.


You didn't look at the docs for very long!!



# SMSC localhost

group = smsc
smsc = smpp
smsc-id = smsc3
host = 127.0.0.1
port = 2
receive-port = 2
smsc-username = 
smsc-password =
system-type = 
address-range = 
keepalive = 10
log-file = /var/log/kannel/smsc-spice3.log
log-level = 0
reconnect-delay = 10
#enquire-link-interval = 30
my-number = 12345




Why have you selected smpp? What exactly do you want to do? At the  
moment you are using the SMPP protocol. If you want to test your  
connection without sending messages then I would either:


i) use fakesms
ii) create a new http connection in smsc_http and forward to a local  
script.


This is also well explained in the docs. There are sample  
configurations as well.



Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com





sms-service regex problem

2005-06-13 Thread Gareth Reakes

Hi all,

	I have been staring at this for hours now, trying every possible 
combination. I can't match a service with a space in the regular 
expression. It's fine if there is no space. I could really do with this 
working. Any help is appreciated.


group = sms-service
keyword-regex =^date info stop$
keyword = date2
get-url = https://your.server.com?service=infoaction=unsubscribefrom=%p;
accepted-smsc = rbintellisoft
catch-all = true;
max-messages = 0;


Regards,

Gareth

--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



Re: sms-service regex problem

2005-06-13 Thread Gareth Reakes

Hi Rodrigo,

Thanks for the reply.


On 13 Jun 2005, at 19:49, Rodrigo Cremaschi wrote:


Did you try...

keyword-regex = ^date info stop$



Yes. Any other suggestions? Anyone seen this problem?

Gareth






[Fwd: Re: Testing for local only]

2005-06-09 Thread Gareth Reakes


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
---BeginMessage---

Hi,

	There is a fake smsc (take a look in the docs). Alternatively, if you 
have a mobile phone you could connect that up for testing.


Cheers,

Gareth

Ricky Wibowo wrote:

Dear all,

I want to test for sending and receiving my SMS gateway, but for local 
only.
I haven't connected to the operator yet, but i want to test my 
application, i didn't know if my application is working or not.

Any one have an example script, to do it??

Thank you,
Ricky Wibowo




--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com

---End Message---


Fwd: First Contact with Kannel - starter kit

2005-06-08 Thread Gareth Reakes


Forgot to reply all.

Could the list admin change the list so that the reply to is the  
list, not the sender.


Pretty Please :)

Gareth

Begin forwarded message:


From: Gareth Reakes [EMAIL PROTECTED]
Date: 8 June 2005 15:35:19 BDT
To: Rogerio Reis [EMAIL PROTECTED]
Subject: Re: First Contact with Kannel - starter kit


Hi,

It depends what you want to do. If it is just send and receive  
SMS then it is all just HTTP based. The URLs are all set up in the  
config file. Take a look at the user docs and see what else you want.


Cheers,


Gareth

Rogerio Reis wrote:


Hi folks,
I just downloaded Kannel and will install it in a couple of days  
but I

would like to know if it comes / or there is on the net a starter-kit
(a sample java/php) app that we can use it as a template  to create
our own.
Thanks a lot



--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com







Retrieving file from operators network

2005-05-23 Thread Gareth Reakes

Hey,

	I am on to the next part of my problem now :). I have an address of an 
MMS message:


http://mms.orange.co.uk/QpGS18Co4MQAACBZFgAARf8A

I cannot retrieve this over my standard Internet connection. I assume I 
have to retrieve this over GPRS via my GSM modem. Can the WAP gateway do 
this? If so, how? I can set up PPP with the modem to do this, but that 
will mean I can't use it with kannel at the same time. Can anyone help?


Cheers,

Gareth


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com



[Fwd: Re: Orange Protocol]

2005-05-20 Thread Gareth Reakes
Accidentally did this off list.
--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
---BeginMessage---
Thank you very much for the explanation

Regards
gulshan

-Original Message-
From: Gareth Reakes [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 20, 2005 11:34 AM
To: Gulshan Babajee
Subject: Re: Orange Protocol


Hey,

Gulshan Babajee wrote:
 If its possible to use Kannel, then I'll define Orange smsc IP 
 address, a login and password (supplied by Orange) in smskannel.conf

I use Kannel in 2 ways. The first is to use a GSM modem and that talks 
to Orange for me. The other is to use SMPP (Short Message Peer to Peer) 
and a provider. In that case I specify the user name/password/ip 
address. I think it likely that if Orange allow you a direct internet 
based connection they will support SMPP (sorry, I don't know for 
definite). However, it might be cheaper for you to use another provider.


Cheers,

Gareth


-- 
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19-05-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 266.11.13 - Release Date: 19-05-2005
 

---End Message---


Reply to on the mailing list

2005-05-20 Thread Gareth Reakes
Hey,
	Could the admin of the list change the mails so that the reply to 
header is set? I can on accidentally having conversations off list.

Cheers,
Gareth
--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com


panic when processing sms

2005-04-25 Thread Gareth Reakes
Hi,
	I changed my 6230 for a siemens MC35 which seem to work fine. I sent an 
MMS to the GSM modem and as expected saw the magic sms that notifies the 
phone an MMS is ready for it. Unfortanatly I also got this:

2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: -- 
07914497370190374010D04F79D87D2E379B530004504052510435408C0B05040B8423F30002010106356170706C69636174696F6E2F766E642E7761702E6D6D732D6D65737361676500B13139322E3136382E3232342E31303100AF84B4818C8298516D3042644D436F344D49414142677641414141435141424F636F4141414141008D908919802B3434373739333734363132312F545950453D504C4D4E009646573A008A80
2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: Alphanumeric 
sender OrangeMMS
2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: User data length 
read as (140)
2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: Udh decoding 
done len=128 udhi=1 udhlen=11 udh='#
2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: -- AT+CNMA^M
2005-04-25 15:42:02 [29410] [16] DEBUG: send_msg: sending msg to box: 
127.0.0.1
2005-04-25 15:42:02 [29410] [16] DEBUG: boxc_sender: sent message to 
127.0.0.1
2005-04-25 15:42:02 [29410] [15] DEBUG: boxc_receiver: sms received
2005-04-25 15:42:02 [29410] [15] DEBUG: send_msg: sending msg to box: 
127.0.0.1
2005-04-25 15:42:02 [29410] [15] DEBUG: boxc_receiver: got ack
xterm2005-04-25 15:42:02 [29410] [6] DEBUG: AT2[/dev/ttyS0]: -- OK
2005-04-25 15:42:02 [29410] [6] PANIC: gwlib/octstr.c:1436: 
octstr_append_char: Assertion `ch = UCHAR_MAX' failed.
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox(gw_panic+0x255) 
[0x485614]
2005-04-25 15:42:02 [29410] [6] PANIC: 
./gw/bearerbox(octstr_append_char+0x79) [0x48a23b]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x42317e]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x42169f]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x421260]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x421199]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x41f015]
2005-04-25 15:42:02 [29410] [6] PANIC: ./gw/bearerbox [0x47aa44]
2005-04-25 15:42:02 [29410] [6] PANIC: /lib64/tls/libpthread.so.0 
[0x32676057fb]
2005-04-25 15:42:02 [29410] [6] PANIC: 
/lib64/tls/libc.so.6(__clone+0x43) [0x32663ba703]

The message got the smsbox as expected and that seemed fi2005-04-25 
15:42:02 [29425] [4] INFO: Starting to service 
5application/vnd.wap.mms-message from OrangeMMS to 1234
2005-04-25 15:42:02 [29425] [4] DEBUG: formatted text answer: No 
service specified
2005-04-25 15:42:02 [29425] [4] DEBUG: message length 20, sending 1 messages
2005-04-25 15:42:02 [29425] [0] DEBUG: Got ACK (0) of 
a128106c-ca3f-4873-85f9-7d44b1f79c54
2005-04-25 15:42:02 [29425] [0] DEBUG: No client - multi-send or ACK to 
pull-reply
2005-04-25 15:42:02 [29425] [0] INFO: Connection closed by the bearerbox.
2005-04-25 15:42:02 [29425] [0] INFO: Received (and handled?) 1 requests 
in 0 seconds (inf per second)
2005-04-25 15:42:02 [29425] [0] INFO: Kannel smsbox terminating.
2005-04-25 15:42:02 [29425] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) terminates.2005-04-25 15:42:02 [29425] 
[0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate
2005-04-25 15:42:02 [29425] [3] DEBUG: HTTP: No clients with requests, 
quitting.
2005-04-25 15:42:02 [29425] [3] DEBUG: Thread 3 
(gw/smsbox.c:sendsms_thread) terminates.
2005-04-25 15:42:02 [29425] [2] DEBUG: Thread 2 
(gwlib/http.c:server_thread) terminates.
2005-04-25 15:42:02 [29425] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) 
terminates.
2005-04-25 15:42:02 [29425] [0] DEBUG: Waiting for 4 
(gw/smsbox.c:obey_request_thread) to terminate
2005-04-25 15:42:02 [29425] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) terminates.2005-04-25 15:42:02 [29425] 
[6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates.
2005-04-25 15:42:02 [29425] [0] DEBUG: Waiting for 5 
(gw/smsbox.c:url_result_thread) to terminate
2005-04-25 15:42:02 [29425] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) terminates.
2005-04-25 15:42:02 [29425] [0] DEBUG: Immutable octet strings: 310.
ne:


Is there and more info that would be useful to debug this problem?
Regards,
Gareth
--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com


[Fwd: Re: GPRS and other novice questions]

2005-04-21 Thread Gareth Reakes

---BeginMessage---
Hi,
Thanks for the answers, that makes it a lot clearer.
Aarno Syvänen wrote:
Hi,
I have connected up my nokia 6230 over the bluetooth serial 
interface (anyone who wants to know how to do this - give me a shout) 
and this works great for SMS. Where my understanding falls down is 
with GPRS and MMS. I understand that kannel does not support MMS per 
say and also have mbuni running (after some changes to make it work 
with the current cvs, again give me a shout if you want these). The 
problem I have is that nothing ever gets to the wapbox. The MMS 
arrives on the phone but never goes over the serial interface. I read at

http://www.ihub.com/GSM%20Modems.htm
that you can't use a WAP push / MMS capable phone as a GSM modem as it 
intercepts the data and does not transfer it down the serial link. Is 
this the case?

You can send MMS notifications (over WAP Push) using a phone as a modem, 
for sure. Same thing applies to wap push proper
(si and sl), of course. But there are no at commands to support mms, as 
far as I know, as there are ones to support sms.

What about receiving MMS? Should the data come over the serial port and 
then go to the wapbox? For me this is not happening.



The second thing I don't understand is how data gets to the WAP 
gateway when its not via a GSM modem. I want to serve content from my 
box. Can I set up a phone so that it uses my gateway / do I have to do 
any setup? I have the appropriate ports open etc. I have read other 
messages describing this but I am still missing something. In my GPRS 
configuration in the phone I have:

Homepage,

this is the page you want to fetch
Proxies - what are these for? Should I set the proxy to the IP of my 
WAP gateway?

yep
Great. Now when I get a request at the gateway can I decide that I don't 
want to handle it? In that case will it fall back to the secondary 
proxy? If I am going to change config at a users phone I would like to 
make sure their normal services are unaffected.

Cheers,
Gareth
---End Message---


[Fwd: Re: GPRS and other novice questions]

2005-04-21 Thread Gareth Reakes
--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
---BeginMessage---
Hi,
	Have you got a serial connection to the device (via bluetooth or a 
cable)? If so then all you have to do is put:

# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyUB2  (where this is the serial port you have connected to)
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

for the modem.
Cheers,
Gareth
Yasser Sultan wrote:
hello Gareth
Are you using 6230 as a gsm modem  to route messages to smsc?
can you kindly send me your conf file for 6230 ?
I shall be thanksful for that
Regards,
Yasser

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


From: Gareth Reakes [EMAIL PROTECTED]
To: users@kannel.org
Subject: GPRS and other novice questions
Date: Thu, 21 Apr 2005 10:11:57 +0100
Apologies if this ends up being a duplicate - I sent the original from 
an unregistered email!

Hi all,
I have been playing with kannel for a few days now and it works 
great. Thanks to all the developers! I don't seem to have a full 
understanding of some of the issues and can't find answers on the web.

I have connected up my nokia 6230 over the bluetooth serial 
interface (anyone who wants to know how to do this - give me a shout) 
and this works great for SMS. Where my understanding falls down is 
with GPRS and MMS. I understand that kannel does not support MMS per 
say and also have mbuni running (after some changes to make it work 
with the current cvs, again give me a shout if you want these). The 
problem I have is that nothing ever gets to the wapbox. The MMS 
arrives on the phone but never goes over the serial interface. I read at

http://www.ihub.com/GSM%20Modems.htm
that you can't use a WAP push / MMS capable phone as a GSM modem as it 
intercepts the data and does not transfer it down the serial link. Is 
this the case?

The second thing I don't understand is how data gets to the WAP 
gateway when its not via a GSM modem. I want to serve content from my 
box. Can I set up a phone so that it uses my gateway / do I have to do 
any setup? I have the appropriate ports open etc. I have read other 
messages describing this but I am still missing something. In my GPRS 
configuration in the phone I have:

Homepage,
Proxies - what are these for? Should I set the proxy to the IP of my 
WAP gateway?

Bearer Settings
GPRS access point - Should this the the IP of my WAP gateway?
user name
password
authentication type
Thank you in advance for any help,
Gareth
.com
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


--
Gareth Reakes, Managing Director  Parthenon Computing
+44-1865-811184  http://www.parthcomp.com
---End Message---