[Asterisk-Users] DIALSTATUS for Multiple Dialled Numbers

Alexander Lopez Alex.Lopez at OpSys.com
Sat Apr 8 10:20:10 MST 2006


 Sorry, It was late and I forgot about that SMALL detail!!!

Thanks for the clarification. :-) 


Alex

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Moises Silva
> Sent: Saturday, April 08, 2006 10:22 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] DIALSTATUS for Multiple Dialled Numbers
> 
> When you pass several Dial strings only the last exited 
> channel DIALSTATUS is saved. In the case that 1 of the 
> channels answer, the status will be ANSWER obviously, but if 
> the second fails because of CONGESTION and the first because 
> NOANSWER, the last exited channel dial status will be set.
> 
> Regards
> 
> On 4/7/06, Alexander Lopez <Alex.Lopez at opsys.com> wrote:
> > Without modifications to Dial, I don't think so.
> >
> > However,
> >
> > Dial(Local/SIP-123 at dialstatus&Local/IAX2-124 at dialstatus)
> >
> > [dialstatus]
> > _X.,1,Set(TECH=${CUT(${EXTEN},-,1)})
> > _X.,2,Set(DEVICE=${CUT(${EXTEN},-,2)})
> > _X.,3,Dial(${TECH}/${DEVICE}||)
> >
> >
> > Or something like this...
> >
> > I would also create Variable name to track each one.
> >
> >
> > >>-----Original Message-----
> > >>From: asterisk-users-bounces at lists.digium.com
> > >>[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> > >>Douglas Garstang
> > >>Sent: Friday, April 07, 2006 2:21 PM
> > >>To: Asterisk Users Mailing List - Non-Commercial Discussion
> > >>Subject: [Asterisk-Users] DIALSTATUS for Multiple Dialled Numbers
> > >>
> > >>Folks,
> > >>
> > >>When I have a dial string like this:
> > >>
> > >>Dial(SIP/3254101&SIP/3254102,20,tr)
> > >>
> > >>and I want to check the ${DIALSTATUS} variable after the 
> dial, how 
> > >>do I know which number I am getting the variable for?
> > >>
> > >>And, what about this?
> > >>
> > >>Dial(SIP/3254101&SIP/3254102 at proxy1,20,tr)
> > >>
> > >>What happens in that case? How can I get the 
> ${DIALSTATUS} variable 
> > >>for EACH NUMBER dialled?
> > >>
> > >>Thanks,
> > >>Doug.
> > >>_______________________________________________
> > >>--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
> >
> 
> 
> --
> "Su nombre es GNU/Linux, no solamente Linux, mas info en 
> http://www.gnu.org"
> _______________________________________________
> --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