‎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 Hubert
Sent: Monday, September 21, 2020 11:41
To: FreeSWITCH Users Help
Reply To: FreeSWITCH Users Help
Subject: [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