Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Get a Header in Lua


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
alexanderhenryperkins ...
Guest





PostPosted: Wed Mar 30, 2022 3:33 pm    Post subject: [Freeswitch-users] Get a Header in Lua Reply with quote

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
Back to top
ahrongreenberg at gmai...
Guest





PostPosted: Wed Mar 30, 2022 9:01 pm    Post subject: [Freeswitch-users] Get a Header in Lua Reply with quote

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

Sent from Mail for Windows

From: Alexander Perkins (alexanderhenryperkins@gmail.com)
Sent: March 30, 2022 4:48 PM
To: freeswitch-users@lists.freeswitch.org (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
Back to top
dujinfang at gmail.com
Guest





PostPosted: Fri Apr 01, 2022 6:00 pm    Post subject: [Freeswitch-users] Get a Header in Lua Reply with quote

sip_h_X-Awesome...

On Thu, Mar 31, 2022 at 4:41 AM Alexander Perkins <alexanderhenryperkins@gmail.com (alexanderhenryperkins@gmail.com)> wrote:

Quote:
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

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Other:  http://rts.cn
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services