[Asterisk-Dev] Dial vs. pbx_exec('Dial')

Matthew Boehm mboehm at cytelcom.com
Thu Oct 14 12:59:21 MST 2004


Well..that can all be done in the C code right? For the questions sake, lets
assume I can. Am I going to gain any effieceny by having the Dial command
done inside rate_engine or will it pretty much be the same as if it were in
the extensions.conf file?

Thanks,
Matthew
----- Original Message ----- 
From: "Chris A. Icide" <chris at netgeeks.net>
To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
Sent: Thursday, October 14, 2004 2:15 PM
Subject: Re: [Asterisk-Dev] Dial vs. pbx_exec('Dial')


> On 11:19 AM 10/14/2004, Matthew Boehm wrote:
>  >Is there going to be "that" much of a difference, resource wise, in
doing
>  >the following:
>  >
>  >exten => 400,1,SomeApp(400)
>  >exten => 400,2,Dial(${RESULTOF_SOMEAPP})
>  >
>  >vs.
>  >
>  >exten => 400,1,SomeAppA(400)   (SomeAppA calls pbx_exec('Dial')
internally)
>  >
>  >I've been researching into TrollPhone.org's rate_engine and I noticed
that
>  >it didn't handle the calls itself;
>  >instead it created a chan var with the new number to be dialed, and you
were
>  >suposed to pass that along to Dial().
>  >
>  >I wanted to change the code of the rate engine to do the dialing itself.
>  >
>  >Am I going to gain anything by having the app do the dialing itself?
>  >
>
> You actually are going to lose something.
>
> rate_engine not only creates a variable, it creates multiple variables for
> each route that exists for a requested number.  So you can then build a
> dial plan that will use the next best route if the original route is
> unavailable, etc.
>
> -Chris
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list