[VoIP] Additional Asterisk Features
Mark Rudholm
mark at rudholm.com
Wed Jun 20 17:27:11 CDT 2007
If you set the zap channel's "immediate" variable to "yes" the "s"
extension in the context to which the channel is assigned will be
executed immediately. There's no need to name the context anything
in particular. There's also no need to limit the context to
ringdown service (although it's a good idea).
Here's my "front_door" context:
[front_door]
exten => s,1,System(/usr/bin/wget -q -b -o /dev/null -O /dev/null http://127.0.0.1:9000/"status.txt?p0=display&p1=Doorbell&p2=Doorbell&p3=20&player=*") ; Announce via Squeezeboxes
exten => s,n,SetVar(_ALERT_INFO=Bellcore-r3) ; Ring Cadence #3 is three quick rings
exten => s,n,Dial(${kitchen}r3&${bedroom}r3&${garage}&${living_room}&${office}&${work}&LOCAL/500 at front_door&LOCAL/600 at front_door,42)
exten => s,n,Playback(were-sorry)
exten => s,n,Playback(vm-nobodyavail)
exten => s,n,Hangup()
exten => 500,1,Set(CALLERID(all)="Front Door"<2138531212>) ; set CID to something Teliax will accept
exten => 500,n,Dial(${cellphone})
exten => 600,1,SetVar(_ALERT_INFO=Bellcore-r5) ; Bellcore-r5 is defined as silent in my ATAs
exten => 600,n,Dial(${guest_room})
Lee Spenadel wrote:
> No, the "s" extension won't do it. That's used when there's no known called
> number in the context that you're using. I had to create a context in the
> extensions.conf called PLAR. Then in zapata.conf I created channel entry
> for the extension that I was using and referenced the context=PLAR. I had
> to have an entry in that channel definition that said: immediate=yes. Now
> whenever I go off-hook on that channel, it calls the office phone, which was
> set in extensions.conf.
>
> Lee
>
> -----Original Message-----
> From: voip-bounces at ckts.info [mailto:voip-bounces at ckts.info] On Behalf Of
> Mark Rudholm
> Sent: Wednesday, June 20, 2007 5:03 PM
> To: Voice Over IP Tandem for Analog Switches
> Subject: Re: [VoIP] Additional Asterisk Features
>
> Lee Spenadel wrote:
>> I've implemented Voice Mail and Music on Hold. Both are very easy to use.
>> If you are on a call and flash the hookswitch on the caller, they should
> get
>> MOH. I'm using the Private Line Automatic Ringdown feature for my front
>> door phone. It's set to ring to my office line when someone goes off-hook.
>
> Lee,
>
> How did you implement the ringdown? I did it by just using the "s"
> extension in my doorphone's context and am just curious if you've
> done it some other way.
>
> I have it ring the phones in the house, my office, and my cellphone.
>
> One thing I did discover in setting it up was that my Sipura ATAs
> don't send CPC on outgoing calls, they only send it on incoming calls,
> so when someone activated the doorphone (a Bogen ADP1) it wouldn't
> automatically hang up when the called party disconnected. Fortunately,
> the ZAP channels and the IAXy ATA send CPC regardless of who originated
> the call.
>
> The doorphone is really handy. Even the friends of mine who fail to
> understand my fascination with telephones concede that point...
>
> -Mark
More information about the VoIP
mailing list