<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Try TEST="${X-CALLID}"; and see how you go.<br>
<br>
Eric Dantie wrote:
<blockquote cite="mid:9BDB352518164D31AB35472C8BADC0C3@XPSM1210"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6001.18023" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">Sorry,</font><font face="Arial"
size="2"> bad expressed, what I want to know is how can I do this in
AEL:</font></div>
<div> </div>
<div><font face="Arial" size="2">I've already got a variable X-CALLID
with the content ctprueba-123456789.12</font></div>
<div> </div>
<div><font face="Arial" size="2">How can I copy the content X-CALLID
to the new variable TEST?</font></div>
<div> </div>
<div><font face="Arial" size="2">something like TEST=${X-CALLID};</font></div>
<div> </div>
<div><font face="Arial" size="2">(The problem comes because of the
operator minus).</font></div>
<div> </div>
<div><font face="Arial" size="2">Thank you.</font></div>
<div><font face="Arial" size="2">Eric Dantie</font></div>
<div> </div>
<div> </div>
<blockquote dir="ltr"
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div
style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
<a moz-do-not-send="true" title="edantie@gmail.com"
href="mailto:edantie@gmail.com">Eric Dantie</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a moz-do-not-send="true" title="asterisk-users@lists.digium.com"
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>
</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Wednesday, April 23, 2008 1:37 PM</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
AEL: how to copy a variable without interpretation of the content</div>
<div><br>
</div>
<div><font face="Arial" size="2">I've got the next AEL:</font></div>
<div> </div>
<div><font face="Arial" size="2"> TEST=${X-CALLID};<br>
NoOp(${TEST});<br>
</font></div>
<div><font face="Arial" size="2">where
X-CALLID=ctprueba-1208953210.12 (passed by a custom sip header) </font> </div>
<div> </div>
<div><font face="Arial" size="2">Executing I've got the error:</font></div>
<div> </div>
<div><font face="Arial" size="2">[2008-04-23 13:24:01]
WARNING[15638]: ast_expr2.y:742 op_minus: non-numeric argument<br>
-- Executing [1009@fromsip:8] Set("SIP/172.16.4.6-b6c06688",
"TEST=0") in new stack<br>
-- Executing [1009@fromsip:9] NoOp("SIP/172.16.4.6-b6c06688", "0")
in new stack<br>
</font></div>
<div> </div>
<div><font face="Arial" size="2">So my problem is how to copy the
X-CALLID variable with no interpretation of the content?</font></div>
<div> </div>
<div> </div>
<div><font face="Arial" size="2">Thanks</font></div>
<div><font face="Arial" size="2">Eric Dantie</font></div>
</blockquote>
!DSPAM:480fcd5a213011511915117!
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
-- Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
!DSPAM:480fcd5a213011511915117!
</pre>
</blockquote>
</body>
</html>