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