[asterisk-users] Call Identifier Logging

Eric Wieling EWieling at nyigc.com
Tue Jul 22 12:45:59 CDT 2014

Making LinkedID available in the dialplan would also be useful.

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rafael dos Santos Saraiva
Sent: Tuesday, July 22, 2014 1:44 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Call Identifier Logging

I tried this in ael:
        _000. => {
                callident = "${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}";
                Dial(Motif/google/+${EXTEN:3}@voice.google.com<mailto:EXTEN%3A3%7D at voice.google.com>,,r);

And worked perfectly.

It would be interesting, the developer team add a variable to channel with this data.

Rafael dos Santos Saraiva

2014-07-21 18:59 GMT-03:00 Steven Wheeler <SWheeler at usinternet.com<mailto:SWheeler at usinternet.com>>:
I am working on upgrading from Asterisk 1.8 to Asterisk 11.6. One of the features we are excited for is Call Identifier Logging<https://wiki.asterisk.org/wiki/display/AST/Call+Identifier+Logging>. However, it doesn't appear that this new Call ID is accessible from the dial plan. Ideally we would like to store this Call ID in the CDR. Does anyone know if this is possible?

I could do something like this, but it seems like a terrible hack:
same => n,Set(CALLID=${SHELL(asterisk -rx "core show channel ${CHANNEL}" | grep ' Call Identifer' | egrep -o 'C-[0-9a-f]+')})

Also as a side note, in the core show channel output ' Identifier' is misspelt as ' 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:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140722/83cc4ed6/attachment.html>

More information about the asterisk-users mailing list