Re: Sms answer to a ring call

2001-08-22 Thread Andrea Viscovich



> Hi
> Mgetty launches a program when it finds caller id to authorize user and
> passes
> CallerID and some other stuff to it.
> You can write script which takes CallerID and do whatever you want, for
> example 
> access http sendsms intefrace. 
> Its really easy, five minutes of work, maybe some more to config mgetty.
> 
Hi Hubert,
thanks for the answer. By the way I am looking for some
AT command to include in kannel smsc_at.c as I'm
using windows2000 to run kannel, and so I cant' use mgetty.
Any idea?
Thanks
Andrea





Re: Sms answer to a ring call

2001-08-22 Thread Andrea Viscovich



>I feel the same way, but my understanding is that Andrea want's to use 
>the same modem for SMS and the incoming call. In this case sharing the 
>line is hard (impossible??).

Well, as I may send sms by other connections, 
I just would like to have bearerbox listen to incoming
ring, and then habe smsbox call an url passing the caller id,
as actually is done when receiving an sms.
Andrea





Re: Sms answer to a ring call

2001-08-22 Thread Andrea Viscovich


>OK, in this case my suggestion is to leave Kannel alone
>and write a tiny program that does what you want. You can
>use smsc_at for inspiration, but maybe it's easier to just
>compile mgetty inside the Cygnus environment.

Ok, I'll try to compile it under Cygwin.
Thanks
Andrea





Re: Sms answer to a ring call

2001-08-23 Thread Stipe Tolj

> I am wondering if it possible,
> with gsm modem, to listen to phone call,
> get the callerid, and replying with an sms to it.
> This to save an sms. Say you are using kannel to
> access a database by sending an sms, which kannel
> is answering calling an url which gives back always the same result.
> Is it possible (in the future) for the modem to do it?

that would be great if possible.

I think a GSM modem should be able to grap the MSISDN of the caller.
But I haven't seen any possibilities at least with Siemens M20 to
transmit that information in any may using the serial com line?!

Has someone experience with those stuff?

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are






RE: Sms answer to a ring call

2001-08-23 Thread Roy Smith

GSM 07.07 defines :-

"+CLIP: Calling line identification presentation"

So, AT+CLIP=1will enable presentation which will be of the format ...
+CLIP:,
where type is number type from GSM 04.08 10.5.4.7

I've only tried it on a Nokia Card Phone, but it works OK there.

best
Roy



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Stipe Tolj
Sent: 23 August 2001 10:34
Cc: [EMAIL PROTECTED]
Subject: Re: Sms answer to a ring call
Importance: Low


> I am wondering if it possible,
> with gsm modem, to listen to phone call,
> get the callerid, and replying with an sms to it.
> This to save an sms. Say you are using kannel to
> access a database by sending an sms, which kannel
> is answering calling an url which gives back always the same result.
> Is it possible (in the future) for the modem to do it?

that would be great if possible.

I think a GSM modem should be able to grap the MSISDN of the caller.
But I haven't seen any possibilities at least with Siemens M20 to
transmit that information in any may using the serial com line?!

Has someone experience with those stuff?

Stipe

[EMAIL PROTECTED]
---
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [EMAIL PROTECTED]
Internet: http://www.wapme-systems.de
---
wapme.net - wherever you are







Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich


>that would be great if possible.

>Has someone experience with those stuff?

As Hubert said, I tried with my wavecom,
it's ok.
AT+CLIP=1
OK

RING

+CLIP: "+393479336220",145

RING

+CLIP: "+393479336220",145

So now I'm trying to implerment this in kannel.
Basically I think I have to change (duplicate) pdu_extract,
and give an ATH to close the call after taking the
callerID.
We should also delete from the input buffer all the rings.
It should be something like this:

static int pdu_extract_my(SMSCenter *smsc, Octstr **pdu) {
Octstr *buffer;
long len = 0;
int pos = 0;
int tmp;

buffer = smsc->at_inbuffer;

/* find the beginning of a message from the modem*/ 
pos = octstr_search(buffer, octstr_imm("+CLIP:"), 0);
if(pos == -1) 
goto nomsg;
pos += 2;

/* skip the spaces and line return */
while( isspace(octstr_get_char(buffer, pos)))
pos++;
pos -= 5;

/* check if the buffer is long enough to contain the full message 
if( octstr_len(buffer) < len * 2 + pos)
goto nomsg; */

/* copy whatever you want (callerId usually) from the input buffer,
this row has to be  changed*/
*pdu = octstr_copy(buffer, 0, pos);
/* delete from the input buffer,
this row has to be  changed*/

octstr_delete(buffer, 0, pos);

return 1;

 nomsg:
return 0;
}

 





Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich


>Why would you hang up when you did not accept the call?

I don't want to accept the call, otherwise the caller is billed for it,
isn't it?
I only have to get it's caller id, and hang up. 

>IMHO ATH is only meaningful after an ATA.

I don't remember the meaning of ATA.

>And: Why do you insist on putting this into Kannel? I agree
>that it CAN be done, but it is a bad and ugly design. 

Forgive me Jorg, I just want to make a try, 
I really don't want to put it into kannel,
at least not in the official release, by
the way I'll be really glad if I'll get it :-)
Indeed I don't understand why I can accept sms
and it's ugly to listen for a ring call.
Regards
Andrea





Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich

>I completely understand that you do not want to do this. 
>What you want to do is reject the incoming call.
>I don't know the AT command to do this.

I tried with ATH and it works.

>In this case there is an alternative that at least two
>people (me and Hubert) think is much better than messing
>with smsc_at: a small external program that handles the

Well an external program that does it is always an
alternative solution isn't it?
By the way don't forget the other solution is easier
Under Unix enviroment, but not so easy under Windoze.
Regards
Andrea





Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich

 >> By the way don't forget the other solution is easier
 >> Under Unix enviroment, but not so easy under Windoze.

>Why not? It should work equally well under Windows.

You should try to compile mgetty, and then how can you run the script?
Andrea
P.S. please post only to the list, othewise I get them twice. 





Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich

>A simple program (C, Java or whatever) that opens 
>a serial port, initializes the modem, waits for RINGs and forwards 
>the caller id through HTTP to Kannel is enough. Sounds like just a 
>few hours hacking.

Uhm, so you would have Kannel and another program to initialise
the same port, I don't know if it's possible.
Andrea





RE: Sms answer to a ring call

2001-08-24 Thread Roy Smith

smsc_at does not handle incoming and outgoing traffic at the same time.
I think you have no choice but to use 2 ports, or rewrite smsc_at to
solve its fundamental problem, and support your own functionality at
the same time.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Andrea Viscovich
Sent: 24 August 2001 12:07
To: [EMAIL PROTECTED]
Subject: Re: Sms answer to a ring call 
Importance: Low


>A simple program (C, Java or whatever) that opens 
>a serial port, initializes the modem, waits for RINGs and forwards 
>the caller id through HTTP to Kannel is enough. Sounds like just a 
>few hours hacking.

Uhm, so you would have Kannel and another program to initialise
the same port, I don't know if it's possible.
Andrea






Re: Sms answer to a ring call

2001-08-24 Thread Andrea Viscovich


> > Uhm, so you would have Kannel and another program to initialise
> > the same port, I don't know if it's possible.
> > Andrea

>No, doing both, handling SMS and incoming calls over the same
>modem would require that smsc_at does it all. That's why I jumped 
>to my current proposal only when you told us that you want to
>handle SMS over a different channel.

Well, maybe in the future I'll have something dedicated only to
incoming calls, in the meantime I'll use the same modem
to receive sms and calls.
Regards
Andrea