[asterisk-users] Call Identifier Logging
    Steven Wheeler 
    SWheeler at usinternet.com
       
    Tue Jul 22 13:26:12 CDT 2014
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140722/f928432e/attachment.html>
    
    
More information about the asterisk-users
mailing list