<div dir="ltr">Really, a dialplan function would be best. I too don't like of an idea of using a external process to get internal variables, but when necessary... :(</div><div class="gmail_extra"><br clear="all"><div>
<div dir="ltr"><div><br></div>Att,<div><b>Rafael dos Santos Saraiva</b></div><div><div><a href="http://br.linkedin.com/pub/rafael-saraiva/52/aab/230" target="_blank"><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15_pt_BR.png"></a><br>
</div></div></div></div>
<br><br><div class="gmail_quote">2014-07-22 16:29 GMT-03:00 Steve Edwards <span dir="ltr"><<a href="mailto:asterisk.org@sedwards.com" target="_blank">asterisk.org@sedwards.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 22 Jul 2014, Steve Edwards wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How about something like:<br>
<br>
asterisk -rx "core show channel SIP/spa841-00000003"\<br>
| awk '/Call Identifer/ {gsub(/[][]/,""); print $3}'<br>
</blockquote>
<br>
Or:<br>
<br>
asterisk -rx "core show channel SIP/spa841-00000003"\<br>
| awk -F'[][]' '/Call Identifer/ {print $2}'<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Thanks in advance,<br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com" target="_blank">sedwards@sedwards.com</a> Voice: <a href="tel:%2B1-760-468-3867" value="+17604683867" target="_blank">+1-760-468-3867</a> PST<br>
Newline Fax: <a href="tel:%2B1-760-731-3000" value="+17607313000" target="_blank">+1-760-731-3000</a><br>
<br>
-- <br>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
</font></span></blockquote></div><br></div>