Philipp Kempgen wrote:
Brent Davidson schrieb:

macro outside-dial ( num ) {
  if (${DB_EXISTS(Office/${CALLERID(num)})}) {
    TRUNK="Zap/r2";
  } else {
    TRUNK="Zap/r1";
  }
  Dial(${TRUNK}/${num},,Ttok);
}

[Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item: Warning: file /etc/asterisk/extensions.ael, line 93-93: expression "Zap/r2" has operators, but no variables. Interesting... [Dec 23 12:16:22] WARNING[2994]: pbx_ael.c:2500 check_pval_item: Warning: file /etc/asterisk/extensions.ael, line 95-95: expression "Zap/r1" has operators, but no variables. Interesting...

I'd suggest
        Set(TRUNK=Zap/r2);
resp.
        Set(TRUNK=Zap/r1);


   Philipp Kempgen


According to the AEL Documentation I should be able to set variables without using the "Set" command. They even give the following example:

context foo {
   555 => {
        x=5;
        y=blah;
        divexample=10/2
        NoOp(x is ${x} and y is ${y} !);
   };
};

I wonder if maybe AEL is ignoring the double quotes and treating the Zap/r2 as if it were division??? Should I file a bug report on this?


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to