Brian J. Murrell
2006-Feb-06 20:56 UTC
[Asterisk-Users] dummy Technology/resource for Dial
I need to guarantee a Dial(Technology/resource,20) will ring somewhere for 20 seconds before timing out. The problem is that if all of my Technology/resource pairs are SIP phones for example, if none of the listed phones are actually online/logged in, the Dial bails immediately. I would rather the Dial run it's timeout course. Any way I can do that? Is there a way to create some kind of "dummy" Technology/resource that will never answer but will always keep Dial() happy that it might? Thanx, b. -- My other computer is your Microsoft Windows server. Brian J. Murrell -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060206/d510574f/attachment.pgp
The 'local' technology might be what you want, you can use it to dial an extension/context, and handle call direction there. It will actually always answer technically though, and will split your CDRs. You will also want to watch out for variable inheritance when using local channels. Brian J. Murrell wrote:>I need to guarantee a Dial(Technology/resource,20) will ring somewhere >for 20 seconds before timing out. The problem is that if all of my >Technology/resource pairs are SIP phones for example, if none of the >listed phones are actually online/logged in, the Dial bails immediately. >I would rather the Dial run it's timeout course. > >Any way I can do that? Is there a way to create some kind of "dummy" >Technology/resource that will never answer but will always keep Dial() >happy that it might? > >Thanx, >b. > > > >------------------------------------------------------------------------ > >_______________________________________________ >--Bandwidth and Colocation provided by Easynews.com -- > >Asterisk-Users mailing list >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Hmm see if this works, Extensions.conf [ring-30] exten => s,1,ringing(); exten => s,2,wait(30); exten => s,3,hangup(); ... then in your Dial(SIP/1&SIP/2&Local/s@ring-30); > -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Brian J. Murrell > Sent: 07 February 2006 03:56 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [Asterisk-Users] dummy Technology/resource for Dial > > I need to guarantee a Dial(Technology/resource,20) will ring somewhere > for 20 seconds before timing out. The problem is that if all of my > Technology/resource pairs are SIP phones for example, if none of the > listed phones are actually online/logged in, the Dial bails immediately. > I would rather the Dial run it's timeout course. > > Any way I can do that? Is there a way to create some kind of "dummy" > Technology/resource that will never answer but will always keep Dial() > happy that it might? > > Thanx, > b. > > -- > My other computer is your Microsoft Windows server. > > Brian J. Murrell