[Asterisk-Users] dial if
Paul Hewlett
paul at cottonpickinminds.co.za
Sat Jul 1 04:22:51 MST 2006
On Wednesday 28 June 2006 04:53, Miles Scruggs wrote:
> Well it turns out that that this method doesn't work. You see if a
> phone is on DND it still shows the chan avalible. Also if the chan
> isn't avalible, ChanIsAvail just crashes right there. Unless there is a
> way around both of these issues then I need to look at something else.
> It just seems like such a basic function to be able to tell if a device
> is avalible or not, ie if the call will go through. Normally I would
> just do
>
> exten => s,1,Dial($ext1)
> exten => s,2,Dial($ext2)
>
> but the pesky fact is I want to ring $ext3 at the same time, but only if
> either is avalible so I can't do:
>
> exten => s,1,Dial($ext1&$ext3)
> exten => s,2,Dial($ext2&$ext3)
>
> because if $ext1 isn't avalible then $ext3 will ring anyway which isn't
> the desired behaviour.
>
> Can anyone please help me?
Try queues and give each extension different priorities..
sip/ext1,0
sip/ext2,1
Paul
>
> Thanks
>
> Miles
>
> William Piper wrote:
> > You can do this without needing an AGI.
> > Look here
> > http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+ChanIsAvail
> >
> > bp
> >
> >
> > On 6/16/06, *Miles Scruggs* <asterisk at garnetweb.com
> > <mailto:asterisk at garnetweb.com>> wrote:
> >
> > I want to setup a fragment of my dialplan to dial an ext at the same
> > time as another, but only if the other is avalible for instance this
> > sudo code
> >
> > var $ext1
> > var $ext2
> > var $ext3
> >
> >
> > if ($ext1) {
> > dial($ext1&$ext3)
> > }elseif($ext2) {
> > dial($ext2&$ext3)
> > }else{
> > dial($ext3)
> > }
> >
> > Anyone know how I would accomplish this?
> >
> > Thanks
> >
> > Miles
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com
> > <http://Easynews.com> --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > --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
>
> _______________________________________________
> --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
More information about the asterisk-users
mailing list