[Asterisk-Users] Integrating cell phone into Asterisk Extension..
John Morris
jman_betelnut at yahoo.com
Fri Jul 25 01:16:22 MST 2003
> Granted it takes some pre-thought, but why
> not just use the *72/*73 codes to forward
> when you are out of the office?
This worked out pretty well, I got to meet lots of the
other officemembers' family and friends! Ha ha!
Seriously, I think Asterisk can do better, just need
to figure out where to do it *from*. Seems like a
'forward-timeout' app could be pretty useful. Dial a
number, wait for a '#' on channels where pickup isn't
detected, read out the callerID, put the caller
through on another '#' or (for example) through to
voicemail on '*', hangup or timeout.
Looks like AGI won't quite do the trick. I've been
looking over Cam's HOWTO:
http://home.cogeco.ca/~camstuff/agi.html
AGI seems to be missing a way to dial out ("Answer"
won't do it since you can't specify a channel, and
even we could, there's no convenient way of sending
DTMF), and once that were done, I'm unclear how you'd
pipe the two channels together (sorry for the UNIX
shell terminology!).
It's looking at this point like the best bet is to
modify the Dial application, or write a new one. Does
that sound reasonable to anyone? As in, am I barking
up the right tree yet? I'd hate to spend a couple of
days on a problem that someone else could write in two
lines of extensions.conf syntax on a 2"x4" before
whopping me in the face with it.
[trycell]
; Add a new option 'p' to indicate a dumb POTS line
; that can't do CallerID or answer detection
; ${POTSLINES} could be FXO devices, eg. Zap/g1
exten => s,1,Dial(${POTSLINES}/${MYCELL},20,Trp)
exten => s,2,Voicemail,${MYEXTEN}
BTW, what ARE the semantics of this?:
; ${TDM400P} are the ports on an FXS card, maybe
; TDM400P => Zap/3&Zap/4
exten => s,1,Dial(${TDM400P}&${POTSLINES}/${MYCELL})
John
--- Steven Critchfield <critch at basesys.com> wrote:
> On Wed, 2003-07-23 at 02:26, John Morris wrote:
> > This is a thread from Apr. 15 about how to make
> your
> > cell phone ring simultaneously with your other
> > extensions. The solution was:
> >
> > > Just use Dial,Zap/${DESK}&Zap/g1/${CELL}||t
> >
> > I've tried this, and this is the behavior I see:
> >
> > 1) ${DESK} extensions ring ONCE only (in my case,
> I
> > have the TDM400P with analog phones as extensions)
> >
> > 2) ${DESK} extensions are hung up after just a
> few
> > seconds
> >
> > 3) ${CELL} is dialed
> >
> > Any idea why this would happen?
>
> If you have a tdm400P I assume you probably have an
> X100P also. If you
> are dialing outside with an analog circuit you don't
> have definitive
> knowledge of them the other side is answered. With
> out this knowledge,
> your cell phone "answered" the line first and the
> desk phones loose the
> opportunity to answer.
>
> > SO, since this didn't work, I figured I'd ring
> ${DESK}
> > for 15 seconds first; if there was no pickup, I'd
> ring
> > ${CELL} second; and if no pickup there, forward to
> > voicemail:
> >
> > [john]
> > ; my very own context!
> > exten => s,1,Dial(${DESK},20)
> > exten => t,1,Goto(john-cell,s,1)
>
> Might want to change this last line from t to s,2.
> If I remember
> correctly, your dial will time out and then go into
> limbo till
> DigitTimeout, then go to t.
>
> > [john-cell]
> > ; call my cell if I don't answer
> > exten => s,1,Dial(Zap/g1/${CELL},20)
> > ; go to voicemail if I don't pick up the cell
> > exten => t,1,Voicemail,1002
> > exten => t,2,hangup
> >
> > This doesn't do what I need, either. If I don't
> pick
> > up ${DESK}, then ${CELL} is dialed. Problem is,
> even
> > if I answer ${CELL}, asterisk doesn't register
> that I
> > picked up, and after 20 seconds it hangs up on
> ${CELL}
> > and goes to voicemail. I'm using two X100Ps for
> FXO
> > devices, by the way.
>
> Do you have an AbsoluteTimeout set somewhere? BTW,
> your timeout
> shouldn't work for the cell phone since the X100P
> won't know when you
> "answered" the line or not, it will just assume
> answered.
> --
> Steven Critchfield <critch at basesys.com>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
>
http://lists.digium.com/mailman/listinfo/asterisk-users
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the asterisk-users
mailing list