Sorry, bad expressed, what I want to know is how can I do this in AEL:

I've already got a variable X-CALLID with the content ctprueba-123456789.12

How can I copy the content X-CALLID to the new variable TEST?

something like TEST=${X-CALLID};

(The problem comes because of the operator minus).

Thank you.
Eric Dantie


  ----- Original Message ----- 
  From: Eric Dantie 
  To: [email protected] 
  Sent: Wednesday, April 23, 2008 1:37 PM
  Subject: AEL: how to copy a variable without interpretation of the content


  I've got the next AEL:

         TEST=${X-CALLID};
         NoOp(${TEST});

  where X-CALLID=ctprueba-1208953210.12 (passed by a custom sip header)  

  Executing I've got the error:

  [2008-04-23 13:24:01] WARNING[15638]: ast_expr2.y:742 op_minus: non-numeric 
argument
      -- Executing [EMAIL PROTECTED]:8] Set("SIP/172.16.4.6-b6c06688", 
"TEST=0") in new stack
      -- Executing [EMAIL PROTECTED]:9] NoOp("SIP/172.16.4.6-b6c06688", "0") in 
new stack
   

  So my problem is how to copy the X-CALLID variable with no interpretation of 
the content?


  Thanks
  Eric Dantie
_______________________________________________
-- 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