Try this:
CDR(userfield) = "${SHELL(asterisk -rx "core show channel ${CHANNEL}" | grep
"Call Identifer" | cut -d: -f2 | cut -d[ -f2 | cut -d] -f1 | cut -d\n
-f1):0:-1}";
Att,
Rafael dos Santos Saraiva
This isn't a suitable long term solution as it requires launching several
external processes just to gain access to an internal variable. It is also
likely to create bugs in the future if someone changes the output of that
command. For instance if they fix the typo in "Call Identifer".
Steven Wheeler
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users