[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

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

And worked perfectly.

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




Att,
Rafael dos Santos Saraiva
[http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15_pt_BR.png]<http://br.linkedin.com/pub/rafael-saraiva/52/aab/230>

2014-07-21 18:59 GMT-03:00 Steven Wheeler <SWheeler at usinternet.com<mailto:SWheeler at usinternet.com>>:
Hello,
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:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- 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