Re: [Asterisk-Users] x100p/hangup detection issues? - SOLVED!

2003-12-05 Thread Brian West
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/11SIP/12SIP/13SIP/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: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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
  [EMAIL PROTECTED]
  http://lists.digium.com/mailman/listinfo/asterisk-users
 

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] x100p/hangup detection issues? - SOLVED!

2003-12-05 Thread Miguel Cavazos
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: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 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
  [EMAIL PROTECTED]
  http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] x100p/hangup detection issues? - SOLVED!

2003-12-04 Thread Patrick Cantwell
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: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
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
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users