Thanks a lot, I found a work around. I change Accept-Contact header to X-Accept-Contact on my proxy (front of freeswitch), and FS can extract this new header ;) Have a good day Le mar. 22 sept. 2020 à 01:40, Brian West <brian@freeswitch.com> a écrit :
Its not parsed you'd probably need to parse it by patching the c code.
On Mon, Sep 21, 2020 at 2:22 PM Victor Chukalovskiy < victor.chukalovskiy@gmail.com> wrote:
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
_________________________________________________________________________
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 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch> _________________________________________________________________________
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