[Asterisk-Users] x100p/hangup detection issues? - SOLVED!
Brian West
brian at bkw.org
Fri Dec 5 00:11:38 MST 2003
A more proper way to fix this:
; this takes care of them pesky telemarketers
exten => s/,1,goto(nocid,1)
exten => nocid,1,Answer
exten => nocid,2,Macro(record-on|${MYHOMEPHONE}|ANONYMOUS)
exten => nocid,3,Zapateller(answer|nocallerid)
exten => nocid,4,PrivacyManager
exten => nocid,5,Goto(home,3)
exten => nocid,105,Goto(home,6)
exten => s,1,Goto(home,1)
exten => home,1,NoOp
exten => home,2,Macro(record-on|${MYHOMEPHONE}|${CALLERIDNUM})
exten => home,3,Dial(SIP/11&SIP/12&SIP/13&SIP/14|30|tr)
exten => home,104,Goto(home|6)
exten => home,4,Voicemail2(u10)
exten => home,5,Wait(2)
exten => home,6,Playback(vm-goodbye)
exten => home,7,Hangup
bkw
On Fri, 5 Dec 2003, Patrick Cantwell wrote:
> OK everybody, I have solved my problem!
>
> The issue lies in how you handle the incoming call. I actually stumbled
> across this while trying to find a better way of doing fax autodetection.
> The trick is you *must* use Answer to pick up the call. The *WRONG* way of
> doing things is:
>
> exten => s/,1,Zapateller
> exten => s,1,NoOp
> exten => s,2,PrivacyManager
> exten => s,3,Goto(100,1) ; proceed to home phone
> rules
> exten => s,103,Hangup() ; In case caller doesn't
> supply info correctly, hangup
>
> (of course omit the zapateller/privacymanager stuff if you're not using it)
>
> The *CORRECT* way of doing things is:
>
> exten => s/,1,Zapateller ; if CID is not present,
> send telemarketer blast down the line
> exten => s,1,NoOp ; if it is, don't do
> anything :)
> exten => s,2,PrivacyManager ; check for CID. If not
> present, prompt caller for their number.
> exten => s,3,Answer ; pick up the call. this
> allows asterisk/x100p to correctly detect phone company signalling!
> exten => s,4,Ringing ; generate some ringing
> for the calling party
> exten => s,5,Goto(100,1) ; proceed to home phone
> rules
> exten => s,103,Hangup() ; In case caller doesn't
> supply info correctly, hangup
>
> Note the rules 3 and 4, Answer and Ringing -- they do what you'd expect.
> Answer takes the call from the PSTN and Ringing makes asterisk generate a
> ringing tone while it handles the call internally. This allows it to a) let
> callers know the call is still in progress, and b) allows the fax rule to
> pick up a fax machine during ringing! I couldn't find this documented
> anywhere, or I would have implemented it this way from the get-go. Hope
> this helps someone else! (Let me know if it does!) Maybe this should be on
> the wiki too? :)
>
> Thanks,
> Pat
>
>
> ----- Original Message -----
> From: <wasim at convergence.com.pk>
> To: <asterisk-users at lists.digium.com>
> Sent: Friday, December 05, 2003 1:22 AM
> Subject: Re: [Asterisk-Users] x100p/hangup detection issues?
>
>
> > On Thu, 4 Dec 2003, Jonathan Tew wrote:
> >
> > > We're testing with an X100P card. When the caller on the POTS line
> > > hangs up it never causes our IAX phones (DIAX in this case) to hang up.
> > > Curious what you find out.
> >
> > a) try kewlstart if you're lucky enough to have it
> > b) try BUSYDETECT
> > c) alternatively in the US try callprogress
> >
> > - wasim
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list