[Asterisk-Users] x100p/hangup detection issues? - SOLVED!
Miguel Cavazos
miguel at cavazos.com.mx
Thu Dec 4 18:18:00 MST 2003
i have this very same problem but i have a different context
; Answering incoming calls
[incoming]
include => asterisk
exten => s,1,Wait,15
exten => s,2,Answer
exten => s,3,Wait,1
exten => s,4,Background(${SOUNDS}/casa)
exten => 1,1,Dial(SIP/101)
exten => 2,1,Dial(SIP/152)
here my problem is they can dial any extension so at what time should i
put the ringing stuff?
Miguel
On Fri, 2003-12-05 at 06:45, 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