<br><br><div class="gmail_quote">2009/6/15 Tilghman Lesher <span dir="ltr"><<a href="mailto:tilghman@mail.jeffandtilghman.com">tilghman@mail.jeffandtilghman.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Monday 15 June 2009 04:03:48 am Olivier wrote:<br>
> I've just discovered IMPORT function existence.<br>
> It can be use to import values from channel's Variable section but<br>
> unfortunately, il can't be use to access to values from Info section<br>
> (I'm referring here to sections Info and Variables dumped by DumpChan<br>
> application).<br>
<br>
</div>You're mistaken.<br>
<div class="im"><br>
> Is there a way to work around this and access from one channel for instance<br>
> to another channel's CallerIDNum variable ?<br>
<br>
</div>${IMPORT(SIP/foo-abcd1234,CALLERID(num))} works fine.</blockquote><div><br>Yes, you're right, this works fine.<br><br>The reason why I was wrong is because I closely followed DumpChan output like this :<br>- DumpChan output is :<br>
Dumping Info For Channel: SIP/7530-082f6160:<br>================================================================================<br>Info:<br>Name= SIP/7530-082f6160<br>Type= SIP<br>UniqueID= 1245227926.4<br>
CallerIDNum= 7530<br>CallerIDName= Michele<br>DNIDDigits= 7531<br>RDNIS= (N/A)<br>...<br><br>I then tried :<br>${IMPORT(SIP/7530-082f6160,CallerIDNum)} which fails<br><br>Maybe, it should be preferable to teach DumpChan to output data like this :<br>
<br>Dumping Info For Channel: SIP/7530-082f6160:<br>
================================================================================<br>
Info:<br>
Name= SIP/7530-082f6160<br>
Type= SIP<br>
UniqueID= 1245227926.4<br>
CALLERID(num)= 7530<br>
CALLERID(name)= Michele<br>
...<br><br><br>What do you think ?<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
--<br>
Tilghman<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</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/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>