Making LinkedID available in the dialplan would also be useful.

From: [email protected] 
[mailto:[email protected]] 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%[email protected]>,,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 
<[email protected]<mailto:[email protected]>>:
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

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

Reply via email to