Once placed anywhere in the zapata.conf file, all channels will try to detect the ring pattern even if the 'usedistinctiveringdetection' is turned off for a particular channel. Once the distinctive ring is detected, an incoming call will be sent to the context that matches the ring pattern. ----------------------------------- !!!! basic config !!!!! ;usedistinctiveringdetection=yes ;dring1 => 0,0,0 ;dring1context => inhome ;inbound number to ring Zap/3 ;dring2 => 338,0,0 ;dring2context => inbizfax ;inbound number to ring Zap/4 context => inhome signalling => fxs_ks group => 1 channel => 5 usedistinctiveringdetection=no context => inrtcg signalling => fxs_ks group => 1 channel => 6 ============================= **Results of call to channel 5 ** -- Starting simple switch on 'Zap/5-1' -- Executing Answer("Zap/5-1", "") in new stack -- Executing Wait("Zap/5-1", "1") in new stack -- Executing Zapateller("Zap/5-1", "") in new stack -- Executing Playback("Zap/5-1", "tt-allbusy") in new stack -- Playing 'tt-allbusy' (language 'en') -- Executing Zapateller("Zap/5-1", "") in new stack -- Executing WaitMusicOnHold("Zap/5-1", "15") in new stack -- Started music on hold, class 'default', on Zap/5-1 -- Stopped music on hold on Zap/5-1 == Spawn extension (inhome, s, 6) exited non-zero on 'Zap/5-1' -- Hungup 'Zap/5-1' **Results of call to channel 6 ** -- Starting simple switch on 'Zap/6-1' -- Executing Zapateller("Zap/6-1", "answer|nocallerid") in new stack -- Executing NoOp("Zap/6-1", "") in new stack -- Executing PrivacyManager("Zap/6-1", "") in new stack -- CallerID Present: Skipping -- Executing Dial("Zap/6-1", "Zap/1r2|15") in new stack -- Called 1r2 -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Zap/1-1 is ringing -- Nobody picked up in 15000 ms -- Hungup 'Zap/1-1' -- Executing VoiceMail("Zap/6-1", "u201") in new stack -- Playing 'voicemail/default/201/unavail' (language 'en') == Spawn extension (inrtcg, s, 5) exited non-zero on 'Zap/6-1' -- Hungup 'Zap/6-1' ############################################### !! config with usedistinctiveringdetection=yes active on channel 5 !! usedistinctiveringdetection=yes dring1 => 0,0,0 dring1context => inhome ;inbound number to ring Zap/3 dring2 => 338,0,0 dring2context => inbizfax ;inbound number to ring Zap/4 ;context => inhome signalling => fxs_ks group => 1 channel => 5 usedistinctiveringdetection=no context => inrtcg signalling => fxs_ks group => 1 channel => 6 =================================== ** result of call to channel 5 ** -- Starting simple switch on 'Zap/5-1' -- Detected ring pattern: 0,0,0 -- Distinctive Ring matched context inhome -- Executing Answer("Zap/5-1", "") in new stack -- Executing Wait("Zap/5-1", "1") in new stack -- Executing Zapateller("Zap/5-1", "") in new stack -- Executing Playback("Zap/5-1", "tt-allbusy") in new stack -- Playing 'tt-allbusy' (language 'en') -- Executing Zapateller("Zap/5-1", "") in new stack -- Executing WaitMusicOnHold("Zap/5-1", "15") in new stack -- Started music on hold, class 'default', on Zap/5-1 -- Stopped music on hold on Zap/5-1 == Spawn extension (inhome, s, 6) exited non-zero on 'Zap/5-1' -- Hungup 'Zap/5-1' ** Result of call to channel 6 ** -- Starting simple switch on 'Zap/6-1' -- Detected ring pattern: 0,0,0 -- Distinctive Ring matched context inhome -- Executing Answer("Zap/6-1", "") in new stack -- Executing Wait("Zap/6-1", "1") in new stack -- Executing Zapateller("Zap/6-1", "") in new stack -- Executing Playback("Zap/6-1", "tt-allbusy") in new stack -- Playing 'tt-allbusy' (language 'en') -- Executing Zapateller("Zap/6-1", "") in new stack -- Executing WaitMusicOnHold("Zap/6-1", "15") in new stack -- Started music on hold, class 'default', on Zap/6-1 -- Stopped music on hold on Zap/6-1 == Spawn extension (inhome, s, 6) exited non-zero on 'Zap/6-1' -- Hungup 'Zap/6-1' ######################################## !! config with usedistinctiveringdetection=yes active on channel 5 !! -- Starting simple switch on 'Zap/5-1' -- Detected ring pattern: 0,0,0 -- Distinctive Ring matched context inhome -- Executing Answer("Zap/5-1", "") in new stack -- Executing Wait("Zap/5-1", "1") in new stack -- Executing Zapateller("Zap/5-1", "") in new stack -- Executing Playback("Zap/5-1", "tt-allbusy") in new stack -- Playing 'tt-allbusy' (language 'en') -- Executing Zapateller("Zap/5-1", "") in new stack == Spawn extension (inhome, s, 5) exited non-zero on 'Zap/5-1' -- Hungup 'Zap/5-1' !! config with usedistinctiveringdetection=yes active on channel 6 !! -- Starting simple switch on 'Zap/6-1' -- Detected ring pattern: 0,0,0 -- Distinctive Ring matched context inhome -- Executing Answer("Zap/6-1", "") in new stack -- Executing Wait("Zap/6-1", "1") in new stack -- Executing Zapateller("Zap/6-1", "") in new stack -- Executing Playback("Zap/6-1", "tt-allbusy") in new stack -- Playing 'tt-allbusy' (language 'en') -- Executing Zapateller("Zap/6-1", "") in new stack -- Executing WaitMusicOnHold("Zap/6-1", "15") in new stack -- Started music on hold, class 'default', on Zap/6-1 -- Stopped music on hold on Zap/6-1 == Spawn extension (inhome, s, 6) exited non-zero on 'Zap/6-1' -- Hungup 'Zap/6-1' ##########################################