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