From: Yaroslav Tarasenko <taras_tswiah@ukr.net>
To: community@altlinux.ru
Subject: Re: [Comm] callback
Date: Mon, 1 Nov 2004 00:30:50 +0300
Message-ID: <200410312330.50957.taras_tswiah@ukr.net> (raw)
In-Reply-To: <53697273.20041013133403@railway.mogilev.by>
В сообщении от 13 Октябрь 2004 13:34 Igor написал(a):
> подскажите как организовать callback на alt2.4
1. Скрипт для запуска дозвона:
#!/bin/bash
/usr/sbin/pppd /dev/ttyS0 115200 name <login> connect "/usr/sbin/chat -v -f
/etc/ppp/intercom" callback <твой_номер_телефона>
2. /etc/ppp/intercom:
SAY "Initializing modem...\n"
TIMEOUT 5
"" ATZ+MS=11
SAY "Calling to Intercom...\n"
OK ATDP5380500
ABORT '\nNO CARRIER\r'
ABORT '\nBUSY\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nWAITING\r'
TIMEOUT 140
CONNECT ""
HANGUP OFF
3. /etc/ppp/options:
115200
0.0.0.0:0.0.0.0
lock
ipcp-accept-remote
crtscts
netmask 255.255.255.0
idle 180000
modem
nobsdcomp
defaultroute
usepeerdns
nodetach
noipx
debug
4. /etc/ppp/pap-secrets:
# PAP authentication file: /etc/ppp/pap-secrets
# This file should have a permission of 600.
# ~# chmod 600 /etc/ppp/pap-secrets
# Username Server Password IP addresses
#
#
<login> * <password> # Intercom
Скрипт пускать под рутом. Я это делаю с помощью sudo.
--
С уважением,
Ярослав Тарасенко.
next prev parent reply other threads:[~2004-10-31 21:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-13 10:34 Igor
2004-10-31 21:30 ` Yaroslav Tarasenko [this message]
2004-11-04 11:27 ` Юрий
2004-11-16 7:45 ` Yaroslav Tarasenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200410312330.50957.taras_tswiah@ukr.net \
--to=taras_tswiah@ukr.net \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git