[asterisk-users] Call Identifier Logging

Rafael dos Santos Saraiva rafaelsnsa at gmail.com
Tue Jul 22 12:43:54 CDT 2014


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,,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://br.linkedin.com/pub/rafael-saraiva/52/aab/230>


2014-07-21 18:59 GMT-03:00 Steven Wheeler <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/6df078b7/attachment.html>


More information about the asterisk-users mailing list