Correct syntax is  session:getVariable("sip_h_X-AWSCONNECT-ID")

 

Sent from Mail for Windows

 

From: Alexander Perkins
Sent: March 30, 2022 4:48 PM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] Get a Header in Lua

 

Hi All.  I am trying to get one of the SIP headers in a Lua script.  The header I am trying to get is X-AWSCONNECT-ID.  I've tried to use session:getVariable("sip_X-AWSCONNECT-ID"), but no luck.  What is the recommended approach to get this?

 

Thanks,

Alex