View previous topic :: View next topic |
Author |
Message |
edantie at gmail.com Guest
|
Posted: Wed Apr 23, 2008 7:37 am Post subject: [asterisk-users] AEL: how to copy a variable without interpr |
|
|
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 [1009 at fromsip:8] Set("SIP/172.16.4.6-b6c06688", "TEST=0") in new stack
-- Executing [1009 at fromsip: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080423/dd007498/attachment.htm |
|
Back to top |
|
|
philipp.kempgen at amo... Guest
|
Posted: Wed Apr 23, 2008 8:10 am Post subject: [asterisk-users] AEL: how to copy a variable without interpr |
|
|
Eric Dantie schrieb:
Quote: | 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
|
X_CALLID=SIP_HEADER(X-CALLID);
NoOp(${X_CALLID});
?
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998 |
|
Back to top |
|
|
philipp.kempgen at amo... Guest
|
Posted: Wed Apr 23, 2008 8:13 am Post subject: [asterisk-users] AEL: how to copy a variable without interpr |
|
|
Philipp Kempgen schrieb:
Quote: | Eric Dantie schrieb:
Quote: | 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
|
X_CALLID=SIP_HEADER(X-CALLID);
|
Sorry,
X_CALLID=${SIP_HEADER(X-CALLID)};
Quote: | NoOp(${X_CALLID});
|
Regards,
Philipp Kempgen
--
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
Let's use IT to solve problems and not to create new ones.
Asterisk? -> http://www.das-asterisk-buch.de
Gesch?ftsf?hrer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998 |
|
Back to top |
|
|
edantie at gmail.com Guest
|
Posted: Wed Apr 23, 2008 11:45 am Post subject: [asterisk-users] AEL: how to copy a variable without interpr |
|
|
Strangely, working...
TEST should be "ctprueba-123456789.12" but not ctprueba-123456789.12
But got the value.
Thanks.
----- Original Message ----- >
Quote: | Try TEST="${X-CALLID}"; and see how you go.
Eric Dantie wrote:
Quote: | 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
|
|
|
|
Back to top |
|
|
|