[Asterisk-Dev] Dial vs. pbx_exec('Dial')
Chris A. Icide
chris at netgeeks.net
Thu Oct 14 12:15:14 MST 2004
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
More information about the asterisk-dev
mailing list