From owner-freebsd-questions@FreeBSD.ORG Sun Feb 22 15:20:07 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C14F816A4CE for ; Sun, 22 Feb 2004 15:20:07 -0800 (PST) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 671A943D1D for ; Sun, 22 Feb 2004 15:20:07 -0800 (PST) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.119]) by mta13.adelphia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with SMTP id <20040222232001.QGNM28190.mta13.adelphia.net@barbish>; Sun, 22 Feb 2004 18:20:01 -0500 From: "JJB" To: "Kyryll A Mirnenko" , Date: Sun, 22 Feb 2004 18:20:01 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <51-2629189.20040222184154@ukrpost.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Subject: RE: ISP dialing with callback X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Feb 2004 23:20:07 -0000 Try changing the following which you have sitel: set phone 2053203 set authname CALLER set authkey MYPASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 add default HISADDR set callback auth cbcp E.164 6661313 set cbcp 6661313 To this sitel: set phone 2053203 set authname CALLER set authkey MYPASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 add default HISADDR set callback cbcp set cbcp 6661313 with 6661313 being the phone number and area code of the phone line connected to the modem which is to answer the callback call. You failed to say if you can hear your modem answer the incoming call, you have to Configure Modem to answer call using HAYES Commands ALL external and internal PCI voice phone modems since they were first developed, have been manufactured to comply to the Hayes standard. When you turn on your modem or reset it, your modem loads the 'active configuration profile' into non-volatile memory (NVRAM). The active configuration profile is a group of configuration settings, derived from the values of the modem's internal S registers, that define how the modem will operate. The active configuration profile can be either the factory-default, or one of two user defined profiles. The first time your modem is turned on, the factory-default profile is loaded into the 'active profile in non-volatile memory (NVRAM). The factory-default profile is stored in the modem's read-only-memory (ROM) and can not be changed. The factory-default profile contains standard settings which allow the majority of users to use their modem without every knowing about the Hayes standard. Modems are not factory configured to answer incoming calls by default, so you will have to manually create your own user profile, enable auto answer on first ring, save it to one of the user profiles in NVRAM, and tell the modem to use it on power up and reset as the default profile. Use 'tip' command to send Hayes commands to permanently configure the modem to answer incoming calls. Note: The Hayes modem commands are capital letters and the '0' is a zero. On the command line enter tip comX where X is the com port your modem is on. AT&F0 load the factory default profile0 into current profile. ATS0=1 tell current profile to answer on first ring. AT Enter AT command 10 times to train modem to 115200 speed AT&W0 write current profile to saved user profile0. AT&Y0 tell modem to load user profile0 as default profile on power up. Use keyboard ~ key followed by . key to exit tip command. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Kyryll A Mirnenko Sent: Sunday, February 22, 2004 11:42 AM To: freebsd-questions@freebsd.org Subject: ISP dialing with callback This topic seems to be an elder one, but nobody around couldn't help me. I need to setup ppp (user) to dial to my callback-ISP. Here're useful info: 1). IPS uses PAP authentification. 2). Phone number negotiation is unsupported, I need to send it. When using Windows ppp-dialer (really buggy), everything is OK, so that's not ISP problem. Direct connection & authentification goes right, but no incoming call after that. I browsed my logs & only strange thing I found is there was no phone number I should send (at least in the readable part, not in the packages sent). Here're my configs (truncated with dummy logins & passwords :) - the provider entry is "sitel": [ /etc/ppp/ppp.conf ] default: set log phase tun chat cbcp command pap ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cual0 set speed 38400 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDP\\T TIMEOUT 80 CONNECT" set timeout 180 # 3 minute idle timer (the default) enable dns # request DNS info (for resolv.conf) enable vjcomp deflate deflate24 protocomp pred1 accept vjcomp deflate deflate24 protocomp pred1 set urgent udp +53 sitel: set phone 2053203 set authname CALLER set authkey MYPASSWORD set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 add default HISADDR set callback auth cbcp E.164 6661313 set cbcp 6661313 incoming: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 set authname CALLER set authkey MYPASSWORD [ /etc/ppp/ppp.secret ] CALLER MYPASSWORD * * 6661313 [ /etc/ttys ] console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25u on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25u on secure ttyv2 "/usr/libexec/getty Pc" cons25u on secure ttyv3 "/usr/libexec/getty Pc" cons25u on secure ttyv4 "/usr/libexec/getty Pc" cons25u off secure ttyv5 "/usr/libexec/getty Pc" cons25u off secure ttyv6 "/usr/libexec/getty Pc" cons25u off secure ttyv7 "/usr/libexec/getty Pc" cons25u off secure ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xtermu off secure # ttyd0 "/usr/libexec/getty callback1" dialup on # AND SO ON... [ /etc/gettytab ] default:\ :cb:ce:ck:lc:fd#1000:im=\r\n%s/%m (%h) (%t)\r\n\r\n:sp#1200:\ :if=/etc/issue: # my callback account callback1|38400-baud:\ :np:sp#38400:pp=/etc/ppp/callback.ppp: # AND OTHERS... [ /etc/ppp/callback.ppp ] #!/bin/sh echo "!!! Incoming call. Use kill -TERM $$ to kill it..." | wall -g wheel exec /usr/sbin/ppp -direct incoming That's all. If have a solution or any experience in setting-up user-ppp callback, reply (workable configs won't be out of place). _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"