So it seems that the FS console by default only displays the ‘a’ leg vars which is why I couldn’t see it (and it makes sense too since gateway is on the b leg side). I have the ESL script now display both the inbound/outbound after which I can see the sip_gateway_name var.