From: Yuriy Gomenyuk <law@freemail.com.ua>
To: community@altlinux.ru
Subject: Re: [Comm] /sbin/ifup ppp0 - callback
Date: Wed, 19 Mar 2003 11:49:18 +0200
Message-ID: <3E783D1E.3080702@freemail.com.ua> (raw)
In-Reply-To: <3E783788.8010807@freemail.com.ua>
Yuriy Gomenyuk пишет:
> Здравствуйте,
>
> Раньше без проблем работал по callback (выхожу в и-нет по /sbin/ifup ppp0).
>
> Сейчас переехал на другую АТС. И возникли проблеммы (не знаю почему, то
> ли от другой АТС, то ли накрутил где что...):
>
> Звонок от провайдера идёт, но модем не берёт трубку. Причём только в
> Линуксе. В Окнах всё нормально.
>
> Пожалуйста, помогите разобраться.
>
> Вот логи модема:
>
> Mar 19 11:09:18 localhost pppd[7937]: Callback with
> </etc/ppp/callback-client 0>
> Mar 19 11:09:18 localhost /etc/hotplug/net.agent: NET unregister event
> not supported
> Mar 19 11:09:19 localhost chat[7990]: send (d+++dc^M)
> Mar 19 11:09:19 localhost chat[7990]: expect (OK)
> Mar 19 11:09:19 localhost chat[7990]: ^M
> Mar 19 11:09:19 localhost chat[7990]: NO CARRIER^M
> Mar 19 11:09:21 localhost chat[7990]: alarm
> Mar 19 11:09:21 localhost chat[7990]: Failed
> Mar 19 11:09:21 localhost chat[7993]: send (ATZ^M)
> Mar 19 11:09:21 localhost chat[7993]: expect (OK)
> Mar 19 11:09:21 localhost chat[7993]: ATZ^M^M
> Mar 19 11:09:21 localhost chat[7993]: OK
> Mar 19 11:09:21 localhost chat[7993]: -- got it
> Mar 19 11:09:21 localhost chat[7993]: send (^M)
> Mar 19 11:09:21 localhost chat[7993]: expect (RING)
> Mar 19 11:09:21 localhost chat[7993]: ^M
> Mar 19 11:10:06 localhost chat[7993]: alarm
> Mar 19 11:10:06 localhost chat[7993]: Failed
> Mar 19 11:10:06 localhost pppd[7937]: Callback script failed
> Mar 19 11:10:06 localhost pppd[7937]: Couldn't make tty exclusive: Bad
> file descriptor
> Mar 19 11:10:06 localhost pppd[7937]: Couldn't set tty to PPP
> discipline: Bad file descriptor
> Mar 19 11:10:07 localhost pppd[7937]: Exit.
Да, поскольку callback запукает, как я понимаю скрипт
/etc/ppp/callback-client - вот и его содержимое на всякий случай
(его я не менял и раньше работало):
/etc/ppp/callback-client
#!/bin/sh
# Script callback-client
# Script parameters: delay time in seconds
DELAY="$1"
/usr/sbin/chat -v -t 2 "" \d+++\d\c OK ATH0 OK
sleep $DELAY s
/usr/sbin/chat -v "" ATZ OK "" RING ATA CONNECT
А вот и всё остальное (тоже на всякий):
/etc/sysconfig/networkscripts/chat-ppp5
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'ATDP7449207'
'CONNECT' ''
'TIMEOUT' '5'
'~--' ''
/etc/sysconfig/networkscripts/ifcfg-ppp5
DEVICE="ppp5"
ONBOOT=no
USERCTL="yes"
MODEMPORT=/dev/ttyS0
LINESPEED="115200"
PERSIST=no
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="yes"
ESCAPECHARS="no"
PPPOPTIONS="callback 1"
PAPNAME="euronet:322322"
REMIP=""
NETMASK=""
IPADDR=""
MRU=""
MTU=""
DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="60"
BOOTPROTO="none"
PEERDNS="yes"
--
С уважением,
Юрий Гоменюк.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Powered by Mozilla-mail 1.2.1 under ALT Linux Junior 2.0
next prev parent reply other threads:[~2003-03-19 9:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-19 9:25 Yuriy Gomenyuk
2003-03-19 9:49 ` Yuriy Gomenyuk [this message]
2003-03-19 10:43 ` Yuriy Gomenyuk
2003-03-19 14:59 ` Yuriy Gomenyuk
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=3E783D1E.3080702@freemail.com.ua \
--to=law@freemail.com.ua \
--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