_________________________________________________________________________What I usually do is include ”info” app in the dialplan and run the call in question while cli is in “info” log level. So you dump all chan variables and if your value is in some of them you are golden and you see exact variable name. if it's not anywhere means it's not parsed.
From: Mickael HubertSent: Monday, September 21, 2020 11:41To: FreeSWITCH Users HelpReply To: FreeSWITCH Users HelpSubject: [Freeswitch-users] Is it possible to parse Accept-Contact ?Hi all,I want to be able to parse Accept-Contact header.I have this configuration just to log header:<condition field="${sip_h_Accept-Contact}" expression="(.+)" break="never">
<action application="log" data="INFO LOG: parse accept: ${sip_h_Accept-Contact}" />
</condition>my logs:Dialplan: sofia/INTERNAL/427842085@10.88.83.7 Regex (PASS) [variables] ${sip_h_Accept-Contact}() =~ /(.*)/ break=never
Dialplan: sofia/INTERNAL/427842085@10.88.83.7 Action log(parse accept: ${sip_h_Accept-Contact})
2020-09-21 17:34:09.726180 [NOTICE] switch_core_session.c:3017 Execute [depth=2] log(parse accept: ${sip_h_Accept-Contact})
EXECUTE [depth=2] sofia/INTERNAL/427842085@10.88.83.7 log(parse accept: )sip_h_Accept_Contact variable is empty.header received:Accept-Contact: *;generic.test_id="test"is it possible to parse this header ?Do you have an idea about that ?thanks in advance
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
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
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com