On Tue, 18 Sep 2001, Matthieu Chauzit wrote:
> I already spent a week on the net before soliciting SLUG help. Indeed I
> could not find a C program. Although there is sms-client (as suggested
> by Howard Lowndes), but it is way too much complex. So I was wondering
> if one of the SLUG guys had a simple source code somewhere..
You cant get much simpler than
> > http://www.progsoc.uts.edu.au/lists/slug/1999/December/msg00571.html
> >
> It is about perl scripts.
Oh I see - you want someone to do the actual coding for you?
Actually its a shell-script wrapper for a chat script.
Perhaps you thought it was complex, and didnt want to reinvent the wheel.
Looking for existing code is often a good idea. But in this case you
can plainly see that it is trivial. To quote from Craig Southeren:
/usr/sbin/chat -v <$DEV > $DEV REPORT CONNECT ABORT BUSY ABORT 'NO
DIALTONE' ABORT 'NO CARRIER' '' ATZ OK "\\dATDT${SMS_NUMBER}" CONNECT ''
'QUIT)' "$TARGET\\n" "KEY" "$MSG" "BEING SENT" "ATH" > $DEV < $DEV
ie dialup, then send two lines of text: the number, and message. Its
mind-bogglingly trivial.
> protocols for the connection of Short Message Service Centres (SMSCs) to
> Short Message Entities (SMEs) (GSM 03.39)
Are you sure? It sounded like you wanted to use a POTS dialup SMS gateway.
> I am still looking for a simple C implementation of it.
Perhaps you want to see the code for the chat program?
Why 'C'?
main() { exec( "/usr/sbin/chat", "REPORT", "ATZ", "OZ", ...
--
Mike Holland <[EMAIL PROTECTED]>
--==--
"Everybody is talking about the weather but nobody does anything
about it." -- Mark Twain
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug