ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] callback
@ 2004-10-13 10:34 Igor
  2004-10-31 21:30 ` Yaroslav Tarasenko
    0 siblings, 2 replies; 4+ messages in thread
From: Igor @ 2004-10-13 10:34 UTC (permalink / raw)
  To: community

подскажите как организовать callback на alt2.4





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] callback
  2004-10-13 10:34 [Comm] callback Igor
@ 2004-10-31 21:30 ` Yaroslav Tarasenko
    1 sibling, 0 replies; 4+ messages in thread
From: Yaroslav Tarasenko @ 2004-10-31 21:30 UTC (permalink / raw)
  To: community

В сообщении от 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.

--
С уважением,
Ярослав Тарасенко.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] callback
  @ 2004-11-04 11:27   ` Юрий
  2004-11-16  7:45     ` Yaroslav Tarasenko
  0 siblings, 1 reply; 4+ messages in thread
From: Юрий @ 2004-11-04 11:27 UTC (permalink / raw)
  To: community

В сообщении от 3 Ноябрь 2004 22:26 Yaroslav Tarasenko написал(a):
> > подскажите как организовать callback на alt2.4
>
> 1. Скрипт для запуска дозвона:

В compact я запускал когда-то дозвонщик 
ifup ppp0
при этом в 
/etc/sysconfig/network-scripts/ifcfg-ppp0

PPPOPTIONS="nocrtscts noipdefault ipcp-accept-remote callback 111222" 

раньше работало, сейчас не знаю.

-- 
С уважением,
Юрий Рудько.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] callback
  2004-11-04 11:27   ` Юрий
@ 2004-11-16  7:45     ` Yaroslav Tarasenko
  0 siblings, 0 replies; 4+ messages in thread
From: Yaroslav Tarasenko @ 2004-11-16  7:45 UTC (permalink / raw)
  To: community

В сообщении от 4 Ноябрь 2004 13:27 Юрий написал(a):
> В сообщении от 3 Ноябрь 2004 22:26 Yaroslav Tarasenko написал(a):
> > > подскажите как организовать callback на alt2.4
> >
> > 1. Скрипт для запуска дозвона:
>
> В compact я запускал когда-то дозвонщик
> ifup ppp0
> при этом в
> /etc/sysconfig/network-scripts/ifcfg-ppp0
>
> PPPOPTIONS="nocrtscts noipdefault ipcp-accept-remote callback 111222"
>
> раньше работало, сейчас не знаю.

Но это RH-ориентированное решение. То, что предлагал я, будет работать и на 
FreeBSD.

-- 


--
С уважением,
Ярослав Тарасенко.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-11-16  7:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-13 10:34 [Comm] callback Igor
2004-10-31 21:30 ` Yaroslav Tarasenko
2004-11-04 11:27   ` Юрий
2004-11-16  7:45     ` Yaroslav Tarasenko

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