Re: [Asterisk-Users] Ignore incomingcall?

2005-09-11 Thread David Cook
Use a separate context for each Dring.

dring2 cadence 0,0,0 will identify the primary number not the secondary.
 If you want dring1=main number  dring2=distinctive ring num then you
need dring1 as 0,0,0 and dring2 as the alternate cadence.

This context will ignore the calls on the main number if dring1context
is set to primary in zapata.conf.

[primary]
exten = s,1,NoOp(${CALLERID})
exten = s,2,Hangup



 Is there a way to tell asterisk to ignore an incoming call?
 I am using distinctinveringdetection and I am only interested in
 answering
 calls
 on the 2nd number.  Any call to the main line should just be ignored.

 right now I have a context set for dring2 cadence 0,0,0
 exten = s, 1, wait(30
 exten = s, 2, Hangup

--
David Cook
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Ignore incomingcall?

2005-09-10 Thread Shawn Porter
Is there a way to tell asterisk to ignore an incoming call?
I am using distinctinveringdetection and I am only interested in answering
calls
on the 2nd number.  Any call to the main line should just be ignored.

right now I have a context set for dring2 cadence 0,0,0
exten = s, 1, wait(30
exten = s, 2, Hangup

I thought that would sit until the max 4 rings (we have call-answer) then
disconnect itself, but
if someone picks up the phone asterisk keeps trying to respond to the call.

any thoughts?

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users