[Freeswitch-users] Is it possible to parse Accept-Contact ?

Mickael Hubert mickael at winlux.fr
Mon Sep 21 15:40:14 UTC 2020


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 at 10.88.83.7 Regex (PASS) [variables]
${sip_h_Accept-Contact}() =~ /(.*)/ break=never
Dialplan: sofia/INTERNAL/427842085 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200921/7d11472b/attachment.html>


More information about the FreeSWITCH-users mailing list