[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dialin question



Douglas Eck wrote:
> 
> I'm currently using wvdial and like it. Now I only have one phone
> line with call forwarding and want to do the following with
> demand dialing (note, I know roughly about all of the packages
> required... I'd just like to get thoughts from anyone who
> has done anything this silly already ...)
> 
> On demand
> 1) dial *72 - xxx-xxxx to forward calls. Wait 2 sec on answer. Hangup
> 2) dial *72 - xxx-xxxx again to complete the forward. (Calling only once
> doesn't work with US West's call forwarding unless the forwarded phone
> answers)
> 3) dial my isp and log in
> 
> On hangup or on 15-min inactivity
> 1) hang up from isp
> 2) dial *73. Hangup. This cancels call forwarding.
> 
> Thoughts?
> 
> Anybody do something similar.
> 
I was going to refrain from any answer, since I've not actually done it,
but since no one else has jumped in:

What about the 'connect' and 'disconnect' script options of pppd?  (man
pppd).  I don't use wvdial, but it's gotta be running pppd.  Find where
the connect script is, and modify it to do your forwarding (ATDT*72,
etc.), and add a disconnect script (need to find where wvdial invokes
pppd) to do forward-cancelling (ATDT*73, etc.).  I would think it would
be rather easy...  The 15-minute activity thing you would do by just
doing the 'idle' option on pppd, then relying on the disconnect script
as above.  But I'd be surprised if your ISP didn't time out within that
period, which would automatically invoke the 'disconnect' script without
your having to use the 'idle' option at all.

Good luck.


Reply to: