With the changes done by Ovidiu (rev #8610), this cannot work anymore - What Ovidiu changed, was to move the triggering of script routes (by the b2b_entities module) before the triggering of b2b_logic callback, so the b2b_logic cannot populate the "key" AVP as it is too late.
The triggering of b2b_logic was moved after the route triggering, so that the logic module can learn the message modification you do in the script.
Considering the situation, I see no other logic possibility than dropping the "key" AVP.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
With the changes done by Ovidiu (rev #8610), this cannot work anymore - What Ovidiu changed, was to move the triggering of script routes (by the b2b_entities module) before the triggering of b2b_logic callback, so the b2b_logic cannot populate the "key" AVP as it is too late.
The triggering of b2b_logic was moved after the route triggering, so that the logic module can learn the message modification you do in the script.
Considering the situation, I see no other logic possibility than dropping the "key" AVP.
Refer to 3536658