[Asterisk-Users] Re: X100P outbound only (Don't answer)
Soren Rathje
asterisk at lolle.org
Wed Aug 11 12:37:51 MST 2004
David Cook wrote:
> Quoting From: "Soren Rathje" <asterisk at lolle.org>
>> No Wait() or Answer() so the line will never be answered but incoming
>> =
>> callerid will be in the log/cdr... :-)
>>
>> /Soren
>
> I think I just missed something very fundamental. You are saying that
> the switch doesn't pickup the PSTN line until one of the choosen
> destinations performs an action like answer/dial, etc? I thought the
> switch picked up first, then routed the call based on the dial plan.
>
> So I can set usedistinctivering=yes with only an answer
> disposition/context on dring2 causing * to only pickup if you call
> that number!!!
>
> Very cool.
This example will answer the call and route to extension..
exten => s,1,Answer() ; RING RING - CLICK
exten => s,2,Playback(transfer) ; "Please hold while I transfer your call"
exten => s,2,Dial(SIP/100,20,m) ; 20 sec. with MOH and then give up.
This example will route the call and wait for the extension to answer the call...
exten => s,1,Dial(SIP/100) ; RING RING RING ......
On the other hand, if you specify..
exten => s/5551234567,1,Dial(SIP/100)
Your SIP phone will only ring if incoming CID is 5551234567.
I have never tried distinctive ring as I do not subscribe to the service but Google would know.. :-)
http://www.voip-info.org/wiki-Asterisk+config+zapata.conf
dring1context, dring2context, dring3context: Along with setting up to three distinctive ring patterns with dring1, dring2 and dring3, you also set corresponding contexts for incoming calls matching those distinctive ring patterns to jump into. If an incoming call does not match any of the distinctive ring patterns defined, then of course it will enter Asterisk with the default context defined for this channel.
dring1context=line2incoming
dring2context=business
dring3context=chocolate
/Soren
More information about the asterisk-users
mailing list