use set_profile_var to set them on the leg before you intercept, does that work?

On Feb 6, 2017, at 10:29 AM, Piccinin Francesco <francesco.piccinin@insiel.it> wrote:

Hi all,
I’m experiencing the following issue on pickup groups.
We would like to update callee_id_name on pickup groups (using intercept).
Please consider the following example:
Extensions A and B are in the same pickup groups.
Extension C is calling extension B. Extension A perform a pickup using the code *8 (please find below the instersting part of our dialplan.xml).
 
On extension A display we see extension B callee_id_name and callee_id_number.
We expect to see extension C number and name.
 
Which channel variable to we need to update?
 
Find below an export of our dialplan.xml
 
Thanks.
regards
 
      <!-- Group Last Call Pickup -->
      <condition field="destination_number" expression="^\*8$" break="on-true">
         <action application="answer"/>
         <action application="set" data="intercept_unbridged_only=true"/>
         <action application="intercept" data="${db(select/$${hostname}_last_dial_${domain_name}/${pickup_group})}"/>
         <action application="lua" data="functions/clean_limit_pickup.lua ${pickup_group} ${domain_name}" inline="true"/>
         <action application="sleep" data="2000"/>
      </condition>