ImportVar vs func SHARED - which is better?

Hi there,

I have two channels involved in a dialplan. Incoming SIP or DAHDI is connected to Local channel which then performs some tasks. now I want to access value of Local channel’s variable in SIP or DAHDI channel.

I have already implemented asterisk function SHARED successfully and now going to try ImportVar. but wondering which is best in terms of performance. I think ImportVar will suit my needs as I only want to get one channels value in other channel.

Any suggestions which method will be more robust in terms of performance under heavy calls load.


Nasir Javaid.