[Asterisk-Dev] More AEL funnies

Brian Capouch brianc at palaver.net
Wed Jul 6 10:44:22 MST 2005


Kevin P. Fleming wrote:
> Brian Capouch wrote:
> 
>> The line that causes this is:
>>
>> temp=${DB(CFIM/${ext})};
> 
> 
> Please post a 'show dialplan' showing what the AEL translated into for 
> this line. Thanks!
> 

This line was my original source line:

temp=${DB(CFIM/${ext})};

Which parses into the following line seen with "show dialplan:"

4. Set(temp=$[ ${DB(CFIM/${ext})} ])          [pbx_ael]

It works OK but gives the error mentioned in the previous mail.

BKW's suggestion to change the source line to:

temp=(${DB(CFIM/${ext})});

Results in this parsed dialplan entry:

4. Set(temp=$[ (${DB(CFIM/${ext})}) ])        [pbx_ael]

But now the macro (it's in a modified version of macro-st-exten-ael from 
the sample file) doesn't behave properly:

     -- Executing Set("SIP/nwata2-5c1c", "temp=()") in new stack
     -- Executing Dial("SIP/nwata2-5c1c", "()") in new stack
Jul  6 12:38:02 WARNING[4390]: app_dial.c:937 dial_exec_full: Dial 
argument takes format 
(technology1/[device:]number1&technology2/[device:]number2...|optional 
timeout)

In other words, it sets the results of the DB lookup to "()", which 
chokes the Dial command.

B.





More information about the asterisk-dev mailing list